stdint: document issues with int_fast8_t etc.
[gnulib.git] / ChangeLog
1 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2
3         stdint: document issues with int_fast8_t etc.
4         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5         stdint.h substitutes may define these types differently.  See
6         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
7
8 2012-05-05  Bruno Haible  <bruno@clisp.org>
9
10         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
11         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
12         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
13         or 'guessing no (mishandles large arguments)'.
14
15 2012-05-05  Bruno Haible  <bruno@clisp.org>
16
17         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
18         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
19         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20         set gl_cv_func_link_follows_symlink to "guessing no".
21
22 2012-05-05  Bruno Haible  <bruno@clisp.org>
23
24         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
25         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
26         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
27         "guessing no".
28         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
29
30 2012-05-05  Bruno Haible  <bruno@clisp.org>
31
32         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
33         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
34         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35         set gl_cv_struct_dirent_d_ino to "guessing yes".
36
37 2012-05-05  Bruno Haible  <bruno@clisp.org>
38
39         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
40         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
41         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
42         "guessing yes".
43
44 2012-05-05  Bruno Haible  <bruno@clisp.org>
45
46         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
47         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
48         compiling to a glibc system, set gl_cv_func_signbit and
49         gl_cv_func_signbit_gcc to "guessing yes".
50
51 2012-05-05  Bruno Haible  <bruno@clisp.org>
52
53         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
54         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
55         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
56         to "guessing yes".
57         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
58         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
59
60 2012-05-05  Bruno Haible  <bruno@clisp.org>
61
62         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
63         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
64         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
65         gl_cv_func_realpath_works to "guessing yes".
66
67 2012-05-05  Bruno Haible  <bruno@clisp.org>
68
69         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
70         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
71         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
72
73 2012-05-04  Bruno Haible  <bruno@clisp.org>
74
75         Tweak last commit.
76         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
77         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
78
79 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
80
81         unistd_h: make it easier to avoid sys_types_h
82         This is useful for Emacs, which has its own method of porting to
83         Windows, and which therefore does not need the sys_types_h module.
84         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
85         code moved here from gl_SYS_TYPES_H.
86         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
87         using the code directly.
88         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
89         gl_SYS_TYPES_H.
90         * modules/sys_types (Files):
91         * modules/unistd (Files): Add m4/off_t.m4.
92
93 2012-05-03  Bruno Haible  <bruno@clisp.org>
94
95         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
96         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
97         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
98         "guessing yes" or "guessing no".
99         (gl_FUNC_LSTAT): Update.
100         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
101         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
102         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
103
104 2012-05-03  Bruno Haible  <bruno@clisp.org>
105
106         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
107         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
108         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
109         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
110         cross-compiling, choose the first alternative on glibc systems.
111         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
112
113 2012-05-03  Bruno Haible  <bruno@clisp.org>
114
115         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
116         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
117         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
118
119 2012-05-03  Bruno Haible  <bruno@clisp.org>
120
121         chown: Avoid "guessing no" when cross-compiling to glibc systems.
122         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
123
124 2012-05-03  Bruno Haible  <bruno@clisp.org>
125
126         Avoid "guessing no" guesses when cross-compiling to glibc systems.
127         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
128         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
129         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
130         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
131         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
132         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
133         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
134         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
135         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
136         compiling to glibc systems, set gl_cv_func_chown_slash_works,
137         gl_cv_func_chown_ctime_works to "guessing yes".
138         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
139         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
140         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
141         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
142         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
144         compiling to glibc systems, set gl_cv_func_open_directory_works to
145         "guessing yes".
146         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
147         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
148         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
149         "guessing yes".
150         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
151         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
152         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
153         compiling to glibc systems, set gl_cv_func_floorf_ieee to
154         "guessing yes".
155         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
156         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
157         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
158         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
159         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
160         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
161         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
162         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
163         "guessing yes".
164         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
165         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
166         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
167         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
168         "guessing yes".
169         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
170         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
171         "guessing yes".
172         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
173         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
174         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
175         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
176         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
177         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
178         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
179         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
180         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
181         compiling to glibc systems, set gl_cv_func_log10f_ieee to
182         "guessing yes".
183         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
184         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
185         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
186         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
187         "guessing yes".
188         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
189         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
190         "guessing yes".
191         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
192         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
193         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
194         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
195         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
196         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
197         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
198         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
199         compiling to glibc systems, set gl_cv_func_mkfifo_works to
200         "guessing yes".
201         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
202         compiling to glibc systems, set gl_cv_func_mknod_works to
203         "guessing yes".
204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
205         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
206         "guessing yes".
207         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
208         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
209         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
210         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
211         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
212         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
213         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
214         compiling to glibc systems, set gl_cv_func_svid_putenv to
215         "guessing yes".
216         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
217         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
218         "guessing yes".
219         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
220         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
221         "guessing yes".
222         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
223         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
224         to "guessing yes".
225         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
226         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
227         to "guessing yes".
228         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
229         compiling to glibc systems, set gl_cv_func_rmdir_works to
230         "guessing yes".
231         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
232         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
233         gl_cv_func_unlink_parent_fails to "guessing yes".
234         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
235         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
236         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
237         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
238         gl_cv_func_rename_dest_works to "guessing yes".
239         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
240         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
241         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
242         compiling to glibc systems, set gl_cv_func_roundf_ieee to
243         "guessing yes".
244         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
245         compiling to glibc systems, set gl_cv_func_roundl_ieee to
246         "guessing yes".
247         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
248         compiling to glibc systems, set gl_cv_func_setenv_works to
249         "guessing yes".
250         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
251         compiling to glibc systems, set gl_cv_func_unsetenv_works to
252         "guessing yes".
253         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
254         compiling to glibc systems, set gl_cv_func_sleep_works to
255         "guessing yes".
256         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
257         compiling to glibc systems, set gl_cv_func_stat_file_slash to
258         "guessing yes".
259         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
260         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
261         "guessing yes".
262         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
263         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
264         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
265         compiling to glibc systems, set gl_cv_func_truncf_ieee to
266         "guessing yes".
267         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
268         compiling to glibc systems, set gl_cv_func_truncl_ieee to
269         "guessing yes".
270         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
271         compiling to glibc systems, set gl_cv_func_usleep_works to
272         "guessing yes".
273         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
274         compiling to glibc systems, set gl_cv_func_futimesat_works to
275         "guessing yes".
276
277 2012-05-03  Bruno Haible  <bruno@clisp.org>
278
279         Say "guessing yes" or "guessing no" when cross-compiling.
280         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
281         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
282         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
283         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
284         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
285         am_cv_func_working_getline to "guessing yes" or "guessing no".
286         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
287         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
288         (gl_FUNC_MEMMEM): When cross-compiling, set
289         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
291         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
293         set gl_cv_func_strcasestr_works_always to "guessing yes" or
294         "guessing no".
295         (gl_FUNC_STRCASESTR): When cross-compiling, set
296         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
297         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
298         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
299         (gl_FUNC_STRSTR): When cross-compiling, set
300         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
301         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
302         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
303         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
304         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
305
306 2012-05-01  Bruno Haible  <bruno@clisp.org>
307
308         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
309         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
310         * build-aux/reloc-ldflags: Likewise.
311         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
312
313 2012-05-01  Bruno Haible  <bruno@clisp.org>
314
315         gnulib-tool: Remove transitional code.
316         * gnulib-tool: Don't warn about --import with 0 arguments any more.
317         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
318
319 2012-05-01  Bruno Haible  <bruno@clisp.org>
320
321         getcwd: Fix misindentation.
322         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
323
324 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
325
326         exclude: process exclude and include directives in order
327         This restores the pre-2009 behavior, and is part of a fix of a
328         grep bug reported by Quentin Arce in
329         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
330         * lib/exclude.c (struct exclude): Remove 'tail' member.
331         (new_exclude_segment): Prepend the new segment instead of appending.
332         Return void, since that's now more convenient.
333         (file_pattern_matches): Renamed from excluded_file_pattern_p.
334         (file_name_matches): Renamed from excluded_file_name_p.
335         (file_pattern_matches, file_name_matches):
336         Return true if the pattern matches, not if it excludes.
337         All callers changed.
338         (excluded_file_name): Process the list in reverse order;
339         since the list is now reversed this restores the pre-2009 behavior.
340         (add_exclude): Adjust to new reversed-order list.  Use local var
341         rather than macro, for clarity.
342         * tests/test-exclude7.sh: Adjust to corrected behavior.
343
344         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
345         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
346         it's not possible here.  Handle the case of \ at end of pattern
347         without dumping core.
348         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
349
350         _Noreturn: future-proof non-GNU and non-MSVC compilers
351         * build-aux/snippet/_Noreturn.h (_Noreturn):
352         * m4/gnulib-common.m4 (gl_COMMON_BODY):
353         Do not define _Noreturn if __STDC_VERSION__ indicates this is
354         C11 or later.  This is more likely to work with random future C
355         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
356         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
357
358         exclude: handle wildcards with FNM_EXTMATCH
359         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
360         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
361         comment that "has wildcards" really means "has or may have
362         wildcards".  Simplify by avoiding the need to call strcspn.
363
364 2012-04-29  Bruno Haible  <bruno@clisp.org>
365
366         gnulib-tool: Fix list of authors.
367         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
368
369 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
370
371         bootstrap: support Automake-NG in $buildreq
372         * bootstrap (check_versions): Handle automake and aclocal from
373         Automake-NG specially.  They can be specified as respectively
374         the "automake-ng" and "aclocal-ng" requirements.
375
376 2012-04-25  Eric Blake  <eblake@redhat.com>
377
378         bootstrap: only force latest Makefile.in.in for gettext module
379         * build-aux/bootstrap (with_gettext): Only install latest
380         Makefile.in.in for projects requesting bleeding edge gettext.
381
382 2012-04-22  Bruno Haible  <bruno@clisp.org>
383
384         doc: Mention reason for replacement on glibc/Linux systems.
385         * doc/posix-functions/dprintf.texi: Mention the problem with special
386         'long double' values.
387         * doc/posix-functions/fprintf.texi: Likewise.
388         * doc/posix-functions/printf.texi: Likewise.
389         * doc/posix-functions/snprintf.texi: Likewise.
390         * doc/posix-functions/sprintf.texi: Likewise.
391         * doc/posix-functions/vdprintf.texi: Likewise.
392         * doc/posix-functions/vfprintf.texi: Likewise.
393         * doc/posix-functions/vprintf.texi: Likewise.
394         * doc/posix-functions/vsnprintf.texi: Likewise.
395         * doc/posix-functions/vsprintf.texi: Likewise.
396         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
397         platforms with F_DUPFD_CLOEXEC problems.
398         * doc/posix-functions/glob.texi: Mention which platforms are affected
399         by the problem with symbolic links.
400         * doc/posix-functions/linkat.texi: Mention the problem with
401         AT_SYMLINK_FOLLOW on Linux.
402
403 2012-04-22  Bruno Haible  <bruno@clisp.org>
404
405         pwrite: Don't replace on all platforms.
406         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
407
408 2012-04-22  Bruno Haible  <bruno@clisp.org>
409
410         rint* tests: Avoid gcc warnings.
411         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
412         * tests/test-rintf.c (INFINITY, NAN): Likewise.
413         * tests/test-rintl.c (INFINITY, NAN): Likewise.
414
415 2012-04-21  Bruno Haible  <bruno@clisp.org>
416
417         users.txt: Update.
418         * users.txt: Add freedink, wdiff. Update URLs for projects that have
419         switched from CVS to git, bzr, or svn.
420
421 2012-04-21  Bruno Haible  <bruno@clisp.org>
422
423         Large File Support for native Windows platforms.
424
425         * m4/largefile.m4 (gl_LARGEFILE): New macro.
426         * modules/largefile (configure.ac): Require gl_LARGEFILE.
427
428         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
429         type.
430         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
431         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
432         * doc/posix-headers/sys_types.texi: Mention the effect of the
433         'largefile' module.
434
435         * lib/fcntl.in.h: Add comments about off_t.
436         * modules/fcntl-h (Depends-on): Add sys_types.
437
438         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
439         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
440         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
441         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
442         * modules/unistd (Depends-on): Add sys_types.
443         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
444
445         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
446         instead of lseek.
447         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
448         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
449         * modules/lseek (Depends-on): Add sys_types.
450
451         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
452         msvc-nothrow.h.
453         (SetFileSize): New function.
454         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
455         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
456         if Large File Support is requested.
457         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
458         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
459
460         * lib/stdio.in.h: Add comments about off_t.
461         * modules/stdio (Depends-on): Add sys_types.
462
463         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
464         instead of ftello.
465         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
466         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
467         (gl_PREREQ_FTELLO): New macro.
468         * modules/ftello (Depends-on): Add sys_types.
469         (configure.ac): Incoke gl_PREREQ_FTELLO.
470
471         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
472         instead of fseeko.
473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
474         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
475         (gl_PREREQ_FSEEKO): New macro.
476         * modules/fseeko (Depends-on): Add sys_types.
477         (configure.ac): Invoke gl_PREREQ_FSEEKO.
478
479         * lib/sys_stat.in.h: Add comments about off_t.
480         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
481         64-bit integer for st_size in 'struct stat'.
482         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
483         Define _GL_WINDOWS_64_BIT_ST_SIZE.
484         * modules/sys_stat (Depends-on): Add sys_types.
485         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
486
487         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
488         instead of stat or _stat.
489
490         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
491         'struct _stati64' instead of fstat and 'struct stat'.
492         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
493         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
494
495         Reported by Ray Satiro <raysatiro@yahoo.com>.
496
497 2012-04-19  Eric Blake  <eblake@redhat.com>
498
499         bootstrap: accommodate older libtool
500         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
501         Reported by Daniel P. Berrange.
502
503 2012-04-19  Jim Meyering  <meyering@redhat.com>
504
505         announce-gen: avoid failure due to lack of Digest::SHA1
506         Even with the preferred Digest::SHA available, this script
507         would fail when the backup module, Digest::SHA1, was not installed.
508         * build-aux/announce-gen: Quote the conditional use of "use".
509         Reported by Reuben Thomas in:
510         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
511
512         bootstrap: don't let a user's CDPATH setting affect this script
513         When CDPATH is set, cd will sometimes generate output.
514         When "cd" is run in a subshell whose output matters, that
515         surprising-to-some output can cause malfunction.
516         Unsetting CDPATH turns off this shell "feature."
517         * build-aux/bootstrap (CDPATH): Unset.
518         Reported by Reuben Thomas in:
519         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
520         and inspired by his patch here:
521         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
522
523 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
524         and Jim Meyering  <meyering@redhat.com>
525
526         maint.mk: catch "see @xref{}" and similar
527         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
528         prohibit "See also @xref{", "Also see @pxref{", and similar.
529
530 2012-04-16  Jim Meyering  <meyering@redhat.com>
531
532         bootstrap: really use gnulib's po/Makefile.in.in
533         * build-aux/bootstrap: Correct the source file name in previous change.
534         Reported by Akim Demaille.
535
536         configmake: correct minor inconsistency in Makefile rule
537         * modules/configmake (Makefile.am): All other rules like this one
538         run the final "mv -f ..." in the same backslash-continued command
539         as the one that does everything else.  This one put the mv -f ...
540         command on a separate, non-backslash-continued line.
541         Make it like the others.
542
543         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
544         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
545         the one from gettext.  Reported by Akim Demaille.
546
547 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
548
549         Fix recursion of install-* into po directories.
550         Bison's install-pdf bug reported by Hans Aberg at
551         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
552         * build-aux/po/Makefile.in.in (install-dvi, install-html)
553         (install-info, install-pdf, install-ps): New targets.
554
555 2012-04-16  Jim Meyering  <meyering@redhat.com>
556
557         maint: avoid spurious "make sc_maint" failure
558         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
559         exempt all *.class file names, for lib/javaversion.class.
560
561 2012-04-15  Bruno Haible  <bruno@clisp.org>
562
563         lseek: Make configure test independent of environment.
564         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
565         Windows, we know that lseek() on pipes is broken; skip the runtime
566         test.
567
568 2012-04-14  Bruno Haible  <bruno@clisp.org>
569
570         stat: Bypass buggy override in mingw64.
571         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
572         * lib/stat.c (stat) [mingw64]: Define to _stat.
573         * doc/posix-functions/stat.texi: Mention mingw64 bug.
574
575 2012-04-14  Bruno Haible  <bruno@clisp.org>
576
577         pathmax: Fix compilation error on MSVC 9.
578         * modules/pathmax (Depends-on): Add unistd.
579
580 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
581
582         README: document pointer comparison assumption
583         * README (Portability guidelines): Document assumption about
584         pointer comparisons, in response to a recent bug-gnulib comment by
585         Jeffrey Kegler.
586
587 2012-04-12  Bruno Haible  <bruno@clisp.org>
588
589         Tests for module 'getrusage'.
590         * modules/getrusage-tests: New file.
591         * tests/test-getrusage.c: New file.
592
593         New module 'getrusage'.
594         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
595         warn-on-use.h.
596         (getrusage): New declaration.
597         * lib/getrusage.c: New file.
598         * m4/getrusage.m4: New file.
599         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
600         is declared.
601         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
602         HAVE_GETRUSAGE.
603         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
604         snippet/c++defs, snippet/warn-on-use.
605         (Makefile.am): Update generation of sys/resource.h. Substitute
606         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
607         * modules/getrusage: New file.
608         * doc/posix-functions/getrusage.texi: Mention the new module.
609
610 2012-04-12  Bruno Haible  <bruno@clisp.org>
611
612         Tests for module 'sys_resource'.
613         * modules/sys_resource-tests: New file.
614         * tests/test-sys_resource.c: New file.
615
616         New module 'sys_resource'.
617         * lib/sys_resource.in.h: New file.
618         * m4/sys_resource_h.m4: New file.
619         * modules/sys_resource: New file.
620         * doc/posix-headers/sys_resource.texi: Mention the new module.
621
622 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
623
624         ioctl: Fix compilation error on mingw.
625         * lib/ioctl.c: Include <windows.h>.
626         Also reported by Ray Satiro <raysatiro@yahoo.com>.
627
628 2012-04-04  Jim Meyering  <meyering@redhat.com>
629
630         regex: correct #pragma guard expression
631         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
632         not 4.3.  Correct its cpp guard expression.
633
634 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
635
636         regex: remove unnecessary type punning
637         Problem reported by Vladimir Serbinenko in
638         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
639         * lib/regex.h (struct re_pattern_buffer): Change the type of
640         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
641         Fix comment to match code.
642         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
643         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
644         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
645         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
646         (set_regs):
647         Omit no-longer-necessary casts.
648
649 2012-04-03  Bruno Haible  <bruno@clisp.org>
650
651         Tests for module 'ilogbl'.
652         * modules/ilogbl-tests: New file.
653         * tests/test-ilogbl.c: New file.
654
655         New module 'ilogbl'.
656         * lib/math.in.h (ilogbl): New declaration.
657         * lib/ilogbl.c: New file.
658         * m4/ilogbl.m4: New file.
659         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
661         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
662         Split sed invocation, to avoid the limit of 100 substitutions of
663         HP-UX 'sed'.
664         * modules/ilogbl: New file.
665         * tests/test-math-c++.cc: Check the declaration of ilogbl.
666         * doc/posix-functions/ilogbl.texi: Mention the new module.
667
668 2012-04-03  Bruno Haible  <bruno@clisp.org>
669
670         Tests for module 'ilogbf'.
671         * modules/ilogbf-tests: New file.
672         * tests/test-ilogbf.c: New file.
673
674         New module 'ilogbf'.
675         * lib/math.in.h (ilogbf): New declaration.
676         * lib/ilogbf.c: New file.
677         * m4/ilogbf.m4: New file.
678         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
680         REPLACE_ILOGBF.
681         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
682         REPLACE_ILOGBF.
683         * modules/ilogbf: New file.
684         * tests/test-math-c++.cc: Check the declaration of ilogbf.
685         * doc/posix-functions/ilogbf.texi: Mention the new module.
686
687 2012-04-03  Bruno Haible  <bruno@clisp.org>
688
689         Tests for module 'ilogb'.
690         * modules/ilogb-tests: New file.
691         * tests/test-ilogb.c: New file.
692         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
693         tests/test-logb-ieee.h.
694
695         New module 'ilogb'.
696         * lib/math.in.h (ilogb): New declaration.
697         * lib/ilogb.c: New file.
698         * m4/ilogb.m4: New file.
699         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
701         REPLACE_ILOGB.
702         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
703         REPLACE_ILOGB.
704         * modules/ilogb: New file.
705         * tests/test-math-c++.cc: Check the declaration of ilogb.
706         * doc/posix-functions/ilogb.texi: Mention the new module.
707
708 2012-04-03  Bruno Haible  <bruno@clisp.org>
709
710         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
711         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
712         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
713         (main): Check their values.
714         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
715         problem.
716
717 2012-04-03  Bruno Haible  <bruno@clisp.org>
718
719         Tests for module 'logbl-ieee'.
720         * modules/logbl-ieee-tests: New file.
721         * tests/test-logbl-ieee.c: New file.
722
723         New module 'logbl-ieee'.
724         * modules/logbl-ieee: New file.
725
726         Tests for module 'logb-ieee'.
727         * modules/logb-ieee-tests: New file.
728         * tests/test-logb-ieee.c: New file.
729
730         New module 'logb-ieee'.
731         * modules/logb-ieee: New file.
732
733         Tests for module 'logbf-ieee'.
734         * modules/logbf-ieee-tests: New file.
735         * tests/test-logbf-ieee.c: New file.
736         * tests/test-logb-ieee.h: New file.
737
738         New module 'logbf-ieee'.
739         * modules/logbf-ieee: New file.
740
741 2012-04-03  Bruno Haible  <bruno@clisp.org>
742
743         Tests for module 'logbl'.
744         * modules/logbl-tests: New file.
745         * tests/test-logbl.c: New file.
746
747         New module 'logbl'.
748         * lib/math.in.h (logbl): New declaration.
749         * lib/logbl.c: New file.
750         * m4/logbl.m4: New file.
751         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
753         REPLACE_LOGBL.
754         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
755         REPLACE_LOGBL.
756         * modules/logbl: New file.
757         * tests/test-math-c++.cc: Check the declaration of logbl.
758         * doc/posix-functions/logbl.texi: Mention the new module.
759
760 2012-04-02  Bruno Haible  <bruno@clisp.org>
761
762         Tests for module 'logbf'.
763         * modules/logbf-tests: New file.
764         * tests/test-logbf.c: New file.
765
766         New module 'logbf'.
767         * lib/math.in.h (logbf): New declaration.
768         * lib/logbf.c: New file.
769         * m4/logbf.m4: New file.
770         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
772         REPLACE_LOGBF.
773         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
774         REPLACE_LOGBF.
775         * modules/logbf: New file.
776         * tests/test-math-c++.cc: Check the declaration of logbf.
777         * doc/posix-functions/logbf.texi: Mention the new module.
778
779 2012-04-02  Bruno Haible  <bruno@clisp.org>
780
781         logb tests: More tests.
782         * tests/test-logb.h: New file, based on tests/test-logb.c and
783         tests/test-frexp.h.
784         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
785         (main): Just invoke test_function.
786         * modules/logb-tests (Files): Add tests/test-logb.h,
787         tests/minus-zero.h, tests/randomd.c.
788         (Makefile.am): Add randomd.c to test_logb_SOURCES.
789
790         logb: Provide replacement and workarounds.
791         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
792         is 1.
793         * lib/logb.c: New file.
794         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
795         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
797         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
798         * modules/logb (Files): Add lib/logb.c.
799         (Depends-on): Add isfinite, frexp, isnand.
800         (configure.ac): Compile the replacement code logb.c if needed.
801         * tests/test-math-c++.cc: Check the declaration of logb.
802         * doc/posix-functions/logb.texi: Mention the replacement and the bug
803         with subnormal numbers.
804
805 2012-04-02  Bruno Haible  <bruno@clisp.org>
806
807         log10* tests: Speed up.
808         * tests/test-log10.h (test_function): Reduce amount of random numbers
809         to test.
810
811 2012-04-01  Bruno Haible  <bruno@clisp.org>
812
813         logf-ieee: Fix test whether logf works.
814         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
815
816 2012-04-01  Bruno Haible  <bruno@clisp.org>
817
818         log10l: Work around log10l-ieee test failure on IRIX 6.5.
819         * lib/log10l.c: Include <float.h>
820         (log10l): On IRIX, normalize the +Infinity value.
821         * modules/log10l (Depends-on): Add 'float'.
822         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
823         +Infinity.
824
825         log10f-ieee: Work around test failure on NetBSD 5.1.
826         * m4/log10f-ieee.m4: New file.
827         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
828         test whether log10f works with a negative argument. Replace it if not.
829         * lib/log10f.c (log10f): For negative arguments, return NaN.
830         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
831         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
832         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
833
834         log10f-ieee: Work around test failure on Solaris 9.
835         * modules/log10f-ieee (Depends-on): Add log10-ieee.
836         (configure.ac): Require gl_FUNC_LOG10F.
837
838         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
839         * m4/log10-ieee.m4: New file.
840         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
841         whether log10 works with a negative argument. Replace it if not.
842         * lib/log10.c (log10): For negative arguments, return NaN.
843         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
844         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
845         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
846
847         Tests for module 'log10l-ieee'.
848         * modules/log10l-ieee-tests: New file.
849         * tests/test-log10l-ieee.c: New file.
850
851         New module 'log10l-ieee'.
852         * modules/log10l-ieee: New file.
853
854         Tests for module 'log10-ieee'.
855         * modules/log10-ieee-tests: New file.
856         * tests/test-log10-ieee.c: New file.
857
858         New module 'log10-ieee'.
859         * modules/log10-ieee: New file.
860
861         Tests for module 'log10f-ieee'.
862         * modules/log10f-ieee-tests: New file.
863         * tests/test-log10f-ieee.c: New file.
864         * tests/test-log10-ieee.h: New file.
865
866         New module 'log10f-ieee'.
867         * modules/log10f-ieee: New file.
868
869 2012-04-01  Bruno Haible  <bruno@clisp.org>
870
871         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
872         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
873         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
874         workaround.
875         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
876         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
878         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
879         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
880         (Depends-on): Update conditions.
881         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
882         IRIX 6.5, OSF/1 5.1 problems.
883
884 2012-04-01  Bruno Haible  <bruno@clisp.org>
885
886         log10f: Work around OSF/1 5.1 bug.
887         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
888         * lib/log10f.c (log10f): If logf exists, use it and provide just the
889         workaround.
890         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
891         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
893         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
894         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
895         (Depends-on): Update conditions.
896         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
897
898 2012-04-01  Bruno Haible  <bruno@clisp.org>
899
900         log10: Work around OSF/1 5.1 bug.
901         * lib/math.in.h (log10): New declaration.
902         * lib/log10.c: New file.
903         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
904         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
905         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
907         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
908         * modules/log10 (Files): Add lib/log10.c.
909         (Depends-on): Add math.
910         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
911         * tests/test-math-c++.cc: Check the declaration of log10.
912         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
913
914 2012-03-31  Bruno Haible  <bruno@clisp.org>
915
916         log10l tests: More tests.
917         * modules/log10l-tests (Files): Add tests/test-log10l.h,
918         tests/minus-zero.h, tests/randoml.c.
919         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
920         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
921         (main): Invoke test_function.
922
923         log10f tests: More tests.
924         * modules/log10f-tests (Files): Add tests/test-log10.h,
925         tests/minus-zero.h, tests/randomf.c.
926         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
927         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
928         (main): Invoke test_function.
929
930         log10 tests: More tests.
931         * tests/test-log10.h: New file.
932         * modules/log10-tests (Files): Add tests/test-log10.h,
933         tests/minus-zero.h, tests/randomd.c.
934         (Makefile.am): Add randomd.c to test_log10_SOURCES.
935         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
936         (main): Invoke test_function.
937
938 2012-03-31  Simon Josefsson  <simon@josefsson.org>
939
940         fflush: Fix syntax error.
941         * lib/fflush.c: Include unused-parameter.h, needed for
942         _GL_UNUSED_PARAMETER.
943         * modules/fflush (Depends-on): Add snippet/unused-parameter.
944
945 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
946
947         regex: pacify GCC when compiling GRUB
948         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
949         a diagnostic.  Reported by Vladimir Serbinenko in
950         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
951
952 2012-03-29  Eric Blake  <eblake@redhat.com>
953
954         stdio: don't assume gets any more
955         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
956         support.
957         * modules/stdio (Makefile.am): Likewise.
958         * lib/stdio-read.c (gets): Likewise.
959         * tests/test-stdio-c++.cc: Likewise.
960         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
961         * lib/stdio.in.h (gets): Make warning occur in more places.
962         * doc/posix-functions/gets.texi (gets): Update documentation.
963         Reported by Christer Solskogen.
964
965         maint.mk: fix syntax checks without exclusions
966         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
967         Reported by Daniel P. Berrange.
968
969         strerror_r: avoid compiler warning
970         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
971         level.
972
973         fflush: avoid compiler warning
974         * lib/fflush.c (update_fpos_cache): Mark variables that are
975         potentially unused.
976
977 2012-03-25  Bruno Haible  <bruno@clisp.org>
978
979         Tests for module 'localeconv'.
980         * modules/localeconv-tests: New file.
981         * tests/test-localeconv.c: New file.
982
983         New module 'localeconv'.
984         * lib/locale.in.h (localeconv): New declaration.
985         * lib/localeconv.c: New file.
986         * m4/localeconv.m4: New file.
987         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
988         REPLACE_LOCALECONV.
989         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
990         REPLACE_LOCALECONV.
991         * modules/localeconv: New file.
992         * modules/nl_langinfo (Depends-on): Add localeconv.
993         * modules/human (Depends-on): Likewise.
994         * doc/posix-functions/localeconv.texi: Mention the new module.
995
996 2012-03-25  Bruno Haible  <bruno@clisp.org>
997
998         locale: Provide a complete 'struct lconv'.
999         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1000         'struct lconv' does not contain int_p_cs_precedes.
1001         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1002         * doc/posix-headers/locale.texi: Update.
1003
1004         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1005         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1006         * doc/posix-headers/locale.texi: Update.
1007
1008         locale: Provide a working 'struct lconv'.
1009         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1010         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1011         'struct lconv' does not even contain decimal_point.
1012         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1013         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1014         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1015         * doc/posix-headers/locale.texi: Mention the problems with
1016         'struct lconv'.
1017         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1018
1019 2012-03-24  Bruno Haible  <bruno@clisp.org>
1020
1021         Enable common subexpression optimization in GCC.
1022         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1023         macros.
1024         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1025         GCC attribute 'const'.
1026         (uc_locale_language): Declare with GCC attribute 'pure'.
1027         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1028         with GCC attribute 'const'.
1029         * lib/unictype.in.h (uc_is_general_category_withtable,
1030         uc_combining_class, uc_combining_class_name,
1031         uc_combining_class_long_name, uc_bidi_class_name,
1032         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1033         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1034         uc_decimal_value, uc_digit_value, uc_numeric_value,
1035         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1036         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1037         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1038         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1039         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1040         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1041         Declare with GCC attribute 'const'.
1042         (uc_general_category_name, uc_general_category_long_name,
1043         uc_general_category_byname, uc_general_category,
1044         uc_is_general_category, uc_combining_class_byname,
1045         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1046         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1047         Declare with GCC attribute 'pure'.
1048         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1049         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1050         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1051         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1052         with GCC attribute 'pure'.
1053         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1054         'const'.
1055         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1056         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1057         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1058         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1059         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1060         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1061         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1062         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1063         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1064         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1065         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1066         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1067         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1068         GCC attribute 'pure'.
1069         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1070         'const'.
1071         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1072         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1073         u32_strwidth): Declare with GCC attribute 'pure'.
1074
1075         Enable common subexpression optimization in GCC.
1076         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1077         (alphasort): Declare with GCC attribute 'pure'.
1078         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1079         (atoll): Declare with GCC attribute 'pure'.
1080         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1081         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1082         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1083         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1084         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1085         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1086         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1087
1088 2012-03-24  Bruno Haible  <bruno@clisp.org>
1089
1090         gnulib-tool: Avoid unintended error output from 'cmp'.
1091         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1092         "cmp -s", not "cmp > /dev/null".
1093
1094 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1095
1096         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1097
1098         It's not just Automake versions < 1.9b that creates an empty
1099         pkgdatadir at installation time if pkgdata_DATA is specified
1100         to empty; modern automake versions do this as well, at least
1101         until automake 1.11.4 (not yet released at the moment of writing,
1102         but soon to appear).  That behaviour was generally considered a
1103         feature rather than a bug, at least until this discussion:
1104         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1105
1106         See also automake bugs #10997 and #11030.
1107
1108         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1109         reference to relevant automake bug numbers.
1110         (func_emit_tests_Makefile_am): Likewise.
1111
1112 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1113
1114         announce-gen: use Digest::SHA when possible
1115         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1116         back to Digest::SHA1 if necessary.
1117
1118 2012-03-20  Jim Meyering  <meyering@redhat.com>
1119
1120         tests: avoid gcc warnings about argv vs. const initializers
1121         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1122         warnings about discarding 'const' qualifier from pointer target type.
1123         * tests/test-posix_spawn2.c (main): Likewise.
1124
1125 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1126
1127         README-release: simplify slightly
1128         * top/README-release: Run "git checkout master" only once.
1129
1130 2012-03-15  Mark Wielaard  <mark@klomp.org>
1131
1132         git-merge-changelog: add specific example on how to use with hg.
1133         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1134
1135 2012-03-18  Mark Wielaard  <mark@klomp.org>
1136
1137         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1138
1139 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1140
1141         git-version-gen: don't let "prefix" envvar cause trouble
1142         * build-aux/git-version-gen (prefix): Initialize properly,
1143         so as not to use a value specified via the environment.
1144         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1145
1146 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1147
1148         regex: diagnose too-large repeat counts in EREs
1149         Previously, the code did not diagnose the too-large repeat count
1150         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1151         as if it were 'b\{1000000000}', which is unexpected.
1152         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1153         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1154         is a reasonable one for this problem.  Another option would be to
1155         create a new REG_OVERFLOW error for repeat counts that are too large.
1156         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1157         count is too large, so that the caller can distinguish the two cases.
1158         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1159         "Too large" return code, and that repeat counts are one example of this.
1160
1161 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1162
1163         doc: some glibc x32 integer width issues
1164         * doc/posix-headers/sys_types.texi (sys/types.h):
1165         * doc/posix-headers/time.texi (time.h):
1166         Mention that glibc x32 does not conform to POSIX in a couple of
1167         areas related to integer widths.
1168
1169 2012-03-15  Bruno Haible  <bruno@clisp.org>
1170
1171         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1172         * lib/fma.c (VOLATILE): New macro.
1173         (FUNC): Use it to work around a GCC compiler bug.
1174
1175 2012-03-13  Bruno Haible  <bruno@clisp.org>
1176
1177         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1178         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1179         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1180         REPLACE_HYPOTL to 1.
1181         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1182
1183 2012-03-13  Bruno Haible  <bruno@clisp.org>
1184
1185         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1186         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1187         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1188         REPLACE_REMAINDERL to 1.
1189         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1190         bug.
1191
1192 2012-03-13  Bruno Haible  <bruno@clisp.org>
1193
1194         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1195         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1196         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1197         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1198         too big rounding errors.
1199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1200         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1201         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1202         (Depends-on): Update conditions.
1203         * tests/test-sqrtl.c (my_ldexpl): New function.
1204         (main): Add test of a particular value.
1205         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1206
1207 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1208
1209         doc: Update timer_* platform portability notes.
1210         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1211         that always return ENOSYS.
1212         * doc/posix-functions/timer_delete.texi: Likewise.
1213         * doc/posix-functions/timer_gettime.texi: Likewise.
1214         * doc/posix-functions/timer_settime.texi: Likewise.
1215
1216 2012-03-13  Bruno Haible  <bruno@clisp.org>
1217
1218         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1219         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1220         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1221         REPLACE_CBRTL to 1.
1222         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1223
1224 2012-03-13  Bruno Haible  <bruno@clisp.org>
1225
1226         remainderl: Avoid compilation error on AIX >= 5.2.
1227         * lib/math.in.h (remainderl): Undefine macro from the system header.
1228
1229 2012-03-13  Bruno Haible  <bruno@clisp.org>
1230
1231         Avoid compilation errors with MSVC option -fp:strict.
1232         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1233         * lib/cbrtf.c: Likewise.
1234         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1235
1236 2012-03-12  Bruno Haible  <bruno@clisp.org>
1237
1238         uninorm: Don't crash in out-of-memory conditions.
1239         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1240         gracefully.
1241         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1242         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1243
1244 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1245
1246         quote: fix syntax-check
1247         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1248         also exports quote_quoting_options.
1249
1250 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1251
1252         Collapse list of copyright years to ranges.  See
1253         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1254         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1255         build-aux/csharpexec.sh.in, build-aux/gnupload,
1256         build-aux/install-reloc, build-aux/javacomp.sh.in,
1257         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1258         build-aux/move-if-change, build-aux/reloc-ldflags,
1259         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1260
1261 2012-03-11  Bruno Haible  <bruno@clisp.org>
1262
1263         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1264         * m4/log2f-ieee.m4: New file.
1265         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1266         whether log2f works with a minus zero argument. Replace it if not.
1267         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1268         (Depends-on): Add log2-ieee.
1269         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1270         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1271
1272         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1273         * m4/log2-ieee.m4: New file.
1274         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1275         whether log2 works with a minus zero argument. Replace it if not.
1276         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1277         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1278         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1279
1280         Tests for module 'log2l-ieee'.
1281         * modules/log2l-ieee-tests: New file.
1282         * tests/test-log2l-ieee.c: New file.
1283
1284         New module 'log2l-ieee'.
1285         * modules/log2l-ieee: New file.
1286
1287         Tests for module 'log2-ieee'.
1288         * modules/log2-ieee-tests: New file.
1289         * tests/test-log2-ieee.c: New file.
1290
1291         New module 'log2-ieee'.
1292         * modules/log2-ieee: New file.
1293
1294         Tests for module 'log2f-ieee'.
1295         * modules/log2f-ieee-tests: New file.
1296         * tests/test-log2f-ieee.c: New file.
1297         * tests/test-log2-ieee.h: New file.
1298
1299         New module 'log2f-ieee'.
1300         * modules/log2f-ieee: New file.
1301
1302 2012-03-11  Bruno Haible  <bruno@clisp.org>
1303
1304         Tests for module 'log2l'.
1305         * modules/log2l-tests: New file.
1306         * tests/test-log2l.c: New file.
1307
1308         New module 'log2l'.
1309         * lib/math.in.h (log2l): New declaration.
1310         * lib/log2l.c: New file.
1311         * m4/log2l.m4: New file.
1312         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1314         REPLACE_LOG2L.
1315         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1316         REPLACE_LOG2L.
1317         * modules/log2l: New file.
1318         * tests/test-math-c++.cc: Check the declaration of log2l.
1319         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1320         and OSF/1 problems.
1321
1322 2012-03-11  Bruno Haible  <bruno@clisp.org>
1323
1324         Tests for module 'log2f'.
1325         * modules/log2f-tests: New file.
1326         * tests/test-log2f.c: New file.
1327
1328         New module 'log2f'.
1329         * lib/math.in.h (log2f): New declaration.
1330         * lib/log2f.c: New file.
1331         * m4/log2f.m4: New file.
1332         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1334         REPLACE_LOG2F.
1335         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1336         REPLACE_LOG2F.
1337         * modules/log2f: New file.
1338         * tests/test-math-c++.cc: Check the declaration of log2f.
1339         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1340         and OSF/1 and Cygwin problems.
1341
1342 2012-03-11  Bruno Haible  <bruno@clisp.org>
1343
1344         Tests for module 'log2'.
1345         * modules/log2-tests: New file.
1346         * tests/test-log2.c: New file.
1347         * tests/test-log2.h: New file.
1348
1349         New module 'log2'.
1350         * lib/math.in.h (log2): New declaration.
1351         * lib/log2.c: New file.
1352         * m4/log2.m4: New file.
1353         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1355         REPLACE_LOG2.
1356         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1357         REPLACE_LOG2.
1358         * modules/log2: New file.
1359         * tests/test-math-c++.cc: Check the declaration of log2.
1360         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1361         and OSF/1 and Cygwin problems.
1362
1363 2012-03-11  Bruno Haible  <bruno@clisp.org>
1364
1365         exp2* tests: More tests.
1366         * tests/test-exp2.h (test_function): Test all integral arguments that
1367         don't need to overflow or denormalized numbers.
1368         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1369         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1370         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1371
1372 2012-03-10  Bruno Haible  <bruno@clisp.org>
1373
1374         log1pl-ieee: Work around test failure on AIX 7.1.
1375         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1376
1377         log1pl-ieee: Work around test failure on IRIX 6.5.
1378         * m4/log1pl-ieee.m4: New file.
1379         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1380         test whether log1pl works with a minus zero argument. Replace it if
1381         not.
1382         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1384         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1385         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1386         (Depends-on): Update conditions.
1387         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1388         m4/signbit.m4.
1389         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1390         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1391
1392         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1393         * m4/log1pf-ieee.m4: New file.
1394         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1395         test whether log1pf works with a minus zero argument. Replace it if
1396         not.
1397         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1398         m4/signbit.m4.
1399         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1400         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1401
1402         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1403         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1404         (configure.ac): Require gl_FUNC_LOG1PF.
1405
1406         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1407         * m4/log1p-ieee.m4: New file.
1408         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1409         whether log1p works with a minus zero argument. Replace it if not.
1410         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1412         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1413         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1414         (Depends-on): Update conditions.
1415         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1416         m4/signbit.m4.
1417         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1418         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1419
1420         Tests for module 'log1pl-ieee'.
1421         * modules/log1pl-ieee-tests: New file.
1422         * tests/test-log1pl-ieee.c: New file.
1423
1424         New module 'log1pl-ieee'.
1425         * modules/log1pl-ieee: New file.
1426
1427         Tests for module 'log1p-ieee'.
1428         * modules/log1p-ieee-tests: New file.
1429         * tests/test-log1p-ieee.c: New file.
1430
1431         New module 'log1p-ieee'.
1432         * modules/log1p-ieee: New file.
1433
1434         Tests for module 'log1pf-ieee'.
1435         * modules/log1pf-ieee-tests: New file.
1436         * tests/test-log1pf-ieee.c: New file.
1437         * tests/test-log1p-ieee.h: New file.
1438
1439         New module 'log1pf-ieee'.
1440         * modules/log1pf-ieee: New file.
1441
1442 2012-03-10  Bruno Haible  <bruno@clisp.org>
1443
1444         Tests for module 'log1pl'.
1445         * modules/log1pl-tests: New file.
1446         * tests/test-log1pl.c: New file.
1447
1448         New module 'log1pl'.
1449         * lib/math.in.h (log1pl): New declaration.
1450         * lib/log1pl.c: New file.
1451         * m4/log1pl.m4: New file.
1452         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1454         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1455         * modules/log1pl: New file.
1456         * tests/test-math-c++.cc: Check the declaration of log1pl.
1457         * doc/posix-functions/log1pl.texi: Mention the new module.
1458
1459 2012-03-10  Bruno Haible  <bruno@clisp.org>
1460
1461         Tests for module 'log1pf'.
1462         * modules/log1pf-tests: New file.
1463         * tests/test-log1pf.c: New file.
1464
1465         New module 'log1pf'.
1466         * lib/math.in.h (log1pf): New declaration.
1467         * lib/log1pf.c: New file.
1468         * m4/log1pf.m4: New file.
1469         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1471         REPLACE_LOG1PF.
1472         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1473         REPLACE_LOG1PF.
1474         * modules/log1pf: New file.
1475         * tests/test-math-c++.cc: Check the declaration of log1pf.
1476         * doc/posix-functions/log1pf.texi: Mention the new module.
1477
1478 2012-03-10  Bruno Haible  <bruno@clisp.org>
1479
1480         log1p tests: More tests.
1481         * tests/test-log1p.h: New file.
1482         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1483         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1484         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1485         (main): Invoke test_function.
1486
1487         log1p: Provide replacement for Minix and MSVC.
1488         * lib/math.in.h (log1p): New declaration.
1489         * lib/log1p.c: New file.
1490         * m4/log1p.m4: New file.
1491         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1493         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1494         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1495         (Depends-on): Add math, isnand, log, round.
1496         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1497         HAVE_LOG1P is 0.
1498         * tests/test-math-c++.cc: Check the declaration of log1p.
1499         * doc/posix-functions/log1p.texi: Mention the replacement.
1500
1501 2012-03-10  Bruno Haible  <bruno@clisp.org>
1502
1503         math tests: Small simplification.
1504         * tests/test-exp.h (test_function): Use the same err_bound for
1505         'double' on platforms with sizeof (long double) == sizeof (double)
1506         than on platforms with sizeof (long double) > sizeof (double).
1507         * tests/test-exp2.h (test_function): Likewise.
1508         * tests/test-expm1.h (test_function): Likewise.
1509         * tests/test-log.h (test_function): Likewise.
1510
1511 2012-03-10  Bruno Haible  <bruno@clisp.org>
1512
1513         Fix some comments.
1514         * lib/expl.c: Fix an ambiguous comment.
1515         * lib/expm1.c: Likewise.
1516         * lib/expm1l.c: Likewise.
1517         * lib/exp2.c: Likewise.
1518         * lib/exp2l.c: Likewise.
1519
1520 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1521
1522         regex: allow inclusion of <regex.h> before <limits.h>
1523         Without this patch, portable programs had to include <limits.h> before
1524         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1525         I ran into this problem with a test version of GNU grep on Solaris 8.
1526         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1527         This is done conditionally so that this change can be merged
1528         back to glibc.
1529         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1530         using the included regex.
1531
1532         fts: depend on fdopendir
1533         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1534         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1535         problem was introduced when fdopendir was split out.
1536
1537 2012-03-10  Bruno Haible  <bruno@clisp.org>
1538
1539         Remove unused variables.
1540         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1541         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1542
1543 2012-03-10  Bruno Haible  <bruno@clisp.org>
1544
1545         isnanf-nolibm: Fix last commit.
1546         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1547
1548         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1549         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1550
1551 2012-03-10  Bruno Haible  <bruno@clisp.org>
1552
1553         logf-ieee: Work around test failure on NetBSD 5.1.
1554         * m4/logf-ieee.m4: New file.
1555         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1556         whether logf works with a negative argument. Replace it if not.
1557         * lib/logf.c (logf): For negative arguments, return NaN.
1558         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1559         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1560         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1561
1562         logf-ieee: Work around test failure on Solaris 9.
1563         * modules/logf-ieee (Depends-on): Add log-ieee.
1564         (configure.ac): Require gl_FUNC_LOGF.
1565
1566         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1567         * m4/log-ieee.m4: New file.
1568         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1569         log works with a negative argument. Replace it if not.
1570         * lib/log.c (log): For negative arguments, return NaN.
1571         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1572         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1573         * doc/posix-functions/log.texi: Mention the log-ieee module.
1574
1575         Tests for module 'logl-ieee'.
1576         * modules/logl-ieee-tests: New file.
1577         * tests/test-logl-ieee.c: New file.
1578
1579         New module 'logl-ieee'.
1580         * modules/logl-ieee: New file.
1581
1582         Tests for module 'log-ieee'.
1583         * modules/log-ieee-tests: New file.
1584         * tests/test-log-ieee.c: New file.
1585
1586         New module 'log-ieee'.
1587         * modules/log-ieee: New file.
1588
1589         Tests for module 'logf-ieee'.
1590         * modules/logf-ieee-tests: New file.
1591         * tests/test-logf-ieee.c: New file.
1592         * tests/test-log-ieee.h: New file.
1593
1594         New module 'logf-ieee'.
1595         * modules/logf-ieee: New file.
1596
1597 2012-03-10  Bruno Haible  <bruno@clisp.org>
1598
1599         log: Fix bug introduced on 2012-03-09.
1600         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1601
1602 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1603
1604         timer-time: link explicitly with pthreads on glibc
1605         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1606         to support static linking, when newer glibc is
1607         detected, as that contains pthread emulation of
1608         POSIX timer functions where required.
1609         * modules/timer-time: Depend on threadlib to
1610         pull in the appropriate library to link.
1611
1612 2012-03-10  Bruno Haible  <bruno@clisp.org>
1613
1614         log* tests: More tests.
1615         * tests/test-log.h: New file.
1616         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1617         (main): Invoke test_function.
1618         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1619         (main): Invoke test_function.
1620         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1621         (main): Invoke test_function.
1622         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1623         tests/randomd.c.
1624         (Makefile.am): Add randomd.c to test_log_SOURCES.
1625         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1626         tests/randomf.c.
1627         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1628         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1629         tests/randoml.c.
1630         (Depends-on): Add 'float'.
1631         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1632
1633 2012-03-09  Bruno Haible  <bruno@clisp.org>
1634
1635         logl: Work around OSF/1 5.1 bug.
1636         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1637         * lib/logl.c (logl): If logl exists, use it and provide just the
1638         workaround.
1639         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1640         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1642         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1643         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1644         (Depends-on): Update conditions.
1645         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1646
1647 2012-03-09  Bruno Haible  <bruno@clisp.org>
1648
1649         logf: Work around OSF/1 5.1 bug.
1650         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1651         * lib/logf.c (logf): If logf exists, use it and provide just the
1652         workaround.
1653         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1654         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1656         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1657         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1658         (Depends-on): Update conditions.
1659         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1660
1661 2012-03-09  Bruno Haible  <bruno@clisp.org>
1662
1663         log: Work around OSF/1 5.1 bug.
1664         * lib/math.in.h (log): New declaration.
1665         * lib/log.c: New file.
1666         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1667         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1668         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1670         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1671         * modules/log (Files): Add lib/log.c.
1672         (Depends-on): Add math.
1673         (configure.ac): If REPLACE_LOG is 1, compile an override.
1674         * tests/test-math-c++.cc: Check the declaration of log.
1675         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1676
1677 2012-03-09  Jim Meyering  <meyering@redhat.com>
1678
1679         readtokens.c: adjust wording in a comment
1680         * lib/readtokens.c: Insert omitted "that" in a comment.
1681
1682 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         modechange: add notations +40, 00440, etc.
1685         * lib/modechange.c (mode_compile): Support new notations
1686         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1687
1688 2012-03-08  Bruno Haible  <bruno@clisp.org>
1689
1690         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1691         * m4/exp2l-ieee.m4: New file.
1692         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1693         test whether exp2l works with a NaN argument and with a negative
1694         infinity argument. Replace it if not.
1695         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1697         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1698         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1699         (Depends-on): Update conditions.
1700         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1701         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1702         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1703
1704         Tests for module 'exp2l-ieee'.
1705         * modules/exp2l-ieee-tests: New file.
1706         * tests/test-exp2l-ieee.c: New file.
1707
1708         New module 'exp2l-ieee'.
1709         * modules/exp2l-ieee: New file.
1710
1711         Tests for module 'exp2-ieee'.
1712         * modules/exp2-ieee-tests: New file.
1713         * tests/test-exp2-ieee.c: New file.
1714
1715         New module 'exp2-ieee'.
1716         * modules/exp2-ieee: New file.
1717
1718         Tests for module 'exp2f-ieee'.
1719         * modules/exp2f-ieee-tests: New file.
1720         * tests/test-exp2f-ieee.c: New file.
1721         * tests/test-exp2-ieee.h: New file.
1722
1723         New module 'exp2f-ieee'.
1724         * modules/exp2f-ieee: New file.
1725
1726 2012-03-08  Bruno Haible  <bruno@clisp.org>
1727
1728         Tests for module 'exp2l'.
1729         * modules/exp2l-tests: New file.
1730         * tests/test-exp2l.c: New file.
1731
1732         New module 'exp2l'.
1733         * lib/math.in.h (exp2l): New declaration.
1734         * lib/exp2l.c: New file.
1735         * lib/expl-table.c: New file, extracted from lib/expl.c.
1736         * lib/expl.c (gl_expl_table): New declaration.
1737         (expl): Remove expl_table. Update reference.
1738         * m4/exp2l.m4: New file.
1739         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1741         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1742         * modules/exp2l: New file.
1743         * modules/expl (Files): Add lib/expl-table.c.
1744         (configure.ac): Compile also expl-table.c.
1745         * tests/test-math-c++.cc: Check the declaration of exp2l.
1746         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1747         problem.
1748
1749 2012-03-08  Bruno Haible  <bruno@clisp.org>
1750
1751         Tests for module 'exp2f'.
1752         * modules/exp2f-tests: New file.
1753         * tests/test-exp2f.c: New file.
1754
1755         New module 'exp2f'.
1756         * lib/math.in.h (exp2f): New declaration.
1757         * lib/exp2f.c: New file.
1758         * m4/exp2f.m4: New file.
1759         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1761         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1762         * modules/exp2f: New file.
1763         * tests/test-math-c++.cc: Check the declaration of exp2f.
1764         * doc/posix-functions/exp2f.texi: Mention the new module and the
1765         IRIX problem.
1766
1767 2012-03-08  Bruno Haible  <bruno@clisp.org>
1768
1769         Tests for module 'exp2'.
1770         * modules/exp2-tests: New file.
1771         * tests/test-exp2.c: New file.
1772         * tests/test-exp2.h: New file.
1773
1774         New module 'exp2'.
1775         * lib/math.in.h (exp2): New declaration.
1776         * lib/exp2.c: New file.
1777         * m4/exp2.m4: New file.
1778         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1780         REPLACE_EXP2.
1781         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1782         REPLACE_EXP2.
1783         * modules/exp2: New file.
1784         * tests/test-math-c++.cc: Check the declaration of exp2.
1785         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1786         and OpenBSD problems.
1787
1788 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1789
1790         savedir: fix comment typo
1791         * lib/savedir.c (savedirstream): Fix typo in comment.
1792
1793 2012-03-08  Bruno Haible  <bruno@clisp.org>
1794
1795         test-readtokens.c: use const; remove unwarranted cast
1796         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1797
1798 2012-03-08  Bruno Haible  <bruno@clisp.org>
1799
1800         fmal: Avoid compilation error on AIX.
1801         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1802         AIX 5.2..7.1.
1803
1804 2012-03-08  Bruno Haible  <bruno@clisp.org>
1805
1806         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1807         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1808         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1809         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1810         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1811         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1812         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1813
1814 2012-03-08  Bruno Haible  <bruno@clisp.org>
1815
1816         remainderf: Override buggy system function on IRIX 6.5.
1817         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1818         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1819         when it exists.
1820         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1821
1822 2012-03-08  Jim Meyering  <meyering@redhat.com>
1823
1824         test-readtokens.c: avoid const-related compilation warnings
1825         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1826
1827 2012-03-07  Jim Meyering  <meyering@redhat.com>
1828             Bruno Haible  <bruno@clisp.org>
1829
1830         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1831         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1832         tests/randomd.c.
1833         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1834         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1835         tests/randoml.c.
1836         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1837
1838 2012-03-07  Bruno Haible  <bruno@clisp.org>
1839
1840         expm1l: Avoid compilation error on AIX.
1841         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1842         AIX 5.2..7.1.
1843
1844 2012-03-07  Bruno Haible  <bruno@clisp.org>
1845
1846         expm1l: Don't override undeclared system function on IRIX 6.5.
1847         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1848         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1849         it exists. Set HAVE_DECL_EXPM1L.
1850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1851         HAVE_EXPM1L.
1852         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1853         HAVE_EXPM1L.
1854         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1855
1856 2012-03-07  Bruno Haible  <bruno@clisp.org>
1857
1858         remainderl: Don't override undeclared system function on IRIX 6.5.
1859         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1860         HAVE_REMAINDERL.
1861         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1862         declared when it exists. Set HAVE_DECL_REMAINDERL.
1863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1864         not HAVE_REMAINDERL.
1865         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1866         HAVE_REMAINDERL.
1867         * doc/posix-functions/remainderl.texi: Mention missing declaration
1868         problem.
1869
1870 2012-03-07  Bruno Haible  <bruno@clisp.org>
1871
1872         rintf: Don't override undeclared system function on IRIX 6.5.
1873         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1874         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1875         exists. Set HAVE_DECL_RINTF.
1876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1877         HAVE_RINTF.
1878         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1879         HAVE_RINTF.
1880         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1881
1882 2012-03-07  Bruno Haible  <bruno@clisp.org>
1883
1884         roundl: Avoid compilation error on AIX.
1885         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1886         AIX 5.2..7.1.
1887
1888 2012-03-07  Bruno Haible  <bruno@clisp.org>
1889
1890         roundl: Don't override undeclared system function on IRIX 6.5.
1891         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1892         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1893         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1894         * modules/roundl (configure.ac): For replacement code, test
1895         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1896         (Depends-on): Update conditions.
1897         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1898
1899 2012-03-07  Bruno Haible  <bruno@clisp.org>
1900
1901         roundf: Don't override undeclared system function on IRIX 6.5.
1902         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1903         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1904         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1905         * modules/roundf (configure.ac): For replacement code, test
1906         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1907         (Depends-on): Update conditions.
1908         * modules/roundf-ieee (Depends-on): Update conditions.
1909         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1910
1911 2012-03-07  Bruno Haible  <bruno@clisp.org>
1912
1913         round: Don't override undeclared system function on IRIX 6.5.
1914         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1915         argument.
1916         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1917         also when it is not declared. Set HAVE_ROUND. For replacement code,
1918         test HAVE_ROUND, not HAVE_DECL_ROUND.
1919         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1920         not HAVE_DECL_ROUND.
1921         (Depends-on): Update conditions.
1922         * modules/round-ieee (Depends-on): Update conditions.
1923         * doc/posix-functions/round.texi: Mention the IRIX problem.
1924
1925 2012-03-07  Bruno Haible  <bruno@clisp.org>
1926
1927         copysignf: Don't override undeclared system function on IRIX 6.5.
1928         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1929         HAVE_COPYSIGNF.
1930         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1931         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1933         not HAVE_COPYSIGNF.
1934         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1935         HAVE_COPYSIGNF.
1936         * doc/posix-functions/copysignf.texi: Mention missing declaration
1937         problem.
1938
1939 2012-03-07  Jim Meyering  <meyering@redhat.com>
1940
1941         readtokens: add tests
1942         * modules/readtokens-tests: New file.
1943         * tests/test-readtokens.c: New file.
1944
1945 2012-03-07  Jim Meyering  <meyering@redhat.com>
1946
1947         quotearg: the module must now include quote.h
1948         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1949         So must the module.
1950         * modules/quotearg (Files): Add quote.h.
1951
1952 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1953
1954         readtokens: avoid core dumps with unusual calling patterns
1955         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1956         * lib/readtokens.c: Include limits.h.
1957         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1958         (readtoken): Don't cache the delimiters; the cache code was buggy
1959         if !delim && saved_delim, or if the new n_delim differs from the old.
1960         Also, it wasn't thread-safe.
1961
1962 2012-03-07  Bruno Haible  <bruno@clisp.org>
1963
1964         quote: Adhere to common module description layout.
1965         * modules/quote (Makefile.am): Add back empty section.
1966
1967 2012-03-06  Akim Demaille  <demaille@gostai.com>
1968
1969         quote: fuse into quotearg
1970         This patch is made for the benefit of Bison.
1971         quote does not leave the choice of the quoting style to the user.
1972         quoting_style provides poor customizability, yet quoting_options,
1973         which is very rich, is hidden inside quotearg.c.  So in order to
1974         allow quote customization, move its implementation to quotearg.c.
1975         * lib/quote.c: Remove.
1976         * modules/quote: Adjust.
1977         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1978         warning: provide all the members of literal structs.
1979         (quote_quoting_options): New.
1980         (quote, quote_n): Import implementation from quote.c.
1981         * lib/quote.h: Import the comments from quote.c.
1982         (quote_quoting_options): New.
1983
1984 2012-03-06  Bruno Haible  <bruno@clisp.org>
1985
1986         Tests for module 'expm1l-ieee'.
1987         * modules/expm1l-ieee-tests: New file.
1988         * tests/test-expm1l-ieee.c: New file.
1989
1990         New module 'expm1l-ieee'.
1991         * modules/expm1l-ieee: New file.
1992
1993         Tests for module 'expm1f-ieee'.
1994         * modules/expm1f-ieee-tests: New file.
1995         * tests/test-expm1f-ieee.c: New file.
1996
1997         New module 'expm1f-ieee'.
1998         * modules/expm1f-ieee: New file.
1999
2000         Tests for module 'expm1-ieee'.
2001         * modules/expm1-ieee-tests: New file.
2002         * tests/test-expm1-ieee.c: New file.
2003         * tests/test-expm1-ieee.h: New file.
2004
2005         New module 'expm1-ieee'.
2006         * modules/expm1-ieee: New file.
2007         * m4/expm1-ieee.m4: New file.
2008         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2009         whether expm1 works with a minus zero argument. Replace it if not.
2010         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2012         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2013         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2014         (Depends-on): Update conditions.
2015         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2016         AIX problem.
2017
2018 2012-03-06  Bruno Haible  <bruno@clisp.org>
2019
2020         Work around expm1f bug on IRIX 6.5.
2021         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2022         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2023         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2024         not work.
2025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2026         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2027         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2028         (Depends-on): Update conditions.
2029         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2030
2031 2012-03-06  Bruno Haible  <bruno@clisp.org>
2032
2033         Tests for module 'expm1l'.
2034         * modules/expm1l-tests: New file.
2035         * tests/test-expm1l.c: New file.
2036
2037         New module 'expm1l'.
2038         * lib/math.in.h (expm1l): New declaration.
2039         * lib/expm1l.c: New file.
2040         * m4/expm1l.m4: New file.
2041         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2043         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2044         * modules/expm1l: New file.
2045         * tests/test-math-c++.cc: Check the declaration of expm1l.
2046         * doc/posix-functions/expm1l.texi: Mention the new module.
2047
2048 2012-03-06  Bruno Haible  <bruno@clisp.org>
2049
2050         Tests for module 'expm1f'.
2051         * modules/expm1f-tests: New file.
2052         * tests/test-expm1f.c: New file.
2053
2054         New module 'expm1f'.
2055         * lib/math.in.h (expm1f): New declaration.
2056         * lib/expm1f.c: New file.
2057         * m4/expm1f.m4: New file.
2058         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2060         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2061         * modules/expm1f: New file.
2062         * tests/test-math-c++.cc: Check the declaration of expm1f.
2063         * doc/posix-functions/expm1f.texi: Mention the new module.
2064
2065 2012-03-06  Bruno Haible  <bruno@clisp.org>
2066
2067         Tests for module 'expm1'.
2068         * modules/expm1-tests: New file.
2069         * tests/test-expm1.c: New file.
2070         * tests/test-expm1.h: New file.
2071
2072         New module 'expm1'.
2073         * lib/math.in.h (expm1): New declaration.
2074         * lib/expm1.c: New file.
2075         * m4/expm1.m4: New file.
2076         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2078         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2079         * modules/expm1: New file.
2080         * tests/test-math-c++.cc: Check the declaration of expm1.
2081         * doc/posix-functions/expm1.texi: Mention the new module.
2082
2083 2012-03-06  Bruno Haible  <bruno@clisp.org>
2084
2085         math: Ensure declarations of math functions.
2086         * modules/acosf (Depends-on): Add 'extensions'.
2087         * modules/asinf (Depends-on): Likewise.
2088         * modules/atan2f (Depends-on): Likewise.
2089         * modules/atanf (Depends-on): Likewise.
2090         * modules/cbrt (Depends-on): Likewise.
2091         * modules/cbrtf (Depends-on): Likewise.
2092         * modules/cbrtl (Depends-on): Likewise.
2093         * modules/copysignf (Depends-on): Likewise.
2094         * modules/copysignl (Depends-on): Likewise.
2095         * modules/cosf (Depends-on): Likewise.
2096         * modules/coshf (Depends-on): Likewise.
2097         * modules/expf (Depends-on): Likewise.
2098         * modules/fabsf (Depends-on): Likewise.
2099         * modules/fabsl (Depends-on): Likewise.
2100         * modules/fmaf (Depends-on): Likewise.
2101         * modules/fmal (Depends-on): Likewise.
2102         * modules/fmodf (Depends-on): Likewise.
2103         * modules/fmodl (Depends-on): Likewise.
2104         * modules/frexpf (Depends-on): Likewise.
2105         * modules/frexpl (Depends-on): Likewise.
2106         * modules/hypot (Depends-on): Likewise.
2107         * modules/hypotf (Depends-on): Likewise.
2108         * modules/hypotl (Depends-on): Likewise.
2109         * modules/ldexpf (Depends-on): Likewise.
2110         * modules/ldexpl (Depends-on): Likewise.
2111         * modules/log10f (Depends-on): Likewise.
2112         * modules/log10l (Depends-on): Likewise.
2113         * modules/log1p (Depends-on): Likewise.
2114         * modules/logb (Depends-on): Likewise.
2115         * modules/logf (Depends-on): Likewise.
2116         * modules/modff (Depends-on): Likewise.
2117         * modules/modfl (Depends-on): Likewise.
2118         * modules/powf (Depends-on): Likewise.
2119         * modules/remainderf (Depends-on): Likewise.
2120         * modules/remainderl (Depends-on): Likewise.
2121         * modules/rintf (Depends-on): Likewise.
2122         * modules/rintl (Depends-on): Likewise.
2123         * modules/sinf (Depends-on): Likewise.
2124         * modules/sinhf (Depends-on): Likewise.
2125         * modules/sqrtf (Depends-on): Likewise.
2126         * modules/tanf (Depends-on): Likewise.
2127         * modules/tanhf (Depends-on): Likewise.
2128         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2129         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2130         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2131         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2132         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2133         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2134         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2135         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2136         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2137         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2138         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2139         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2140         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2141         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2142         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2143         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2144         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2145         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2146         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2147         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2148         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2149         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2150         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2151         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2152         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2153         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2154         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2155         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2156         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2157         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2158         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2159         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2160         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2161         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2162         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2163         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2164         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2165         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2166         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2167         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2168         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2169
2170 2012-03-06  Bruno Haible  <bruno@clisp.org>
2171
2172         math: Update module names in warnings.
2173         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2174         tanl): Use specific module name in warn-on-use warning.
2175
2176 2012-03-06  Bruno Haible  <bruno@clisp.org>
2177
2178         expl: Simplify computation.
2179         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2180
2181 2012-03-05  Bruno Haible  <bruno@clisp.org>
2182
2183         exp* tests: More tests.
2184         * tests/test-exp.h: New file.
2185         * tests/test-exp.c: Include <float.h> and test-exp.h.
2186         (main): Invoke test_function.
2187         * tests/test-expf.c: Include <float.h> and test-exp.h.
2188         (main): Invoke test_function.
2189         * tests/test-expl.c: Include <float.h> and test-exp.h.
2190         (main): Invoke test_function.
2191         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2192         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2193         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2194         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2195         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2196         (Depends-on): Add 'float'.
2197         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2198
2199         expl: Fix precision of computed result.
2200         * lib/expl.c: Completely rewritten.
2201         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2202         (Maintainer): Add me.
2203         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2204
2205 2012-03-05  Bruno Haible  <bruno@clisp.org>
2206
2207         cbrt* tests: More tests.
2208         * tests/test-cbrt.h: New file.
2209         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2210         (main): Invoke test_function.
2211         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2212         (main): Invoke test_function.
2213         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2214         (main): Invoke test_function.
2215         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2216         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2217         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2218         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2219         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2220         (Depends-on): Add 'float'.
2221         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2222
2223 2012-03-05  Bruno Haible  <bruno@clisp.org>
2224
2225         hypot* tests: More tests.
2226         * tests/test-hypot.h: New file, partially extracted from
2227         tests/test-hypotl.c.
2228         * tests/test-hypot.c: Include test-hypot.h.
2229         (main): Invoke test_function.
2230         * tests/test-hypotf.c: Include test-hypot.h.
2231         (main): Invoke test_function.
2232         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2233         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2234         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2235         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2236         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2237         tests/randomf.c.
2238         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2239         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2240         tests/randoml.c.
2241         (Depends-on): Add 'fpucw', 'float'.
2242         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2243
2244 2012-03-05  Bruno Haible  <bruno@clisp.org>
2245
2246         fpucw: Doc about FreeBSD.
2247         * lib/fpucw.h: Mention FreeBSD in comments.
2248
2249 2012-03-04  Bruno Haible  <bruno@clisp.org>
2250
2251         sqrt* tests: More tests.
2252         * tests/test-sqrt.h: New file.
2253         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2254         (main): Invoke test_function.
2255         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2256         (main): Invoke test_function.
2257         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2258         (main): Invoke test_function.
2259         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2260         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2261         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2262         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2263         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2264         (Depends-on): Add 'float'.
2265         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2266
2267 2012-03-04  Bruno Haible  <bruno@clisp.org>
2268
2269         remainder* tests: More tests.
2270         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2271         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2272         (main): Invoke test_function.
2273         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2274         (main): Invoke test_function.
2275         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2276         (main): Invoke test_function.
2277         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2278         tests/randomd.c.
2279         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2280         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2281         tests/randomf.c.
2282         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2283         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2284         tests/randoml.c.
2285         (Depends-on): Add 'float'.
2286         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2287
2288 2012-03-04  Bruno Haible  <bruno@clisp.org>
2289
2290         remainder, remainderf, remainderl: Fix computation for large quotients.
2291         * lib/remainder.c: Completely rewritten.
2292         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2293         USE_FLOAT.
2294         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2295         USE_LONG_DOUBLE.
2296         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2297         isnand, isinf. Remove round, fma.
2298         * modules/remainderf (Files): Add lib/remainder.c.
2299         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2300         Remove roundf, fmaf.
2301         * modules/remainderl (Files): Add lib/remainder.c.
2302         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2303         isinf. Remove roundl, fmal.
2304         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2305         REMAINDER_LIBM.
2306         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2307         REMAINDERF_LIBM.
2308         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2309         REMAINDERL_LIBM.
2310
2311 2012-03-04  Bruno Haible  <bruno@clisp.org>
2312
2313         fmod* tests: More tests.
2314         * tests/test-fmod.h (my_ldexp): New function.
2315         (test_function): Reduce amount of random numbers to test. Add tests
2316         of very large quotients x / y.
2317         * tests/test-fmod.c (MAX_EXP): New macro.
2318         * tests/test-fmodf.c (MAX_EXP): Likewise.
2319         * tests/test-fmodl.c (MAX_EXP): Likewise.
2320
2321 2012-03-04  Bruno Haible  <bruno@clisp.org>
2322
2323         fmod, fmodl: Fix computation for large quotients x / y.
2324         * lib/fmod.c: Completely rewritten.
2325         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2326         USE_LONG_DOUBLE.
2327         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2328         isnand. Remove fma.
2329         * modules/fmodl (Files): Add lib/fmod.c.
2330         (Depends-on): Add float, isfinite, signbit, fabsl,
2331         frexpl, ldexpl, isnanl. Remove fma.
2332         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2333         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2334
2335 2012-03-03  Bruno Haible  <bruno@clisp.org>
2336
2337         fmod* tests: More tests.
2338         * tests/test-fmod.h: New file.
2339         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2340         (main): Invoke test_function.
2341         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2342         (main): Invoke test_function.
2343         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2344         (main): Invoke test_function.
2345         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2346         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2347         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2348         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2349         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2350         (Depends-on): Add 'float'.
2351         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2352
2353 2012-03-03  Bruno Haible  <bruno@clisp.org>
2354
2355         rint* tests: More tests.
2356         * tests/test-rint.h: New file, partially extracted from
2357         tests/test-rintl.c.
2358         * tests/test-rint.c: Include test-rint.h.
2359         (main): Invoke test_function.
2360         * tests/test-rintf.c: Include test-rint.h.
2361         (main): Invoke test_function.
2362         * tests/test-rintl.c: Include test-rint.h.
2363         (main): Invoke test_function.
2364         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2365         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2366         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2367         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2368         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2369         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2370
2371 2012-03-03  Bruno Haible  <bruno@clisp.org>
2372
2373         modf* tests: More tests.
2374         * tests/test-modf.h: New file.
2375         * tests/test-modf.c: Include <float.h> and test-modf.h.
2376         (main): Invoke test_function.
2377         * tests/test-modff.c: Include <float.h> and test-modf.h.
2378         (main): Invoke test_function.
2379         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2380         (main): Invoke test_function.
2381         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2382         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2383         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2384         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2385         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2386         (Depends-on): Add 'float'.
2387         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2388
2389 2012-03-03  Bruno Haible  <bruno@clisp.org>
2390
2391         fabs* tests: More tests.
2392         * tests/test-fabs.h: New file, partially extracted from
2393         tests/test-fabsl.c.
2394         * tests/test-fabs.c (RANDOM): New macro.
2395         * tests/test-fabsf.c (RANDOM): New macro.
2396         * tests/test-fabsl.c (RANDOM): New macro.
2397         * modules/fabs-tests (Files): Add tests/randomd.c.
2398         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2399         * modules/fabsf-tests (Files): Add tests/randomf.c.
2400         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2401         * modules/fabsl-tests (Files): Add tests/randoml.c.
2402         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2403
2404 2012-03-03  Bruno Haible  <bruno@clisp.org>
2405
2406         ldexp* tests: More tests.
2407         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2408         * tests/test-ldexp.c (RANDOM): New macro.
2409         * tests/test-ldexpf.c (RANDOM): New macro.
2410         * tests/test-ldexpl.c (RANDOM): New macro.
2411         * modules/ldexp-tests (Files): Add tests/randomd.c.
2412         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2413         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2414         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2415         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2416         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2417
2418 2012-03-03  Bruno Haible  <bruno@clisp.org>
2419
2420         frexp* tests: More tests.
2421         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2422         * tests/test-frexp.c (RANDOM): New macro.
2423         * tests/test-frexpf.c (RANDOM): New macro.
2424         * tests/test-frexpl.c (RANDOM): New macro.
2425         * modules/frexp-tests (Files): Add tests/randomd.c.
2426         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2427         * modules/frexpf-tests (Files): Add tests/randomf.c.
2428         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2429         * modules/frexpl-tests (Files): Add tests/randoml.c.
2430         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2431
2432 2012-03-03  Bruno Haible  <bruno@clisp.org>
2433
2434         Support for pseudo-random numbers in tests.
2435         * tests/randomf.c: New file.
2436         * tests/randomd.c: New file.
2437         * tests/randoml.c: New file.
2438         * tests/macros.h (randomf, randomd, randoml): New declarations.
2439
2440 2012-03-03  Bruno Haible  <bruno@clisp.org>
2441
2442         frexp* tests: Refactor.
2443         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2444         * tests/test-frexp.c: Include and use it.
2445         * tests/test-frexpf.c: Likewise.
2446         * tests/test-frexpl.c: Likewise.
2447         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2448         * modules/frexpf-tests (Files): Likewise.
2449         * modules/frexpl-tests (Files): Likewise.
2450
2451 2012-03-02  Jim Meyering  <meyering@redhat.com>
2452
2453         maint: don't specify XZ_OPT=-9ev in dist-related rule
2454         Using xz's -9 option is warranted only if you have a very large
2455         tarball (see xz's documentation for the sizes vs. presets), and
2456         requires 64MiB of memory at decompression time.
2457         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2458         Automake's default of just "-e" is fine.  Override on a
2459         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2460
2461 2012-03-01  Eric Blake  <eblake@redhat.com>
2462
2463         maint.mk: allow announcement for non-gnulib project
2464         * maint.mk (announcement): Skip gnulib version if not used.
2465
2466 2012-03-01  Jim Meyering  <meyering@redhat.com>
2467
2468         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2469         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2470         envvar settings cannot interfere.  Otherwise, setting envvars like
2471         prohibit=foo require=bar, etc. would cause spurious test failures.
2472
2473 2012-03-01  Eric Blake  <eblake@redhat.com>
2474
2475         maint.mk: add per-line exclusions to prohibitions
2476         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2477         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2478         (sc_const_long_option): Use it.
2479
2480 2012-03-01  Bruno Haible  <bruno@clisp.org>
2481
2482         Tests for module 'expl-ieee'.
2483         * modules/expl-ieee-tests: New file.
2484         * tests/test-expl-ieee.c: New file.
2485
2486         New module 'expl-ieee'.
2487         * modules/expl-ieee: New file.
2488
2489         Tests for module 'exp-ieee'.
2490         * modules/exp-ieee-tests: New file.
2491         * tests/test-exp-ieee.c: New file.
2492
2493         New module 'exp-ieee'.
2494         * modules/exp-ieee: New file.
2495
2496         Tests for module 'expf-ieee'.
2497         * modules/expf-ieee-tests: New file.
2498         * tests/test-expf-ieee.c: New file.
2499         * tests/test-exp-ieee.h: New file.
2500
2501         New module 'expf-ieee'.
2502         * modules/expf-ieee: New file.
2503
2504 2012-02-29  Bruno Haible  <bruno@clisp.org>
2505
2506         cbrtl-ieee: Work around test failure on IRIX 6.5.
2507         * m4/cbrtl-ieee.m4: New file.
2508         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2509         test whether cbrtl works with a minus zero argument. Replace it if not.
2510         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2512         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2513         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2514         (Depends-on): Update conditions.
2515         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2516         m4/signbit.m4.
2517         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2518         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2519         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2520
2521         Tests for module 'cbrtl-ieee'.
2522         * modules/cbrtl-ieee-tests: New file.
2523         * tests/test-cbrtl-ieee.c: New file.
2524
2525         New module 'cbrtl-ieee'.
2526         * modules/cbrtl-ieee: New file.
2527
2528         Tests for module 'cbrt-ieee'.
2529         * modules/cbrt-ieee-tests: New file.
2530         * tests/test-cbrt-ieee.c: New file.
2531
2532         New module 'cbrt-ieee'.
2533         * modules/cbrt-ieee: New file.
2534
2535         Tests for module 'cbrtf-ieee'.
2536         * modules/cbrtf-ieee-tests: New file.
2537         * tests/test-cbrtf-ieee.c: New file.
2538         * tests/test-cbrt-ieee.h: New file.
2539
2540         New module 'cbrtf-ieee'.
2541         * modules/cbrtf-ieee: New file.
2542
2543 2012-02-29  Bruno Haible  <bruno@clisp.org>
2544
2545         cbrtf: Work around bug in IRIX 6.5 system function.
2546         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2547         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2548         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2549         work.
2550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2551         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2552         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2553         (Depends-on): Update conditions.
2554         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2555
2556 2012-02-29  Bruno Haible  <bruno@clisp.org>
2557
2558         Tests for module 'cbrtl'.
2559         * modules/cbrtl-tests: New file.
2560         * tests/test-cbrtl.c: New file.
2561
2562         New module 'cbrtl'.
2563         * lib/math.in.h (cbrtl): New declaration.
2564         * lib/cbrtl.c: New file.
2565         * m4/cbrtl.m4: New file.
2566         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2568         HAVE_DECL_CBRTL.
2569         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2570         HAVE_DECL_CBRTL.
2571         * modules/cbrtl: New file.
2572         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2573         * doc/posix-functions/cbrtl.texi: Mention the new module.
2574
2575 2012-02-29  Bruno Haible  <bruno@clisp.org>
2576
2577         Tests for module 'cbrtf'.
2578         * modules/cbrtf-tests: New file.
2579         * tests/test-cbrtf.c: New file.
2580
2581         New module 'cbrtf'.
2582         * lib/math.in.h (cbrtf): New declaration.
2583         * lib/cbrtf.c: New file.
2584         * m4/cbrtf.m4: New file.
2585         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2587         HAVE_DECL_CBRTF.
2588         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2589         HAVE_DECL_CBRTF.
2590         * modules/cbrtf: New file.
2591         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2592         * doc/posix-functions/cbrtf.texi: Mention the new module.
2593
2594 2012-02-29  Bruno Haible  <bruno@clisp.org>
2595
2596         cbrt: Provide replacement on MSVC and Minix.
2597         * lib/math.in.h (cbrt): New declaration.
2598         * lib/cbrt.c: New file.
2599         * m4/cbrt.m4: New file.
2600         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2602         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2603         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2604         (Depends-on): Add dependencies.
2605         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2606         * tests/test-math-c++.cc: Check the declaration of cbrt.
2607         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2608         replacement.
2609
2610 2012-02-29  Bruno Haible  <bruno@clisp.org>
2611
2612         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2613         * m4/hypotl-ieee.m4: New file.
2614         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2615         test whether hypotl works with mixed NaN and Infinity arguments.
2616         Replace it if not.
2617         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2619         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2620         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2621         (Depends-on): Update conditions.
2622         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2623         (Depends-on): Add hypot-ieee.
2624         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2625         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2626
2627         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2628         * m4/hypotf-ieee.m4: New file.
2629         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2630         test whether hypotf works with mixed NaN and Infinity arguments.
2631         Replace it if not.
2632         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2633         (Depends-on): Add hypot-ieee.
2634         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2635         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2636
2637         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2638         * lib/math.in.h (hypot): New declaration.
2639         * lib/hypot.c: New file.
2640         * m4/hypot-ieee.m4: New file.
2641         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2642         whether hypot works with mixed NaN and Infinity arguments. Replace it
2643         if not.
2644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2645         REPLACE_HYPOT.
2646         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2647         * modules/hypot (Files): Add lib/hypot.c.
2648         (Depends-on): Add dependencies.
2649         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2650         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2651         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2652         * tests/test-math-c++.cc: Check the declaration of hypot.
2653         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2654
2655         Tests for module 'hypotl-ieee'.
2656         * modules/hypotl-ieee-tests: New file.
2657         * tests/test-hypotl-ieee.c: New file.
2658
2659         New module 'hypotl-ieee'.
2660         * modules/hypotl-ieee: New file.
2661
2662         Tests for module 'hypot-ieee'.
2663         * modules/hypot-ieee-tests: New file.
2664         * tests/test-hypot-ieee.c: New file.
2665
2666         New module 'hypot-ieee'.
2667         * modules/hypot-ieee: New file.
2668
2669         Tests for module 'hypotf-ieee'.
2670         * modules/hypotf-ieee-tests: New file.
2671         * tests/test-hypotf-ieee.c: New file.
2672         * tests/test-hypot-ieee.h: New file.
2673
2674         New module 'hypotf-ieee'.
2675         * modules/hypotf-ieee: New file.
2676
2677 2012-02-29  Bruno Haible  <bruno@clisp.org>
2678
2679         Remove unused variables.
2680         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2681         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2682         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2683         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2684
2685 2012-02-29  Eric Blake  <eblake@redhat.com>
2686
2687         termios: fix pid_t always, not just for tcgetsid
2688         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2689         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2690         just when building tcgetsid.
2691
2692 2012-02-29  Bruno Haible  <bruno@clisp.org>
2693
2694         Tests for module 'hypotl'.
2695         * modules/hypotl-tests: New file.
2696         * tests/test-hypotl.c: New file.
2697
2698         New module 'hypotl'.
2699         * lib/math.in.h (hypotl): New declaration.
2700         * lib/hypotl.c: New file.
2701         * m4/hypotl.m4: New file.
2702         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2704         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2705         * modules/hypotl: New file.
2706         * tests/test-math-c++.cc: Check the hypotl declaration.
2707         * doc/posix-functions/hypotl.texi: Mention the new module.
2708
2709 2012-02-29  Eric Blake  <eblake@redhat.com>
2710
2711         tcgetsid: fix cygwin header bug
2712         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2713
2714         docs: update cygwin progress
2715         * doc/posix-functions/llround.texi (llround): Added in cygwin
2716         1.7.8.
2717         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2718         * doc/glibc-functions/program_invocation_name.texi
2719         (program_invocation_name): Likewise.
2720         * doc/glibc-functions/program_invocation_short_name.texi
2721         (program_invocation_short_name): Likewise.
2722         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2723         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2724         Likewise.
2725         * doc/posix-functions/pthread_spin_destroy.texi
2726         (pthread_spin_destroy): Added in cygwin 1.7.10.
2727         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2728         Likewise.
2729         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2730         Likewise.
2731         * doc/posix-functions/pthread_spin_trylock.texi
2732         (pthread_spin_trylock): Likewise.
2733         * doc/posix-functions/pthread_spin_unlock.texi
2734         (pthread_spin_unlock): Likewise.
2735         * doc/posix-functions/pthread_setschedprio.texi
2736         (pthread_setschedprio): Likewise.
2737         * doc/posix-functions/pthread_attr_getstack.texi
2738         (pthread_attr_getstack): Likewise.
2739         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2740         (pthread_attr_getstackaddr): Likewise.
2741         * doc/glibc-functions/pthread_getattr_np.texi
2742         (pthread_getattr_np): Likewise.
2743         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2744         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2745         * doc/posix-functions/clock_settime.texi (clock_settime):
2746         Likewise.
2747         * doc/posix-functions/pthread_attr_getguardsize.texi
2748         (pthread_attr_getguardsize): Likewise.
2749         * doc/posix-functions/pthread_attr_setguardsize.texi
2750         (pthread_attr_setguardsize): Likewise.
2751         * doc/posix-functions/pthread_attr_setstack.texi
2752         (pthread_attr_setstack): Likewise.
2753         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2754         (pthread_attr_setstackaddr): Likewise.
2755         * doc/posix-functions/clock_getcpuclockid.texi
2756         (clock_getcpuclockid): Likewise.
2757         * doc/posix-functions/pthread_getcpuclockid.texi
2758         (pthread_getcpuclockid): Likewise.
2759         * doc/glibc-functions/error.texi (error): Likewise.
2760         * doc/glibc-functions/error_at_line.texi (error_at_line):
2761         Likewise.
2762         * doc/glibc-functions/error_message_count.texi
2763         (error_message_count): Likewise.
2764         * doc/glibc-functions/error_one_per_line.texi
2765         (error_one_per_line): Likewise.
2766         * doc/glibc-functions/error_print_progname.texi
2767         (error_print_progname): Likewise.
2768         * doc/posix-functions/pthread_condattr_getclock.texi
2769         (pthread_condattr_getclock): Likewise.
2770         * doc/posix-functions/pthread_condattr_setclock.texi
2771         (pthread_condattr_setclock): Likewise.
2772         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2773         Likewise.
2774         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2775         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2776         * doc/glibc-functions/get_current_dir_name.texi
2777         (get_current_dir_name): Likewise.
2778         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2779         Likewise.
2780         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2781         wrong return type.
2782         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2783         1.7.11.
2784
2785 2012-02-29  Bruno Haible  <bruno@clisp.org>
2786
2787         Tests for module 'hypotf'.
2788         * modules/hypotf-tests: New file.
2789         * tests/test-hypotf.c: New file.
2790
2791         New module 'hypotf'.
2792         * lib/math.in.h (hypotf): New declaration.
2793         * lib/hypotf.c: New file.
2794         * m4/hypotf.m4: New file.
2795         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2797         REPLACE_HYPOTF.
2798         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2799         REPLACE_HYPOTF.
2800         * modules/hypotf: New file.
2801         * tests/test-math-c++.cc: Check the hypotf declaration.
2802         * doc/posix-functions/hypotf.texi: Mention the new module.
2803
2804         hypot: Prepare for hypotf module.
2805         * m4/hypot.m4: New file.
2806         * modules/hypot (Files): Add m4/hypot.m4.
2807         (configure.ac): Invoke gl_FUNC_HYPOT.
2808
2809 2012-02-29  Bruno Haible  <bruno@clisp.org>
2810
2811         hypot tests: More tests.
2812         * tests/test-hypot.c: Include <float.h>.
2813         (main): Add tests about overflow and underflow.
2814
2815 2012-02-29  Bruno Haible  <bruno@clisp.org>
2816
2817         math code: Add comments.
2818         * lib/acosl.c: Add comment about related glibc source files.
2819         * lib/asinl.c: Likewise.
2820         * lib/atanl.c: Likewise.
2821         * lib/expl.c: Likewise.
2822         * lib/logl.c: Likewise.
2823         * lib/sincosl.c: Likewise.
2824         * lib/sinl.c: Likewise.
2825         * lib/tanl.c: Likewise.
2826         * lib/trigl.c: Likewise.
2827         * lib/cosl.c: Likewise. Fix comments.
2828
2829 2012-02-28  Bruno Haible  <bruno@clisp.org>
2830
2831         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2832         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2833         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2834         HUGE_VALL are defined.
2835         (numeric_equald): Renamed from numeric_equal.
2836         (numeric_equalf, numeric_equall): New functions.
2837         (main): Check also HUGE_VALF, HUGE_VALL.
2838         * modules/math-tests (Files): Add tests/macros.h.
2839         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2840         HUGE_VALL.
2841
2842 2012-02-28  Bruno Haible  <bruno@clisp.org>
2843
2844         doc: Move ISO C11 feature notes into POSIX chapters.
2845         * doc/posix-functions/aligned_alloc.texi: Renamed from
2846         doc/glibc-functions/aligned_alloc.texi.
2847         * doc/posix-functions/quick_exit.texi: Renamed from
2848         doc/glibc-functions/quick_exit.texi.
2849         * doc/posix-headers/uchar.texi: Renamed from
2850         doc/glibc-headers/uchar.texi.
2851         * doc/posix-functions/c16rtomb.texi: Renamed from
2852         doc/glibc-functions/c16rtomb.texi.
2853         * doc/posix-functions/c32rtomb.texi: Renamed from
2854         doc/glibc-functions/c32rtomb.texi.
2855         * doc/posix-functions/mbrtoc16.texi: Renamed from
2856         doc/glibc-functions/mbrtoc16.texi.
2857         * doc/posix-functions/mbrtoc32.texi: Renamed from
2858         doc/glibc-functions/mbrtoc32.texi.
2859         * doc/gnulib.texi: Update.
2860         (Glibc uchar.h): Remove section.
2861         Suggested by Eric Blake.
2862
2863 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2864
2865         stdnoreturn: port to MSVC better
2866         MSVC standard headers use __declspec(noreturn), so #define noreturn
2867         to empty on that platform.  Reported by Bruno Haible in
2868         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2869         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2870         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2871
2872 2012-02-28  Bruno Haible  <bruno@clisp.org>
2873
2874         doc: Mention new glibc headers and functions.
2875         * doc/glibc-headers/uchar.texi: New file.
2876         * doc/glibc-functions/aligned_alloc.texi: New file.
2877         * doc/glibc-functions/c16rtomb.texi: New file.
2878         * doc/glibc-functions/c32rtomb.texi: New file.
2879         * doc/glibc-functions/clock_adjtime.texi: New file.
2880         * doc/glibc-functions/fanotify_init.texi: New file.
2881         * doc/glibc-functions/fanotify_mark.texi: New file.
2882         * doc/glibc-functions/inet6_opt_append.texi: New file.
2883         * doc/glibc-functions/inet6_opt_find.texi: New file.
2884         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2885         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2886         * doc/glibc-functions/inet6_opt_init.texi: New file.
2887         * doc/glibc-functions/inet6_opt_next.texi: New file.
2888         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2889         * doc/glibc-functions/inet6_rth_add.texi: New file.
2890         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2891         * doc/glibc-functions/inet6_rth_init.texi: New file.
2892         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2893         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2894         * doc/glibc-functions/inet6_rth_space.texi: New file.
2895         * doc/glibc-functions/login.texi: New file.
2896         * doc/glibc-functions/mbrtoc16.texi: New file.
2897         * doc/glibc-functions/mbrtoc32.texi: New file.
2898         * doc/glibc-functions/name_to_handle_at.texi: New file.
2899         * doc/glibc-functions/ntp_gettimex.texi: New file.
2900         * doc/glibc-functions/open_by_handle_at.texi: New file.
2901         * doc/glibc-functions/prlimit.texi: New file.
2902         * doc/glibc-functions/process_vm_readv.texi: New file.
2903         * doc/glibc-functions/process_vm_writev.texi: New file.
2904         * doc/glibc-functions/recvmmsg.texi: New file.
2905         * doc/glibc-functions/scandirat.texi: New file.
2906         * doc/glibc-functions/sendmmsg.texi: New file.
2907         * doc/glibc-functions/setns.texi: New file.
2908         * doc/glibc-functions/timespec_get.texi: New file.
2909         * doc/gnulib.texi: Include them.
2910         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2911         sections.
2912         Reported by Eric Blake.
2913
2914 2012-02-28  Bruno Haible  <bruno@clisp.org>
2915
2916         Avoid compilation errors with MSVC option -fp:strict.
2917         * lib/floor.c: Use MSVC specific pragma fenv_access.
2918         * lib/ceil.c: Likewise.
2919         * lib/trunc.c: Likewise.
2920         * lib/round.c: Likewise.
2921         * lib/rint.c: Likewise.
2922         * lib/fma.c: Likewise.
2923         * lib/integer_length.c: Likewise.
2924         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2925         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2926         * tests/test-floor2.c: Likewise.
2927         * tests/test-floorf2.c: Likewise.
2928         * tests/test-ceil2.c: Likewise.
2929         * tests/test-ceilf2.c: Likewise.
2930         * tests/test-trunc2.c: Likewise.
2931         * tests/test-truncf2.c: Likewise.
2932         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2933
2934 2012-02-27  Bruno Haible  <bruno@clisp.org>
2935
2936         Tests for module 'sqrtl-ieee'.
2937         * modules/sqrtl-ieee-tests: New file.
2938         * tests/test-sqrtl-ieee.c: New file.
2939
2940         New module 'sqrtl-ieee'.
2941         * modules/sqrtl-ieee: New file.
2942
2943         Tests for module 'sqrt-ieee'.
2944         * modules/sqrt-ieee-tests: New file.
2945         * tests/test-sqrt-ieee.c: New file.
2946
2947         New module 'sqrt-ieee'.
2948         * modules/sqrt-ieee: New file.
2949
2950         Tests for module 'sqrtf-ieee'.
2951         * modules/sqrtf-ieee-tests: New file.
2952         * tests/test-sqrtf-ieee.c: New file.
2953         * tests/test-sqrt-ieee.h: New file.
2954
2955         New module 'sqrtf-ieee'.
2956         * modules/sqrtf-ieee: New file.
2957
2958 2012-02-27  Bruno Haible  <bruno@clisp.org>
2959
2960         remainderl-ieee: Work around test failure on OSF/1.
2961         * m4/remainderl-ieee.m4: New file.
2962         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2963         present, test whether remainderl works with a zero second argument.
2964         Replace it if not.
2965         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2967         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2968         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2969         (Depends-on): Update conditions.
2970         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2971         (Depends-on): Add remainder-ieee.
2972         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2973         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2974         module.
2975
2976         remainderf-ieee: Work around test failure on OSF/1.
2977         * m4/remainderf-ieee.m4: New file.
2978         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2979         present, test whether remainderf works with a zero second argument.
2980         Replace it if not.
2981         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2983         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2984         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2985         (Depends-on): Update conditions.
2986         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2987         (Depends-on): Add remainder-ieee.
2988         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2989         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2990         module.
2991
2992         remainder-ieee: Work around test failure on OSF/1.
2993         * m4/remainder-ieee.m4: New file.
2994         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2995         present, test whether remainder works with a zero second argument.
2996         Replace it if not.
2997         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2999         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3000         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3001         (Depends-on): Update dependencies.
3002         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3003         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3004         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3005
3006         Tests for module 'remainderl-ieee'.
3007         * modules/remainderl-ieee-tests: New file.
3008         * tests/test-remainderl-ieee.c: New file.
3009
3010         New module 'remainderl-ieee'.
3011         * modules/remainderl-ieee: New file.
3012
3013         Tests for module 'remainder-ieee'.
3014         * modules/remainder-ieee-tests: New file.
3015         * tests/test-remainder-ieee.c: New file.
3016
3017         New module 'remainder-ieee'.
3018         * modules/remainder-ieee: New file.
3019
3020         Tests for module 'remainderf-ieee'.
3021         * modules/remainderf-ieee-tests: New file.
3022         * tests/test-remainderf-ieee.c: New file.
3023         * tests/test-remainder-ieee.h: New file.
3024
3025         New module 'remainderf-ieee'.
3026         * modules/remainderf-ieee: New file.
3027
3028 2012-02-27  Bruno Haible  <bruno@clisp.org>
3029
3030         modff, modfl: Fix configure syntax error.
3031         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3032         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3033
3034 2012-02-27  Bruno Haible  <bruno@clisp.org>
3035
3036         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3037         * m4/fmodl-ieee.m4: New file.
3038         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3039         whether fmodl works with zero arguments. Replace it if not.
3040         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3041         (Depends-on): Add fmod-ieee.
3042         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3043         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3044
3045         fmodf-ieee: Work around test failure on OSF/1.
3046         * m4/fmodf-ieee.m4: New file.
3047         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3048         whether fmodf works with zero arguments. Replace it if not.
3049         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3051         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3052         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3053         (Depends-on): Update dependencies.
3054         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3055         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3056         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3057
3058         fmodf-ieee: Work around test failure on MSVC 9.
3059         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3060         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3061
3062         fmod-ieee: Work around test failures on OSF/1, mingw.
3063         * m4/fmod-ieee.m4: New file.
3064         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3065         whether fmod works with zero arguments. Replace it if not.
3066         * lib/math.in.h (fmod): New declaration.
3067         * lib/fmod.c: New file.
3068         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3070         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3071         * modules/fmod (Files): Add lib/fmod.c.
3072         (Depends-on): Add math, isinf, trunc, fma.
3073         (configure.ac): Arrange to compile lib/fmod.c if needed.
3074         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3075         m4/signbit.m4.
3076         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3077         * tests/test-math-c++.cc: Check the declaration of fmod.
3078         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3079
3080         fmodl-ieee: Fix test failures.
3081         * lib/fmodl.c (fmodl): Treat Inf specially.
3082         * modules/fmodl (Depends-on): Add isinf.
3083
3084         Tests for module 'fmodl-ieee'.
3085         * modules/fmodl-ieee-tests: New file.
3086         * tests/test-fmodl-ieee.c: New file.
3087
3088         New module 'fmodl-ieee'.
3089         * modules/fmodl-ieee: New file.
3090
3091         Tests for module 'fmod-ieee'.
3092         * modules/fmod-ieee-tests: New file.
3093         * tests/test-fmod-ieee.c: New file.
3094
3095         New module 'fmod-ieee'.
3096         * modules/fmod-ieee: New file.
3097
3098         Tests for module 'fmodf-ieee'.
3099         * modules/fmodf-ieee-tests: New file.
3100         * tests/test-fmodf-ieee.c: New file.
3101         * tests/test-fmod-ieee.h: New file.
3102
3103         New module 'fmodf-ieee'.
3104         * modules/fmodf-ieee: New file.
3105
3106 2012-02-27  Bruno Haible  <bruno@clisp.org>
3107
3108         Tests for module 'rintl-ieee'.
3109         * modules/rintl-ieee-tests: New file.
3110         * tests/test-rintl-ieee.c: New file.
3111
3112         New module 'rintl-ieee'.
3113         * modules/rintl-ieee: New file.
3114
3115         Tests for module 'rint-ieee'.
3116         * modules/rint-ieee-tests: New file.
3117         * tests/test-rint-ieee.c: New file.
3118
3119         New module 'rint-ieee'.
3120         * modules/rint-ieee: New file.
3121
3122         Tests for module 'rintf-ieee'.
3123         * modules/rintf-ieee-tests: New file.
3124         * tests/test-rintf-ieee.c: New file.
3125         * tests/test-rint-ieee.h: New file.
3126
3127         New module 'rintf-ieee'.
3128         * modules/rintf-ieee: New file.
3129
3130 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         regex: re_search etc. should return -2 when memory exhausted
3133         This bug was uncovered when testing 'grep'.  Without the fix,
3134         re_search and friends return -1 when memory is exhausted, but -1
3135         means no match, and this causes grep to falsely report no-match
3136         instead of memory-exhaustion.  See
3137         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3138         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3139         trouble; this can occur if re_search_internal ran out of memory.
3140
3141 2012-02-26  Bruno Haible  <bruno@clisp.org>
3142
3143         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3144         * m4/modfl-ieee.m4: New file.
3145         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3146         whether modfl works with Inf. Replace it if not.
3147         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3149         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3150         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3151         (Depends-on): Update dependencies.
3152         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3153         m4/signbit.m4.
3154         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3155         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3156
3157         modfl-ieee: Fix dependencies.
3158         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3159
3160         modfl-ieee: Fix test failures.
3161         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3162         * modules/modfl (Depends-on): Add isfinite, isinf.
3163
3164         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3165         * m4/modff-ieee.m4: New file.
3166         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3167         whether modff works with NaN and Inf. Replace it if not.
3168         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3170         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3171         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3172         (Depends-on): Update dependencies.
3173         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3174         m4/signbit.m4.
3175         (Depends-on): Add modf-ieee.
3176         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3177         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3178
3179         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3180         * m4/modf-ieee.m4: New file.
3181         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3182         whether modf works with NaN and Inf. Replace it if not.
3183         * lib/math.in.h (modf): New declaration.
3184         * lib/modf.c: New file.
3185         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3187         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3188         * modules/modf (Files): Add lib/modf.c.
3189         (Depends-on): Add math, isfinite, trunc, isinf.
3190         (configure.ac): Addrange to compile lib/modf.c if needed.
3191         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3192         m4/signbit.m4.
3193         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3194         * tests/test-math-c++.cc: Check the declaration of modf.
3195         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3196
3197         Tests for module 'modfl-ieee'.
3198         * modules/modfl-ieee-tests: New file.
3199         * tests/test-modfl-ieee.c: New file.
3200
3201         New module 'modfl-ieee'.
3202         * modules/modfl-ieee: New file.
3203
3204         Tests for module 'modf-ieee'.
3205         * modules/modf-ieee-tests: New file.
3206         * tests/test-modf-ieee.c: New file.
3207
3208         New module 'modf-ieee'.
3209         * modules/modf-ieee: New file.
3210
3211         Tests for module 'modff-ieee'.
3212         * modules/modff-ieee-tests: New file.
3213         * tests/test-modff-ieee.c: New file.
3214         * tests/test-modf-ieee.h: New file.
3215
3216         New module 'modff-ieee'.
3217         * modules/modff-ieee: New file.
3218
3219 2012-02-26  Bruno Haible  <bruno@clisp.org>
3220
3221         Tests for module 'fabsl-ieee'.
3222         * modules/fabsl-ieee-tests: New file.
3223         * tests/test-fabsl-ieee.c: New file.
3224
3225         New module 'fabsl-ieee'.
3226         * modules/fabsl-ieee: New file.
3227
3228         Tests for module 'fabs-ieee'.
3229         * modules/fabs-ieee-tests: New file.
3230         * tests/test-fabs-ieee.c: New file.
3231
3232         New module 'fabs-ieee'.
3233         * modules/fabs-ieee: New file.
3234
3235         Tests for module 'fabsf-ieee'.
3236         * modules/fabsf-ieee-tests: New file.
3237         * tests/test-fabsf-ieee.c: New file.
3238         * tests/test-fabs-ieee.h: New file.
3239
3240         New module 'fabsf-ieee'.
3241         * modules/fabsf-ieee: New file.
3242
3243 2012-02-26  Bruno Haible  <bruno@clisp.org>
3244
3245         Tests for module 'fmal-ieee'.
3246         * modules/fmal-ieee-tests: New file.
3247         * tests/test-fmal-ieee.c: New file.
3248
3249         New module 'fmal-ieee'.
3250         * modules/fmal-ieee: New file.
3251
3252         Tests for module 'fma-ieee'.
3253         * modules/fma-ieee-tests: New file.
3254         * tests/test-fma-ieee.c: New file.
3255
3256         New module 'fma-ieee'.
3257         * modules/fma-ieee: New file.
3258
3259         Tests for module 'fmaf-ieee'.
3260         * modules/fmaf-ieee-tests: New file.
3261         * tests/test-fmaf-ieee.c: New file.
3262         * tests/test-fma-ieee.h: New file.
3263
3264         New module 'fmaf-ieee'.
3265         * modules/fmaf-ieee: New file.
3266
3267 2012-02-26  Bruno Haible  <bruno@clisp.org>
3268
3269         Tests for module 'ldexpl-ieee'.
3270         * modules/ldexpl-ieee-tests: New file.
3271         * tests/test-ldexpl-ieee.c: New file.
3272
3273         New module 'ldexpl-ieee'.
3274         * modules/ldexpl-ieee: New file.
3275
3276         Tests for module 'ldexp-ieee'.
3277         * modules/ldexp-ieee-tests: New file.
3278         * tests/test-ldexp-ieee.c: New file.
3279
3280         New module 'ldexp-ieee'.
3281         * modules/ldexp-ieee: New file.
3282
3283         Tests for module 'ldexpf-ieee'.
3284         * modules/ldexpf-ieee-tests: New file.
3285         * tests/test-ldexpf-ieee.c: New file.
3286         * tests/test-ldexp-ieee.h: New file.
3287
3288         New module 'ldexpf-ieee'.
3289         * modules/ldexpf-ieee: New file.
3290
3291 2012-02-26  Bruno Haible  <bruno@clisp.org>
3292
3293         Refactor frexp*-ieee tests.
3294         * tests/test-frexp-ieee.h: New file.
3295         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3296         (main): Just call test_function.
3297         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3298         (main): Just call test_function.
3299         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3300         (main): Just call test_function.
3301         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3302         * modules/frexp-ieee-tests (Files): Likewise.
3303         * modules/frexpl-ieee-tests (Files): Likewise.
3304
3305         Tests for module 'frexpl-ieee'.
3306         * modules/frexpl-ieee-tests: New file.
3307         * tests/test-frexpl-ieee.c: New file.
3308
3309         New module 'frexpl-ieee'.
3310         * modules/frexpl-ieee: New file.
3311
3312         Tests for module 'frexp-ieee'.
3313         * modules/frexp-ieee-tests: New file.
3314         * tests/test-frexp-ieee.c: New file.
3315
3316         New module 'frexp-ieee'.
3317         * modules/frexp-ieee: New file.
3318
3319         Tests for module 'frexpf-ieee'.
3320         * modules/frexpf-ieee-tests: New file.
3321         * tests/test-frexpf-ieee.c: New file.
3322
3323         New module 'frexpf-ieee'.
3324         * modules/frexpf-ieee: New file.
3325
3326 2012-02-26  Bruno Haible  <bruno@clisp.org>
3327
3328         roundl-ieee tests: More tests.
3329         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3330         (main): Add tests for [MX] shaded specification in POSIX.
3331         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3332         (Depends-on): Add isnanl-nolibm.
3333
3334         round-ieee tests: More tests.
3335         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3336         (main): Add tests for [MX] shaded specification in POSIX.
3337         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3338         (Depends-on): Add isnand-nolibm.
3339
3340         roundf-ieee tests: More tests.
3341         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3342         (main): Add tests for [MX] shaded specification in POSIX.
3343         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3344         (Depends-on): Add isnanf-nolibm.
3345
3346         truncl-ieee tests: More tests.
3347         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3348         (main): Add tests for [MX] shaded specification in POSIX.
3349         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3350         (Depends-on): Add isnanl-nolibm.
3351
3352         trunc-ieee tests: More tests.
3353         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3354         (main): Add tests for [MX] shaded specification in POSIX.
3355         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3356         (Depends-on): Add isnand-nolibm.
3357
3358         truncf-ieee tests: More tests.
3359         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3360         (main): Add tests for [MX] shaded specification in POSIX.
3361         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3362         (Depends-on): Add isnanf-nolibm.
3363
3364         ceill-ieee tests: More tests.
3365         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3366         (main): Add tests for [MX] shaded specification in POSIX.
3367         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3368         (Depends-on): Add isnanl-nolibm.
3369
3370         ceil-ieee tests: More tests.
3371         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3372         (main): Add tests for [MX] shaded specification in POSIX.
3373         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3374         (Depends-on): Add isnand-nolibm.
3375
3376         ceilf-ieee tests: More tests.
3377         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3378         (main): Add tests for [MX] shaded specification in POSIX.
3379         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3380         (Depends-on): Add isnanf-nolibm.
3381
3382         floorl-ieee tests: More tests.
3383         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3384         (main): Add tests for [MX] shaded specification in POSIX.
3385         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3386         (Depends-on): Add isnanl-nolibm.
3387
3388         floor-ieee tests: More tests.
3389         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3390         (main): Add tests for [MX] shaded specification in POSIX.
3391         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3392         (Depends-on): Add isnand-nolibm.
3393
3394         floorf-ieee tests: More tests.
3395         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3396         (main): Add tests for [MX] shaded specification in POSIX.
3397         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3398         (Depends-on): Add isnanf-nolibm.
3399
3400 2012-02-26  Bruno Haible  <bruno@clisp.org>
3401
3402         fpieee: More comments.
3403         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3404
3405 2012-02-25  Bruno Haible  <bruno@clisp.org>
3406
3407         Tests for module 'log10l'.
3408         * modules/log10l-tests: New file.
3409         * tests/test-log10l.c: New file.
3410         * tests/test-math-c++.cc: Check the declaration of log10l.
3411
3412         New module 'log10l'.
3413         * lib/math.in.h (log10l): New declaration.
3414         * lib/log10l.c: New file.
3415         * m4/log10l.m4: New file.
3416         * modules/log10l: New file.
3417         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3419         HAVE_DECL_LOG10L.
3420         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3421         HAVE_DECL_LOG10L.
3422         * doc/posix-functions/log10l.texi: Mention the new module.
3423
3424 2012-02-25  Bruno Haible  <bruno@clisp.org>
3425
3426         fmodl, remainder*: Avoid wrong results due to rounding errors.
3427         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3428         expected bounds.
3429         * lib/remainderf.c (remainderf): Likewise.
3430         * lib/remainder.c (remainder): Likewise.
3431         * lib/remainderl.c (remainderl): Likewise.
3432
3433 2012-02-25  Bruno Haible  <bruno@clisp.org>
3434
3435         Tests for module 'remainderl'.
3436         * modules/remainderl-tests: New file.
3437         * tests/test-remainderl.c: New file.
3438         * tests/test-math-c++.cc: Check the declaration of remainderl.
3439
3440         New module 'remainderl'.
3441         * lib/math.in.h (remainderl): New declaration.
3442         * lib/remainderl.c: New file.
3443         * m4/remainderl.m4: New file.
3444         * modules/remainderl: New file.
3445         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3447         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3448         HAVE_REMAINDERL.
3449         * doc/posix-functions/remainderl.texi: Mention the new module.
3450
3451 2012-02-25  Bruno Haible  <bruno@clisp.org>
3452
3453         Tests for module 'remainderf'.
3454         * modules/remainderf-tests: New file.
3455         * tests/test-remainderf.c: New file.
3456         * tests/test-math-c++.cc: Check the declaration of remainderf.
3457
3458         New module 'remainderf'.
3459         * lib/math.in.h (remainderf): New declaration.
3460         * lib/remainderf.c: New file.
3461         * m4/remainderf.m4: New file.
3462         * modules/remainderf: New file.
3463         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3465         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3466         HAVE_REMAINDERF.
3467         * doc/posix-functions/remainderf.texi: Mention the new module.
3468
3469 2012-02-25  Bruno Haible  <bruno@clisp.org>
3470
3471         remainder: Support for MSVC.
3472         * lib/math.in.h (remainder): New declaration.
3473         * lib/remainder.c: New file.
3474         * m4/remainder.m4: New file.
3475         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3476         (Depends-on): Add math, round, fma.
3477         (configure.ac): Use results of gl_FUNC_REMAINDER.
3478         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3480         HAVE_DECL_REMAINDER.
3481         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3482         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3483         * tests/test-math-c++.cc: Check the declaration of remainder.
3484         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3485         problems are fixed.
3486
3487 2012-02-25  Bruno Haible  <bruno@clisp.org>
3488
3489         Tests for module 'fmodl'.
3490         * modules/fmodl-tests: New file.
3491         * tests/test-fmodl.c: New file.
3492         * tests/test-math-c++.cc: Check the declaration of fmodl.
3493
3494         New module 'fmodl'.
3495         * lib/math.in.h (fmodl): New declaration.
3496         * lib/fmodl.c: New file.
3497         * m4/fmodl.m4: New file.
3498         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3500         REPLACE_FMODL.
3501         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3502         REPLACE_FMODL.
3503         * modules/fmodl: New file.
3504         * doc/posix-functions/fmodl.texi: Mention the new module.
3505
3506 2012-02-25  Bruno Haible  <bruno@clisp.org>
3507
3508         Tests for module 'modfl'.
3509         * modules/modfl-tests: New file.
3510         * tests/test-modfl.c: New file.
3511         * tests/test-math-c++.cc: Check the declaration of modfl.
3512
3513         New module 'modfl'.
3514         * lib/math.in.h (modfl): New declaration.
3515         * lib/modfl.c: New file.
3516         * m4/modfl.m4: New file.
3517         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3519         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3520         * modules/modfl: New file.
3521         * doc/posix-functions/modfl.texi: Mention the new module.
3522
3523 2012-02-25  Bruno Haible  <bruno@clisp.org>
3524
3525         Tests for module 'fabsl'.
3526         * modules/fabsl-tests: New file.
3527         * tests/test-fabsl.c: New file.
3528         * tests/test-math-c++.cc: Check the declaration of fabsl.
3529
3530         New module 'fabsl'.
3531         * lib/math.in.h (fabsl): New declaration.
3532         * lib/fabsl.c: New file.
3533         * m4/fabsl.m4: New file.
3534         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3536         REPLACE_FABSL.
3537         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3538         REPLACE_FABSL.
3539         * modules/fabsl: New file.
3540         * doc/posix-functions/fabsl.texi: Mention the new module.
3541
3542 2012-02-25  Bruno Haible  <bruno@clisp.org>
3543
3544         fabs tests: More tests.
3545         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3546         (zero): New variable.
3547         (main): Add tests for signed zero.
3548         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3549
3550         fabsf tests: More tests.
3551         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3552         (zero): New variable.
3553         (main): Add tests for signed zero.
3554         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3555
3556 2012-02-24  Bruno Haible  <bruno@clisp.org>
3557
3558         atanl: Provide function definition on MSVC.
3559         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3560         function pointer.
3561         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3562
3563 2012-02-24  Bruno Haible  <bruno@clisp.org>
3564
3565         acosl: Provide function definition on MSVC.
3566         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3567         function pointer.
3568         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3569
3570 2012-02-24  Bruno Haible  <bruno@clisp.org>
3571
3572         asinl: Provide function definition on MSVC.
3573         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3574         function pointer.
3575         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3576
3577 2012-02-24  Bruno Haible  <bruno@clisp.org>
3578
3579         tanl: Provide function definition on MSVC.
3580         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3581         function pointer.
3582         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3583
3584 2012-02-24  Bruno Haible  <bruno@clisp.org>
3585
3586         cosl: Provide function definition on MSVC.
3587         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3588         function pointer.
3589         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3590
3591 2012-02-24  Bruno Haible  <bruno@clisp.org>
3592
3593         sinl: Provide function definition on MSVC.
3594         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3595         function pointer.
3596         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3597
3598 2012-02-24  Bruno Haible  <bruno@clisp.org>
3599
3600         logl: Provide function definition on MSVC.
3601         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3602         function pointer.
3603         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3604
3605 2012-02-24  Bruno Haible  <bruno@clisp.org>
3606
3607         expl: Provide function definition on MSVC.
3608         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3609         function pointer.
3610         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3611
3612 2012-02-24  Bruno Haible  <bruno@clisp.org>
3613
3614         sqrtl: Provide function definition on MSVC.
3615         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3616         a function pointer.
3617         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3618
3619 2012-02-24  Bruno Haible  <bruno@clisp.org>
3620
3621         ceill: Provide function definition on MSVC.
3622         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3623         used as a function pointer.
3624         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3625
3626 2012-02-24  Bruno Haible  <bruno@clisp.org>
3627
3628         floorl: Provide function definition on MSVC.
3629         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3630         used as a function pointer.
3631         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3632
3633 2012-02-24  Bruno Haible  <bruno@clisp.org>
3634
3635         ceilf: Provide function definition on MSVC.
3636         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3637         used as a function pointer.
3638         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3639
3640 2012-02-24  Bruno Haible  <bruno@clisp.org>
3641
3642         floorf: Provide function definition on MSVC.
3643         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3644         used as a function pointer.
3645         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3646
3647 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3648
3649         stdnoreturn: new module
3650         This implements a replacement for C11's <stdnoreturn.h>.
3651         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3652         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3653         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3654         * tests/test-stdnoreturn.c: New files.
3655
3656 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3657
3658         regex: fix false multibyte matches in some regular expressions
3659         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3660         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3661         * lib/regex_internal.c (re_string_skip_chars):
3662         Fix miscomputation of remain_len that may cause incomplete
3663         multi-byte character and false match.
3664
3665 2012-02-24  Jim Meyering  <meyering@redhat.com>
3666
3667         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3668         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3669         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3670         Remove now-unnecessary str''cmp obfuscation.
3671         Suggested by Akim Demaille.
3672
3673 2012-02-24  Bruno Haible  <bruno@clisp.org>
3674
3675         streq: Rename macro.
3676         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3677         * NEWS: Mention the change.
3678         * lib/mbrtowc.c (mbrtowc): Update.
3679         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3680         * lib/wcwidth.c (wcwidth): Update.
3681         Suggested by Akim Demaille and Jim Meyering.
3682
3683 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3684
3685         regex: fix typo in definition of MIN
3686         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3687         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3688
3689 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3690             Bruno Haible  <bruno@clisp.org>
3691
3692         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3693         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3694         entries into a stack-allocated buffer directly.
3695         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3696
3697 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3698             Bruno Haible  <bruno@clisp.org>
3699
3700         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3701
3702          - There were several instances of this pattern:
3703
3704              for (;;) {
3705                n = acl (f, GETACLCNT, 0, NULL);
3706                [ allocate an array A of size N ]
3707                if (acl (f, GETACL, n, a) == n)
3708                  break;
3709              }
3710
3711            This loop might never terminate if some other process is constantly
3712            manipulating the file's ACL.  The loop should be rewritten to
3713            terminate.
3714
3715          - The acl (... GETACLNT ...) call is merely an optimization; its value
3716            is merely a hint as to how big to make the array.  A better
3717            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3718            and just guess a reasonably-big size, growing the size and trying
3719            again if it's not large enough.  This guarantees termination, and
3720            saves a system call.
3721
3722         * lib/acl-internal.h: Include <limits.h>.
3723         (MIN, SIZE_MAX): New macros.
3724         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3725         a stack-allocated buffer, and use malloc if it does not fit. Don't
3726         use GETACLCNT.
3727         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3728
3729 2012-02-19  Bruno Haible  <bruno@clisp.org>
3730
3731         acl: Fix endless loop on Solaris with vxfs.
3732         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3733         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3734         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3735         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3736         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3737         Reported by Bill Jones in
3738         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3739
3740 2012-02-19  Bruno Haible  <bruno@clisp.org>
3741
3742         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3743         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3744         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3745         that this function returns 0 in some more cases.
3746
3747 2012-02-19  Bruno Haible  <bruno@clisp.org>
3748
3749         acl: Update doc references.
3750         * doc/acl-resources.txt: Update links to Solaris documentation.
3751
3752 2012-02-19  Bruno Haible  <bruno@clisp.org>
3753
3754         Fix test failure in many locales on Solaris 11.
3755         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3756         'tr' arguments.
3757         * tests/test-pipe-filter-ii1.c (main): Likewise.
3758         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3759         expressions in the C locale.
3760         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3761         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3762
3763 2012-02-19  Bruno Haible  <bruno@clisp.org>
3764
3765         gnulib-tool: Improve usage message.
3766         * gnulib-tool (func_usage): Move doc of --help and --version to the
3767         section "Operation modes".
3768
3769 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3770
3771         README-release: make it easier to execute commands
3772         * top/README-release: break commands out on to separate lines.
3773
3774 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3775
3776         GNUmakefile: simplify detection of unconfigured trees
3777         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3778         whether the tree make is being run from is already configured or
3779         not.  Related simplifications.
3780
3781 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3782
3783         * gnulib-tool (func_usage): Document --help and --version.
3784
3785 2012-02-11  Jim Meyering  <meyering@redhat.com>
3786
3787         bootstrap: don't exit 0 upon gnulib-tool failure
3788         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3789         its exit status, not 0.
3790
3791 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3792
3793         README-release: various improvements
3794         * top/README-release: Give a command to push changes for the
3795         release.  Add "distcheck" to list of other pre-release checks.
3796         Fix instance of "make stable" which should be "make TYPE".
3797
3798 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3799
3800         maint: replace FSF snail-mail addresses with URLs
3801         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3802         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3803         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3804         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3805         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3806         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3807         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3808         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3809         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3810         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3811         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3812         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3813         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3814         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3815         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3816         * lib/glthread/thread.c, lib/glthread/thread.h:
3817         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3818         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3819         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3820         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3821         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3822         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3823         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3824         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3825         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3826         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3827         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3828         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3829         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3830         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3831         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3832         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3833         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3834         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3835         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3836         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3837         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3838         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3839         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3840         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3841         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3842         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3843         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3844         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3845         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3846         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3847         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3848         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3849         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3850         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3851         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3852         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3853         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3854         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3855         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3856         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3857         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3858         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3859         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3860         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3861         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3862         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3863         * tests/test-poll.c, tests/test-quotearg-simple.c:
3864         * tests/test-quotearg.c, tests/test-quotearg.h:
3865         * tests/test-round-ieee.c, tests/test-round1.c:
3866         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3867         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3868         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3869         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3870         * tests/test-strerror.c, tests/test-strerror_r.c:
3871         * tests/test-strsignal.c, tests/test-strverscmp.c:
3872         * tests/test-xmemdup0.c:
3873         Replace FSF snail mail addresses with URLs, as per GNU coding
3874         standards.  See glibc bug
3875         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3876
3877 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3878
3879         README-release: capitalize a word and split a line
3880         * top/README-release: Fix punctuation and spacing.
3881
3882 2012-02-08  Akim Demaille  <demaille@gostai.com>
3883
3884         fatal-signal: use C prototypes (with explicit void).
3885         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3886         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3887
3888 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3889
3890         regex: spelling fix
3891         * lib/regexec.c: spelling fix
3892
3893         regex: rely on stdint.h for SIZE_MAX
3894         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3895
3896 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3897
3898         regex: merge glibc changes
3899
3900         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3901         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3902         (init_word_char): Work even if bitset words are not exactly 32 or
3903         64 bits wide.  Don't assume there are no padding bits.
3904         * lib/regex.c [_LIBC]: Do not include <config.h>.
3905         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3906         and -Wtype-limits.
3907         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3908         needless disagreement with glibc.  All uses changed.  Define it to
3909         1 only if _GNU_SOURCE, to match glibc.
3910         (_REG_RM_NAME): Remove; no longer needed, since the names in
3911         question are now all protected by __USE_GNU.
3912         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3913         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3914         * lib/regex_internal.h (MIN): New macro.
3915
3916         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3917         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3918
3919         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3920         * lib/regex_internal.c (re_string_fetch_byte_case):
3921         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3922         is miscompiled, and it turns out it is because of an incorrect
3923         attribute on re_string_fetch_byte_case.  Unlike
3924         re_string_peek_byte_case, this one is really not pure, it modifies
3925         memory (increments pstr->cur_idx), and with the pure attribute GCC
3926         assumed it doesn't and it cached the presumed value of
3927         regexp->cur_idx in a variable across the
3928          for (;; ++i)
3929            {
3930              if (i >= BRACKET_NAME_BUF_SIZE)
3931                return REG_EBRACK;
3932              if (token->type == OP_OPEN_CHAR_CLASS)
3933                ch = re_string_fetch_byte_case (regexp);
3934              else
3935                ch = re_string_fetch_byte (regexp);
3936              if (re_string_eoi(regexp))
3937                return REG_EBRACK;
3938              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3939                break;
3940              elem->opr.name[i] = ch;
3941            }
3942
3943         2011-11-29 Andreas Schwab <schwab@redhat.com>
3944         * lib/regcomp.c (build_equiv_class):
3945         Fix access after end of search string in regex matcher.
3946
3947         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3948         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3949
3950         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3951         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3952
3953         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3954         * lib/regcomp.c (parse_branch, parse_sub_exp):
3955         More regex memory leak fixes and tests.
3956         (parse_sub_exp, parse_bracket_exp):
3957         Fix memory leak for some invalid regular expressions.
3958
3959         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3960         * lib/regex_internal.c, lib/regexec.c:
3961         Fix unnecessary overallocation due to incomplete character.  When
3962         incomplete characters are found at the end of a string the code
3963         ran amok and allocated lots of memory.  Stricter limits are now in
3964         place.
3965
3966         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3967         * lib/regex.h: Update documentation.
3968
3969         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3970         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3971
3972         2010-05-05 Andreas Schwab <schwab@redhat.com>
3973         * lib/regexec.c (find_collation_sequence_value):
3974         Fix lookup of collation sequence value during regexp matching.
3975
3976         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3977         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3978
3979         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3980         * lib/regex.h: Cleanup namespace.
3981
3982         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3983         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3984
3985         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3986         * lib/regex_internal.h: Prevent some declarations and definitions
3987         to be seen when used in tests.
3988
3989         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3990         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3991         __libc_lock_* macros if not _LIBC.
3992         (struct re_dfa_t): Add lock.
3993
3994 2012-02-07  Eric Blake  <eblake@redhat.com>
3995
3996         maint.mk: also prohibit lower-case @var@
3997         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3998         lower case, like @top_srcdir@.
3999
4000 2012-02-04  Eric Blake  <eblake@redhat.com>
4001
4002         canonicalize: avoid uninitialized memory use
4003         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4004         random '/' left in dest.
4005         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4006
4007 2012-02-04  Bruno Haible  <bruno@clisp.org>
4008
4009         isatty: Fix test failure of ptsname_r on native Windows.
4010         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4011         and don't set errno.
4012         (isatty): Test first whether fd is valid. Set errno when returning 0.
4013
4014 2012-02-04  Bruno Haible  <bruno@clisp.org>
4015
4016         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4017         * tests/test-spawn-pipe-main.c: Include progname.h.
4018         (main): Invoke set_program_name.
4019         * modules/spawn-pipe-tests (Depends-on): Add progname.
4020
4021         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4022         * tests/test-nonblocking-socket-main.c: Include progname.h.
4023         (main): Invoke set_program_name.
4024         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4025
4026         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4027         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4028         (main): Invoke set_program_name.
4029         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4030
4031 2012-02-04  Eric Blake  <eblake@redhat.com>
4032
4033         canonicalize-lgpl: fix // handling
4034         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4035
4036         canonicalize: fix // handling
4037         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4038         /// to //, since only // is special.
4039
4040 2012-02-04  Bruno Haible  <bruno@clisp.org>
4041
4042         ioctl: Fix test failure on native Windows.
4043         * lib/ioctl.c: Include msvc-nothrow.h.
4044         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4045
4046 2012-02-04  Bruno Haible  <bruno@clisp.org>
4047
4048         fsync: Avoid test failure on native Windows.
4049         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4050         read-only.
4051
4052 2012-02-04  Bruno Haible  <bruno@clisp.org>
4053
4054         sys_select: Avoid syntax error on OpenBSD 5.0.
4055         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4056         currently being included, just include the system's <sys/select.h>.
4057
4058 2012-02-04  Bruno Haible  <bruno@clisp.org>
4059
4060         sys_select: Avoid syntax error on OpenBSD 5.0.
4061         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4062         <sys/select.h>, not before.
4063         Reported by Jiri B <jirib@devio.us>.
4064
4065 2012-02-04  Bruno Haible  <bruno@clisp.org>
4066
4067         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4068         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4069         global variables.
4070         * tests/test-get-rusage-data.c (main): Likewise.
4071         Reported by Jim Meyering.
4072
4073 2012-02-04  Bruno Haible  <bruno@clisp.org>
4074
4075         stdioext: Fix last commit.
4076         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4077
4078 2012-02-03  Bruno Haible  <bruno@clisp.org>
4079
4080         stdioext: Add tentative support for Plan9.
4081         * lib/stdio-impl.h: Include <errno.h>.
4082         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4083         * lib/freadable.c (freadable): Likewise.
4084         * lib/fwritable.c (fwritable): Likewise.
4085         * lib/fbufmode.c (fbufmode): Likewise.
4086         * lib/freading.c (freading): Likewise.
4087         * lib/fwriting.c (fwriting): Likewise.
4088         * lib/freadptr.c (freadptr): Likewise.
4089         * lib/freadseek.c (freadptrinc): Likewise.
4090         * lib/freadahead.c (freadahead): Likewise.
4091         * lib/fpurge.c (fpurge): Likewise.
4092         * lib/fseeko.c (rpl_fseeko): Likewise.
4093         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4094         Reported by Jens Staal <staal1978@gmail.com>.
4095
4096 2012-02-02  Jim Meyering  <meyering@redhat.com>
4097
4098         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4099         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4100         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4101         not even to try to add the attribute.  Instead, add a pragma to suppress
4102         the suggestion/warning.
4103
4104 2012-01-31  Karl Berry  <karl@gnu.org>
4105
4106         setstate doc: typo.
4107         * doc/posix-functions/setstate.texi (setstate): { not (.
4108
4109 2012-01-31  Bruno Haible  <bruno@clisp.org>
4110
4111         popen: Make more robust on Windows.
4112         * lib/popen.c: On native Windows, use the _popen based code even if
4113         HAVE_POPEN is set.
4114         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4115         environment variable on native Windows.
4116
4117 2012-01-30  Bruno Haible  <bruno@clisp.org>
4118
4119         pclose: Fix typo.
4120         * lib/stdio.in.h (pclose): Fix typo in warning message.
4121
4122 2012-01-30  Bruno Haible  <bruno@clisp.org>
4123
4124         doc about getlogin_r, setstate.
4125         * doc/posix-functions/getlogin_r.texi: List the incompatible
4126         declaration problem under "not fixed by gnulib".
4127         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4128         problem on Solaris 11 and other platforms.
4129
4130 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4131             Bruno Haible  <bruno@clisp.org>
4132
4133         poll tests: Make test more robust.
4134         * tests/test-poll.c: Include macros.h.
4135         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4136         return value of various I/O operations.
4137         * modules/poll-tests (Files): Add tests/macros.h.
4138
4139 2012-01-30  Bruno Haible  <bruno@clisp.org>
4140
4141         sys_stat: Fix support for mingw64 and MSVC.
4142         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4143         header files already do it.
4144         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4145         stat itself.
4146         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4147
4148 2012-01-30  Bruno Haible  <bruno@clisp.org>
4149
4150         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4152         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4153
4154 2012-01-29  Bruno Haible  <bruno@clisp.org>
4155
4156         quotearg: Fix test failure on MacOS X 10.5.
4157         * tests/test-quotearg-simple.c: Include localcharset.h.
4158         (main): If the locale encoding is not ASCII, bypass the tests of
4159         locale_quoting_style and clocale_quoting_style.
4160         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4161
4162 2012-01-29  Jim Meyering  <meyering@redhat.com>
4163
4164         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4165         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4166         detect uses of canonicalize_file_name.
4167
4168 2012-01-28  Bruno Haible  <bruno@clisp.org>
4169
4170         test-framework-sh: Fix test failure with AIX 7.1 diff.
4171         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4172         in column 1, like 'diff -c' does.
4173         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4174         whether 'diff -u' is used. Instead, test whether the output contains
4175         some '@' character.
4176
4177 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4178
4179         strtoimax: eliminate need for stdint.h, inttypes.h checks
4180         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4181         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4182         the prerequisites for a recently-introduced strtoimax test.
4183         I guess this might cause strtoimax to be replaced when not
4184         strictly necessary on older hosts, but this shouldn't introduce
4185         any bugs and it should make Emacs 'configure' faster on typical
4186         modern hosts.  Problem discovered when importing the latest gnulib
4187         to an Emacs test version.
4188         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4189
4190 2012-01-28  Bruno Haible  <bruno@clisp.org>
4191
4192         sys_time: Override 'struct timeval' on some native Windows platforms.
4193         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4194         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4195         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4196         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4197         needs to be overridden.
4198         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4199         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4200         * tests/test-sys_select.c: Check that the tv_sec member has the same
4201         size as a 'time_t'.
4202         * tests/test-sys_time.c: Likewise.
4203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4204         is set, set also REPLACE_GETTIMEOFDAY.
4205         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4206         convert the resulting 'struct timeval' before returning.
4207         * lib/select.c: Include <sys/time.h>.
4208         (select, timeval): Undefine at the right place.
4209         * modules/select (Depends-on): Add sys_time.
4210         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4211         some Windows platforms.
4212         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4213
4214 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4215
4216         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4217         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4218         an integer.
4219         * lib/fcntl.c (dupfd): Likewise.
4220         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4221
4222 2012-01-28  Bruno Haible  <bruno@clisp.org>
4223
4224         fcntl: Avoid compilation error on native Windows.
4225         * modules/fcntl (Depends-on): Add 'close'.
4226
4227 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4228
4229         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4230         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4231         pointer to an integer.
4232         * lib/poll.c (IsConsoleHandle): Likewise.
4233         * lib/isatty.c (IsConsoleHandle): Likewise.
4234
4235 2012-01-28  Jim Meyering  <meyering@redhat.com>
4236
4237         doc: clarify README-release
4238         * top/README-release: Clarify: you should make a point to have
4239         the latest stable versions of build tools in your PATH, and the
4240         reference to buildreq is solely for its list of tool names, not
4241         for its minimal-functional version numbers.
4242         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4243
4244         maint.mk: use more readable (yet functionally equivalent) quoting
4245         It is common to quote a single quote in a single quoted string like
4246         this:  '...'\''...'.  Unless you know the idiom, that looks like
4247         gibberish, so prefer to double-quote the string when possible.
4248         Then you can use a more readable, lone single quote: "...'..."
4249         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4250         "don't" is more readable than the equivalent 'don'\''t'.
4251         (sc_cast_of_x_alloc_return_value): Likewise.
4252         (sc_cast_of_alloca_return_value): Likewise.
4253         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4254         rather than '\'':'\''.
4255
4256 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4257
4258         stdalign: relax _Alignof and tighten _Alignas test
4259         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4260         as it was too strict: alignof must divide offsetof, but it need
4261         not equal offsetof.  Inspired by Joseph S. Myers's comment
4262         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4263         Conversely, tighten the _Alignas test a bit, as the resulting
4264         alignment must be exactly 8.
4265
4266 2012-01-27  Bruno Haible  <bruno@clisp.org>
4267
4268         stdalign: Document the last change.
4269         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4270
4271 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4272
4273         stdalign: check that alignof and offsetof are consistent
4274         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4275         Problem reported for gnulib by Richard W.M. Jones in
4276         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4277
4278 2012-01-27  Jim Meyering  <meyering@redhat.com>
4279
4280         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4281         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4282         convert a sequence with gaps to the minimal containing range.
4283         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4284         * tests/test-update-copyright.sh: Test for this.
4285         The FSF confirmed it is ok to do this, assuming there is at
4286         least one significant change per year in the affected range:
4287         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4288
4289 2012-01-26  Bruno Haible  <bruno@clisp.org>
4290
4291         pipe2: refine doc about thread-safety
4292         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4293         multithread-safety problem.
4294         * doc/glibc-functions/accept4.texi: Likewise.
4295
4296 2012-01-26  Bruno Haible  <bruno@clisp.org>
4297
4298         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4299         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4300         In the test program, include <fcntl.h>, for O_RDONLY.
4301
4302 2012-01-26  Eric Blake  <eblake@redhat.com>
4303
4304         pipe2: document lack of thread-safety in replacement
4305         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4306         issue in replacement.
4307         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4308         Based on a report by Eric Wong.
4309
4310 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4311             Bruno Haible  <bruno@clisp.org>
4312
4313         malloca: Avoid warnings on x86_64 mingw64.
4314         * lib/malloca.c: Include <stdint.h>.
4315         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4316         * modules/malloca (Depends-on): Add stdint.
4317         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4318
4319 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4320
4321         obstack: remove __STDC__ conditionals
4322         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4323         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4324         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4325         m4/include_next.m4 as the only gnulib-maintained places that still
4326         refer to __STDC__.
4327
4328 2012-01-24  Bruno Haible  <bruno@clisp.org>
4329
4330         havelib: Modern quoting.
4331         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4332         the recent change to the GNU coding standards.
4333
4334 2012-01-24  Bruno Haible  <bruno@clisp.org>
4335
4336         stdint: Improve support for Android.
4337         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4338         Reported by Simon Josefsson <simon@josefsson.org>.
4339
4340 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4341
4342         doc: omit trailing empty lines from INSTALL etc.
4343         * doc/Makefile (INSTALL): Omit trailing empty lines.
4344         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4345         omit trailing empty lines.  This simplifies the build procedure.
4346
4347 2012-01-23  Jim Meyering  <meyering@redhat.com>
4348
4349         tests: avoid spurious warnings about gl_sockets_startup
4350         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4351         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4352         reporting a "statement with no effect".
4353         * tests/test-accept.c (main): Mark as "(void)".
4354         * tests/test-accept4.c (main): Likewise.
4355         * tests/test-bind.c (main): Likewise.
4356         * tests/test-connect.c (main): Likewise.
4357         * tests/test-getpeername.c (main): Likewise.
4358         * tests/test-getsockname.c (main): Likewise.
4359         * tests/test-getsockopt.c (main): Likewise.
4360         * tests/test-listen.c (main): Likewise.
4361         * tests/test-recv.c (main): Likewise.
4362         * tests/test-recvfrom.c (main): Likewise.
4363         * tests/test-send.c (main): Likewise.
4364         * tests/test-sendto.c (main): Likewise.
4365         * tests/test-setsockopt.c (main): Likewise.
4366         * tests/test-shutdown.c (main): Likewise.
4367
4368 2012-01-21  Bruno Haible  <bruno@clisp.org>
4369
4370         locale-fr.m4: Fix for Android.
4371         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4372         failure of the test program on Bionic libc.
4373
4374 2012-01-21  Jim Meyering  <meyering@redhat.com>
4375
4376         bootstrap: fail when bootstrap_post_import_hook fails
4377         Otherwise, it's far too easy to miss diagnostics emitted
4378         between gnulib-tool's output and that of running configure.
4379         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4380
4381 2012-01-17  Jim Meyering  <meyering@redhat.com>
4382
4383         maint: enable sc_trailing_blank
4384         * build-aux/pmccabe.css: Remove trailing blanks.
4385         * doc/acl-cygwin.txt: Likewise.
4386         * doc/gnu-oids.texi: Likewise
4387         * cfg.mk: Enable sc_trailing_blank.
4388         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4389
4390 2012-01-17  Jim Meyering  <meyering@redhat.com>
4391
4392         maint: enable sc_prohibit_openat_without_use
4393         * cfg.mk: Enable sc_prohibit_openat_without_use.
4394         Exempt lib/selinux-at.c.
4395
4396 2012-01-17  Jim Meyering  <meyering@redhat.com>
4397
4398         maint: enable sc_prohibit_cloexec_without_use
4399         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4400         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4401
4402 2012-01-17  Jim Meyering  <meyering@redhat.com>
4403
4404         maint: enable sc_prohibit_intprops_without_use
4405         * cfg.mk: Enable sc_prohibit_intprops_without_use
4406         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4407
4408 2012-01-17  Jim Meyering  <meyering@redhat.com>
4409
4410         maint: enable sc_prohibit_hash_pjw_without_use
4411         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4412         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4413         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4414         following " (".
4415
4416 2012-01-17  Jim Meyering  <meyering@redhat.com>
4417
4418         maint: enable double-word-prohibiting rule
4419         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4420         Exempt three files.
4421
4422 2012-01-17  Jim Meyering  <meyering@redhat.com>
4423
4424         maint: remove empty lines at EOF, but excluding modules/*
4425         Apply syntax rules at home as well as abroad.  Most changes
4426         were induced by running this:
4427           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4428             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4429             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4430         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4431         Exempt modules/* and two binary files.
4432         Also exempt doc/INSTALL*, per request from Bruno Haible.
4433         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4434         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4435         * doc/Copyright/request-assign.future: Likewise.
4436         * doc/Copyright/request-disclaim.changes: Likewise.
4437         * doc/INSTALL: Likewise.
4438         * doc/INSTALL.ISO: Likewise.
4439         * doc/INSTALL.UTF-8: Likewise.
4440         * doc/acl-cygwin.txt: Likewise.
4441         * doc/acl-resources.txt: Likewise.
4442         * doc/fdl-1.2.texi: Likewise.
4443         * doc/fdl-1.3.texi: Likewise.
4444         * doc/fdl.texi: Likewise.
4445         * lib/argp-pin.c: Likewise.
4446         * lib/round.c: Likewise.
4447         * lib/unicase/u16-totitle.c: Likewise.
4448         * lib/unictype/block_test.c: Likewise.
4449         * lib/uninorm/canonical-decomposition.c: Likewise.
4450         * m4/README: Likewise.
4451         * m4/relocatable-lib.m4: Likewise.
4452         * tests/test-isnand-nolibm.c: Likewise.
4453         * tests/test-isnand.c: Likewise.
4454         * tests/uninorm/NormalizationTest.txt: Likewise.
4455
4456 2012-01-17  Jim Meyering  <meyering@redhat.com>
4457
4458         maint: add framework to run syntax-check rules against gnulib sources
4459         * cfg.mk: New file, to disable all currently-failing tests.
4460         We'll enable them one by one, as they are made to pass.
4461         * Makefile (sc_maint): New rule.
4462
4463 2012-01-21  Bruno Haible  <bruno@clisp.org>
4464
4465         stdint: Add support for Android.
4466         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4467         include the system's <stdint.h>.
4468         Reported by Simon Josefsson <simon@josefsson.org>.
4469
4470 2012-01-19  Jim Meyering  <meyering@redhat.com>
4471
4472         bootstrap: add bootstrap_post_import_hook
4473         Bison does still need something like the gnulib_mk_hook whose
4474         invocation I had to remove along with slurp in commit 767ccd40.
4475         Technically, we could get along without it, but doing so would
4476         have required living with a warning and a mandatory post-bootstrap
4477         automake rerun.
4478         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4479         (bootstrap_post_import_hook): New function.
4480         Invoke it after gnulib-tool --import and before autoreconf.
4481
4482 2012-01-18  Jim Meyering  <meyering@redhat.com>
4483
4484         gitlog-to-changelog: don't use "no_"-prefixed variable name
4485         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4486         to enable both --cluster and --no-cluster.  Change variable name,
4487         s/\$no_cluster/$cluster/, and reverse usage to match.
4488
4489         gitlog-to-changelog: use "||", not "or" in expressions
4490         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4491         expressions.
4492
4493 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4494
4495         gitlog-to-changelog: new option --no-cluster
4496         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4497         clustering of adjacent commit messages.
4498
4499 2012-01-17  Jim Meyering  <meyering@redhat.com>
4500
4501         maint: spell file systems with two words, not one
4502         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4503         two words, not one.
4504
4505 2012-01-16  Jim Meyering  <meyering@redhat.com>
4506
4507         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4508         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4509
4510 2012-01-16  Eric Blake  <eblake@redhat.com>
4511
4512         bootstrap: cater to autoconf 2.59
4513         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4514         is not available.
4515
4516         bootstrap: properly check for libtool
4517         * build-aux/bootstrap (libtoolize): Also run libtool when older
4518         usage is detected.
4519
4520 2012-01-15  Bruno Haible  <bruno@clisp.org>
4521
4522         Improve support for MSVC 9.
4523         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4524         clashes on MSVC.
4525         * lib/fcntl.in.h: Likewise.
4526         * lib/stdlib.in.h: Likewise.
4527         * lib/sys_stat.in.h: Likewise.
4528
4529 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4530
4531         gnupload: we hold the master copy of this script now
4532         For motivation and more information, see:
4533         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4534         * build-aux/gnupload: Make it clear in the heading comments that the
4535         master copy of this file is maintained by gnulib.  Since we are at
4536         it, bump its copyright year and ...
4537         ($scriptversion): ... the date in its version.
4538         ($usage): Patches and bug reports should be sent to the gnulib list,
4539         not the automake one.
4540         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4541         anymore.
4542
4543 2012-01-15  Bruno Haible  <bruno@clisp.org>
4544
4545         Fix module 'random'.
4546         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4547         initstate, setstate are declared.
4548
4549 2012-01-14  Bruno Haible  <bruno@clisp.org>
4550
4551         Tests for module 'random'.
4552         * modules/random-tests: New file.
4553         * tests/test-random.c: New file, based on tests/test-random_r.c.
4554
4555         New module 'random'.
4556         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4557         declarations.
4558         * lib/random.c: New file, based on glibc/stdlib/random.c.
4559         * m4/random.m4: New file.
4560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4561         HAVE_RANDOM.
4562         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4563         * modules/random: New file.
4564         * config/srclist.txt: Add an entry for random.c.
4565         * doc/posix-functions/random.texi: Mention the 'random' module.
4566         * doc/posix-functions/initstate.texi: Likewise.
4567         * doc/posix-functions/setstate.texi: Likewise.
4568         * doc/posix-functions/srandom.texi: Likewise.
4569
4570 2012-01-12  Bruno Haible  <bruno@clisp.org>
4571
4572         random_r: Use common idioms.
4573         * lib/random_r.c: Include <stdlib.h> first.
4574
4575         random_r: Override incompatible API on AIX, OSF/1.
4576         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4577         Override the system function if REPLACE_RANDOM_R is 1.
4578         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4579         and OSF/1, set REPLACE_RANDOM_R.
4580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4581         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4582         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4583         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4584         * doc/glibc-functions/random_r.texi: Likewise.
4585         * doc/glibc-functions/setstate_r.texi: Likewise.
4586
4587         random_r: Support for MSVC 9.
4588         * lib/random_r.c: Include stdint.h, not inttypes.h.
4589
4590 2012-01-12  Eric Blake  <eblake@redhat.com>
4591
4592         inet_ntop: guard extra work by IF_LINT
4593         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4594         better code generation when not checking for warnings.
4595         Suggested by Paul Eggert and Jim Meyering.
4596
4597         strptime: fix regression on mingw
4598         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4599         Fix regression.  Reported by Bruno Haible.
4600
4601 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4602             Bruno Haible  <bruno@clisp.org>
4603
4604         copy-file: add error-code-returning variant.
4605         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4606         (qcopy_file_preserving): New declaration.
4607         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4608         copy_file_preserving. Change return type to 'int'. Don't emit an error
4609         message here.
4610         (copy_file_preserving): New function.
4611         * tests/test-copy-file.c: Include <stdlib.h>.
4612         (main): Test qcopy_file_preserving if the environment variable
4613         NO_STDERR_OUTPUT is set.
4614         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4615         with NO_STDERR_OUTPUT
4616         * tests/test-copy-file-2.sh: Likewise.
4617
4618 2012-01-10  Bruno Haible  <bruno@clisp.org>
4619
4620         copy-file: Use 'quote' module consistently.
4621         * lib/copy-file.c (copy_file_preserving): Use quote().
4622
4623         copy-file: Refactor.
4624         * lib/copy-file.c: Include quote.h.
4625         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4626         message here.
4627         * modules/copy-file (Depends-on): Add quote.
4628
4629         acl: Export qcopy_acl.
4630         * lib/acl.h (qcopy_acl): New declaration.
4631         * lib/copy-acl.c (qcopy_acl): Make non-static.
4632
4633         acl: Rename a local variable.
4634         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4635
4636         acl: Align return values of copy_acl and qcopy_acl.
4637         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4638         maybe < -1.
4639
4640 2012-01-11  Eric Blake  <eblake@redhat.com>
4641
4642         strptime: silence gcc warnings
4643         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4644         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4645         Reported by Daniel P. Berrange.
4646
4647         inet_ntop: silence gcc warning
4648         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4649         Reported by Daniel P. Berrange.
4650
4651 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4652
4653         getloadavg test: skip the test on GNU/Linux without /proc mounted
4654         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4655         file.  When /proc is not mounted, it always fails with ENOENT.
4656         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4657         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4658
4659 2012-01-10  Bruno Haible  <bruno@clisp.org>
4660
4661         regex: Avoid link error on MSVC 9.
4662         * modules/regex (Depends-on): Add wctype.
4663
4664 2012-01-10  Bruno Haible  <bruno@clisp.org>
4665
4666         doc: Mention --with-tests option.
4667         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4668         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4669         --with-tests.
4670         Reported by Reuben Thomas.
4671
4672 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4673
4674         users.txt: order package names lexicographically.
4675         * users.txt: Order package names lexicographically.
4676
4677 2012-01-10  Jim Meyering  <meyering@redhat.com>
4678
4679         maint.mk: fix description in comment
4680         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4681
4682         ignore-value: remove deprecated ignore_ptr function
4683         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4684         * NEWS: Note this.
4685
4686 2012-01-09  Jim Meyering  <meyering@redhat.com>
4687
4688         test-init.sh: avoid a subshell
4689         * tests/test-init.sh: Remove protective subshell.
4690         Suggested by Bernhard Voelker.  While a subshell is normally
4691         required to protect against older shells (Solaris, FreeBSD) that
4692         warn about a missing program before performing redirection, the
4693         shell-selection tests performed by init.sh probably exclude any
4694         offending shell.
4695
4696 2012-01-08  Bruno Haible  <bruno@clisp.org>
4697
4698         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4699         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4700         variable.
4701
4702 2012-01-08  Bruno Haible  <bruno@clisp.org>
4703
4704         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4705         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4706         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4707         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4708         macro.
4709         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4710         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4711         * lib/spawn_faction_addopen.c: Add workaround implementation if
4712         HAVE_WORKING_POSIX_SPAWN.
4713         * modules/spawn (Makefile): Substitute
4714         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4715         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4716         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4717         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4718         (Depends-on): Update conditions.
4719         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4720         the Solaris 11 bug.
4721
4722 2012-01-08  Bruno Haible  <bruno@clisp.org>
4723
4724         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4725         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4726         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4727         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4728         macro.
4729         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4730         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4731         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4732         HAVE_WORKING_POSIX_SPAWN.
4733         * modules/spawn (Makefile): Substitute
4734         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4735         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4736         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4737         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4738         (Depends-on): Update conditions.
4739         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4740         the Solaris 11 bug.
4741
4742 2012-01-08  Bruno Haible  <bruno@clisp.org>
4743
4744         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4745         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4746         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4747         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4748         HAVE_WORKING_POSIX_SPAWN.
4749         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4750         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4751         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4752         * lib/spawn_faction_addclose.c: Add workaround implementation if
4753         HAVE_WORKING_POSIX_SPAWN.
4754         * modules/spawn (Makefile): Substitute
4755         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4756         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4757         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4758         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4759         (Depends-on): Update conditions.
4760         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4761         the Solaris 11 bug.
4762
4763 2012-01-08  Bruno Haible  <bruno@clisp.org>
4764
4765         doc: Update for Solaris 11 2011-11.
4766         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4767         * m4/printf.m4: Update comments.
4768
4769 2012-01-08  Bruno Haible  <bruno@clisp.org>
4770
4771         mktime: Avoid compilation error on Solaris 11.
4772         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4773
4774 2012-01-08  Bruno Haible  <bruno@clisp.org>
4775
4776         doc: Small fix.
4777         * doc/posix-headers/nl_types.texi: Correct platforms list.
4778
4779 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4780
4781         Add lgpl-3.0 module.
4782         * MODULES.html.sh (Support for building documentation): Add
4783         lgpl-3.0.
4784         * modules/lgpl-3.0: New file.
4785
4786 2012-01-08  Jim Meyering  <meyering@redhat.com>
4787
4788         select.c: indent with spaces, not TABs
4789         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4790
4791 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4792
4793         quotearg: do not use grave accent for left quote
4794         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4795         locale_quoting_style.
4796         (quotearg_buffer_restyled): Fix example.
4797         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4798
4799 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4800
4801         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4802         Most programs do not have translation catalogs for English and much
4803         less separate catalogs for British and American English.  Drop the
4804         suggestion to translators about these two, and provide it
4805         automatically for Unicode locales.  Like most programs, even those
4806         using American English, we use single quotation marks.  This conflicts
4807         with the American typographic convention, but works better when you
4808         cite the entire error message within double quotes.  It also tries not
4809         to clash with established practice and with what non-gnulib programs
4810         will usually do.
4811         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4812         using an UTF-8 or GB-18030 locale.  The list of other locales with
4813         quotes was provided by Bruno Haible.
4814         (quotearg_buffer_restyled): Adjust instructions to translators.
4815         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4816         text, since this would be wrong when using Unicode.
4817         * modules/quotearg: Depend on c-strcaseeq.
4818
4819 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4820
4821         quotearg: fix Wikipedia link
4822         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4823
4824 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4825
4826         Fix for mingw with MSVC9.
4827         * m4/ld-version-script.m4: Check that compiler rejects version
4828         scripts with syntax errors.  Reported by Bruno Haible
4829         <bruno@clisp.org>.
4830
4831 2012-01-06  Bruno Haible  <bruno@clisp.org>
4832
4833         Talk about "native Windows API", not "Woe32".
4834         * lib/accept4.c: Update comments to mention native Windows.
4835         * lib/execute.c: Likewise.
4836         * lib/fatal-signal.c: Likewise.
4837         * lib/localcharset.c: Likewise.
4838         * lib/nanosleep.c: Likewise.
4839         * lib/nl_langinfo.c: Likewise.
4840         * lib/pclose.c: Likewise.
4841         * lib/pipe-filter-gi.c: Likewise.
4842         * lib/pipe-filter-ii.c: Likewise.
4843         * lib/pipe.c: Likewise.
4844         * lib/pipe2.c: Likewise.
4845         * lib/popen.c: Likewise.
4846         * lib/progreloc.c: Likewise.
4847         * lib/relocatable.c: Likewise.
4848         * lib/sigaction.c: Likewise.
4849         * lib/sigprocmask.c: Likewise.
4850         * lib/spawn-pipe.h: Likewise.
4851         * lib/spawn-pipe.c: Likewise.
4852         * lib/spawni.c: Likewise.
4853         * lib/stat-time.h: Likewise.
4854         * lib/w32spawn.h: Likewise.
4855         * tests/test-isatty.c: Likewise.
4856         * lib/config.charset: More comments.
4857         * doc/gnulib-intro.texi: Mention native Windows.
4858         * doc/posix-functions/_Exit_C99.texi: Likewise.
4859         * doc/posix-headers/fcntl.texi: Likewise.
4860
4861 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4862
4863         argp: Avoid crash if translator uses % characters in a translation.
4864         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4865         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4866
4867 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4868
4869         doc: C11 and C++11 are now official
4870         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4871         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4872         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4873         * modules/stdalign:
4874         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4875
4876 2012-01-06  Bruno Haible  <bruno@clisp.org>
4877
4878         uc-is-grapheme-break tests: Tweak.
4879         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4880         message.
4881
4882 2012-01-06  Bruno Haible  <bruno@clisp.org>
4883
4884         test-init.sh: correct the test for diff -u
4885         * tests/test-init.sh: Also redirect stdout to /dev/null.
4886
4887 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4888
4889         Use ', not `, for quoting output.
4890         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4891         (print_changelog_deltas, get_tool_versions, main program):
4892         * build-aux/git-version-gen:
4893         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4894         * build-aux/move-if-change (help):
4895         * build-aux/useless-if-before-free (usage, main program):
4896         * check-module (parse_module_file, usage)
4897         (find_included_lib_files, check_module):
4898         * lib/argmatch.c (main) [TEST]:
4899         * lib/argp-help.c (_help):
4900         * lib/getopt1.c (main) [TEST]:
4901         * lib/git-merge-changelog.c (usage):
4902         * lib/xstrtol-error.c (xstrtol_error):
4903         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4904         * m4/argz.m4 (gl_FUNC_ARGZ):
4905         * m4/bison.m4 (gl_BISON):
4906         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4907         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4908         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4909         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4910         * m4/gc-random.m4 (gl_GC_RANDOM):
4911         * m4/intl.m4 (gt_CHECK_DECL):
4912         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4913         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4914         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4915         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4916         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4917         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4918         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4919         * tests/test-dirname.c (main):
4920         * tests/test-getpass.c (main):
4921         * tests/test-iconvme.c (main):
4922         * tests/test-parse-datetime.c (LOG):
4923         * tests/test-xstrtoimax.sh:
4924         * tests/test-xstrtol.sh:
4925         * tests/test-xstrtoll.sh:
4926         * tests/test-xstrtoumax.sh:
4927         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4928         * top/GNUmakefile (abort-due-to-no-makefile):
4929         Quote 'like this', not `like this', as per the recent change to
4930         the GNU coding standards.
4931
4932 2012-01-05  Bruno Haible  <bruno@clisp.org>
4933
4934         strtoimax: Don't force a replacement on systems where intmax_t is int.
4935         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4936         'intmax_t' is not larger than 'int'.
4937         Reported by Pádraig Brady <P@draigBrady.com>.
4938
4939 2012-01-05  Bruno Haible  <bruno@clisp.org>
4940
4941         doc: Mention NetBSD bugs.
4942         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4943         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4944
4945 2012-01-05  Bruno Haible  <bruno@clisp.org>
4946
4947         strtoumax tests: Enhance tests.
4948         * tests/test-strtoumax.c (main): Add tests for large values.
4949
4950 2012-01-05  Bruno Haible  <bruno@clisp.org>
4951
4952         strtoimax: Work around AIX 5.1 bug.
4953         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4954         definition.
4955         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4956         Set HAVE_STRTOIMAX.
4957         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4958         REPLACE_STRTOIMAX.
4959         * modules/inttypes-incomplete (Makefile.am): Substitute
4960         REPLACE_STRTOIMAX.
4961         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4962         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4963         (Depends-on): Update conditions.
4964         * tests/test-strtoimax.c (main): Add tests for large values.
4965         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4966
4967 2012-01-05  Bruno Haible  <bruno@clisp.org>
4968
4969         inttypes: Modernize.
4970         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4971         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4972         (Makefile.am): Update inttypes.h rule.
4973
4974 2012-01-05  Jim Meyering  <meyering@redhat.com>
4975
4976         init.sh: don't waste a subshell just to redirect stderr
4977         * tests/init.sh: In testing for diff -u and diff -c, use a
4978         stderr-redirecting exec inside `...` rather than a subshell.
4979
4980         test-init.sh: avoid failure on HP-UX 11.00
4981         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4982         resolves to diff -c or cmp.  Reported by Bruno Haible.
4983
4984 2012-01-05  Bruno Haible  <bruno@clisp.org>
4985
4986         Tests for module 'strtoull'.
4987         * modules/strtoull-tests: New file.
4988         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4989
4990 2012-01-05  Bruno Haible  <bruno@clisp.org>
4991
4992         Tests for module 'strtoll'.
4993         * modules/strtoll-tests: New file.
4994         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4995
4996 2012-01-05  Bruno Haible  <bruno@clisp.org>
4997
4998         Tests for module 'strtoul'.
4999         * modules/strtoul-tests: New file.
5000         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5001
5002 2012-01-05  Bruno Haible  <bruno@clisp.org>
5003
5004         Tests for module 'strtol'.
5005         * modules/strtol-tests: New file.
5006         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5007
5008 2012-01-04  Jim Meyering  <meyering@redhat.com>
5009
5010         test-init.sh: accommodate Solaris 5.10's different diff -u output
5011         * tests/test-init.sh: Also exempt @@ lines from the comparison
5012         of diff output, since Solaris 5.10 and GNU diff formats differ.
5013         Reported by Stefano Lattarini.
5014
5015 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5016
5017         test-posixtm: don't assume signed integer wraparound
5018         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5019         after signed integer overflow.  Inspired by (though it may not
5020         fix) Bruno Haible's bug report in
5021         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5022
5023         Spell out "Windows 9x" and "Windows XP".
5024         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5025         "Windows 9x" and "WinXP" with "Windows XP".
5026
5027 2012-01-04  Jim Meyering  <meyering@redhat.com>
5028
5029         test-vc-list-files-cvs.sh: remove obsolete comment
5030         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5031         double exit.  Now that's all encapsulated via skip_ and Exit.
5032
5033 2012-01-04  Bruno Haible  <bruno@clisp.org>
5034
5035         Talk about "native Windows API", not "Win32".
5036         * lib/classpath.c: Update comments to mention native Windows.
5037         * lib/csharpexec.c: Likewise.
5038         * lib/dup2.c: Likewise.
5039         * lib/error.c: Likewise.
5040         * lib/fcntl.c: Likewise.
5041         * lib/filename.h: Likewise.
5042         * lib/findprog.c: Likewise.
5043         * lib/get-rusage-as.c: Likewise.
5044         * lib/get-rusage-data.c: Likewise.
5045         * lib/getpagesize.c: Likewise.
5046         * lib/javaexec.c: Likewise.
5047         * lib/msvc-inval.c: Likewise.
5048         * lib/msvc-nothrow.c: Likewise.
5049         * lib/nanosleep.c: Likewise.
5050         * lib/nonblocking.c: Likewise.
5051         * lib/printf-parse.c: Likewise.
5052         * lib/setlocale.c: Likewise.
5053         * lib/sigaction.c: Likewise.
5054         * lib/strerror_r.c: Likewise.
5055         * lib/tmpdir.c: Likewise.
5056         * lib/vasnprintf.c: Likewise.
5057         * lib/w32spawn.h: Likewise.
5058         * lib/waitpid.c: Likewise.
5059         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5060         * m4/locale-ar.m4: Likewise.
5061         * m4/locale-fr.m4: Likewise.
5062         * m4/locale-ja.m4: Likewise.
5063         * m4/locale-tr.m4: Likewise.
5064         * m4/locale-zh.m4: Likewise.
5065         * m4/printf.m4: Likewise.
5066         * tests/test-cloexec.c: Likewise.
5067         * tests/test-copy-acl.sh: Likewise.
5068         * tests/test-copy-file.sh: Likewise.
5069         * tests/test-file-has-acl.sh: Likewise.
5070         * tests/test-set-mode-acl.sh: Likewise.
5071         * tests/test-dup-safer.c: Likewise.
5072         * tests/test-dup2.c: Likewise.
5073         * tests/test-dup3.c: Likewise.
5074         * tests/test-fcntl.c: Likewise.
5075         * tests/test-nonblocking-pipe.h: Likewise.
5076         * tests/test-nonblocking-socket.h: Likewise.
5077         * tests/test-pipe.c: Likewise.
5078         * tests/test-pipe2.c: Likewise.
5079         * tests/test-spawn-pipe-child.c: Likewise.
5080         * doc/acl-resources.txt: Likewise.
5081         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5082         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5083         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5084         * lib/localcharset.c: Update comments to mention native Windows.
5085         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5086         * lib/localename.c: Likewise.
5087         * lib/progreloc.c: Likewise.
5088         * lib/relocatable.c: Likewise.
5089         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5090         (windows_compute_revents): Renamed from win32_compute_revents.
5091         (windows_compute_revents_socket): Renamed from
5092         win32_compute_revents_socket.
5093         * lib/select.c: Update comments to mention native Windows.
5094         (windows_poll_handle): Renamed from win32_poll_handle.
5095         * m4/threadlib.m4: Update comments to mention native Windows.
5096         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5097         --enable-threads=windows instead of --enable-threads=win32. Set
5098         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5099         * lib/glthread/lock.h: Update comments to mention native Windows.
5100         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5101         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5102         USE_WIN32_THREADS.
5103         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5104         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5105         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5106         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5107         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5108         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5109         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5110         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5111         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5112         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5113         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5114         * tests/test-tls.c: Likewise.
5115         Rationale:
5116         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5117         on both 32-bit and 64-bit Windows systems.
5118         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5119         line of distinction is between "native Windows" on one side and Unix/
5120         POSIX systems on the other side. More details in
5121         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5122         Suggested by Paul Eggert.
5123
5124 2012-01-03  Bruno Haible  <bruno@clisp.org>
5125
5126         isatty: Support for MSVC 9.
5127         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5128         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5129         (_isatty_nothrow): New function.
5130         (isatty): Use it instead of _isatty.
5131         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5132         * lib/poll.c (IsConsoleHandle): Likewise.
5133         * lib/select.c (IsConsoleHandle): Likewise.
5134         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5135         (gl_PREREQ_ISATTY): New macro.
5136         * modules/isatty (Depends-on): Add msvc-inval.
5137         (configure.ac): Invoke gl_PREREQ_ISATTY.
5138
5139 2012-01-03  Jim Meyering  <meyering@redhat.com>
5140
5141         maint.mk: remove temporary transition aid from over 1.5 years ago
5142         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5143         purpose was to aid in the transition (avoiding silent malfunction)
5144         from that old name to the new _sc_search_regexp.  This shim was
5145         added by commit 219c504b.
5146
5147         init.sh: do not try to accommodate compare arguments starting with "-"
5148         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5149         compare arguments that start with "-".  Besides, we do not worry
5150         about this when invoking diff or cmp; why start now with sed?
5151         Using "--" to separate options from argument would trigger sed
5152         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5153         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5154
5155 2012-01-02  Bruno Haible  <bruno@clisp.org>
5156
5157         Enhance tests for module 'isatty'.
5158         * modules/isatty-tests (Depends-on): Add pipe-posix.
5159         * tests/test-isatty.c: Include <fcntl.h>.
5160         (DEV_NULL): New macro.
5161         (main): Test the resut of isatty() also on regular files, pipes, and
5162         /dev/null.
5163
5164         New module 'isatty'.
5165         * lib/unistd.in.h (isatty): New declaration.
5166         * lib/isatty.c: New file, based on an idea of
5167         Bastien Roucariès <roucaries.bastien@gmail.com>.
5168         * m4/isatty.m4: New file.
5169         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5170         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5171         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5172         REPLACE_ISATTY.
5173         * modules/isatty: New file.
5174         * doc/posix-functions/isatty.texi: Mention the new module.
5175         Suggested by Paolo Bonzini.
5176
5177 2012-01-02  Bruno Haible  <bruno@clisp.org>
5178
5179         canonicalize: Tweak 2011-12-29 commit.
5180         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5181         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5182
5183 2012-01-02  Jim Meyering  <meyering@redhat.com>
5184
5185         gitlog-to-changelog: describe input syntax in --help output
5186         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5187
5188         gitlog-to-changelog: fix typo in --help: show backslash before email @
5189         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5190         in sources, but not in actual output.
5191
5192 2011-12-30  Jim Meyering  <meyering@redhat.com>
5193
5194         gitlog-to-changelog: don't malfunction when name contains %-directive
5195         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5196         in a name string cause trouble.  E.g., with a user name of "%s",
5197         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5198
5199 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5200
5201         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5202         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5203         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5204         the "  (tiny change)" notation that is appended to the standard
5205         ChangeLog "date  name  email" header line.
5206
5207 2012-01-01  Jim Meyering  <meyering@redhat.com>
5208
5209         test-framework-sh: init.sh: fix "make dist" failure
5210         When using gnulib-tool's --with-tests option and any module that
5211         depends on test-framework-sh, "make dist" would fail due to the
5212         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5213         in the gltests directory, and not in the gllib/ directory.
5214         One way to work around that is to move the EXTRA_DIST += init.sh
5215         from the primary module to the -tests one:
5216         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5217         * modules/test-framework-sh (Makefile.am): ...not here.
5218         Reported by Tom G. Christensen in
5219         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5220
5221         version-etc: update copyright year reported by --version
5222         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5223
5224 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5225
5226         canonicalize: only stat() if required
5227         * lib/canonicalize.c (canonicalize_filename_mode):
5228         Avoid calling l?stat() when both CAN_MISSING,
5229         and CAN_NOLINKS are set, as we neither need
5230         to resolve symlinks or test component existence.
5231
5232 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5233
5234         doc: cover st_ino issues once; add OpenVMS etc.
5235         * doc/posix-functions/stat.texi (stat):
5236         * doc/posix-functions/lstat.texi (lstat):
5237         * doc/posix-functions/fstatat.texi (fstatat):
5238         * doc/posix-functions/fstat.texi (fstat):
5239         Move general 'struct stat' stuff to sys_stat.texi,
5240         leaving behind a pointer.
5241         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5242         Merge duplicate info about 'struct stat' problems into here.
5243         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5244         and suggest partial workarounds.
5245
5246         same-inode: port to OpenVMS
5247         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5248         three st_ino values.
5249
5250 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5251
5252         canonicalize: fix references to stat() and lstat()
5253         * lib/canonicalize.c (canonicalize_filename_mode):
5254         Ensure references always resolve to a replacement
5255         function if required (even via a macro).
5256
5257 2011-12-30  Jim Meyering  <meyering@redhat.com>
5258
5259         gitlog-to-changelog: remove a little duplication
5260         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5261         rather than twice.
5262
5263 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5264
5265         canonicalize: add support for not resolving symlinks
5266         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5267         indicate we don't want to follow symlinks.  Also
5268         provide CAN_MODE_MASK to aid setting these existing
5269         mutually exclusive values.
5270         * lib/canonicalize.c (canonicalize_filename_mode):
5271         Extract the flags from can_mode parameter, which
5272         are currently just used to select between stat()
5273         and lstat().  Also ensure that mutually exclusive
5274         values are flagged immediately as invalid.
5275         * tests/test-canonicalize.c: Verify symlinks are
5276         not followed, and that invalid flag combinations
5277         are diagnosed.
5278
5279 2011-12-25  Jim Meyering  <meyering@redhat.com>
5280
5281         gitlog-to-changelog: do not clump multi-paragraph entries
5282         Identical header lines (date,name,email+coauthors) are suppressed,
5283         thus putting all entries with those same characteristics under
5284         a single header.  However, when a log entry consists of two or
5285         more paragraphs, it may not be clear where it starts and ends.
5286         This change makes it so that such an entry is always separated
5287         from others by a header line, even when that header would
5288         otherwise be suppressed.
5289         * build-aux/gitlog-to-changelog: Implement the above.
5290         Inspired by a related request from Stefano Lattarini in
5291         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5292
5293 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5294
5295         announce-gen: fix `cmd' typo in diagnostic
5296         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5297         diagnostic: a missing '$' meant that the command was not output.
5298
5299 2011-12-23  Jim Meyering  <meyering@redhat.com>
5300
5301         test-framework-sh: distribute init.sh
5302         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5303         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5304         fail due to the lack of init.sh.
5305
5306         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5307         * modules/atexit-tests: Rather than listing tests/init.sh,
5308         now that there's a module for it, simply depend on that new module.
5309         * modules/closein-tests: Likewise.
5310         * modules/exclude-tests: Likewise.
5311         * modules/getcwd-tests: Likewise.
5312         * modules/perror-tests: Likewise.
5313         * modules/pread-tests: Likewise.
5314         * modules/pwrite-tests: Likewise.
5315         * modules/vc-list-files-tests: Likewise.
5316         * modules/verify-tests: Likewise.
5317         * modules/xalloc-die-tests: Likewise.
5318         * modules/xstrtoimax-tests: Likewise.
5319         * modules/xstrtol-tests: Likewise.
5320         * modules/xstrtoll-tests: Likewise.
5321         * modules/xstrtoumax-tests: Likewise.
5322         * modules/yesno-tests: Likewise.
5323
5324 2011-12-22  Jim Meyering  <meyering@redhat.com>
5325
5326         test-framework-sh: add minimal tests of init.sh's compare function
5327         * modules/test-framework-sh-tests: New file.
5328         * tests/test-init.sh: New file.
5329
5330         test-framework-sh: new module
5331         * modules/test-framework-sh: New file.
5332         * MODULES.html.sh (Support for maintaining and releasing projects):
5333         List it.
5334
5335         init.sh: do not emit simulated diff output to stderr
5336         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5337
5338 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5339
5340         .gitignore: ignore gnulib.dvi and regex.info
5341         * doc/.gitignore:add gnulib.dvi and regex.info
5342
5343 2011-12-22  Jim Meyering  <meyering@redhat.com>
5344
5345         init.sh: correct previous change
5346         * tests/init.sh (compare): My previous change was wrong.
5347         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5348
5349         init.sh: avoid unwarranted test failure when using "set -e"
5350         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5351         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5352         a use like "compare exp out" would get evoke an unconditional failure.
5353
5354 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5355
5356         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5357         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5358         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5359         autoreconf that did not.
5360         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5361         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5362
5363 2011-12-17  Jim Meyering  <meyering@redhat.com>
5364
5365         bootstrap: remove some now-unneeded code
5366         This script arose back when gnulib-tool was young.
5367         Since then, it has seen improvements that render much of this
5368         script unnecessary.  In particular, it can now make symlinks
5369         to the files it uses.  Also, I no longer see as much value in
5370         marking files as read-only via comments.
5371         If you relied on the symlink-creation feature of the preceding
5372         version of this script, you can get most of that functionality
5373         by adding the --symlink option to the definition of
5374         gnulib_tool_option_extras in your bootstrap.conf file.
5375         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5376         Run autopoint and libtoolize *before* gnulib-tool.
5377         After it, run an abbreviated autoreconf, rather than a loop around
5378         all tools.
5379         (slirp, bt_mark_as_generated): Remove functions.
5380
5381 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5382
5383         ftoastr: fix typo
5384         * lib/ftoastr.h: Fix misspelling in comment.
5385
5386 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5387
5388         * top/README-release: fix punctuation.
5389
5390 2011-12-17  Jim Meyering  <meyering@redhat.com>
5391
5392         bootstrap: correct the recent buildreq change
5393         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5394         had no effect.
5395         * build-aux/bootstrap (buildreq): Bracket each search term with
5396         "*...*", so that the shell "case" statement works as intended.
5397         Add comments.
5398
5399 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5400
5401         build: let bootstrap resort to wget when downloading .po files
5402         * build-aux/bootstrap (download_po_files): Fallback to wget when
5403         downloading the .po files via rsync fails.  This is necessary to
5404         bootstrap from behind a strict firewall.
5405
5406 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5407
5408         stdint: don't assume C++11 when compiling with g++
5409         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5411         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5412         work also in C++ before C++11, as that improperly inhibits
5413         generating a substitute stdint.h for that case.
5414
5415 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5416
5417         alloca: protect comment from gnulib-tool
5418         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5419         that gnulib-tool doesn't think it's a license, and munge it to
5420         say "GCC version 3".
5421
5422 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5423
5424         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5425         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5426         $(abs_top_builddir) instead of $(top_builddir).
5427
5428 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5429
5430         strftime-tests: also test nanoseconds
5431         * tests/test-strftime.c (T): Add a test of %N.
5432
5433 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5434
5435         inttypes, stdint: add C++11 support
5436         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5437         when including inttypes.h and stdint.h.  Support this change to
5438         the standard.
5439         * doc/posix-headers/inttypes.texi (inttypes.h):
5440         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5441         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5442         Define if not defined already, for the benefit of pre-C++11 hosts.
5443         Define the standard format macros (e.g., PRId8) always.
5444         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5445         Likewise, if __cpluspus.  Define the standard constant and limit
5446         macros (e.g., INT8_C, INT8_MAX) always.
5447         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5448         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5449         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5450         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5451         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5452         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5453         Likewise.
5454
5455 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5456
5457         nonblocking tests: Fix test failure on Linux/PPC.
5458         Suggested by Prerna Saxena in
5459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5460         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5461         Set to 1100000.
5462
5463 2011-12-12  Jim Meyering  <meyering@redhat.com>
5464
5465         argmatch: don't hard-code `' when listing valid option arguments
5466         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5467         use the quote function to add quotes.  Use fputs rather than
5468         fprintf for the format string with no format directive.
5469
5470 2011-12-07  Eric Blake  <eblake@redhat.com>
5471
5472         bootstrap: detect tools required by gnulib-tool
5473         * build-aux/bootstrap (buildreq): Provide minimum implicit
5474         dependencies.
5475         * DEPENDENCIES: Mention patch as a prereq.
5476
5477 2011-12-04  Bruno Haible  <bruno@clisp.org>
5478
5479         sethostname: Port to Windows platforms.
5480         * lib/sethostname.c: Provide an alternate implementation for Windows
5481         platforms.
5482         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5483         (main): Skip the test if sethostname() fails with EPERM. On Windows
5484         platforms, don't check the result of gethostname().
5485
5486 2011-12-04  Bruno Haible  <bruno@clisp.org>
5487             Jim Meyering  <meyering@redhat.com>
5488
5489         tests: Avoid spurious error message on platforms without mktemp program.
5490         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5491
5492 2011-12-04  Bruno Haible  <bruno@clisp.org>
5493
5494         sethostname: Fix documentation.
5495         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5496         "not fixed" section.
5497
5498 2011-12-03  Bruno Haible  <bruno@clisp.org>
5499
5500         gnulib-tool: Verify that the License field is present and non-empty.
5501         * gnulib-tool (func_get_license_raw): New function, extracted from
5502         func_get_license.
5503         (func_get_license): Use it. Warn if the module is not a test module and
5504         has no license.
5505         Suggested by Jim Meyering.
5506
5507 2011-12-03  Bruno Haible  <bruno@clisp.org>
5508
5509         sethostname tests: Fix link error on mingw.
5510         * tests/test-sethostname1.c: New file, extracted from
5511         tests/test-sethostname.c.
5512         * tests/test-sethostname2.c: New file, extracted from
5513         tests/test-sethostname.c.
5514         * tests/test-sethostname.c: Remove file.
5515         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5516         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5517         (Depends-on): Add gethostname.
5518         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5519         Link the latter with $(GETHOSTNAME_LIB).
5520
5521         sethostname tests: Fix compilation error on mingw.
5522         * tests/test-sethostname.c: Don't include <sys/types.h>.
5523         (geteuid): Use a dummy value without uid_t.
5524         * modules/sethostname-tests (Depends-on): Remove sys_types.
5525
5526         sethostname tests: Avoid a gcc warning.
5527         * tests/test-sethostname.c (main): Remove an unused variable.
5528
5529         Tweak last commit.
5530         * modules/sethostname-tests (Files): Sort by decreasing importance.
5531         (configure.ac): Check for geteuid.
5532         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5533         the test when there's nothing to test. Drop an unnecessary cast.
5534         Improve an error message. Verify that the final sethostname() call
5535         succeeds.
5536
5537 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5538
5539         Add a test suite for the sethostname module.
5540         * modules/sethostname-tests: New file.  A test program
5541         for the sethostname module.
5542         * tests/test-sethostname.c: Likewise.
5543
5544 2011-12-03  Bruno Haible  <bruno@clisp.org>
5545
5546         Tweak last commit.
5547         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5548         Fix preprocessor directives indentation. Fix typos.
5549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5550         * modules/unistd (Makefile): Likewise.
5551
5552 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5553
5554         Integrate the sethostname module into unistd.
5555         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5556         into the unistd.h header.
5557         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5558         preprocessor directives.
5559         * modules/unistd: Setup the Makefile substitutions of the
5560         SETHOSTNAME preprocessor directives.
5561
5562 2011-12-03  Bruno Haible  <bruno@clisp.org>
5563
5564         Tweak last commit.
5565         * lib/sethostname.c: Don't include <string.h>.
5566         (sethostname): No need to copy the argument string to the stack. Don't
5567         call clearerr. Preserve errno when fprintf failed.
5568         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5569         Don't invoke AC_REPLACE_FUNCS.
5570         * modules/sethostname (Link): Remove empty section.
5571         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5572         failure problem.
5573
5574 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5575
5576         New module 'sethostname'.
5577         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5578         for systems that lack it.
5579         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5580         sethostname declaration and function.
5581         * modules/sethostname: New file.  Define the sethostname module.
5582
5583 2011-12-03  Bruno Haible  <bruno@clisp.org>
5584
5585         Tweak last commit.
5586         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5587
5588 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5589
5590         Split the HOST_NAME_MAX detection into a separate m4 macro.
5591         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5592         macro so it can be used by the pending sethostname module.
5593
5594 2011-12-03  Bruno Haible  <bruno@clisp.org>
5595
5596         Fix module descriptions syntax.
5597         * modules/argv-iter (License): Fix syntax.
5598         * modules/di-set (License): Likewise.
5599         * modules/ino-map (License): Likewise.
5600         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5601
5602 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5603
5604         stdalign: port to Clang 3.0
5605         Problem reported by Simon Josefsson in
5606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5607         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5608         which has <stdalign.h> but which does not define alignof.
5609         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5610
5611 2011-12-01  Eric Blake  <eblake@redhat.com>
5612
5613         mktempd: silence dd usage
5614         * build-aux/mktempd (rand_bytes): Silence dd.
5615
5616 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5617
5618         manywarnings: Don't mention gcc version in docstring.
5619         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5620         Jim Meyering <meyering@redhat.com>.
5621
5622 2011-11-30  Jim Meyering  <meyering@redhat.com>
5623
5624         hash: mark a few floating point constants with "f" suffix
5625         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5626         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5627         floating point constants with "f", since they're destined to be
5628         saved/used as "float"s.
5629
5630 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5631
5632         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5633         * tests/test-float.c (test_long_double): Correct and re-enable the
5634         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5635
5636 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5637
5638         Avoid subtracting two pointers that don't point into the same block.
5639         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5640         only pointers into the same memory block are subtracted. We cannot
5641         assume that sizeof (ptrdiff_t) == sizeof (void *).
5642
5643 2011-11-29  Eric Blake  <eblake@redhat.com>
5644
5645         maint.mk: add syntax check for use of compare from init.sh
5646         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5647         moved here from coreutils.
5648
5649         manywarnings: drop -Wunsuffixed-float-constants
5650         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5651         '1.0D', which is the only way to silence this warning for 'double'.
5652
5653 2011-11-29  Jim Meyering  <meyering@redhat.com>
5654
5655         hash: mark compute_bucket_size with the pure attribute
5656         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5657
5658         quotearg, propername: correct pragma guard expression
5659         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5660         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5661
5662 2011-11-28  Jim Meyering  <meyering@redhat.com>
5663
5664         propername: do not mark proper_name with the const attribute
5665         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5666         since it examines data pointed to by its parameter.
5667         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5668         the suggestion from -Wsuggest-attribute=const.
5669
5670         propername: mark one more function as const
5671         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5672
5673 2011-11-27  Jim Meyering  <meyering@redhat.com>
5674
5675         mark functions with const and pure attributes
5676
5677         Mark functions per suggestions from gcc-4.6 when using these options:
5678         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5679         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5680         Follow these guidelines: when possible, apply the attribute to
5681         an extern declaration, not to its definition.  Apply it to the
5682         definition only when the definition is static.
5683         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5684         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5685         * lib/base64.h (isbase64): Likewise.
5686         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5687         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5688         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5689         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5690         (c_tolower, c_toupper): Likewise.
5691         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5692         * lib/chdir-long.c (find_non_slash): Likewise.
5693         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5694         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5695         * lib/file-type.h (file_type): Likewise.
5696         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5697         * lib/filevercmp.c (verrevcmp): Likewise.
5698         * lib/freadahead.h (freadahead): Likewise.
5699         * lib/fts.c (fts_maxarglen): Likewise.
5700         * lib/hash-pjw.h (hash_pjw): Likewise.
5701         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5702         * lib/hash.c (is_prime, next_prime): Likewise.
5703         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5704         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5705         (hash_table_ok, hash_get_first, hash_string): Likewise.
5706         (compute_bucket_size): Likewise.
5707         * lib/i-ring.h (i_ring_empty): Likewise.
5708         * lib/isnan.c (isnanl): Likewise.
5709         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5710         * lib/memcasecmp.h (memcasecmp): Likewise.
5711         * lib/memchr2.h (memchr2): Likewise.
5712         * lib/memcmp2.h (memcmp2): Likewise.
5713         * lib/parse-datetime.y (lookup_zone): Likewise.
5714         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5715         [!WINDOWS_SOCKETS]: Likewise.
5716         * lib/strnlen1.h (strnlen1): Likewise.
5717         * lib/uniwidth.in.h (uc_width): Likewise.
5718         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5719         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5720         (quoting_options_from_style): Add a comment.
5721         * lib/propername.h (proper_name): Add a comment.
5722
5723 2011-11-27  Bruno Haible  <bruno@clisp.org>
5724
5725         Remove unused macros from !_LIBC code in glibc-borrowed files.
5726         * lib/fnmatch.c (STRCOLL): Remove macro.
5727         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5728         * lib/glob.c (__stat, __readdir64): Remove macros.
5729         * lib/tempname.c (__open64, __xstat64): Remove macros.
5730         Suggested by Paul Eggert.
5731
5732 2011-11-27  Bruno Haible  <bruno@clisp.org>
5733
5734         getcwd: Fix link error on MSVC 9.
5735         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5736
5737 2011-11-27  Bruno Haible  <bruno@clisp.org>
5738
5739         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5740         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5741         HAVE_OPENDIR is 0.
5742         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5743         HAVE_CLOSEDIR is 0.
5744         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5745         is 0.
5746         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5747
5748 2011-11-27  Bruno Haible  <bruno@clisp.org>
5749
5750         getcwd: Fix bug from 2011-08-17.
5751         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5752         platforms that need it.
5753         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5754         code of 4 to be a failure, not a success. This ensures that
5755         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5756
5757 2011-11-27  Bruno Haible  <bruno@clisp.org>
5758
5759         binary-io tests: Avoid test failure on mingw when libtool is used.
5760         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5761         Don't verify the size of t-bin-out1.tmp here.
5762         * tests/test-binary-io.sh: Verify it here.
5763         Reported by Simon Josefsson.
5764
5765 2011-11-26  Bruno Haible  <bruno@clisp.org>
5766
5767         Fix conflict between two instantiations of module 'unistd'.
5768         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5769         ${include_guard_prefix} also in the autoconf snippet.
5770         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5772         GNULIB_UNISTD_H_GETOPT.
5773         * modules/getopt-posix (configure.ac): Set the
5774         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5775         * modules/getopt-gnu (configure.ac): Likewise.
5776         * modules/unistd (Makefile.am): Change the substitution value of
5777         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5778         Reported by Simon Josefsson.
5779
5780 2011-11-25  Bruno Haible  <bruno@clisp.org>
5781
5782         pagealign_alloc: Doc and comments.
5783         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5784         module.
5785         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5786
5787 2011-11-25  Jim Meyering  <meyering@redhat.com>
5788
5789         test-update-copyright.sh: avoid false-positive failure
5790         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5791         around false positive failure on Cygwin/Windows.  The latter was
5792         matching erroneously-created files with names like
5793         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5794
5795 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5796
5797         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5798         * m4/valgrind-tests.m4: Check that the parameters that will be
5799         used works, not just a subset of them.  Reported by Bruno Haible
5800         <bruno@clisp.org>.
5801
5802 2011-11-24  Jim Meyering  <meyering@redhat.com>
5803
5804         test-stdalign.c: comment out long double tests
5805         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5806         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5807         error: '_Alignas' specifiers cannot reduce alignment of \
5808         'static_longdouble_alignas'.
5809
5810 2011-11-22  Jim Meyering  <meyering@redhat.com>
5811
5812         init.sh: make "compare /dev/null FILE" output more readable
5813         * tests/init.sh (compare_): Document the preferred order of arguments.
5814         (emit_diff_u_header_): New function.
5815         (compare_dev_null_): Emit a simulated diff, rather than just the
5816         contents of the unexpected file.  Suggestion from Bruno Haible.
5817
5818 2011-11-21  Jim Meyering  <meyering@redhat.com>
5819             Eric Blake  <eblake@redhat.com>
5820
5821         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5822         * tests/init.sh: Make our compare function slightly more portable.
5823         Reported by Bruno Haible in
5824         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5825
5826 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5827
5828         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5829         before using it, in code that ends up in config.h.
5830
5831 2011-11-20  Bruno Haible  <bruno@clisp.org>
5832
5833         getcwd: Work around getcwd bug on AIX 5..7.
5834         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5835         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5836         Use a different value for gl_cv_func_getcwd_path_max. Move the
5837         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5838         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5839         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5840         Define HAVE_MINIMALLY_WORKING_GETCWD.
5841         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5842         where it is not even minimally working, that is, on AIX.
5843         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5844         m4/getcwd-path-max.m4.
5845         (main): Update exit code computation.
5846         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5847         getcwd does not handle long file names.
5848
5849 2011-11-20  Bruno Haible  <bruno@clisp.org>
5850
5851         getcwd: Fix bug from 2009-09-10.
5852         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5853         like "no".
5854
5855 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5856
5857         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5858
5859 2011-11-20  Bruno Haible  <bruno@clisp.org>
5860
5861         fma tests: Avoid shadowing local variables.
5862         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5863         expected.
5864
5865 2011-11-20  Bruno Haible  <bruno@clisp.org>
5866
5867         copysignf tests: Fix.
5868         * tests/test-copysignf.c: Fix signature check.
5869
5870 2011-11-20  Bruno Haible  <bruno@clisp.org>
5871
5872         fma: Remove unused code.
5873         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5874         unused macros.
5875
5876 2011-11-20  Bruno Haible  <bruno@clisp.org>
5877
5878         sethostname: Fix doc about AIX.
5879         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5880         sethostname; it has it.
5881
5882         sethostname: Mention more portability problems.
5883         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5884         problem.
5885         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5886
5887 2011-11-19  Bruno Haible  <bruno@clisp.org>
5888
5889         Depend on module fcntl-h when AT_FDCWD is used.
5890         * modules/utimens (Depends-on): Add fcntl-h.
5891         * modules/areadlinkat (Depends-on): Likewise.
5892         * modules/areadlinkat-with-size (Depends-on): Likewise.
5893         * modules/faccessat (Depends-on): Likewise.
5894         * modules/fchmodat (Depends-on): Likewise.
5895         * modules/fchownat (Depends-on): Likewise.
5896         * modules/getcwd (Depends-on): Likewise.
5897         * modules/mkdirat (Depends-on): Likewise.
5898         * modules/mkfifoat (Depends-on): Likewise.
5899         * modules/readlinkat (Depends-on): Likewise.
5900         * modules/symlinkat (Depends-on): Likewise.
5901         * modules/dup2-tests (Depends-on): Likewise.
5902         * modules/fdutimensat-tests (Depends-on): Likewise.
5903         * modules/futimens-tests (Depends-on): Likewise.
5904
5905 2011-11-19  Bruno Haible  <bruno@clisp.org>
5906
5907         euidaccess: Update a comment.
5908         * lib/euidaccess.c: Update comment about platforms with faccessat.
5909
5910 2011-11-19  Bruno Haible  <bruno@clisp.org>
5911
5912         openat: Fix file list.
5913         * modules/openat (Files): Remove lib/at-func.c.
5914
5915 2011-11-19  Bruno Haible  <bruno@clisp.org>
5916
5917         fstatat: Simplify.
5918         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5919         gnulib should define rpl_fstatat, there is a
5920         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5921
5922 2011-11-19  Bruno Haible  <bruno@clisp.org>
5923
5924         Ensure 'inline' can be used in tests/test-utimens-common.h.
5925         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5926         * modules/futimens-tests (configure.ac): Likewise.
5927         * modules/utimens-tests (configure.ac): Likewise.
5928         * modules/utimensat-tests (configure.ac): Likewise.
5929
5930 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5931
5932         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5933         not hash_insert0.
5934         (hash_insert_if_absent): Doc fix.
5935
5936 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5937
5938         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5939
5940 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5941
5942         test-getcwd: disambiguate exit status
5943         * tests/test-getcwd.c (test_long_name): Return 0..7.
5944         (main): Exit with an unambiguous exit status.  The old
5945         code yielded a mysterious mixture of two failure codes.
5946
5947         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5948         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5949         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5950         rpl_fstatat or fstatat.  This should fix the other problem
5951         reported by Kai Habel in
5952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5953         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5955         and I reproduced it on a Solaris 8 host we still have in production.
5956
5957 2011-11-18  Jim Meyering  <meyering@redhat.com>
5958
5959         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5960         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5961         Add a sentence to the comment.
5962         (hash_insert0): New function that simply calls hash_insert_if_absent.
5963         * lib/hash.h (hash_insert_if_absent): Declare it.
5964         (hash_insert0): Add deprecation attribute.
5965         (_GL_ATTRIBUTE_DEPRECATED): Define.
5966         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5967         not hash_insert0.
5968         * NEWS: Mention it, even though it's not really an incompatible change.
5969
5970 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5971
5972         openat: avoid compilation failure due to lack of <errno.h> inclusion
5973         * lib/openat.c: Include <errno.h>.
5974
5975 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5976
5977         * modules/getcwd (Depends-on): Add fdopendir.
5978         This fixes one of the two problems reported by Kai Habel in
5979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5980
5981         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5982         stdalign problem reported by Ian Beckwith in
5983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5984         * modules/crypto/gc-arcfour (Depends-on):
5985         Depend conditionally on crypto/arcfour.
5986         * modules/crypto/gc-arctwo (Depends-on):
5987         Depend conditionally on crypto/arctwo.
5988         * modules/crypto/gc-des (Depends-on):
5989         Depend conditionally on crypto/des.
5990         * modules/crypto/gc-hmac-md5 (Depends-on):
5991         Depend conditionally on crypto/hmac-md5.
5992         * modules/crypto/gc-hmac-sha1 (Depends-on):
5993         Depend conditionally on crypto/hmac-sha1.
5994         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5995         * modules/crypto/gc-md4 (Depends-on):
5996         Depend conditionally on crypto/md4.
5997         * modules/crypto/gc-md5 (Depends-on):
5998         Depend conditionally on crypto/md5.
5999         * modules/crypto/gc-rijndael (Depends-on):
6000         Depend conditionally on crypto/rijndael.
6001         * modules/crypto/gc-sha1 (Depends-on):
6002         Depend conditionally on crypto/sha1.
6003         * modules/crypto/gc-arcfour:
6004         * modules/crypto/gc-arctwo:
6005         * modules/crypto/gc-des:
6006         * modules/crypto/gc-hmac-md5:
6007         * modules/crypto/gc-hmac-sha1:
6008         * modules/crypto/gc-md2:
6009         * modules/crypto/gc-md4:
6010         * modules/crypto/gc-md5:
6011         * modules/crypto/gc-rijndael:
6012         * modules/crypto/gc-sha1:
6013         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6014         now that the conditional dependencies do the work for us.
6015
6016 2011-11-17  Jim Meyering  <meyering@redhat.com>
6017
6018         tests: factor st_ctime-comparison out of two headers
6019         * tests/test-utimens-common.h (ctime_compare): Define.
6020         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6021         * tests/test-lutimens.h (test_lutimens): Likewise.
6022         * tests/test-utimens.h (test_utimens): Likewise.
6023
6024         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6025         Invoke the test program via an init.sh-using wrapper.
6026         * tests/test-getcwd.sh: New file.
6027         * modules/getcwd-tests (Files): Add it.
6028         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6029
6030 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6031
6032         gitlog-to-changelog: support multi-author commits.
6033         The FSF cares about keeping track of all authors of patches to its
6034         projects, but Git doesn't provide obvious support for multi-author
6035         changesets. Consensus seems to be forming around the use of extra
6036         Signed-off-by inspired lines in the log message formatted as
6037         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6038         multi-author commits between version control systems.
6039         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6040         log message and output in standard ChangeLog multi-author format.
6041         Reported by Peter Rosin <peda@lysator.liu.se>
6042
6043 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6044             Bruno Haible  <bruno@clisp.org>
6045
6046         Fix some modules' file list.
6047         * modules/fstatat (Files): Add m4/lstat.m4.
6048         * modules/openat (Files): Likewise.
6049         * modules/unlinkat (Files): Likewise.
6050
6051 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6052
6053         maint.mk: fix tight-scope.mk generation in VPATH builds.
6054         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6055         reference with $(srcdir) so that the file is found correctly even
6056         when running `make syntax-check' in a VPATH build.
6057
6058 2011-11-13  Bruno Haible  <bruno@clisp.org>
6059             Jim Meyering  <meyering@redhat.com>
6060
6061         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6062         * tests/init.sh (compare): Remove "No differences encountered" or
6063         synonymous output from the 'diff' program.
6064
6065 2011-11-13  Bruno Haible  <bruno@clisp.org>
6066
6067         Makefile: Tweak indentation.
6068         * Makefile: Use tab as first character in every line that contains rule
6069         commands.
6070
6071 2011-11-13  Bruno Haible  <bruno@clisp.org>
6072
6073         Syntax check for copyright statements.
6074         * check-copyright: New file.
6075         * Makefile (sc_check_copyright): New rule.
6076
6077 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6078
6079         * build-aux/git-version-gen: Add --prefix to configure the tag
6080         match string.
6081
6082 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6083
6084         * build-aux/git-version-gen: Add --help and --version.
6085
6086 2011-11-12  Jim Meyering  <meyering@redhat.com>
6087
6088         revamp the other test-exclude?.sh scripts to use init.sh, too
6089         * tests/test-exclude1.sh: Use init.sh.
6090         * tests/test-exclude2.sh: Likewise.
6091         * tests/test-exclude3.sh: Likewise.
6092         * tests/test-exclude4.sh: Likewise.
6093         * tests/test-exclude5.sh: Likewise.
6094         * tests/test-exclude6.sh: Likewise.
6095         * tests/test-exclude7.sh: Likewise.
6096         * tests/test-exclude8.sh: Likewise.
6097         * modules/exclude-tests (Files): List init.sh.
6098
6099         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6100         These shell scripts ignored failure of the binary test-exclude,
6101         so making the latter return 77 didn't cause them to be skipped.
6102         * tests/test-exclude5.sh: Exit with test-exclude's error status
6103         when that program fails.  Revamp to use init.sh.
6104         * tests/test-exclude2.sh: Likewise.
6105
6106         test-exclude: fix a typo
6107         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6108
6109 2011-11-11  Bruno Haible  <bruno@clisp.org>
6110
6111         obstack: Fix compilation error on MSVC 9.
6112         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6113
6114 2011-11-11  Jim Meyering  <meyering@redhat.com>
6115
6116         test-exclude: skip tests rather than failing on deficient systems
6117         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6118         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6119         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6120         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6121
6122 2011-11-10  Bruno Haible  <bruno@clisp.org>
6123
6124         ptsname_r test: Avoid gcc warning on glibc systems.
6125         * tests/test-ptsname_r.c (null_ptr): New function.
6126         (test_errors): Use it.
6127
6128 2011-11-10  Bruno Haible  <bruno@clisp.org>
6129
6130         ptsname_r: Avoid compilation error on OSF/1 5.1.
6131         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6133         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6134         function is not declared or incompatibly declared.
6135         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6136         * modules/ptsname_r (Depends-on, configure.ac): Update.
6137         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6138
6139 2011-11-10  Bruno Haible  <bruno@clisp.org>
6140
6141         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6142         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6143         When cross-compiling, guess yes on all platforms except AIX.
6144         Reported by Ludovic Courtès <ludo@gnu.org>.
6145
6146 2011-11-09  Bruno Haible  <bruno@clisp.org>
6147
6148         ptsname_r tests: Fix bugs.
6149         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6150         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6151
6152 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6153
6154         fstatat: work with cross-compilation
6155         Problem reported by Ludovic Courtès in
6156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6157         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6158         "cross-compiling" and assume the bug is present.  Replace
6159         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6160         an inverted sense, to be more conservative about our assumptions.
6161         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6162
6163 2011-11-09  Bruno Haible  <bruno@clisp.org>
6164
6165         Improve MODULES.html output.
6166         * modules/mkfifoat (Description): Use the word "function".
6167         * modules/readlinkat (Description): Likewise.
6168         * modules/symlinkat (Description): Likewise.
6169
6170 2011-11-09  Eric Blake  <eblake@redhat.com>
6171
6172         ptsname_r-tests: new test module
6173         * modules/ptsname_r-tests: New module.
6174         * tests/test-ptsname_r.c: New file.
6175
6176         ptsname_r: new module
6177         * modules/ptsname_r: New module.
6178         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6179         * lib/ptsname.c (__ptsname_r): Split...
6180         * lib/ptsname_r.c: ...into new file.
6181         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6182         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6183         * modules/stdlib (Makefile.am): Substitute witnesses.
6184         * lib/stdlib.in.h (ptsname_r): Declare it.
6185         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6186         * MODULES.html.sh (Misc): Likewise.
6187         * modules/ptsname (Depends-on): Alter dependency.
6188         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6189
6190 2011-11-09  Jim Meyering  <meyering@redhat.com>
6191
6192         announce-gen: be more concise when there's only one URL+tarball
6193         * build-aux/announce-gen (get_tool_versions): When you distribute
6194         only one type of tarball, combine the first two "Here are..."
6195         sections and make the key-checking grammar independent of
6196         how many tarballs there are.
6197
6198 2011-11-09  Eric Blake  <eblake@redhat.com>
6199
6200         openpty: provide a stub on mingw
6201         * lib/pty.in.h (includes): Provide forward declarations.
6202         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6203
6204         raise: fix mingw handling of SIGPIPE
6205         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6206
6207 2011-11-08  Bruno Haible  <bruno@clisp.org>
6208
6209         More conditional dependencies.
6210         * modules/faccessat (Depends-on): Add conditions.
6211         * modules/fchmodat (Depends-on): Likewise.
6212         * modules/fchownat (Depends-on): Likewise.
6213         * modules/fstatat (Depends-on): Likewise.
6214         * modules/mkfifoat (Depends-on): Likewise.
6215         * modules/readlinkat (Depends-on): Likewise.
6216         * modules/symlinkat (Depends-on): Likewise.
6217         * modules/unlinkat (Depends-on): Likewise.
6218         * modules/utimensat (Depends-on): Likewise.
6219         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6220         * modules/linkat (Depends-on): Refine the conditions.
6221         * modules/renameat (Depends-on): Likewise.
6222
6223 2011-11-08  Bruno Haible  <bruno@clisp.org>
6224
6225         faccessat: Move AC_LIBOBJ invocation to module description.
6226         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6227         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6228         invocation from here...
6229         * modules/faccessat (configure.ac): ... to here. Invoke
6230         gl_PREREQ_FACCESSAT.
6231
6232 2011-11-08  Bruno Haible  <bruno@clisp.org>
6233
6234         faccessat: Simplify autoconf macro.
6235         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6236         gl_FUNC_EUIDACCESS.
6237
6238 2011-11-08  Bruno Haible  <bruno@clisp.org>
6239
6240         renameat: Fix dependencies.
6241         * modules/renameat (Depends-on): Add stdbool.
6242
6243 2011-11-08  Bruno Haible  <bruno@clisp.org>
6244
6245         mkfifoat: Fix module description.
6246         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6247         not gl_UNISTD_MODULE_INDICATOR.
6248
6249 2011-11-08  Bruno Haible  <bruno@clisp.org>
6250
6251         fstatat: Remove unused dependency.
6252         * modules/fstatat (Depends-on): Remove fstat.
6253
6254 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6255
6256         GNUmakefile: behave when Makefile is missing.
6257         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6258
6259 2011-11-08  Bruno Haible  <bruno@clisp.org>
6260
6261         openat: Conditionalize dependencies.
6262         * lib/openat.c: Reduce the scope of some #includes.
6263         * modules/openat (Depends-on): Add conditions.
6264
6265 2011-11-07  Jim Meyering  <meyering@redhat.com>
6266
6267         maint.mk: extract GPG key ID without using a temporary file
6268         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6269         without using a temporary file.  Based on a suggestion from Werner Koch
6270         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6271
6272 2011-11-07  Eric Blake  <eblake@redhat.com>
6273
6274         grantpt: fix typo
6275         * lib/stdlib.in.h (grantpt): Check correct function.
6276
6277         maint.mk: silence new syntax check
6278         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6279
6280 2011-11-06  Bruno Haible  <bruno@clisp.org>
6281
6282         Doc about floating-point and math API.
6283         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6284         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6285
6286 2011-11-06  Bruno Haible  <bruno@clisp.org>
6287
6288         stdalign tests: Skip the test when compiled by Sun C.
6289         * tests/test-stdalign.c (main): Skip the test on Sun C.
6290
6291 2011-11-06  Bruno Haible  <bruno@clisp.org>
6292
6293         ansi-c++-opt: Complete the 2011-06-05 change.
6294         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6295         does not support namespaces, set the variable to "no", not to ":".
6296
6297 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6298
6299         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6300
6301 2011-11-06  Bruno Haible  <bruno@clisp.org>
6302
6303         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6304         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6305         (minus_zerol) [HP-UX]: New macro.
6306         (unary_minus) [HP-UX]: New function.
6307         (copysignl) [HP-UX]: Use unary_minus function.
6308
6309 2011-11-06  Bruno Haible  <bruno@clisp.org>
6310
6311         ldexp, ldexpf, ldexpl: Enhance tests.
6312         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6313         and tests/test-ldexpl.c.
6314         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6315         LDEXP, MIN_EXP, MAX_EXP): New macros.
6316         Include test-ldexp.h.
6317         (main): Just call test_function.
6318         * tests/test-ldexp.c: Include float.h, isnand-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         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6326         infinity.h, nan.h.
6327         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6328         MAX_EXP): New macros.
6329         Include test-ldexp.h.
6330         (x, y): Remove variables.
6331         (main): Just call test_function.
6332         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6333         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6334         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6335         (Depends-on): Add isnand-nolibm, signbit, float.
6336         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6337         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6338         (Depends-on): Add isnanf-nolibm, signbit, float.
6339
6340 2011-11-06  Bruno Haible  <bruno@clisp.org>
6341
6342         math tests: Cosmetics.
6343         * tests/test-math-c++.cc: Reorder declarations.
6344
6345 2011-11-05  Bruno Haible  <bruno@clisp.org>
6346
6347         fma*: Simplify test.
6348         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6349         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6350
6351         Tests for module 'fmal'.
6352         * modules/fmal-tests: New file.
6353         * tests/test-fmal1.c: New file.
6354         * tests/test-fmal2.c: New file.
6355
6356         New module 'fmal'.
6357         * lib/math.in.h (fmal): New declaration.
6358         * lib/fmal.c: New file.
6359         * m4/fmal.m4: New file.
6360         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6362         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6363         REPLACE_FMAL.
6364         * modules/fmal: New file.
6365         * doc/posix-functions/fmal.texi: Mention the new module and the various
6366         bugs.
6367
6368         Tests for module 'fmaf'.
6369         * modules/fmaf-tests: New file.
6370         * tests/test-fmaf1.c: New file.
6371         * tests/test-fmaf2.c: New file.
6372
6373         New module 'fmaf'.
6374         * lib/math.in.h (fmaf): New declaration.
6375         * lib/fmaf.c: New file.
6376         * m4/fmaf.m4: New file.
6377         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6379         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6380         REPLACE_FMAF.
6381         * modules/fmaf: New file.
6382         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6383         bugs.
6384
6385         Tests for module 'fma'.
6386         * modules/fma-tests: New file.
6387         * tests/test-fma1.c: New file.
6388         * tests/test-fma1.h: New file.
6389         * tests/test-fma2.c: New file.
6390         * tests/test-fma2.h: New file.
6391
6392         New module 'fma'.
6393         * lib/math.in.h (fma): New declaration.
6394         * lib/fma.c: New file.
6395         * m4/fma.m4: New file.
6396         * m4/fegetround.m4: New file.
6397         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6399         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6400         REPLACE_FMA.
6401         * modules/fma: New file.
6402         * doc/posix-functions/fma.texi: Mention the new module and the various
6403         bugs.
6404
6405         Extend gl_MATHFUNC.
6406         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6407         Support 'void' as argument type.
6408         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6409
6410 2011-11-05  Jim Meyering  <meyering@redhat.com>
6411
6412         maint.mk: also prohibit inclusion of dirent.h without use
6413         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6414
6415 2011-11-05  Bruno Haible  <bruno@clisp.org>
6416
6417         ldexpl tests: Avoid test failure on MSVC 9.
6418         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6419         value. Needed in order to enforce the conversion from a value greater
6420         than LDBL_MAX to Infinity.
6421
6422 2011-11-05  Bruno Haible  <bruno@clisp.org>
6423
6424         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6425         * modules/at-internal: New file, extracted from modules/openat.
6426         * modules/openat-h: New file.
6427         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6428         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6429         * modules/openat (Description): Add reference to POSIX function.
6430         (Files): Remove lib/openat.h, lib/openat-proc.c.
6431         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6432         intprops, unistd.
6433         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6434         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6435         gl_FCNTL_MODULE_INDICATOR.
6436         (Include): Remove unistd.h, openat.h.
6437         * modules/areadlinkat (Files): Add lib/at-func.c.
6438         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6439         openat-die, openat-h, save-cwd.
6440         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6441         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6442         openat-die, openat-h, save-cwd, unistd.
6443         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6444         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6445         openat-h, save-cwd. Remove fcntl-h, openat.
6446         * modules/fchmodat (Files): Remove lib/openat.h.
6447         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6448         openat, stdbool, unistd.
6449         * modules/fchownat (Files): Remove lib/openat.h.
6450         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6451         openat, stdbool, sys_stat.
6452         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6453         lib/openat-proc.c.
6454         (Depends-on): Add at-internal.
6455         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6456         * modules/fstatat (Files): Remove lib/openat.h.
6457         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6458         stdbool, unistd.
6459         * modules/fts (Depends-on): Add openat-h.
6460         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6461         openat.
6462         * modules/mkdirat (Files): Remove lib/openat.h.
6463         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6464         openat, stdbool, sys_stat.
6465         * modules/mkfifoat (Files): Add lib/at-func.c.
6466         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6467         openat-h, save-cwd. Remove fcntl-h, openat.
6468         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6469         * modules/readlinkat (Files): Add lib/at-func.c.
6470         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6471         openat-h, save-cwd. Remove fcntl-h, openat.
6472         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6473         openat.
6474         * modules/selinux-at (Files): Add lib/at-func.c.
6475         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6476         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6477         * modules/symlinkat (Files): Add lib/at-func.c.
6478         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6479         openat-h, save-cwd. Remove fcntl-h, openat.
6480         * modules/unlinkat (Files): Remove lib/openat.h.
6481         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6482         stdbool.
6483         * modules/utimensat (Files): Add lib/at-func.c.
6484         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6485         openat-die, openat-h, save-cwd.
6486         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6487         * modules/fdutimensat-tests (Depends-on): Add openat.
6488         * modules/fstatat-tests (Depends-on): Add openat-h.
6489         * modules/readlinkat-tests (Depends-on): Add openat.
6490         * modules/symlinkat-tests (Depends-on): Add openat.
6491
6492 2011-11-05  Bruno Haible  <bruno@clisp.org>
6493
6494         openat: Include <stdbool.h>.
6495         * lib/openat.c: Include <stdbool.h>.
6496
6497 2011-11-04  Bruno Haible  <bruno@clisp.org>
6498
6499         fchownat, renameat, unlinkat: Fix dependencies.
6500         * modules/fchownat (Depends-on): Add fstatat.
6501         * modules/renameat (Depends-on): Likewise.
6502         * modules/unlinkat (Depends-on): Likewise.
6503
6504 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6505
6506         openat: remove direct dependency on dirent
6507         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6508         and hasn't been needed ever since fdopendir was split into its own
6509         module on 2009-08-31.
6510         * modules/openat (Depends-on): Remove dirent.
6511
6512 2011-11-04  Bruno Haible  <bruno@clisp.org>
6513
6514         renameat: Optimize code size.
6515         * modules/renameat (configure.ac): Don't compile at-func2.c if
6516         REPLACE_RENAMEAT is 1.
6517
6518 2011-11-04  Bruno Haible  <bruno@clisp.org>
6519
6520         openat tests: Fix file list.
6521         * modules/openat-tests (Files): Add tests/test-open.h.
6522
6523 2011-11-04  Bruno Haible  <bruno@clisp.org>
6524
6525         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6526         * modules/fchmodat (Depends-on): Add openat-die.
6527         * modules/fchownat (Depends-on): Likewise.
6528         * modules/linkat (Depends-on): Likewise.
6529         * modules/renameat (Depends-on): Likewise.
6530         * modules/openat (Depends-on): Add dirent.
6531
6532 2011-11-04  Jim Meyering  <meyering@redhat.com>
6533
6534         at-func*.c: fix comments
6535         * lib/at-func2.c: Correct/improve first-line comment.
6536         * lib/at-func.c: Correct grammar in first-line comment.
6537
6538 2011-11-04  Bruno Haible  <bruno@clisp.org>
6539
6540         New module 'mkdirat', split off from module 'openat'.
6541         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6542         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6543         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6544         * modules/mkdirat: New file, extracted from modules/openat.
6545         * modules/openat (Files): Remove lib/mkdirat.c.
6546         (Depends-on): Remove mkdir.
6547         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6548         (Include): Remove <sys/stat.h>.
6549         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6550         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6551         tests/test-mkdir.h.
6552         (Depends-on): Remove ignore-value.
6553         (Makefile.am): Remove rules for test-mkdirat.
6554         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6555         of module 'openat'.
6556         * NEWS: Mention the change.
6557
6558 2011-11-04  Bruno Haible  <bruno@clisp.org>
6559
6560         closedir: Avoid warning on mingw.
6561         * lib/closedir.c: Include <unistd.h>.
6562
6563 2011-11-04  Bruno Haible  <bruno@clisp.org>
6564
6565         New module 'fstatat', split off from module 'openat'.
6566         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6567         defined.
6568         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6569         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6570         gl_FUNC_FSTATAT.
6571         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6572         * modules/fstatat: New file, extracted from modules/openat.
6573         * modules/openat (Files): Remove lib/fstatat.c.
6574         (Depends-on): Remove lstat.
6575         (configure.ac): Remove AC_LIBOBJ of fstatat.
6576         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6577         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6578         tests/test-lstat.h, tests/test-stat.h.
6579         (Depends-on): Remove getcwd-lgpl.
6580         (Makefile.am): Remove rules for test-fstatat.
6581         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6582         of module 'openat'.
6583         * NEWS: Mention the change.
6584         * modules/getcwd (Depends-on): Add fstatat.
6585         * modules/linkat (Depends-on): Likewise.
6586         * modules/mkfifoat-tests (Depends-on): Likewise.
6587         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6588
6589 2011-11-03  Bruno Haible  <bruno@clisp.org>
6590
6591         New module 'unlinkat', split off from module 'openat'.
6592         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6593         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6594         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6595         * modules/unlinkat: New file, extracted from modules/openat. Correct
6596         the dependency conditions.
6597         * modules/openat (Files): Remove lib/unlinkat.c.
6598         (Depends-on): Remove rmdir, unlink.
6599         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6600         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6601         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6602         tests/test-rmdir.h, tests/test-unlink.h.
6603         (Depends-on): Remove unlinkdir.
6604         (Makefile.am): Remove rules for test-unlinkat.
6605         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6606         of module 'openat'.
6607         * NEWS: Mention the change.
6608         * modules/linkat-tests (Depends-on): Add unlinkat.
6609         * modules/mkfifoat-tests (Depends-on): Likewise.
6610         * modules/readlinkat-tests (Depends-on): Likewise.
6611
6612 2011-11-02  Bruno Haible  <bruno@clisp.org>
6613
6614         New module 'fchmodat', split off from module 'openat'.
6615         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6616         defined.
6617         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6618         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6619         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6620         * modules/fchmodat: New file, extracted from modules/openat.
6621         * modules/openat (Files): Remove lib/fchmodat.c.
6622         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6623         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6624         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6625         (Makefile.am): Remove rules for test-fchmodat.
6626         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6627         of module 'openat'.
6628         * NEWS: Mention the change.
6629
6630 2011-11-02  Jim Meyering  <meyering@redhat.com>
6631
6632         putenv: indent #definition of "environ" to placate cppi
6633         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6634
6635         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6636         Git logs are often treated as immutable, because editing them
6637         changes the SHA1 checksums of all descendants.  Thus, errors in
6638         git logs tend to stay there forever.  However, when we generate
6639         a ChangeLog file -- typically for distribution -- from that git log,
6640         we can actually make corrections in the generated file.  The key
6641         lies in recording in machine-readable/applicable form the desired
6642         corrections.  See --help for description and an example.
6643         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6644         (usage): Describe it; alphabetize option descriptions.
6645         (main): Honor the new option, carefully.
6646
6647 2011-11-01  Jim Meyering  <meyering@redhat.com>
6648
6649         gitlog-to-changelog: avoid an infloop
6650         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6651         that ends up being empty.
6652
6653 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6654
6655         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6656         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6657         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6658         contains (possibly-quoted) backslashes.  This should avoid
6659         all-too-common shell bugs if COMPLICATED contains backslashes in
6660         the "wrong" places.  Reported by David Evans in
6661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6662         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6663         because we want ASCII ranges.  Is there some reason we don't use
6664         the C locale everywhere in this script?
6665         (func_module, top level): Avoid unwanted pathname expansion when
6666         $repo_url_prefix or $repo_url_suffix_repl contain shell
6667         metacharacters like '?' and '*'.
6668
6669 2011-11-01  Bruno Haible  <bruno@clisp.org>
6670
6671         fchownat: Improve description.
6672         * modules/fchownat (Description): Add link to function.
6673
6674 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6675
6676         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6677         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6679         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6680
6681 2011-11-01  Bruno Haible  <bruno@clisp.org>
6682
6683         alignof: Avoid collision with stdalign module.
6684         * lib/alignof.h (alignof): Remove macro.
6685         * NEWS: Mention the change.
6686         Reported by Paul Eggert.
6687
6688 2011-11-01  Bruno Haible  <bruno@clisp.org>
6689
6690         New module 'fchownat', split off from module 'openat'.
6691         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6692         defined.
6693         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6694         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6695         invoke gl_FUNC_FCHOWNAT.
6696         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6697         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6698         * modules/fchownat: New file, extracted from modules/openat.
6699         * modules/openat (Files): Remove lib/fchownat.c.
6700         (Depends-on): Remove lchown.
6701         (configure.ac): Remove AC_LIBOBJ of fchownat.
6702         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6703         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6704         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6705         (Depends-on): Remove mgetgroups, usleep, stat-time.
6706         (configure.ac): Remove test for getegid.
6707         (Makefile.am): Remove rules for test-fchownat.
6708         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6709         of module 'openat'.
6710         * NEWS: Mention the change.
6711
6712 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6713
6714         stdalign: port better to MSVC and to Sun C 5.11
6715         This fixes some of the problems reported by Bruno Haible in
6716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6717         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6718         shortcomings of MSVC and of Sun C 5.11.
6719         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6720         around __declspec arg.
6721         * modules/stdalign-tests (Files): Add tests/macros.h.
6722         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6723         Include macros.h, for ASSERT.
6724         (DECLARE_ALIGNED): Remove.
6725         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6726         to catch bug), and to 1 if not (simplifies the rest of the code).
6727         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6728         (CHECK_AUTO): Remove.
6729         (CHECK_ALIGNED): Check only the alignment of the static vars,
6730         since auto var alignment isn't supported by Sun C 5.11.
6731         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6732         ASSERT failures are easier to diagnose.
6733
6734 2011-10-31  Bruno Haible  <bruno@clisp.org>
6735
6736         doc about some IRIX 5.3 problems.
6737         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6738         on IRIX 5.3.
6739         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6740         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6741         5.3.
6742         * doc/posix-functions/grantpt.texi: Likewise.
6743         * doc/posix-functions/unlockpt.texi: Likewise.
6744         * doc/posix-functions/lgamma.texi: Likewise.
6745         * doc/posix-functions/nextafter.texi: Likewise.
6746         * doc/posix-functions/remainder.texi: Likewise.
6747         * doc/posix-functions/select.texi: Mention misplaced declaration on
6748         IRIX 5.3.
6749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6750
6751 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6752
6753         gitlog-to-changelog: fix git-log invocation.
6754         git-log mishandles date strings before 1970-01-01 UTC, and there is
6755         no use to specify --since=1970-01-01 by default anyway.
6756         * build-aux/gitlog-to-changelog: By default, when no --since option
6757         was given, do not specify explicit --since option to git-log.
6758
6759 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6760
6761         gitlog-to-changelog: new option --append-dot.
6762         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6763         first non-blank line of each commit message terminated with a dot.
6764
6765 2011-10-30  Bruno Haible  <bruno@clisp.org>
6766
6767         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6768         * lib/ffsl.h: Include <config.h>.
6769         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6770
6771 2011-10-30  Jim Meyering  <meyering@redhat.com>
6772
6773         GNUmakefile: reenable "make syntax-check" for most projects
6774         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6775         build-aux variable", "syntax-check" would do nothing but succeed with
6776         the "No version control files detected..." diagnostic (unless you
6777         happened to override _build-aux via cfg.mk).
6778         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6779         to precede inclusion of maint.mk.  Otherwise, these variables would
6780         be used undefined in any project that does not override the default.
6781
6782 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6783
6784         gitlog-to-changelog: treat a message with only blank lines as empty.
6785         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6786         trailing blank lines before the code that issues a warning about an
6787         empty commit message.
6788
6789 2011-10-30  Jim Meyering  <meyering@redhat.com>
6790
6791         test-parse-datetime.c: avoid new DST-related false positive test failure
6792         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6793         based on the time/date we'll convert, not the current time.
6794         Otherwise, the moment we cross a DST boundary like today's in
6795         Europe, (CEST to CET), that offset ends up being one hour off.
6796
6797 2011-10-27  Bruno Haible  <bruno@clisp.org>
6798
6799         fstat: Tweak documentation.
6800         * modules/fstat (Description): More precise description.
6801
6802 2011-10-27  Bruno Haible  <bruno@clisp.org>
6803
6804         Update documentation regarding 'largefile' module.
6805         * doc/posix-functions/fstat.texi: Tweak wording.
6806         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6807         problems with huge directories and/or small ino_t types.
6808         * doc/posix-functions/readdir.texi: Likewise.
6809         * doc/posix-functions/rewinddir.texi: Likewise.
6810
6811 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6812
6813         maint.mk: don't maintain a second build-aux variable.
6814         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6815         depends on GNUmakefile, which already maintains a cfg.mk
6816         overridable $(_build-aux) for projects with a non-standard
6817         build-aux directory location, although without the $(srcdir)
6818         prefix.  Use that variable consistently instead of introducing a
6819         second one.  Adjust all call sites.
6820
6821 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6822
6823         Add stdalign module and use it in other modules.
6824         This is based on a previous proposal by Bruno Haible
6825         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6826
6827         stdalign: new module
6828         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6829         * modules/stdalign: New files.
6830         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6831         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6832
6833         stdalign-tests: new module
6834         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6835
6836         argp: use stdalign
6837         * lib/argp-parse.c: Include <stdalign.h>.
6838         (alignof): Remove.
6839         * modules/argp (Depends-on): Add stdalign.
6840
6841         crypto libraries: use stdalign
6842         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6843         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6844         Do not include <stdlib.h> twice, in md4.c.
6845         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6846         because we are accessing a pointer's bit-pattern, not a size.
6847         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6848         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6849         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6850         * modules/crypto/sha512: Likewise.
6851
6852         sys_socket: use stdalign, not alignof
6853         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6854         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6855
6856 2011-10-27  Bruno Haible  <bruno@clisp.org>
6857
6858         raise test: Avoid a test failure on Linux/MIPS.
6859         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6860         because 99 is a valid signal on Linux/MIPS.
6861
6862 2011-10-27  Bruno Haible  <bruno@clisp.org>
6863
6864         nonblocking tests: Fix test failure on Linux/MIPS.
6865         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6866         Set to 270000.
6867
6868 2011-10-27  Bruno Haible  <bruno@clisp.org>
6869
6870         utimensat: Work around problem on Linux/hppa.
6871         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6872         values.
6873         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6874
6875 2011-10-25  Jim Meyering  <meyering@redhat.com>
6876
6877         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6878         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6879         after symbols like NULL, size_t, etc.
6880         Reported by Alfred M. Szmidt.
6881
6882         maint.mk: exempt ENODATA from a syntax-check rule
6883         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6884         from the sc_prohibit_always-defined_macros syntax-check rule.
6885         Add a comment.  See this for more details:
6886         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6887
6888 2011-10-23  Jim Meyering  <meyering@redhat.com>
6889
6890         fts: close parent dir FD before returning from post-traversal fts_read
6891         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6892         unlink A, even though an FD open on A remained.  This is suboptimal
6893         (holding a file descriptor open longer than needed), but otherwise not
6894         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6895         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6896         that represents a real problem: it causes the removal of A to fail
6897         with e.g., "rm: cannot remove `A': Device or resource busy"
6898
6899         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6900         directory file descriptors.  After completing the final, FTS_DP,
6901         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6902         cache, but then proceeded to add a new FD to it via the subsequent
6903         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6904         final file descriptor would be closed only via fts_close's call to
6905         fd_ring_clear.  Now, it is usually closed earlier, via the final
6906         FTS_DP-returning fts_read call.
6907         * lib/fts.c (restore_initial_cwd): New function, converted from
6908         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6909         Update callers.
6910         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6911         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6912
6913 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6914             Bruno Haible  <bruno@clisp.org>
6915             Jim Meyering  <jim@meyering.net>
6916
6917         readme-release: improve safety of release prep instructions.
6918         * README-release: Don't git pull all branches when only master
6919         is needed for the release process.
6920         Run make maintainer-clean before changing trees and merging.
6921         Don't try to run ./configure right after git pull in case files
6922         that influence the bootstrap process have changed, move the
6923         ./configure step to after running ./bootstrap.
6924         Don't bootstrap "one last time"... it's the first time!
6925
6926 2011-10-22  Bruno Haible  <bruno@clisp.org>
6927
6928         errno, strerror-override: Support for MSVC 10.
6929         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6930         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6931         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6932         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6933         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6934         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6935         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6936         Assign values compatible with MSVC 10.
6937         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6938         New macros.
6939         (GNULIB_defined_EWINSOCK): New macro.
6940         * lib/strerror-override.c (strerror_override): Update accordingly.
6941         * lib/strerror-override.h: Likewise.
6942         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6943         longer equal to the corresponding errno value.
6944         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6945
6946 2011-10-22  Bruno Haible  <bruno@clisp.org>
6947
6948         perror: Recognize when test program crashes.
6949         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6950         strerror, set gl_cv_func_perror_works to no.
6951         Reported by Daniel Richard G. <skunk@iskunk.org>.
6952
6953         perror: Fix indentation.
6954         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6955
6956 2011-10-22  Bruno Haible  <bruno@clisp.org>
6957
6958         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6959         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6960         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6961         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6962         functions, not as a macro.
6963         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6964         macros.
6965         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6966         absence of macro.
6967         Suggested by Eric Blake.
6968         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6969
6970 2011-10-21  Bruno Haible  <bruno@clisp.org>
6971
6972         relocatable-prog-wrapper: Don't leave object files behind.
6973         * build-aux/install-reloc: Re-synchronize list of .o files to be
6974         removed with list of compilation units.
6975
6976 2011-10-20  Bruno Haible  <bruno@clisp.org>
6977
6978         openpty, posix_openpt: Remove code duplication.
6979         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6980         * lib/openpty.c: Include <stdlib.h>.
6981         (openpty): Use posix_openpt on all platforms except IRIX.
6982         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6983
6984 2011-10-20  Bruno Haible  <bruno@clisp.org>
6985
6986         unlockpt: Detect invalid argument.
6987         * lib/unlockpt.c: Include <fcntl.h>.
6988         (unlockpt): Check whether fd is valid, using fcntl().
6989         * modules/unlockpt (Depends-on): Add fcntl-h.
6990
6991 2011-10-20  Bruno Haible  <bruno@clisp.org>
6992
6993         openpty: Avoid compilation error on AIX 6.1.
6994         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6995
6996 2011-10-20  Bruno Haible  <bruno@clisp.org>
6997
6998         posix_openpt: Support for OpenBSD.
6999         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7000         (posix_openpt) [OpenBSD]: New code.
7001         * lib/grantpt.c: Include <fcntl.h>.
7002         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7003         * modules/grantpt (Depends-on): Add fcntl-h.
7004
7005 2011-10-20  Bruno Haible  <bruno@clisp.org>
7006
7007         posix_openpt test: Coding style.
7008         * tests/test-posix_openpt.c: Use GNU coding style.
7009
7010 2011-10-20  Bruno Haible  <bruno@clisp.org>
7011
7012         grantpt: Support --avoid=pt_chown.
7013         * modules/grantpt (Files): Add lib/pty-private.h.
7014
7015 2011-10-20  Bruno Haible  <bruno@clisp.org>
7016
7017         posix_openpt: Fix autoconf macro.
7018         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7019         unneeded check for _getpty.
7020
7021 2011-10-20  Bruno Haible  <bruno@clisp.org>
7022
7023         openpty: Update comments.
7024         * lib/openpty.c: Add comments about Minix.
7025
7026 2011-10-19  Eric Blake  <eblake@redhat.com>
7027
7028         openpty: relax license
7029         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7030
7031         pt_chown: use configmake to simplify build
7032         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7033
7034         ptsname and others: relax license
7035         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7036         * modules/unlockpt (License): Likewise.
7037         * modules/pt_chown (License): Likewise.
7038         * modules/ptsname (License): Likewise.
7039         * modules/ttyname_r (License): Likewise.
7040
7041 2011-10-19  Jim Meyering  <meyering@redhat.com>
7042
7043         posix_openpt: remove spurious #endif
7044         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7045
7046 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7047
7048         maint.mk: Respect $(build_aux) in web-manual rule.
7049         * top/maint.mk (web-manual): Find gen-announce script in user's
7050         $(build_aux) directory instead of hard-coding 'build-aux'.
7051
7052 2011-10-19  Bruno Haible  <bruno@clisp.org>
7053
7054         posix_openpt: Fix compilation error.
7055         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7056         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7057         Mention the openpty module as an alternative.
7058
7059 2011-10-19  Bruno Haible  <bruno@clisp.org>
7060
7061         Support for old NeXTstep 3.3 frexp().
7062         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7063         execution time of the test to 5 seconds.
7064         Reported by Daniel Richard G. <skunk@iskunk.org>.
7065
7066 2011-10-19  Bruno Haible  <bruno@clisp.org>
7067
7068         Support for old NeXTstep 3.3 sed.
7069         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7070         part, use /.../, not \|...|. Escape periods in the header file name.
7071         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7072         Reported by Daniel Richard G. <skunk@iskunk.org>.
7073
7074 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7075
7076         Support for old NeXTstep 3.3 gcc.
7077         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7078         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7079         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7080         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7081         * lib/regex.h (_Restrict_arr_): Likewise.
7082         * lib/regex_internal.h (re_token_t): Likewise.
7083         * lib/regexec.c (check_node_accept_bytes): Likewise.
7084         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7085
7086 2011-10-18  Eric Blake  <eblake@redhat.com>
7087
7088         posix_openpt: new module
7089         * modules/posix_openpt: New module.
7090         * m4/posix_openpt.m4: New file.
7091         * lib/posix_openpt.c: Likewise.
7092         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7093         (gl_STDLIB_H_DEFAULTS): Set defaults.
7094         * modules/stdlib (Makefile.am): Substitute macros.
7095         * lib/stdlib.in.h (posix_openpt): Declare.
7096         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7097         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7098         * modules/posix_openpt-tests: New test module.
7099         * tests/test-posix_openpt.c: New test.
7100
7101 2011-10-15  Bruno Haible  <bruno@clisp.org>
7102
7103         xstrtoll: Fix compilation failure.
7104         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7105         from lib/strtol.c.
7106         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7107         some platforms.
7108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7109
7110 2011-10-15  Bruno Haible  <bruno@clisp.org>
7111
7112         vasnprintf: Optimize bit search operation.
7113         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7115         gl_DOUBLE_EXPONENT_LOCATION.
7116         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7117         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7118         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7119         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7120         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7121         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7122         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7123         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7124         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7125
7126 2011-10-15  Bruno Haible  <bruno@clisp.org>
7127
7128         vasnprintf: Fix comments.
7129         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7130
7131 2011-10-14  Bruno Haible  <bruno@clisp.org>
7132
7133         Tests for module 'integer_length_ll'.
7134         * modules/integer_length_ll-tests: New file.
7135         * tests/test-integer_length_ll.c: New file.
7136
7137         New module 'integer_length_ll'.
7138         * lib/integer_length_ll.c: New file.
7139         * modules/integer_length_ll: New file.
7140
7141 2011-10-14  Bruno Haible  <bruno@clisp.org>
7142
7143         Tests for module 'integer_length_l'.
7144         * modules/integer_length_l-tests: New file.
7145         * tests/test-integer_length_l.c: New file.
7146
7147         New module 'integer_length_l'.
7148         * lib/integer_length_l.c: New file.
7149         * modules/integer_length_l: New file.
7150
7151 2011-10-14  Bruno Haible  <bruno@clisp.org>
7152
7153         Tests for module 'integer_length'.
7154         * modules/integer_length-tests: New file.
7155         * tests/test-integer_length.c: New file.
7156
7157         New module 'integer_length'.
7158         * lib/integer_length.h: New file.
7159         * lib/integer_length.c: New file.
7160         * modules/integer_length: New file.
7161
7162 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7163
7164         popen: Fix dependency conditions.
7165         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7166
7167 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7168
7169         perror: Fix autoconf test.
7170         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7171         <stdlib.h> and <string.h>.
7172
7173 2011-10-14  Bruno Haible  <bruno@clisp.org>
7174
7175         ffsl: Optimize on 64-bit platforms.
7176         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7177         unrolling.
7178
7179 2011-10-13  Bruno Haible  <bruno@clisp.org>
7180
7181         ffsl: Optimize on 32-bit platforms.
7182         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7183         use ffs() without a loop.
7184
7185         ffsl, ffsll: Optimize for GCC.
7186         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7187         * lib/ffsl.c (GCC_BUILTIN): New macro.
7188         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7189
7190 2011-10-13  Bruno Haible  <bruno@clisp.org>
7191
7192         ffs, bcopy, memset: Support symbol renaming via config.h.
7193         * lib/ffs.c: Include <config.h>.
7194         * lib/bcopy.c: Likewise.
7195         * lib/memset.c: Likewise.
7196
7197 2011-10-10  Bruno Haible  <bruno@clisp.org>
7198
7199         atanl: Simplify for platforms where 'long double' == 'double'.
7200         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7201         alternative implementation.
7202         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7203         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7204         * modules/atanl (Depends-on): Add atan. Update conditions.
7205
7206 2011-10-10  Bruno Haible  <bruno@clisp.org>
7207
7208         acosl: Simplify for platforms where 'long double' == 'double'.
7209         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7210         alternative implementation.
7211         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7212         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7213         * modules/acosl (Depends-on): Add acos. Update conditions.
7214
7215 2011-10-10  Bruno Haible  <bruno@clisp.org>
7216
7217         asinl: Simplify for platforms where 'long double' == 'double'.
7218         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7219         alternative implementation.
7220         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7221         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7222         * modules/asinl (Depends-on): Add asin. Update conditions.
7223
7224 2011-10-10  Bruno Haible  <bruno@clisp.org>
7225
7226         tanl: Simplify for platforms where 'long double' == 'double'.
7227         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7228         implementation.
7229         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7230         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7231         * modules/tanl (Depends-on): Add tan. Update conditions.
7232         (configure.ac): Don't compile trigl.c if
7233         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7234
7235 2011-10-10  Bruno Haible  <bruno@clisp.org>
7236
7237         cosl: Simplify for platforms where 'long double' == 'double'.
7238         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7239         implementation.
7240         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7241         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7242         * modules/cosl (Depends-on): Add cos. Update conditions.
7243         (configure.ac): Don't compile sincosl.c and trigl.c if
7244         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7245
7246 2011-10-10  Bruno Haible  <bruno@clisp.org>
7247
7248         sinl: Simplify for platforms where 'long double' == 'double'.
7249         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7250         implementation.
7251         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7252         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7253         * modules/sinl (Depends-on): Add sin. Update conditions.
7254         (configure.ac): Don't compile sincosl.c and trigl.c if
7255         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7256
7257 2011-10-10  Bruno Haible  <bruno@clisp.org>
7258
7259         logl: Simplify for platforms where 'long double' == 'double'.
7260         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7261         implementation.
7262         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7263         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7264         * modules/logl (Depends-on): Add log. Update conditions.
7265
7266 2011-10-10  Bruno Haible  <bruno@clisp.org>
7267
7268         expl: Simplify for platforms where 'long double' == 'double'.
7269         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7270         implementation.
7271         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7272         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7273         * modules/expl (Depends-on): Add exp. Update conditions.
7274
7275 2011-10-10  Bruno Haible  <bruno@clisp.org>
7276
7277         sqrtl: Simplify for platforms where 'long double' == 'double'.
7278         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7279         alternative implementation.
7280         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7281         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7282         * modules/sqrtl (Depends-on): Update conditions.
7283
7284 2011-10-10  Bruno Haible  <bruno@clisp.org>
7285
7286         ldexpl: Simplify for platforms where 'long double' == 'double'.
7287         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7288         alternative implementation.
7289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7290         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7291         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7292
7293 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7294
7295         ffsll: set correct witness
7296         * modules/ffsll (configure.ac): Fix typo.
7297
7298 2011-10-10  Bruno Haible  <bruno@clisp.org>
7299
7300         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7301         * lib/printf-frexpl.c: Include <config.h>.
7302         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7303         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7304         second time.
7305         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7306         gl_LONG_DOUBLE_VS_DOUBLE.
7307         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7308         conditions.
7309
7310 2011-10-10  Bruno Haible  <bruno@clisp.org>
7311
7312         frexpl: Simplify for platforms where 'long double' == 'double'.
7313         * lib/frexpl.c: Include <config.h>.
7314         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7315         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7316         time.
7317         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7318         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7319         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7320         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7321         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7322         conditions.
7323
7324 2011-10-10  Jim Meyering  <meyering@redhat.com>
7325
7326         test-renameat: don't leave behind a temporary file
7327         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7328           ERROR: files left in build directory after distclean:
7329           ./gltests/test-renameat.too
7330           make[1]: *** [distcleancheck] Error 1
7331         Reported by Tom G. Christensen.
7332
7333 2011-10-09  Bruno Haible  <bruno@clisp.org>
7334
7335         rint: Determine RINT_LIBM correctly on AIX 7.
7336         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7337         directly, not only through a function pointer. Also accept an optional
7338         4th argument with extra code.
7339         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7340         rintf() call by gcc when optimizing.
7341
7342         mathfunc.m4: Refactor.
7343         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7344         m4 variable.
7345
7346 2011-10-09  Bruno Haible  <bruno@clisp.org>
7347
7348         rintl: Simplify for platforms where 'long double' == 'double'.
7349         * lib/rintl.c: Include <config.h>.
7350         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7351         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7352         time.
7353         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7354         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7355         * modules/rintl (Depends-on): Add rint. Update conditions.
7356
7357 2011-10-09  Bruno Haible  <bruno@clisp.org>
7358
7359         roundl: Simplify for platforms where 'long double' == 'double'.
7360         * lib/roundl.c: Include <config.h>.
7361         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7362         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7363         time.
7364         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7365         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7366         * modules/roundl (Depends-on): Add round. Update conditions.
7367
7368 2011-10-09  Bruno Haible  <bruno@clisp.org>
7369
7370         truncl: Simplify for platforms where 'long double' == 'double'.
7371         * lib/truncl.c: Include <config.h>.
7372         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7373         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7374         time.
7375         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7376         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7377         * modules/truncl (Depends-on): Add trunc. Update conditions.
7378
7379 2011-10-09  Bruno Haible  <bruno@clisp.org>
7380
7381         ceill: Simplify for platforms where 'long double' == 'double'.
7382         * lib/ceill.c: Include <config.h>.
7383         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7384         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7385         time.
7386         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7387         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7388         * modules/ceill (Depends-on): Add ceil. Update conditions.
7389
7390 2011-10-09  Bruno Haible  <bruno@clisp.org>
7391
7392         floorl: Simplify for platforms where 'long double' == 'double'.
7393         * lib/floorl.c: Include <config.h>.
7394         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7395         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7396         time.
7397         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7398         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7399         * modules/floorl (Depends-on): Add floor. Update conditions.
7400
7401 2011-10-09  Bruno Haible  <bruno@clisp.org>
7402
7403         rint: Fix ordering constraints.
7404         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7405         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7406         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7407
7408 2011-10-09  Bruno Haible  <bruno@clisp.org>
7409
7410         copysignl: Simplify for platforms where 'long double' == 'double'.
7411         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7412         alternative.
7413         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7414         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7415         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7416
7417 2011-10-09  Bruno Haible  <bruno@clisp.org>
7418
7419         Tests for module 'rintl'.
7420         * modules/rintl-tests: New file.
7421         * tests/test-rintl.c: New file.
7422
7423         New module 'rintl'.
7424         * lib/math.in.h (rintl): New declaration.
7425         * lib/rintl.c: New file.
7426         * m4/rintl.m4: New file.
7427         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7428         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7429         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7430         * modules/rintl: New file.
7431         * tests/test-math-c++.cc: Check the declaration of rintl.
7432         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7433         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7434         * doc/posix-functions/rintl.texi: Mention the new module.
7435
7436 2011-10-09  Bruno Haible  <bruno@clisp.org>
7437
7438         Tests for module 'rintf'.
7439         * modules/rintf-tests: New file.
7440         * tests/test-rintf.c: New file.
7441
7442         New module 'rintf'.
7443         * lib/math.in.h (rintf): New declaration.
7444         * lib/rintf.c: New file.
7445         * m4/rintf.m4: New file.
7446         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7448         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7449         * modules/rintf: New file.
7450         * tests/test-math-c++.cc: Check the declaration of rintf.
7451         * doc/posix-functions/rintf.texi: Mention the new module.
7452
7453 2011-10-09  Bruno Haible  <bruno@clisp.org>
7454
7455         rint: Support for MSVC.
7456         * lib/math.in.h (rint): New declaration.
7457         * lib/rint.c: New file.
7458         * m4/rint.m4: New file.
7459         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7461         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7462         * modules/rint (Description): Fix.
7463         (Files): Add lib/rint.c, m4/rint.m4.
7464         (Depends-on): Add math.
7465         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7466         gl_MATH_MODULE_INDICATOR.
7467         * tests/test-math-c++.cc: Check the declaration of rint.
7468         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7469         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7470         * doc/posix-functions/rint.texi: Mention the replacement provided by
7471         the module.
7472
7473         rint tests: More tests.
7474         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7475         minus-zero.h, infinity.h, nan.h.
7476         (main): Skip the test if the current rounding mode is not standard. Add
7477         tests for negative numbers, minus zero, infinity, NaN.
7478         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7479         tests/nan.h.
7480         (Depends-on): Add isnand-nolibm.
7481
7482 2011-10-09  Bruno Haible  <bruno@clisp.org>
7483
7484         Tests for module 'copysignl'.
7485         * modules/copysignl-tests: New file.
7486         * tests/test-copysignl.c: New file.
7487
7488         New module 'copysignl'.
7489         * lib/math.in.h (copysignl): New declaration.
7490         * lib/copysignl.c: New file.
7491         * m4/copysignl.m4: New file.
7492         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7494         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7495         HAVE_COPYSIGNL.
7496         * modules/copysignl: New file.
7497         * tests/test-math-c++.cc: Check the declaration of copysignl.
7498         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7499         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7500         * doc/posix-functions/copysignl.texi: Mention the new module.
7501
7502 2011-10-09  Bruno Haible  <bruno@clisp.org>
7503
7504         Tests for module 'copysignf'.
7505         * modules/copysignf-tests: New file.
7506         * tests/test-copysignf.c: New file.
7507
7508         New module 'copysignf'.
7509         * lib/math.in.h (copysignf): New declaration.
7510         * lib/copysignf.c: New file.
7511         * m4/copysignf.m4: New file.
7512         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7514         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7515         HAVE_COPYSIGNF.
7516         * modules/copysignf: New file.
7517         * tests/test-math-c++.cc: Check the declaration of copysignf.
7518         * doc/posix-functions/copysignf.texi: Mention the new module.
7519
7520 2011-10-09  Bruno Haible  <bruno@clisp.org>
7521
7522         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7523         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7524         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7525         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7526         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7527         gl_SIGNAL_H_DEFAULTS.
7528
7529 2011-10-09  Bruno Haible  <bruno@clisp.org>
7530
7531         poll: Make macro safer.
7532         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7533         ac_cv_header_poll_h is not set.
7534
7535 2011-10-09  Bruno Haible  <bruno@clisp.org>
7536
7537         copysign: Provide replacement.
7538         * lib/math.in.h (copysign): New declaration.
7539         * lib/copysign.c: New file.
7540         * m4/copysign.m4: New file.
7541         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7543         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7544         HAVE_COPYSIGN.
7545         * modules/copysign (Description): Clarify.
7546         (Files): Add lib/copysign.c, m4/copysign.m4.
7547         (Depends-on): Add math, signbit.
7548         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7549         gl_MATH_MODULE_INDICATOR.
7550         * tests/test-math-c++.cc: Check the declaration of copysign.
7551         * doc/posix-functions/copysign.texi: Mention the effects of the module
7552         on Minix and MSVC.
7553
7554 2011-10-09  Bruno Haible  <bruno@clisp.org>
7555
7556         isinf: Ensure macro on AIX 5.1.
7557         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7558         macro.
7559         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7560
7561 2011-10-09  Bruno Haible  <bruno@clisp.org>
7562
7563         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7564         * modules/snprintf-posix-tests (configure.ac): Require
7565         gl_LONG_DOUBLE_VS_DOUBLE.
7566         * modules/sprintf-posix-tests (configure.ac): Likewise.
7567         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7568         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7569         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7570         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7571         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7572         tests on platforms where 'long double' is the same as 'double'.
7573         * tests/test-sprintf-posix.h (test_function): Likewise.
7574         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7575         * tests/test-vasprintf-posix.c (test_function): Likewise.
7576
7577         *printf: Fix for platforms where 'long double' == 'double'.
7578         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7579         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7580         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7581         * modules/fprintf-posix (Files): Likewise.
7582         * modules/obstack-printf-posix (Files): Likewise.
7583         * modules/snprintf-posix (Files): Likewise.
7584         * modules/sprintf-posix (Files): Likewise.
7585         * modules/vasnprintf (Files): Likewise.
7586         * modules/vasnprintf-posix (Files): Likewise.
7587         * modules/vasprintf-posix (Files): Likewise.
7588         * modules/vdprintf-posix (Files): Likewise.
7589         * modules/vfprintf-posix (Files): Likewise.
7590         * modules/vsnprintf-posix (Files): Likewise.
7591         * modules/vsprintf-posix (Files): Likewise.
7592         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7593         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7594         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7595         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7596         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7597         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7598         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7599
7600         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7601         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7602         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7603         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7604         'long double'.
7605         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7606
7607         isinf: Fix for platforms where 'long double' == 'double'.
7608         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7609         Don't blindly assume 80-bit 'long double'.
7610
7611         isfinite: Fix for platforms where 'long double' == 'double'.
7612         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7613         Don't blindly assume 80-bit 'long double'.
7614
7615         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7616         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7617         * modules/isfinite-tests (configure.ac): Require
7618         gl_LONG_DOUBLE_VS_DOUBLE.
7619         * modules/isinf-tests (configure.ac): Likewise.
7620         * modules/isnan-tests (configure.ac): Likewise.
7621         * modules/isnanl-tests (configure.ac): Likewise.
7622         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7623         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7624         tests on platforms where 'long double' is the same as 'double'.
7625         * tests/test-isinf.c (test_isinfl): Likewise.
7626         * tests/test-isnan.c (test_long_double): Likewise.
7627         * tests/test-isnanl.h (main): Likewise.
7628
7629 2011-10-08  Bruno Haible  <bruno@clisp.org>
7630
7631         Tests for module 'tanhf'.
7632         * modules/tanhf-tests: New file.
7633         * tests/test-tanhf.c: New file.
7634
7635         New module 'tanhf'.
7636         * lib/math.in.h (tanhf): New declaration.
7637         * lib/tanhf.c: New file.
7638         * m4/tanhf.m4: New file.
7639         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7641         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7642         * modules/tanhf: New file.
7643         * tests/test-math-c++.cc: Check the declaration of tanhf.
7644         * doc/posix-functions/tanhf.texi: Mention the new module.
7645
7646         tanh: Use a .m4 file.
7647         * m4/tanh.m4: New file.
7648         * modules/tanh (Files): Add it.
7649         (configure.ac): Just invoke gl_FUNC_TANH.
7650
7651 2011-10-08  Bruno Haible  <bruno@clisp.org>
7652
7653         Tests for module 'coshf'.
7654         * modules/coshf-tests: New file.
7655         * tests/test-coshf.c: New file.
7656
7657         New module 'coshf'.
7658         * lib/math.in.h (coshf): New declaration.
7659         * lib/coshf.c: New file.
7660         * m4/coshf.m4: New file.
7661         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7663         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7664         * modules/coshf: New file.
7665         * tests/test-math-c++.cc: Check the declaration of coshf.
7666         * doc/posix-functions/coshf.texi: Mention the new module.
7667
7668         cosh: Use a .m4 file.
7669         * m4/cosh.m4: New file.
7670         * modules/cosh (Files): Add it.
7671         (configure.ac): Just invoke gl_FUNC_COSH.
7672
7673 2011-10-08  Bruno Haible  <bruno@clisp.org>
7674
7675         Tests for module 'sinhf'.
7676         * modules/sinhf-tests: New file.
7677         * tests/test-sinhf.c: New file.
7678
7679         New module 'sinhf'.
7680         * lib/math.in.h (sinhf): New declaration.
7681         * lib/sinhf.c: New file.
7682         * m4/sinhf.m4: New file.
7683         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7685         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7686         * modules/sinhf: New file.
7687         * tests/test-math-c++.cc: Check the declaration of sinhf.
7688         * doc/posix-functions/sinhf.texi: Mention the new module.
7689
7690         sinh: Use a .m4 file.
7691         * m4/sinh.m4: New file.
7692         * modules/sinh (Files): Add it.
7693         (configure.ac): Just invoke gl_FUNC_SINH.
7694
7695 2011-10-08  Bruno Haible  <bruno@clisp.org>
7696
7697         Tests for module 'atan2f'.
7698         * modules/atan2f-tests: New file.
7699         * tests/test-atan2f.c: New file.
7700
7701         New module 'atan2f'.
7702         * lib/math.in.h (atan2f): New declaration.
7703         * lib/atan2f.c: New file.
7704         * m4/atan2f.m4: New file.
7705         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7707         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7708         * modules/atan2f: New file.
7709         * tests/test-math-c++.cc: Check the declaration of atan2f.
7710         * doc/posix-functions/atan2f.texi: Mention the new module.
7711
7712         atan2: Use a .m4 file.
7713         * m4/atan2.m4: New file.
7714         * modules/atan2 (Files): Add it.
7715         (configure.ac): Just invoke gl_FUNC_ATAN2.
7716
7717 2011-10-08  Bruno Haible  <bruno@clisp.org>
7718
7719         Tests for module 'atanf'.
7720         * modules/atanf-tests: New file.
7721         * tests/test-atanf.c: New file.
7722
7723         New module 'atanf'.
7724         * lib/math.in.h (atanf): New declaration.
7725         * lib/atanf.c: New file.
7726         * m4/atanf.m4: New file.
7727         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7729         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7730         * modules/atanf: New file.
7731         * tests/test-math-c++.cc: Check the declaration of atanf.
7732         * doc/posix-functions/atanf.texi: Mention the new module.
7733
7734         atan: Use a .m4 file.
7735         * m4/atan.m4: New file.
7736         * modules/atan (Files): Add it.
7737         (configure.ac): Just invoke gl_FUNC_ATAN.
7738
7739 2011-10-08  Bruno Haible  <bruno@clisp.org>
7740
7741         Tests for module 'acosf'.
7742         * modules/acosf-tests: New file.
7743         * tests/test-acosf.c: New file.
7744
7745         New module 'acosf'.
7746         * lib/math.in.h (acosf): New declaration.
7747         * lib/acosf.c: New file.
7748         * m4/acosf.m4: New file.
7749         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7751         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7752         * modules/acosf: New file.
7753         * tests/test-math-c++.cc: Check the declaration of acosf.
7754         * doc/posix-functions/acosf.texi: Mention the new module.
7755
7756         acos: Use a .m4 file.
7757         * m4/acos.m4: New file.
7758         * modules/acos (Files): Add it.
7759         (configure.ac): Just invoke gl_FUNC_ACOS.
7760
7761 2011-10-08  Bruno Haible  <bruno@clisp.org>
7762
7763         Tests for module 'asinf'.
7764         * modules/asinf-tests: New file.
7765         * tests/test-asinf.c: New file.
7766
7767         New module 'asinf'.
7768         * lib/math.in.h (asinf): New declaration.
7769         * lib/asinf.c: New file.
7770         * m4/asinf.m4: New file.
7771         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7773         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7774         * modules/asinf: New file.
7775         * tests/test-math-c++.cc: Check the declaration of asinf.
7776         * doc/posix-functions/asinf.texi: Mention the new module.
7777
7778         asin: Use a .m4 file.
7779         * m4/asin.m4: New file.
7780         * modules/asin (Files): Add it.
7781         (configure.ac): Just invoke gl_FUNC_ASIN.
7782
7783 2011-10-08  Bruno Haible  <bruno@clisp.org>
7784
7785         Tests for module 'tanf'.
7786         * modules/tanf-tests: New file.
7787         * tests/test-tanf.c: New file.
7788
7789         New module 'tanf'.
7790         * lib/math.in.h (tanf): New declaration.
7791         * lib/tanf.c: New file.
7792         * m4/tanf.m4: New file.
7793         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7795         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7796         * modules/tanf: New file.
7797         * tests/test-math-c++.cc: Check the declaration of tanf.
7798         * doc/posix-functions/tanf.texi: Mention the new module.
7799
7800         tan: Use a .m4 file.
7801         * m4/tan.m4: New file.
7802         * modules/tan (Files): Add it.
7803         (configure.ac): Just invoke gl_FUNC_TAN.
7804
7805 2011-10-08  Bruno Haible  <bruno@clisp.org>
7806
7807         Tests for module 'cosf'.
7808         * modules/cosf-tests: New file.
7809         * tests/test-cosf.c: New file.
7810
7811         New module 'cosf'.
7812         * lib/math.in.h (cosf): New declaration.
7813         * lib/cosf.c: New file.
7814         * m4/cosf.m4: New file.
7815         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7817         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7818         * modules/cosf: New file.
7819         * tests/test-math-c++.cc: Check the declaration of cosf.
7820         * doc/posix-functions/cosf.texi: Mention the new module.
7821
7822         cos: Use a .m4 file.
7823         * m4/cos.m4: New file.
7824         * modules/cos (Files): Add it.
7825         (configure.ac): Just invoke gl_FUNC_COS.
7826
7827 2011-10-08  Bruno Haible  <bruno@clisp.org>
7828
7829         Tests for module 'sinf'.
7830         * modules/sinf-tests: New file.
7831         * tests/test-sinf.c: New file.
7832
7833         New module 'sinf'.
7834         * lib/math.in.h (sinf): New declaration.
7835         * lib/sinf.c: New file.
7836         * m4/sinf.m4: New file.
7837         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7839         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7840         * modules/sinf: New file.
7841         * tests/test-math-c++.cc: Check the declaration of sinf.
7842         * doc/posix-functions/sinf.texi: Mention the new module.
7843
7844         sin: Use a .m4 file.
7845         * m4/sin.m4: New file.
7846         * modules/sin (Files): Add it.
7847         (configure.ac): Just invoke gl_FUNC_SIN.
7848
7849 2011-10-08  Bruno Haible  <bruno@clisp.org>
7850
7851         Tests for module 'powf'.
7852         * modules/powf-tests: New file.
7853         * tests/test-powf.c: New file.
7854
7855         New module 'powf'.
7856         * lib/math.in.h (powf): New declaration.
7857         * lib/powf.c: New file.
7858         * m4/powf.m4: New file.
7859         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7861         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7862         * modules/powf: New file.
7863         * tests/test-math-c++.cc: Check the declaration of powf.
7864         * doc/posix-functions/powf.texi: Mention the new module.
7865
7866         pow: Use a .m4 file.
7867         * m4/pow.m4: New file.
7868         * modules/pow (Files): Add it.
7869         (configure.ac): Just invoke gl_FUNC_POW.
7870
7871 2011-10-08  Bruno Haible  <bruno@clisp.org>
7872
7873         Tests for module 'log10f'.
7874         * modules/log10f-tests: New file.
7875         * tests/test-log10f.c: New file.
7876
7877         New module 'log10f'.
7878         * lib/math.in.h (log10f): New declaration.
7879         * lib/log10f.c: New file.
7880         * m4/log10f.m4: New file.
7881         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7883         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7884         * modules/log10f: New file.
7885         * tests/test-math-c++.cc: Check the declaration of log10f.
7886         * doc/posix-functions/log10f.texi: Mention the new module.
7887
7888         log10: Use a .m4 file.
7889         * m4/log10.m4: New file.
7890         * modules/log10 (Files): Add it.
7891         (configure.ac): Just invoke gl_FUNC_LOG10.
7892
7893 2011-10-08  Bruno Haible  <bruno@clisp.org>
7894
7895         Tests for module 'logf'.
7896         * modules/logf-tests: New file.
7897         * tests/test-logf.c: New file.
7898
7899         New module 'logf'.
7900         * lib/math.in.h (logf): New declaration.
7901         * lib/logf.c: New file.
7902         * m4/logf.m4: New file.
7903         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7905         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7906         * modules/logf: New file.
7907         * tests/test-math-c++.cc: Check the declaration of logf.
7908         * doc/posix-functions/logf.texi: Mention the new module.
7909
7910         log: Use a .m4 file.
7911         * m4/log.m4: New file.
7912         * modules/log (Files): Add it.
7913         (configure.ac): Just invoke gl_FUNC_LOG.
7914
7915 2011-10-08  Bruno Haible  <bruno@clisp.org>
7916
7917         Tests for module 'expf'.
7918         * modules/expf-tests: New file.
7919         * tests/test-expf.c: New file.
7920
7921         New module 'expf'.
7922         * lib/math.in.h (expf): New declaration.
7923         * lib/expf.c: New file.
7924         * m4/expf.m4: New file.
7925         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7927         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7928         * modules/expf: New file.
7929         * tests/test-math-c++.cc: Check the declaration of expf.
7930         * doc/posix-functions/expf.texi: Mention the new module.
7931
7932         exp: Use a .m4 file.
7933         * m4/exp.m4: New file.
7934         * modules/exp (Files): Add it.
7935         (configure.ac): Just invoke gl_FUNC_EXP.
7936
7937 2011-10-08  Bruno Haible  <bruno@clisp.org>
7938
7939         Tests for module 'sqrtf'.
7940         * modules/sqrtf-tests: New file.
7941         * tests/test-sqrtf.c: New file.
7942
7943         New module 'sqrtf'.
7944         * lib/math.in.h (sqrtf): New declaration.
7945         * lib/sqrtf.c: New file.
7946         * m4/sqrtf.m4: New file.
7947         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7949         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7950         * modules/sqrtf: New file.
7951         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7952         * doc/posix-functions/sqrtf.texi: Mention the new module.
7953
7954 2011-10-08  Bruno Haible  <bruno@clisp.org>
7955
7956         Tests: Avoid link failures w.r.t. libintl.
7957         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7958         $(LIBINTL).
7959         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7960         $(LIBINTL).
7961         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7962         against $(LIBINTL).
7963         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7964         $(LIBINTL).
7965         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7966         $(LIBINTL).
7967         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7968
7969 2011-10-08  Bruno Haible  <bruno@clisp.org>
7970
7971         pow tests: Defeat compiler optimizations.
7972         * tests/test-pow.c (main): Assign arguments to x and y before use.
7973
7974 2011-10-08  Bruno Haible  <bruno@clisp.org>
7975
7976         gnulib-tool: Improve last commit.
7977         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7978         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7979         ignore dependencies that are not among the modules list.
7980
7981 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7982
7983         gnulib-tool: don't follow dependencies to avoided modules
7984         This fixes a bug that is related to the previous one.
7985         * gnulib-tool (func_modules_transitive_closure)
7986         (func_emit_autoconf_snippets):
7987         Check whether a dependency is acceptable before using it.
7988         (--extract-dependencies): Report an error if --avoid is also used,
7989         since this combination of options is not yet supported.
7990
7991         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7992         Problem reported by Peter Dyballa in
7993         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7994         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7995         when echoing "$condition".
7996
7997 2011-10-07  Bruno Haible  <bruno@clisp.org>
7998
7999         Fix documentation about math functions on MacOS X.
8000         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8001         MacOS X 10.5.
8002         * doc/posix-functions/fdim.texi: Likewise.
8003         * doc/posix-functions/feclearexcept.texi: Likewise.
8004         * doc/posix-functions/fegetenv.texi: Likewise.
8005         * doc/posix-functions/fegetround.texi: Likewise.
8006         * doc/posix-functions/feholdexcept.texi: Likewise.
8007         * doc/posix-functions/feraiseexcept.texi: Likewise.
8008         * doc/posix-functions/fesetenv.texi: Likewise.
8009         * doc/posix-functions/fesetround.texi: Likewise.
8010         * doc/posix-functions/fetestexcept.texi: Likewise.
8011         * doc/posix-functions/feupdateenv.texi: Likewise.
8012         * doc/posix-functions/fmax.texi: Likewise.
8013         * doc/posix-functions/fmin.texi: Likewise.
8014         * doc/posix-functions/log2.texi: Likewise.
8015         * doc/posix-functions/modff.texi: Likewise.
8016         * doc/posix-functions/nan.texi: Likewise.
8017         * doc/posix-functions/nanf.texi: Likewise.
8018         * doc/posix-functions/nextafterf.texi: Likewise.
8019         * doc/posix-functions/remquo.texi: Likewise.
8020
8021 2011-10-07  Bruno Haible  <bruno@clisp.org>
8022
8023         modff: Drop assumption about library that defines modff.
8024         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8025         AC_CHECK_FUNCS.
8026         * modules/modff (Files): Add m4/mathfunc.m4.
8027
8028 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8029
8030         raise tests: Avoid a GCC warning.
8031         * tests/test-raise.c (handler): Use _Noreturn.
8032
8033 2011-10-07  Bruno Haible  <bruno@clisp.org>
8034
8035         Tests for module 'ldexpf'.
8036         * modules/ldexpf-tests: New file.
8037         * tests/test-ldexpf.c: New file.
8038
8039         New module 'ldexpf'.
8040         * lib/math.in.h (ldexpf): New declaration.
8041         * lib/ldexpf.c: New file.
8042         * m4/ldexpf.m4: New file.
8043         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8045         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8046         * modules/ldexpf: New file.
8047         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8048         * doc/posix-functions/ldexpf.texi: Mention the new module.
8049
8050 2011-10-06  Bruno Haible  <bruno@clisp.org>
8051
8052         frexpf: Work around problems on IRIX and mingw.
8053         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8055         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8056         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8057         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8058         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8059         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8060
8061 2011-10-06  Bruno Haible  <bruno@clisp.org>
8062
8063         fabsf: Drop assumption about library that defines fabsf.
8064         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8065         AC_CHECK_FUNCS.
8066         * modules/fabsf (Files): Add m4/mathfunc.m4.
8067
8068 2011-10-06  Bruno Haible  <bruno@clisp.org>
8069
8070         frexpf: Drop assumption about library that defines frexpf.
8071         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8072         'int *', 'float *', 'long double *', 'float', 'long double'.
8073         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8074         AC_CHECK_FUNCS.
8075         * modules/frexpf (Files): Add m4/mathfunc.m4.
8076
8077         Tests for module 'frexpf'.
8078         * modules/frexpf-tests: New file.
8079         * tests/test-frexpf.c: New file.
8080
8081         New module 'frexpf'.
8082         * lib/math.in.h (frexpf): New declaration.
8083         * lib/frexpf.c: New file.
8084         * m4/frexpf.m4: New file.
8085         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8087         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8088         * modules/frexpf: New file.
8089         * tests/test-math-c++.cc: Check the declaration of frexpf.
8090         * doc/posix-functions/frexpf.texi: Mention the new module.
8091
8092 2011-10-06  Bruno Haible  <bruno@clisp.org>
8093
8094         math: Sort function declarations of math.in.h.
8095         * lib/math.in.h (frexp, logb): Move declarations.
8096
8097 2011-10-05  Bruno Haible  <bruno@clisp.org>
8098
8099         Tests for module 'modff'.
8100         * modules/modff-tests: New file.
8101         * tests/test-modff.c: New file.
8102
8103         New module 'modff'.
8104         * lib/math.in.h (modff): New declaration.
8105         * lib/modff.c: New file.
8106         * m4/modff.m4: New file.
8107         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8109         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8110         * modules/modff: New file.
8111         * tests/test-math-c++.cc: Check the declaration of modff.
8112         * doc/posix-functions/modff.texi: Mention the new module.
8113
8114         modf tests: Make test sharper.
8115         * tests/test-modf.c (main): Strengthen upper bound.
8116
8117         modf: Use a .m4 file.
8118         * m4/modf.m4: New file.
8119         * modules/modf (Files): Add it.
8120         (configure.ac): Just invoke gl_FUNC_MODF.
8121
8122 2011-10-05  Bruno Haible  <bruno@clisp.org>
8123
8124         Tests for module 'fmodf'.
8125         * modules/fmodf-tests: New file.
8126         * tests/test-fmodf.c: New file.
8127
8128         New module 'fmodf'.
8129         * lib/math.in.h (fmodf): New declaration.
8130         * lib/fmodf.c: New file.
8131         * m4/fmodf.m4: New file.
8132         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8134         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8135         * modules/fmodf: New file.
8136         * tests/test-math-c++.cc: Check the declaration of fmodf.
8137         * doc/posix-functions/fmodf.texi: Mention the new module.
8138
8139         fmod: Use a .m4 file.
8140         * m4/fmod.m4: New file.
8141         * modules/fmod (Files): Add it.
8142         (configure.ac): Just invoke gl_FUNC_FMOD.
8143
8144 2011-10-05  Bruno Haible  <bruno@clisp.org>
8145
8146         Tests for module 'fabsf'.
8147         * modules/fabsf-tests: New file.
8148         * tests/test-fabsf.c: New file.
8149
8150         New module 'fabsf'.
8151         * lib/math.in.h (fabsf): New declaration.
8152         * lib/fabsf.c: New file.
8153         * m4/fabsf.m4: New file.
8154         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8156         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8157         * modules/fabsf: New file.
8158         * tests/test-math-c++.cc: Check the declaration of fabsf.
8159         * doc/posix-functions/fabsf.texi: Mention the new module.
8160
8161         fabs: Use a .m4 file.
8162         * m4/fabs.m4: New file.
8163         * modules/fabs (Files): Add it.
8164         (configure.ac): Just invoke gl_FUNC_FABS.
8165
8166 2011-10-05  Jim Meyering  <meyering@redhat.com>
8167
8168         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8169         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8170         ls -lL regression introduced in coreutils-8.12, it does so at the
8171         cost of an additional stat call in the common case.  Besides, now
8172         that the kernel change that prompted commit 95f7c57f has been reverted
8173         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8174         we have no use for commit 95f7c57f, "file-has-acl: use
8175         acl_extended_file_nofollow if available".
8176
8177 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8178
8179         file-has-acl: revert unintended change in behavior of ls -L
8180         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8181         derived from...
8182         (file_has_acl): ...code here.  Call it.
8183         This problem was introduced with 2011-07-22 commit 95f7c57f,
8184         "file-has-acl: use acl_extended_file_nofollow if available".
8185         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8186
8187 2011-10-03  Bruno Haible  <bruno@clisp.org>
8188
8189         poll: Avoid link errors on MSVC.
8190         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8191         * modules/poll (Depends-on): Add sockets.
8192         (Link): New section.
8193         * NEWS: Mention the change.
8194         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8195         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8196         $(LIB_POLL) instead of $(LIBSOCKET).
8197
8198 2011-10-03  Bruno Haible  <bruno@clisp.org>
8199
8200         sys_select tests: Fix link error on MSVC 9.
8201         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8202         with $(LIB_SELECT) instead of $(LIBSOCKET).
8203
8204 2011-10-03  Bruno Haible  <bruno@clisp.org>
8205
8206         sys_select: Fix compilation error on mingw.
8207         * lib/sys_select.in.h: On native Windows, include <io.h>.
8208
8209 2011-10-03  Bruno Haible  <bruno@clisp.org>
8210
8211         wmemset: Support for MSVC.
8212         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8213         whether wmemset() exists.
8214
8215 2011-10-03  Bruno Haible  <bruno@clisp.org>
8216
8217         wmemmove: Support for MSVC.
8218         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8219         whether wmemmove() exists.
8220
8221 2011-10-03  Bruno Haible  <bruno@clisp.org>
8222
8223         wmemcpy: Support for MSVC.
8224         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8225         whether wmemcpy() exists.
8226
8227 2011-10-03  Bruno Haible  <bruno@clisp.org>
8228
8229         wmemcmp: Support for MSVC.
8230         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8231         whether wmemcmp() exists.
8232
8233 2011-10-03  Bruno Haible  <bruno@clisp.org>
8234
8235         wmemchr: Support for MSVC.
8236         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8237         whether wmemchr() exists.
8238
8239 2011-10-03  Bruno Haible  <bruno@clisp.org>
8240
8241         glthread/*, strsignal: Support for MSVC.
8242         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8243         including <winsock.h> on MSVC 9.
8244         * lib/glthread/lock.h: Likewise.
8245         * lib/glthread/thread.h: Likewise.
8246         * lib/glthread/tls.h: Likewise.
8247         * lib/glthread/yield.h: Likewise.
8248         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8249         if HAVE_UNISTD_H is false.
8250         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8251
8252 2011-10-03  Bruno Haible  <bruno@clisp.org>
8253
8254         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8255         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8256         Set to 100000.
8257
8258 2011-10-03  Bruno Haible  <bruno@clisp.org>
8259
8260         acl: Fix specification.
8261         * lib/file-has-acl.c (file_has_acl): Fix specification.
8262
8263 2011-10-03  Bruno Haible  <bruno@clisp.org>
8264
8265         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8266         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8267         (compute_curr_prefix, shared_library_fullname,
8268         find_shared_library_fullname, get_shared_library_fullname, relocate):
8269         Use it together with PIC && INSTALLDIR.
8270         Reported by <jojelino@gmail.com>
8271         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8272
8273 2011-10-01  Jim Meyering  <meyering@redhat.com>
8274
8275         maint.mk: adjust a release-related rule not to require use of gzip
8276         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8277         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8278         projects that build only .tar.xz files.  Also fix an erroneous test.
8279
8280         test-linkat: don't leave behind a temporary file
8281         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8282         Otherwise, coreutils' "make distcheck" would fail with this:
8283           Only in /c/cu/tests/torture/coreutils/test/\
8284             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8285           make[2]: *** [my-distcheck] Error 1
8286
8287         float, math: add omitted file
8288         * lib/itold.c: Add file, required for yesterday's float change.
8289
8290 2011-10-01  Bruno Haible  <bruno@clisp.org>
8291
8292         isinf: Fix for OpenBSD/x86.
8293         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8294         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8295         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8296
8297 2011-10-01  Bruno Haible  <bruno@clisp.org>
8298
8299         isfinite: Fix syntax error in configure test.
8300         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8301
8302         isfinite: Fix typo.
8303         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8304         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8305
8306 2011-10-01  Bruno Haible  <bruno@clisp.org>
8307
8308         nonblocking tests: Fix test failure on Linux/IA-64.
8309         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8310         Set to 270000.
8311
8312 2011-10-01  Bruno Haible  <bruno@clisp.org>
8313
8314         mkfifoat tests: Fix a test failure on mingw.
8315         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8316         with error ENOSYS.
8317
8318 2011-09-30  Bruno Haible  <bruno@clisp.org>
8319
8320         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8321         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8322         'long double'. Set REPLACE_ITOLD.
8323         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8324         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8325         * lib/itold.c: New file.
8326         * modules/float (Files): Add lib/itold.c.
8327         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8328         (Makefile.am): Substitute REPLACE_ITOLD.
8329         * modules/math (Depends-on): Add float.
8330         (Makefile.am): Substitute REPLACE_ITOLD.
8331         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8332         * doc/posix-headers/math.texi: Likewise.
8333         * doc/posix-functions/logl.texi: Likewise.
8334
8335 2011-09-30  Bruno Haible  <bruno@clisp.org>
8336
8337         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8338         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8339         Set to 140000.
8340
8341 2011-09-30  Bruno Haible  <bruno@clisp.org>
8342
8343         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8344         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8345         invocation, say "right after AC_PROG_CC_STDC", not "right after
8346         AC_PROG_CC".
8347         Reported by Gary V. Vaughan <gary@gnu.org>.
8348
8349 2011-09-30  Bruno Haible  <bruno@clisp.org>
8350
8351         Centralize C99 requirement.
8352         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8353         * modules/stdarg (configure.ac-early): Invoke it instead of
8354         AC_PROG_CC_STDC.
8355         Reported by Gary V. Vaughan and Paul Eggert.
8356
8357 2011-09-29  Bruno Haible  <bruno@clisp.org>
8358
8359         float: Fix LDBL_MAX value on Linux/PowerPC.
8360         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8361         on Linux/PowerPC.
8362         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8363         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8364         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8365         platform.
8366         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8367
8368 2011-09-29  Bruno Haible  <bruno@clisp.org>
8369
8370         doc: Improve doc about gl_EARLY.
8371         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8372         AC_PROG_CC_STDC invocation.
8373         Reported by Gary V. Vaughan <gary@gnu.org>.
8374
8375 2011-09-28  Bruno Haible  <bruno@clisp.org>
8376
8377         fgetc, fputc, fread, fwrite tests: Fix link error.
8378         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8379         on non-MSVC platforms.
8380         * tests/test-fputc.c (main): Likewise.
8381         * tests/test-fread.c (main): Likewise.
8382         * tests/test-fwrite.c (main): Likewise.
8383         Reported by Jim Meyering.
8384
8385 2011-09-27  Bruno Haible  <bruno@clisp.org>
8386
8387         fputc, fwrite tests: Avoid test failure on MSVC.
8388         * tests/test-fgetc.c: Include msvc-inval.h.
8389         (main): Invoke gl_msvc_inval_ensure_handler.
8390         * tests/test-fputc.c: Include msvc-inval.h.
8391         (main): Invoke gl_msvc_inval_ensure_handler.
8392         * tests/test-fread.c: Include msvc-inval.h.
8393         (main): Invoke gl_msvc_inval_ensure_handler.
8394         * tests/test-fwrite.c: Include msvc-inval.h.
8395         (main): Invoke gl_msvc_inval_ensure_handler.
8396         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8397         * modules/fputc-tests (Depends-on): Likewise.
8398         * modules/fread-tests (Depends-on): Likewise.
8399         * modules/fwrite-tests (Depends-on): Likewise.
8400
8401 2011-09-27  Bruno Haible  <bruno@clisp.org>
8402
8403         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8404         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8405         (raise): Remove older, duplicated declaration.
8406         (_gl_raise_SIGPIPE): New declaration.
8407         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8408         (rpl_raise): Remove function.
8409         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8410         a gnulib-defined SIGPIPE here.
8411         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8412         'sigprocmask' has detected missing signal-blocking and the module
8413         'sigpipe' is enabled.
8414         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8415
8416 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8417
8418         base64-tests: avoid memory leak
8419         * tests/test-base64.c (main): Plug memory leak.
8420
8421         base32: new module
8422         * modules/base32: New module.
8423         * lib/base32.c: New file.
8424         * lib/base32.h: Likewise.
8425         * m4/base32.m4: Likewise.
8426         * modules/base32-tests: New test.
8427         * tests/test-base32.c: Likewise.
8428         * MODULES.html.sh (Misc): Mention it.
8429
8430 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8431
8432         gnulib: use more-standard license notice wording
8433         * gnulib-tool (func_emit_copyright_notice): When emitting a
8434         license notice into a file, use the standard wording as suggested
8435         by the current information for GNU maintainers, except say "file"
8436         rather than "program".  The new wording gives a license version
8437         number, which addresses an issue raised by Glenn Morris in
8438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8439         * m4/onceonly.m4: Use that same wording here, too.
8440
8441         dup2: minor simplification
8442         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8443         as lib/dup2.c no longer uses 'inline'.
8444
8445 2011-09-25  Bruno Haible  <bruno@clisp.org>
8446
8447         strings: Fix compilation error on MSVC.
8448         * lib/strings.in.h: Include <stddef.h> for size_t.
8449
8450 2011-09-25  Bruno Haible  <bruno@clisp.org>
8451
8452         fflush et al.: Document limitation on MSVC.
8453         * doc/posix-functions/fflush.texi: Document possible crash in handling
8454         mode other than DEFAULT_HANDLING.
8455         * doc/posix-functions/fgetc.texi: Likewise.
8456         * doc/posix-functions/fputc.texi: Likewise.
8457         * doc/posix-functions/fread.texi: Likewise.
8458         * doc/posix-functions/fwrite.texi: Likewise.
8459
8460 2011-09-25  Bruno Haible  <bruno@clisp.org>
8461
8462         msvc-inval: Allow three invalid parameter handling modes.
8463         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8464         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8465         macros.
8466         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8467         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8468         SANE_LIBRARY_HANDLING as a no-op.
8469         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8470         <stdlib.h>.
8471         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8472
8473 2011-09-25  Bruno Haible  <bruno@clisp.org>
8474
8475         msvc-inval: Make handler multithread-safe.
8476         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8477         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8478         declarations.
8479         (gl_msvc_inval_current): New declaration.
8480         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8481         Operate on the structure returned by gl_msvc_inval_current().
8482         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8483         Remove varaiables.
8484         (tls_index, tls_initialized): New variables.
8485         (not_per_thread): New variable.
8486         (gl_msvc_inval_current): New function.
8487         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8488         returned by gl_msvc_inval_current().
8489
8490 2011-09-25  Bruno Haible  <bruno@clisp.org>
8491
8492         msvc-inval: Install handler globally.
8493         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8494         !_MSC_VER.
8495         (gl_msvc_invalid_parameter_handler): Remove declaration.
8496         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8497         declarations.
8498         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8499         Install the handler globally, don't uninstall it.
8500         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8501         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8502         currently valid, call RaiseException instead.
8503         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8504         for !_MSC_VER.
8505
8506 2011-09-25  Bruno Haible  <bruno@clisp.org>
8507
8508         strerror_r-posix: Fix for MSVC 9.
8509         * lib/strerror_r.c (local_snprintf): New function.
8510         (snprintf): Define to local_snprintf, not to _snprintf.
8511
8512 2011-09-25  Bruno Haible  <bruno@clisp.org>
8513
8514         ftruncate: Support for MSVC 9.
8515         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8516         (chsize_nothrow): New function.
8517         (chsize): Redefine as a macro.
8518         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8519         * modules/ftruncate (Depends-on): Add msvc-inval.
8520
8521 2011-09-25  Bruno Haible  <bruno@clisp.org>
8522
8523         New module 'fstat'.
8524         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8525         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8526         * lib/fchdir.c (rpl_fstat): Remove function.
8527         * m4/fstat.m4: New file.
8528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8530         declared.
8531         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8532         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8533         * modules/fstat: New file.
8534         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8535         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8536         is set.
8537         * doc/posix-functions/fstat.texi: Mention the new module and the
8538         problem on MSVC.
8539         * NEWS: Mention the change.
8540         * modules/acl (Depends-on): Add fstat.
8541         * modules/chdir-safer (Depends-on): Likewise.
8542         * modules/chown (Depends-on): Likewise.
8543         * modules/copy-file (Depends-on): Likewise.
8544         * modules/fchdir (Depends-on): Likewise.
8545         * modules/fdopendir (Depends-on): Likewise.
8546         * modules/fopen (Depends-on): Likewise.
8547         * modules/fts (Depends-on): Likewise.
8548         * modules/getcwd (Depends-on): Likewise.
8549         * modules/isapipe (Depends-on): Likewise.
8550         * modules/linkat (Depends-on): Likewise.
8551         * modules/lseek (Depends-on): Likewise.
8552         * modules/mkdir-p (Depends-on): Likewise.
8553         * modules/open (Depends-on): Likewise.
8554         * modules/openat (Depends-on): Likewise.
8555         * modules/read-file (Depends-on): Likewise.
8556         * modules/renameat (Depends-on): Likewise.
8557         * modules/utimens (Depends-on): Likewise.
8558
8559 2011-09-25  Bruno Haible  <bruno@clisp.org>
8560
8561         linkat: Fix compilation on MSVC 9.
8562         * lib/linkat.c: Don't include <stdint.h>.
8563
8564 2011-09-25  Bruno Haible  <bruno@clisp.org>
8565
8566         fclose: Support for MSVC 9.
8567         * lib/fclose.c: Include msvc-inval.h.
8568         (fclose_nothrow): New function.
8569         (rpl_fclose): Use it.
8570         * modules/fclose (Depends-on): Add msvc-inval.
8571         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8572
8573 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8574
8575         dup2: minor simplifications
8576         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8577         that it's a performance win.
8578         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8579         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8580
8581 2011-09-24  Jim Meyering  <meyering@redhat.com>
8582
8583         test-futimens: avoid a warning from gcc -Wshadow
8584         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8585         to avoid a shadowing warning.
8586
8587 2011-09-24  Bruno Haible  <bruno@clisp.org>
8588
8589         fdopen: Support for MSVC 9.
8590         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8591         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8592         * lib/fdopen.c: Include msvc-inval.h.
8593         (fdopen_nothrow): New function.
8594         (rpl_fdopen): Use it.
8595         * modules/fdopen (Depends-on): Add msvc-inval.
8596         * modules/fclose-tests (Depends-on): Add fdopen.
8597         * modules/fflush-tests (Depends-on): Likewise.
8598         * modules/fgetc-tests (Depends-on): Likewise.
8599         * modules/fputc-tests (Depends-on): Likewise.
8600         * modules/fread-tests (Depends-on): Likewise.
8601         * modules/freopen-tests (Depends-on): Likewise.
8602         * modules/fseeko-tests (Depends-on): Likewise.
8603         * modules/ftello-tests (Depends-on): Likewise.
8604         * modules/fwrite-tests  (Depends-on): Likewise.
8605         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8606
8607 2011-09-24  Bruno Haible  <bruno@clisp.org>
8608
8609         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8610         * modules/fgetc-tests (Depends-on): Add unistd.
8611         * modules/fputc-tests (Depends-on): Likewise.
8612         * modules/fread-tests (Depends-on): Likewise.
8613         * modules/fwrite-tests (Depends-on): Likewise.
8614
8615 2011-09-24  Bruno Haible  <bruno@clisp.org>
8616
8617         dup: Simplify autoconf test.
8618         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8619         on gl_MSVC_INVAL's result.
8620
8621 2011-09-24  Bruno Haible  <bruno@clisp.org>
8622
8623         Tests for function fwrite().
8624         * modules/fwrite-tests: New file.
8625         * tests/test-fwrite.c: New file.
8626         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8627
8628         Tests for function fread().
8629         * modules/fread-tests: New file.
8630         * tests/test-fread.c: New file.
8631         * modules/stdio-tests (Depends-on): Add fread-tests.
8632
8633         Activate fputc tests.
8634         * modules/stdio-tests (Depends-on): Add fputc-tests.
8635
8636         Enhance fgetc, fputc tests.
8637         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8638         * tests/test-fputc.c (main): Likewise.
8639
8640 2011-09-24  Bruno Haible  <bruno@clisp.org>
8641
8642         write: Support for MSVC 9.
8643         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8644         is not 1.
8645         * lib/write.c (write_nothrow): New function.
8646         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8647         not 1. Use write_nothrow.
8648         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8649         invalid parameter handler.
8650         (gl_PREREQ_WRITE): New macro.
8651         * modules/write (Depends-on): Add msvc-inval.
8652         (configure.ac): Invoke gl_PREREQ_WRITE.
8653         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8654
8655 2011-09-24  Bruno Haible  <bruno@clisp.org>
8656
8657         read: Fix last commit.
8658         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8659
8660 2011-09-24  Bruno Haible  <bruno@clisp.org>
8661
8662         dup2: Fix last commit.
8663         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8664         (rpl_dup2): Disable fcntl workaround on native Windows.
8665
8666         sigprocmask: Make code safer.
8667         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8668         section that changes macro definitions for this compilation unit.
8669
8670 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8671
8672         dup2: clarify by coalescing Windows-specific material
8673         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8674         "msvc-nothrow.h"' to the Windows-specific section, so that the
8675         Emacs source need not contain these include files.
8676         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8677         Windows-specific fixes into this function rather than just the
8678         nothrow fix, as this shortens and clarifies the code.  Always
8679         define as a function, as that's a bit cleaner than having it be
8680         sometimes a function and sometimes a macro.
8681         (rpl_dup2): Move the Windows-specific stuff out of here and into
8682         ms_windows_dup2.  Don't protect the Haiku-related fix with
8683         "#if !defined __linux__", as the same code also works around
8684         a Linux kernel bug, and it doesn't add any system calls on any
8685         platform.  Add comment about FreeBSD 6.1.
8686
8687         sigprocmask: move #include directive
8688         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8689         Windows-specific section, so that the Emacs source need not
8690         contain msvc-inval.h.
8691
8692 2011-09-23  Bruno Haible  <bruno@clisp.org>
8693
8694         read: Support for MSVC 9.
8695         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8696         is not 1.
8697         * lib/read.c (read_nothrow): New function.
8698         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8699         read_nothrow.
8700         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8701         invalid parameter handler.
8702         (gl_PREREQ_READ): New macro.
8703         * modules/read (Depends-on): Add msvc-inval.
8704         (configure.ac): Invoke gl_PREREQ_READ.
8705         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8706
8707 2011-09-23  Bruno Haible  <bruno@clisp.org>
8708
8709         close: Support for MSVC 9.
8710         * lib/close.c: Include <errno.h>, msvc-inval.h.
8711         (close_nothrow): New function.
8712         (rpl_close): Use it.
8713         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8714         invalid parameter handler.
8715         * modules/close (Depends-on): Add msvc-inval.
8716         * modules/dup2-tests (Depends-on): Add close.
8717         * modules/dup3-tests (Depends-on): Likewise.
8718         * modules/fcntl-tests (Depends-on): Likewise.
8719         * modules/spawn-pipe-tests (Depends-on): Likewise.
8720         * modules/unistd-safer-tests (Depends-on): Likewise.
8721         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8722
8723 2011-09-23  Bruno Haible  <bruno@clisp.org>
8724
8725         New module 'dup'.
8726         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8727         Allow replacement.
8728         * lib/dup.c: New file.
8729         * lib/fchdir.c (rpl_dup): Remove function.
8730         * m4/dup.m4: New file.
8731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8732         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8733         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8734         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8735         * modules/dup: New file.
8736         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8737         'dup' module is in use.
8738         * modules/fdopendir (Depends-on): Add dup.
8739         * modules/fdutimensat-tests (Depends-on): Likewise.
8740         * modules/fts (Depends-on): Likewise.
8741         * modules/futimens-tests (Depends-on): Likewise.
8742         * modules/posix_spawnp-tests (Depends-on): Likewise.
8743         * modules/unistd-safer-tests (Depends-on): Likewise.
8744         * modules/utimens-tests (Depends-on): Likewise.
8745         * doc/posix-functions/dup.texi: Mention the new module and the problem
8746         on MSVC.
8747
8748 2011-09-23  Bruno Haible  <bruno@clisp.org>
8749
8750         getdtablesize: Support for MSVC 9.
8751         * lib/getdtablesize.c: Include msvc-inval.h.
8752         (_setmaxstdio_nothrow): New function.
8753         (_setmaxstdio): Redefine it.
8754         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8755         * modules/getdtablesize (Depends-on): Add msvc-inval.
8756         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8757
8758 2011-09-23  Bruno Haible  <bruno@clisp.org>
8759
8760         signal-h: Rename from signal.
8761         * modules/signal-h: Renamed from modules/signal.
8762         * modules/pthread_sigmask (Depends-on): Update.
8763         * modules/raise (Depends-on): Likewise.
8764         * modules/sigaction (Depends-on): Likewise.
8765         * modules/sigpipe (Depends-on): Likewise.
8766         * modules/sigprocmask (Depends-on): Likewise.
8767         * modules/sys_select (Depends-on): Likewise.
8768         * modules/signal-h-tests: Renamed from modules/signal-tests.
8769         (Files, Depends-on, Makefile.am): Update.
8770         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8771         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8772         (Files, Makefile.am): Update.
8773         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8774         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8775         * modules/signal: New placeholder file.
8776         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8777         * doc/posix-headers/signal.texi: Update.
8778         * NEWS: Mention the change.
8779
8780 2011-09-23  Bruno Haible  <bruno@clisp.org>
8781
8782         sigprocmask: Avoid crashes through signal() on MSVC 9.
8783         * lib/sigprocmask.c: Include msvc-inval.h.
8784         (signal_nothrow): New function.
8785         (signal): Redefine it.
8786         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8787         * modules/sigprocmask (Depends-on): Add msvc-inval.
8788         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8789
8790 2011-09-23  Bruno Haible  <bruno@clisp.org>
8791
8792         Tests for module 'raise'.
8793         * modules/raise-tests: New file.
8794         * tests/test-raise.c: New file.
8795
8796         raise: Support for MSVC.
8797         * lib/signal.in.h (raise): New declaration.
8798         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8799         for native Windows platforms.
8800         * m4/raise.m4: New file.
8801         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8802         HAVE_RAISE, REPLACE_RAISE.
8803         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8804         REPLACE_RAISE.
8805         * modules/raise (Status, Notice): Remove fields.
8806         (Files): Add m4/raise.m4.
8807         (Depends-on): Add signal, msvc-inval.
8808         (configure.ac): Use the common idioms.
8809         (Maintainer): Add me.
8810         * tests/test-signal-c++.cc: Check the signature of raise.
8811         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8812
8813 2011-09-23  Bruno Haible  <bruno@clisp.org>
8814
8815         pipe2: Fix compilation on pre-C99 compilers.
8816         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8817
8818 2011-09-23  Bruno Haible  <bruno@clisp.org>
8819
8820         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8821         * lib/msvc-nothrow.h: New file.
8822         * lib/msvc-nothrow.c: New file.
8823         * m4/msvc-nothrow.m4: New file.
8824         * modules/msvc-nothrow: New file.
8825         * lib/dup2.c: Include msvc-nothrow.h.
8826         (rpl_dup2): No need to protect _get_osfhandle call here.
8827         * lib/accept4.c: Include msvc-nothrow.h.
8828         * lib/error.c: Likewise.
8829         * lib/fcntl.c: Likewise.
8830         * lib/lseek.c: Likewise.
8831         * lib/nonblocking.c: Likewise.
8832         * lib/poll.c: Likewise.
8833         * lib/read.c: Likewise.
8834         * lib/select.c: Likewise.
8835         * lib/sockets.h: Likewise.
8836         * lib/sockets.c: Likewise.
8837         * lib/stdio-read.c: Likewise.
8838         * lib/stdio-write.c: Likewise.
8839         * lib/write.c: Likewise.
8840         * lib/w32sock.h: Likewise.
8841         * lib/w32spawn.h: Likewise.
8842         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8843         * lib/fsync.c: Likewise.
8844         * lib/isapipe.c: Likewise.
8845         * modules/dup2 (Depends-on): Add msvc-nothrow.
8846         * modules/accept4 (Depends-on): Likewise.
8847         * modules/error (Depends-on): Likewise.
8848         * modules/fcntl (Depends-on): Likewise.
8849         * modules/lseek (Depends-on): Likewise.
8850         * modules/nonblocking (Depends-on): Likewise.
8851         * modules/poll (Depends-on): Likewise.
8852         * modules/read (Depends-on): Likewise.
8853         * modules/select (Depends-on): Likewise.
8854         * modules/sockets (Depends-on): Likewise.
8855         * modules/sigpipe (Depends-on): Likewise.
8856         * modules/write (Depends-on): Likewise.
8857         * modules/accept (Depends-on): Likewise.
8858         * modules/bind (Depends-on): Likewise.
8859         * modules/connect (Depends-on): Likewise.
8860         * modules/gethostname (Depends-on): Likewise.
8861         * modules/getpeername (Depends-on): Likewise.
8862         * modules/getsockname (Depends-on): Likewise.
8863         * modules/getsockopt (Depends-on): Likewise.
8864         * modules/ioctl (Depends-on): Likewise.
8865         * modules/listen (Depends-on): Likewise.
8866         * modules/recv (Depends-on): Likewise.
8867         * modules/recvfrom (Depends-on): Likewise.
8868         * modules/send (Depends-on): Likewise.
8869         * modules/sendto (Depends-on): Likewise.
8870         * modules/setsockopt (Depends-on): Likewise.
8871         * modules/shutdown (Depends-on): Likewise.
8872         * modules/socket (Depends-on): Likewise.
8873         * modules/execute (Depends-on): Likewise.
8874         * modules/spawn-pipe (Depends-on): Likewise.
8875         * modules/flock (Depends-on): Likewise.
8876         * modules/fsync (Depends-on): Likewise.
8877         * modules/isapipe (Depends-on): Likewise.
8878         * tests/test-cloexec.c: Include msvc-nothrow.h.
8879         * tests/test-dup-safer.c: Likewise.
8880         * tests/test-dup2.c: Likewise.
8881         * tests/test-dup3.c: Likewise.
8882         * tests/test-fcntl.c: Likewise.
8883         * tests/test-pipe.c: Likewise.
8884         * tests/test-pipe2.c: Likewise.
8885         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8886         * modules/unistd-safer-tests (Depends-on): Likewise.
8887         * modules/dup2-tests (Depends-on): Likewise.
8888         * modules/dup3-tests (Depends-on): Likewise.
8889         * modules/fcntl-tests (Depends-on): Likewise.
8890         * modules/pipe-posix-tests (Depends-on): Likewise.
8891         * modules/pipe2-tests (Depends-on): Likewise.
8892
8893 2011-09-23  Bruno Haible  <bruno@clisp.org>
8894
8895         dup2: Make code more maintainable.
8896         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8897         (rpl_dup2): Use it.
8898         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8899         * modules/dup2 (configure.ac): Invoke it.
8900         Reported by Paul Eggert.
8901
8902 2011-09-23  Bruno Haible  <bruno@clisp.org>
8903
8904         msvc-inval: Fix compilation error.
8905         * lib/msvc-inval.h: Include <excpt.h>.
8906
8907 2011-09-23  Bruno Haible  <bruno@clisp.org>
8908
8909         mkdir: Tweak for MSVC 9.
8910         * lib/sys_stat.in.h: Update comments.
8911         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8912
8913         Tests for module 'chdir'.
8914         * modules/chdir-tests: New file.
8915         * tests/test-chdir.c: New file.
8916
8917         New module 'chdir'.
8918         * modules/chdir: New file.
8919         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8920         (chdir): New declaration.
8921         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8922         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8923         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8924         * tests/test-unistd-c++.cc: Check signature of chdir.
8925         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8926         * modules/chdir-long (Depends-on): Add chdir.
8927         * modules/fchdir (Depends-on): Likewise.
8928         * modules/rename (Depends-on): Likewise.
8929         * modules/savewd (Depends-on): Likewise.
8930
8931         rmdir: Support for mingw, MSVC 9.
8932         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8933         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8934
8935         getcwd: Tweak for MSVC 9.
8936         * lib/unistd.in.h: Update comments.
8937         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8938
8939 2011-09-22  Bruno Haible  <bruno@clisp.org>
8940
8941         strerror_r-posix: Avoid a link error on MSVC.
8942         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8943         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8944
8945 2011-09-22  Bruno Haible  <bruno@clisp.org>
8946
8947         select: Avoid link errors on MSVC.
8948         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8949         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8950         * modules/pselect (Link): Likewise.
8951         * NEWS: Mention the change.
8952         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8953         test-select-stdin against $(LIB_SELECT).
8954         * modules/pselect-tests (Makefile.am): Link test-pselect against
8955         $(LIB_SELECT).
8956
8957 2011-09-22  Bruno Haible  <bruno@clisp.org>
8958
8959         select: Avoid compilation error on MSVC.
8960         * lib/select.c: Don't include <stdbool.h>.
8961
8962 2011-09-21  Bruno Haible  <bruno@clisp.org>
8963
8964         Consolidate all uses of PATH_MAX in *.m4 files.
8965         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8966         macros.
8967         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8968         and gl_PATHMAX_SNIPPET.
8969         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8970         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8971         * modules/chdir-long (Files): Add m4/pathmax.m4.
8972         * modules/getcwd (Files): Likewise.
8973
8974 2011-09-21  Bruno Haible  <bruno@clisp.org>
8975
8976         ftruncate: Un-deprecate, concentrate on Win32 support.
8977         * modules/ftruncate (Status, Notice): Remove sections.
8978         (Depends-on): Add largefile.
8979         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8980         non-mingw platforms.
8981         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8982         include <io.h>.
8983         * modules/perror-tests (Depends-on): Add ftruncate.
8984         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8985         'ftruncate' module.
8986
8987 2011-09-21  Bruno Haible  <bruno@clisp.org>
8988
8989         Add dependencies to new dirent related modules.
8990         * modules/opendir (Depends-on): Add closedir.
8991         * modules/getcwd (Depends-on): Add opendir, closedir.
8992         * modules/dirent-safer-tests (Depends-on): Likewise.
8993         * modules/fdopendir-tests (Depends-on): Likewise.
8994         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8995         * modules/renameat-tests (Depends-on): Likewise.
8996
8997 2011-09-21  Bruno Haible  <bruno@clisp.org>
8998
8999         opendir: Avoid compilation error on mingw.
9000         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9001         * modules/opendir (Depends-on): Add unistd.
9002
9003 2011-09-21  Bruno Haible  <bruno@clisp.org>
9004
9005         ftruncate tests: Avoid a test failure on mingw.
9006         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9007
9008 2011-09-21  Bruno Haible  <bruno@clisp.org>
9009
9010         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9011         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9012         native Windows.
9013
9014 2011-09-21  Bruno Haible  <bruno@clisp.org>
9015
9016         New module 'fdopen'.
9017         * lib/stdio.in.h (fdopen): New declaration.
9018         * lib/fdopen.c: New file.
9019         * m4/fdopen.m4: New file.
9020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9021         REPLACE_FDOPEN.
9022         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9023         REPLACE_FDOPEN.
9024         * modules/fdopen: New file.
9025         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9026         * tests/test-stdio-c++.cc: Check signature of fdopen.
9027         * doc/posix-functions/fdopen.texi: Mention the new module.
9028
9029 2011-09-21  Bruno Haible  <bruno@clisp.org>
9030
9031         unlockpt tests: Avoid test failure on NetBSD 5.1.
9032         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9033         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9034
9035 2011-09-21  Bruno Haible  <bruno@clisp.org>
9036
9037         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9038         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9039         * tests/test-getlogin_r.c (main): Likewise.
9040
9041 2011-09-20  Bruno Haible  <bruno@clisp.org>
9042
9043         time tests: Don't require pid_t.
9044         * doc/posix-headers/time.texi: Revert last change.
9045         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9046         * tests/test-time.c: Comment out the check for pid_t.
9047
9048 2011-09-20  Bruno Haible  <bruno@clisp.org>
9049
9050         fsync tests: Avoid a test failure on mingw.
9051         * tests/test-fsync.c (main): Allow a failure with EIO.
9052
9053 2011-09-20  Bruno Haible  <bruno@clisp.org>
9054
9055         euidaccess: Update comments.
9056         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9057
9058 2011-09-20  Bruno Haible  <bruno@clisp.org>
9059
9060         Ensure EBADF returns for socket functions on mingw.
9061         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9062         descriptor is invalid.
9063         * lib/bind.c (rpl_bind): Likewise.
9064         * lib/connect.c (rpl_connect): Likewise.
9065         * lib/getpeername.c (rpl_getpeername): Likewise.
9066         * lib/getsockname.c (rpl_getsockname): Likewise.
9067         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9068         * lib/listen.c (rpl_listen): Likewise.
9069         * lib/recv.c (rpl_recv): Likewise.
9070         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9071         * lib/send.c (rpl_send): Likewise.
9072         * lib/sendto.c (rpl_sendto): Likewise.
9073         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9074         * lib/shutdown.c (rpl_shutdown): Likewise.
9075
9076 2011-09-20  Bruno Haible  <bruno@clisp.org>
9077
9078         select tests: EBADF tests.
9079         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9080         test_bad_fd): New functions.
9081         (test_function): Invoke also test_bad_fd.
9082
9083 2011-09-20  Bruno Haible  <bruno@clisp.org>
9084
9085         Tests for module 'posix_spawn_file_actions_addopen.
9086         * modules/posix_spawn_file_actions_addopen-tests: New file.
9087         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9088
9089         Tests for module 'posix_spawn_file_actions_adddup2'.
9090         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9091         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9092
9093         Tests for module 'posix_spawn_file_actions_addclose'.
9094         * modules/posix_spawn_file_actions_addclose-tests: New file.
9095         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9096
9097 2011-09-20  Bruno Haible  <bruno@clisp.org>
9098
9099         Tests for module 'unlockpt'.
9100         * modules/unlockpt-tests: New file.
9101         * tests/test-unlockpt.c: New file.
9102         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9103
9104         Tests for module 'grantpt'.
9105         * modules/grantpt-tests: New file.
9106         * tests/test-grantpt.c: New file.
9107         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9108
9109 2011-09-20  Bruno Haible  <bruno@clisp.org>
9110
9111         freopen tests: EBADF tests.
9112         * tests/test-freopen.c: Include errno.h, unistd.h.
9113         (main): Add tests for EBADF, commented out for the moment.
9114
9115         fclose tests: EBADF tests.
9116         * tests/test-fclose.c (main): Add tests for EBADF.
9117
9118         fflush tests: EBADF tests.
9119         * tests/test-fflush.c: Include errno.h, macros.h.
9120         (main): Add tests for EBADF.
9121
9122         ftello tests: EBADF tests.
9123         * tests/test-ftello4.sh: New file.
9124         * tests/test-ftello4.c: New file.
9125         * modules/ftello-tests (Files): Add them.
9126         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9127
9128         fseeko tests: EBADF tests.
9129         * tests/test-fseeko4.sh: New file.
9130         * tests/test-fseeko4.c: New file.
9131         * modules/fseeko-tests (Files): Add them.
9132         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9133
9134         Tests for function fputc().
9135         * modules/fputc-tests: New file.
9136         * tests/test-fputc.c: New file.
9137         * modules/stdio-tests (Depends-on): Add fputc-tests.
9138
9139         Tests for function fgetc().
9140         * modules/fgetc-tests: New file.
9141         * tests/test-fgetc.c: New file.
9142         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9143
9144         Tests for function fdopen().
9145         * modules/fdopen-tests: New file.
9146         * tests/test-fdopen.c: New file.
9147         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9148
9149         Tests for module 'vdprintf'.
9150         * modules/vdprintf-tests: New file.
9151         * tests/test-vdprintf.c: New file.
9152
9153         Tests for module 'dprintf'.
9154         * modules/dprintf-tests: New file.
9155         * tests/test-dprintf.c: New file.
9156
9157 2011-09-20  Bruno Haible  <bruno@clisp.org>
9158
9159         Tests for module 'ioctl'.
9160         * modules/ioctl-tests: New file.
9161         * tests/test-ioctl.c: New file.
9162
9163 2011-09-20  Bruno Haible  <bruno@clisp.org>
9164
9165         fcntl tests: EBADF tests.
9166         * tests/test-fcntl.c (main): Add more tests for EBADF.
9167
9168 2011-09-20  Bruno Haible  <bruno@clisp.org>
9169
9170         utimensat tests: EBADF tests.
9171         * tests/test-utimensat.c (main): Add tests for EBADF.
9172
9173         renameat tests: EBADF tests.
9174         * tests/test-renameat.c (main): Add tests for EBADF.
9175
9176         mkfifoat tests: EBADF tests.
9177         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9178
9179         readlinkat tests: EBADF tests.
9180         * tests/test-readlinkat.c (main): Add tests for EBADF.
9181
9182         symlinkat tests: EBADF tests.
9183         * tests/test-symlinkat.c (main): Add tests for EBADF.
9184
9185         linkat tests: EBADF tests.
9186         * tests/test-linkat.c (main): Add tests for EBADF.
9187
9188         Tests for module 'faccessat'.
9189         * modules/faccessat-tests: New file.
9190         * tests/test-faccessat.c: New file.
9191
9192         fdopendir tests: EBADF tests.
9193         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9194
9195         openat tests: EBADF tests.
9196         * tests/test-fchownat.c (main): Add tests for EBADF.
9197         * tests/test-fstatat.c (main): Likewise.
9198         * tests/test-mkdirat.c (main): Likewise.
9199         * tests/test-openat.c (main): Likewise.
9200         * tests/test-unlinkat.c (main): Likewise.
9201         * tests/test-fchmodat.c: New file.
9202         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9203         (Makefile.am): Also run 'test-fchmodat'.
9204
9205 2011-09-20  Bruno Haible  <bruno@clisp.org>
9206
9207         utimens, futimens, fdutimensat tests: EBADF tests.
9208         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9209
9210         Tests for function fstat().
9211         * modules/fstat-tests: New file.
9212         * tests/test-fstat.c: New file.
9213         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9214
9215 2011-09-20  Bruno Haible  <bruno@clisp.org>
9216
9217         test-ttyname_r tests: EBADF tests.
9218         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9219
9220         Tests for module 'isatty'.
9221         * modules/isatty-tests: New file.
9222         * tests/test-isatty.c: New file.
9223
9224         Tests for module 'write'.
9225         * modules/write-tests: New file.
9226         * tests/test-write.c: New file.
9227
9228         Tests for module 'read'.
9229         * modules/read-tests: New file.
9230         * tests/test-read.c: New file.
9231
9232         pwrite tests: EBADF tests.
9233         * tests/test-pwrite.c (main): Add tests for EBADF.
9234
9235         pread tests: EBADF tests.
9236         * tests/test-pread.c (main): Add tests for EBADF.
9237
9238         lseek tests: EBADF tests.
9239         * tests/test-lseek.c (main): Add more tests for EBADF.
9240
9241         Tests for module 'ftruncate'.
9242         * modules/ftruncate-tests: New file.
9243         * tests/test-ftruncate.sh: New file.
9244         * tests/test-ftruncate.c: New file.
9245
9246         fsync tests: EBADF tests.
9247         * tests/test-fsync.c (main): Add more tests for EBADF.
9248
9249         fdatasync tests: EBADF tests.
9250         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9251
9252         Tests for module 'fchown'.
9253         * modules/fchown-tests: New file.
9254         * tests/test-fchown.c: New file.
9255
9256         Tests for module 'fchmod'.
9257         * modules/fchmod-tests: New file.
9258         * tests/test-fchmod.c: New file.
9259
9260         fchdir tests: EBADF tests.
9261         * tests/test-fchdir.c (main): Add more tests for EBADF.
9262
9263         dup2 tests: EBADF tests.
9264         * tests/test-dup2.c (main): Add more tests for EBADF.
9265
9266         Tests for module 'dup'.
9267         * modules/dup-tests: New file.
9268         * tests/test-dup.c: New file.
9269
9270         Tests for module 'close'.
9271         * modules/close-tests: New file.
9272         * tests/test-close.c: New file.
9273
9274 2011-09-20  Bruno Haible  <bruno@clisp.org>
9275
9276         Tests for module 'shutdown'.
9277         * modules/shutdown-tests: New file.
9278         * tests/test-shutdown.c: New file.
9279
9280         Tests for module 'setsockopt'.
9281         * modules/setsockopt-tests: New file.
9282         * tests/test-setsockopt.c: New file.
9283
9284         Tests for module 'sendto'.
9285         * modules/sendto-tests: New file.
9286         * tests/test-sendto.c: New file.
9287
9288         Tests for module 'send'.
9289         * modules/send-tests: New file.
9290         * tests/test-send.c: New file.
9291
9292         Tests for module 'recvfrom'.
9293         * modules/recvfrom-tests: New file.
9294         * tests/test-recvfrom.c: New file.
9295
9296         Tests for module 'recv'.
9297         * modules/recv-tests: New file.
9298         * tests/test-recv.c: New file.
9299
9300         Tests for module 'listen'.
9301         * modules/listen-tests: New file.
9302         * tests/test-listen.c: New file.
9303
9304         Tests for module 'getsockopt'.
9305         * modules/getsockopt-tests: New file.
9306         * tests/test-getsockopt.c: New file.
9307
9308         Tests for module 'getsockname'.
9309         * modules/getsockname-tests: New file.
9310         * tests/test-getsockname.c: New file.
9311
9312         Tests for module 'getpeername'.
9313         * modules/getpeername-tests: New file.
9314         * tests/test-getpeername.c: New file.
9315
9316         Tests for module 'connect'.
9317         * modules/connect-tests: New file.
9318         * tests/test-connect.c: New file.
9319
9320         Tests for module 'bind'.
9321         * modules/bind-tests: New file.
9322         * tests/test-bind.c: New file.
9323
9324         accept4 tests: Fix for native Windows.
9325         * tests/test-accept4.c: Include sockets.h.
9326         (main): Invoke gl_sockets_startup.
9327         * modules/accept4-tests (Depends-on): Add sockets.
9328
9329         accept tests: Fix for native Windows.
9330         * tests/test-accept.c: Include sockets.h.
9331         (main): Invoke gl_sockets_startup.
9332         * modules/accept-tests (Depends-on): Add sockets.
9333
9334 2011-09-19  Bruno Haible  <bruno@clisp.org>
9335
9336         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9337         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9338         do...while(0).
9339         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9340         Suggested by Paul Eggert.
9341
9342 2011-09-19  Bruno Haible  <bruno@clisp.org>
9343
9344         sched: Ensure pid_t is defined.
9345         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9346         not define pid_t.
9347         * lib/sched.in.h: Include <sys/types.h>.
9348         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9350
9351 2011-09-19  Bruno Haible  <bruno@clisp.org>
9352
9353         msvc-inval: Ensure the entire expansion is a single statement.
9354         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9355         of braces.
9356
9357 2011-09-19  Jim Meyering  <meyering@redhat.com>
9358
9359         tests: use printf, not echo in init.sh's warn_ function
9360         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9361         misbehave when given strings containing a backslash or starting
9362         with e.g., -n.  James Youngman suggested setting IFS.
9363
9364 2011-09-19  Eric Blake  <eblake@redhat.com>
9365
9366         futimens: enhance test
9367         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9368         closed non-negative fd.
9369
9370         date: accept 'hence' as opposite of 'ago'
9371         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9372         * tests/test-parse-datetime.c (main): Enhance test.
9373         Suggested by Jesse Wilson.
9374
9375 2011-09-19  Jim Meyering  <meyering@redhat.com>
9376
9377         getcwd: don't fail in a deep directory on a system without openat
9378         Before this change, getcwd would fail when called from a directory
9379         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9380         the non-openat implementation used "..", "../..", "../../..", etc.
9381         to access ancestor directories.  With too many, that string would
9382         be longer than PATH_MAX.
9383         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9384         using gnulib's openat replacement.
9385         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9386         we're using the replacement function.
9387
9388 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9389
9390         maint.mk: avoid warnings from perl about missing files
9391         * top/maint.mk (def_sym_regex): Ignore files listed in
9392         $(gl_other_headers_) that do not exist, say because a project
9393         does not use a corresponding module.
9394
9395 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9396
9397         stat: use pathmax.h only if needed
9398         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9399         This is better for Emacs, which does not have a mingw port and
9400         therefore can avoid the pathmax module.
9401
9402         utimens: remove dependency on dup2
9403         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9404         to work around the Linux kernel bug.
9405         * modules/utimens (Depends-on): Remove dup2.
9406
9407 2011-09-18  Bruno Haible  <bruno@clisp.org>
9408
9409         inet_ntop, inet_pton: Look for it also in libresolv.
9410         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9411         libnsl, search for it in libresolv.
9412         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9413         Needed on Solaris 7.
9414
9415 2011-09-18  Bruno Haible  <bruno@clisp.org>
9416
9417         accept, accept4 tests: Avoid link error on Solaris.
9418         * modules/accept-tests (Makefile.am): Link test-accept against
9419         $(LIBSOCKET).
9420         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9421         $(LIBSOCKET).
9422
9423         accept4: Avoid link error on Solaris.
9424         * modules/accept4 (Link): New section.
9425
9426         socket functions: Avoid link errors on Solaris.
9427         * modules/accept (Depends-on): Add socketlib.
9428         (Link): New section.
9429         * modules/bind (Depends-on): Add socketlib.
9430         (Link): New section.
9431         * modules/connect (Depends-on): Add socketlib.
9432         (Link): New section.
9433         * modules/getpeername (Depends-on): Add socketlib.
9434         (Link): New section.
9435         * modules/getsockname (Depends-on): Add socketlib.
9436         (Link): New section.
9437         * modules/getsockopt (Depends-on): Add socketlib.
9438         (Link): New section.
9439         * modules/listen (Depends-on): Add socketlib.
9440         (Link): New section.
9441         * modules/recv (Depends-on): Add socketlib.
9442         (Link): New section.
9443         * modules/recvfrom (Depends-on): Add socketlib.
9444         (Link): New section.
9445         * modules/send (Depends-on): Add socketlib.
9446         (Link): New section.
9447         * modules/sendto (Depends-on): Add socketlib.
9448         (Link): New section.
9449         * modules/setsockopt (Depends-on): Add socketlib.
9450         (Link): New section.
9451         * modules/shutdown (Depends-on): Add socketlib.
9452         (Link): New section.
9453         * modules/socket (Depends-on): Add socketlib.
9454         (Link): New section.
9455
9456 2011-09-18  Bruno Haible  <bruno@clisp.org>
9457
9458         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9459         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9460         than 5 seconds.
9461         * modules/ptsname-tests (configure.ac): Test for alarm.
9462
9463 2011-09-18  Bruno Haible  <bruno@clisp.org>
9464
9465         posix_spawn_file_actions_add*: Fix module dependencies.
9466         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9467         posix_spawn_file_actions_init.
9468         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9469         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9470
9471 2011-09-18  Bruno Haible  <bruno@clisp.org>
9472
9473         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9474         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9475         * tests/test-renameat.c (main): Likewise.
9476
9477 2011-09-18  Bruno Haible  <bruno@clisp.org>
9478
9479         Tests for module 'accept4'.
9480         * modules/accept4-tests: New file.
9481         * tests/test-accept4.c: New file.
9482
9483 2011-09-18  Bruno Haible  <bruno@clisp.org>
9484
9485         Tests for module 'accept'.
9486         * modules/accept-tests: New file.
9487         * tests/test-accept.c: New file.
9488
9489 2011-09-18  Bruno Haible  <bruno@clisp.org>
9490
9491         dup2: Support for MSVC.
9492         * lib/dup2.c: Include msvc-inval.h.
9493         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9494         _get_osfhandle calls.
9495         * modules/dup2 (Depends-on): Add msvc-inval.
9496         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9497
9498         New module 'msvc-inval'.
9499         * lib/msvc-inval.h: New file.
9500         * lib/msvc-inval.c: New file.
9501         * m4/msvc-inval.m4: New file.
9502         * modules/msvc-inval: New file.
9503
9504 2011-09-17  Bruno Haible  <bruno@clisp.org>
9505
9506         Tests for module 'pclose'.
9507         * modules/pclose-tests: New file.
9508
9509         New module 'pclose'.
9510         * lib/stdio.in.h (pclose): New declaration.
9511         * lib/pclose.c: New file.
9512         * m4/pclose.m4: New file.
9513         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9514         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9515         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9516         * modules/pclose: New file.
9517         * modules/popen-tests (Depends-on): Add pclose.
9518         * modules/popen-safer-tests (Depends-on): Likewise.
9519         * doc/posix-functions/pclose.texi: Mention the new module.
9520
9521 2011-09-17  Bruno Haible  <bruno@clisp.org>
9522
9523         popen: Support for MSVC.
9524         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9525         * lib/popen.c (popen): Provide alternate definition for native Windows.
9526         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9528         * modules/popen (Depends-on, configure.ac): Update condition.
9529         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9530         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9531         fixed.
9532
9533 2011-09-17  Bruno Haible  <bruno@clisp.org>
9534
9535         isnanl, isnand, isnanf: Work around MSVC bug.
9536         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9537
9538 2011-09-17  Bruno Haible  <bruno@clisp.org>
9539
9540         sys_socket tests: Fix recent mistake.
9541         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9542
9543 2011-09-17  Bruno Haible  <bruno@clisp.org>
9544
9545         putenv: Support for MSVC.
9546         * modules/putenv (Depends-on): Add environ.
9547         * lib/putenv.c (environ): Disable declaration.
9548         * lib/unistd.in.h: Update comment.
9549
9550 2011-09-17  Bruno Haible  <bruno@clisp.org>
9551
9552         math: Avoid macro redefinition warnings on MSVC.
9553         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9554         Undefine before redefining.
9555
9556 2011-09-17  Bruno Haible  <bruno@clisp.org>
9557
9558         doc: Mention functions which are declared as macros.
9559         * doc/posix-functions/*[fl].texi: Mention that some functions are
9560         defined as macros with arguments only.
9561
9562 2011-09-17  Bruno Haible  <bruno@clisp.org>
9563
9564         Add dependencies to new dirent related modules.
9565         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9566         * modules/fts (Depends-on): Likewise.
9567         * modules/glob (Depends-on): Likewise.
9568         * modules/savedir (Depends-on): Likewise.
9569         * modules/scandir (Depends-on): Likewise.
9570         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9571         * modules/fdopendir (Depends-on): Add opendir.
9572
9573 2011-09-17  Bruno Haible  <bruno@clisp.org>
9574
9575         inet_pton: Support for MSVC on Windows Vista or newer.
9576         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9577         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9578         HAVE_DECL_INET_PTON is defined.
9579         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9580         On platforms with <winsock2.h>, test whether inet_pton is declared in
9581         <ws2tcpip.h>. If so, arrange to replace it.
9582         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9583         REPLACE_INET_PTON.
9584         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9585         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9586         (Depends-on, configure.ac): Update condition.
9587         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9588
9589 2011-09-17  Bruno Haible  <bruno@clisp.org>
9590
9591         inet_ntop: Support for MSVC on Windows Vista or newer.
9592         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9593         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9594         HAVE_DECL_INET_NTOP is defined.
9595         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9596         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9597         <ws2tcpip.h>. If so, arrange to replace it.
9598         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9599         REPLACE_INET_NTOP.
9600         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9601         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9602         (Depends-on, configure.ac): Update condition.
9603         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9604
9605 2011-09-16  Eric Blake  <eblake@redhat.com>
9606
9607         test-fsync: yet another enhancement
9608         * tests/test-fsync.c (main): Also test behavior on read-only text
9609         file.
9610
9611 2011-09-16  Bruno Haible  <bruno@clisp.org>
9612
9613         Enhance fsync, fdatasync tests.
9614         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9615         * tests/test-fdatasync.c (main): Likewise.
9616
9617 2011-09-16  Bruno Haible  <bruno@clisp.org>
9618
9619         Support for MSVC compiler: Ensure mode_t gets defined.
9620         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9621         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9623         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9624         * tests/test-fcntl-h.c: Check that mode_t is defined.
9625         * tests/test-sys_stat.c: Likewise.
9626         * tests/test-sys_types.c: Likewise.
9627         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9628         * doc/posix-headers/sys_stat.texi: Likewise.
9629         * doc/posix-headers/sys_types.texi: Likewise.
9630
9631 2011-09-16  Bruno Haible  <bruno@clisp.org>
9632
9633         sys_stat: Support for MSVC.
9634         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9635         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9636         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9637         MSVC.
9638
9639 2011-09-16  Bruno Haible  <bruno@clisp.org>
9640
9641         Support for MSVC compiler: Ensure off_t gets defined.
9642         * lib/unistd.in.h: Include <sys/types.h>.
9643         * tests/test-fcntl-h.c: Check that off_t is defined.
9644         * tests/test-sys_stat.c: Likewise.
9645         * tests/test-sys_types.c: Likewise.
9646
9647 2011-09-16  Eric Blake  <eblake@redhat.com>
9648
9649         fdatasync: port to Solaris
9650         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9651         * modules/fdatasync (Link): Document it.
9652         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9653
9654         fdatasync: port to MacOS X 10.7
9655         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9656         declared.
9657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9658         * modules/unistd (Makefile.am): Substitute it.
9659         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9660         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9661
9662         fdatasync: minor improvements
9663         * modules/fdatasync (Depends-on): Add condition for fsync.
9664         * lib/fdatasync.c (fdatasync): Add comment.
9665         * tests/test-unistd-c++.cc: Test fdatasync.
9666
9667         unistd: update refs to newer POSIX
9668         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9669         Suggested by Bruno Haible.
9670
9671         fdatasync: new module
9672         * modules/fsync (Description): Document difference to fdatasync.
9673         * modules/fdatasync: New module.
9674         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9675         * lib/fdatasync.c (fdatasync): Likewise.
9676         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9677         defaults.
9678         * modules/unistd (Makefile.am): Set witnesses.
9679         * lib/unistd.in.h (fdatasync): Declare.
9680         * MODULES.html.sh: Document it.
9681         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9682         * modules/fdatasync-tests: New test.
9683         * tests/test-fdatasync.c: Likewise.
9684
9685 2011-09-16  Eric Blake  <eblake@redhat.com>
9686
9687         test-fsync: enhance tests
9688         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9689         * tests/test-fsync.c (main): Enhance test.
9690
9691 2011-09-15  Bruno Haible  <bruno@clisp.org>
9692
9693         Support for MSVC compiler: Ensure ssize_t gets defined.
9694         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9695         * doc/posix-headers/stdio.texi: Likewise.
9696         * modules/stdio (Depends-on): Add ssize_t.
9697         * modules/sys_socket (Depends-on): Likewise.
9698         * modules/sys_types (Depends-on): Likewise.
9699         * modules/sys_uio (Depends-on): Likewise.
9700         * modules/unistd (Depends-on): Likewise.
9701         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9702         * tests/test-sys_types.c: Check that ssize_t is defined.
9703
9704 2011-09-14  Bruno Haible  <bruno@clisp.org>
9705
9706         Avoid using #, the m4 comment starter character, near brackets.
9707         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9708         delimiter character in sed expressions.
9709         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9710         Suggested by Eric Blake.
9711
9712         Properly quote AC_CHECK_DECLS' 4th argument.
9713         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9714         argument.
9715         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9716         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9717         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9718         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9719         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9720         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9721         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9722         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9723         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9724         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9725         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9726         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9727         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9728         * m4/isinf.m4 (gl_ISINF): Likewise.
9729         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9730         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9731         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9732         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9734         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9735         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9736         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9737         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9738         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9739         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9740         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9742         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9744         Reported by Eric Blake.
9745
9746         Properly quote AC_CHECK_DECL's 4th argument.
9747         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9748         argument.
9749         * m4/argp.m4 (gl_ARGP): Likewise.
9750         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9751         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9752         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9753         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9754         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9755         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9757         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9758         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9759         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9760         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9761         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9762         Reported by Eric Blake.
9763
9764 2011-09-14  Eric Blake  <eblake@redhat.com>
9765
9766         opendir: avoid compile warning
9767         * lib/opendir.c (includes): Always include errno.h.
9768         Reported by Tatsuro MATSUOKA.
9769
9770 2011-09-14  Jim Meyering  <meyering@redhat.com>
9771
9772         maint.mk: sc_tight_scope: propagate failure from sub-make
9773         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9774         Reported by Martin von Gagern.
9775
9776 2011-09-13  Bruno Haible  <bruno@clisp.org>
9777
9778         tempname: Support for MSVC.
9779         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9780         MSVC.
9781         * modules/tempname (Depends-on): Add fcntl-h.
9782
9783 2011-09-13  Bruno Haible  <bruno@clisp.org>
9784
9785         sys_time: Support for MSVC.
9786         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9787         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9788         include <winsock2.h>.
9789         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9790         function declarations that collide with POSIX.
9791         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9792         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9793
9794 2011-09-13  Bruno Haible  <bruno@clisp.org>
9795
9796         stat: Support for MSVC.
9797         * lib/stat.c: Include pathmax.h.
9798         * modules/stat (Depends-on): Add pathmax.
9799
9800         pathmax: Support for native Windows.
9801         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9802
9803 2011-09-12  Bruno Haible  <bruno@clisp.org>
9804
9805         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9806         * lib/dirent.in.h (struct dirent): New type.
9807         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9808         DT_WHT): New macros.
9809         (DIR): New type.
9810         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9811         (readdir, rewinddir): New declarations.
9812         * lib/dirent-private.h: New file.
9813         * lib/opendir.c: New file.
9814         * lib/readdir.c: New file.
9815         * lib/rewinddir.c: New file.
9816         * lib/closedir.c: New file.
9817         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9818         * m4/opendir.m4: New file.
9819         * m4/readdir.m4: New file.
9820         * m4/rewinddir.m4: New file.
9821         * m4/closedir.m4: New file.
9822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9823         REPLACE_CLOSEDIR here.
9824         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9825         readdir, rewinddir are declared.
9826         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9827         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9828         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9829         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9830         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9831         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9832         * modules/opendir: New file.
9833         * modules/readdir: New file.
9834         * modules/rewinddir: New file.
9835         * modules/closedir: New file.
9836         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9837         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9838         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9839         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9840         * NEWS: Mention the 'fchdir' change.
9841
9842 2011-09-11  Bruno Haible  <bruno@clisp.org>
9843
9844         asm-underscore.m4: Support for MSVC.
9845         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9846         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9847
9848 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9849
9850         Doc about crypt functions.
9851         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9852         needing for _GNU_SOURCE to get crypt.
9853         * doc/posix-functions/encrypt.texi: Likewise.
9854         * doc/posix-functions/setkey.texi: Likewise.
9855
9856 2011-09-11  Bruno Haible  <bruno@clisp.org>
9857
9858         doc: Update regarding MSVC 9.
9859         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9860         tested".
9861         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9862         * doc/posix-headers/*.texi: Likewise.
9863         * doc/pastposix-functions/*.texi: Likewise.
9864         * doc/glibc-functions/*.texi: Likewise.
9865         * doc/glibc-headers/*.texi: Likewise.
9866
9867 2011-09-11  Bruno Haible  <bruno@clisp.org>
9868
9869         unistd et al.: Don't assume <unistd.h> exists.
9870         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9871         does not exist.
9872         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9873         exist. But include <stdlib.h>.
9874         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9875         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9876         symlink() does not exist.
9877         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9878         include <io.h> instead.
9879         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9880         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9881         include <direct.h> instead.
9882         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9883         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9884         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9885         <io.h> instead.
9886         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9887         correctly if the system does not have hard links.
9888         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9889         <direct.h> instead.
9890         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9891         it when looking for function declarations.
9892         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9893         <direct.h> and <io.h> instead.
9894         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9895
9896 2011-09-11  Bruno Haible  <bruno@clisp.org>
9897
9898         strcase: Support for MSVC.
9899         * modules/strcase (Status, Notice): Remove obsoletion mark.
9900         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9901         * doc/posix-functions/strncasecmp.texi: Likewise.
9902
9903         strings: Don't assume <strings.h> exists.
9904         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9905         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9906         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9907         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9908
9909 2011-09-11  Bruno Haible  <bruno@clisp.org>
9910
9911         dirent: Don't assume <dirent.h> exists.
9912         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9913         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9914         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9915         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9916
9917 2011-09-11  Bruno Haible  <bruno@clisp.org>
9918
9919         Fix wint_t on MSVC.
9920         * lib/wchar.in.h (wint_t): On MSVC, override it.
9921         * lib/wctype.in.h (wint_t): Likewise.
9922         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9923         MSVC.
9924         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9925         * doc/posix-headers/wctype.texi: Likewise.
9926
9927 2011-09-11  Bruno Haible  <bruno@clisp.org>
9928
9929         sys_types: Fix typo.
9930         * lib/sys_types.in.h: Fix typo in comment.
9931         Reported by Paul Eggert.
9932
9933         Support for MSVC compiler: Ensure size_t gets defined.
9934         * modules/strings (Depends-on): Add 'sys_types'.
9935         * modules/sys_uio (Depends-on): Likewise.
9936         * lib/sys_uio.in.h: Update comment.
9937
9938         C++ tests for module 'sys_types'.
9939         * modules/sys_types-c++-tests: New file.
9940         * tests/test-sys_types-c++.cc: New file.
9941
9942         Tests for module 'sys_types'.
9943         * modules/sys_types-tests: New file.
9944         * tests/test-sys_types.c: New file.
9945
9946         New module 'sys_types'.
9947         * lib/sys_types.in.h: New file.
9948         * m4/sys_types_h.m4: New file.
9949         * modules/sys_types: New file.
9950         * doc/posix-headers/sys_types.texi: Mention the new module and the
9951         size_t problem on MSVC 9.
9952
9953 2011-09-11  Bruno Haible  <bruno@clisp.org>
9954
9955         Support for MSVC compiler: Avoid division by a literal 0.
9956         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9957         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9958         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9959         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9960         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9961         * tests/infinity.h: New file.
9962         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9963         on MSVC.
9964         * tests/test-ceilf1.c: Include infinity.h.
9965         (main): Use Infinityf.
9966         * tests/test-ceil1.c: Include infinity.h.
9967         (main): Use Infinityd.
9968         * tests/test-ceill.c: Include infinity.h.
9969         (main): Use Infinityl.
9970         * tests/test-dprintf-posix.c: Include infinity.h.
9971         (test_function): Use Infinityd.
9972         * tests/test-floorf1.c: Include infinity.h.
9973         (main): Use Infinityf.
9974         * tests/test-floor1.c: Include infinity.h.
9975         (main): Use Infinityd.
9976         * tests/test-floorl.c: Include infinity.h.
9977         (main): Use Infinityl.
9978         * tests/test-fprintf-posix.c: Include infinity.h.
9979         (test_function): Use Infinityd.
9980         * tests/test-frexp.c: Include infinity.h.
9981         (main): Use Infinityd.
9982         * tests/test-frexpl.c: Include infinity.h.
9983         (main): Use Infinityl.
9984         * tests/test-isfinite.c: Include infinity.h.
9985         (test_isfinitef): Use Infinityf.
9986         (test_isfinited): Use Infinityd.
9987         (test_isfinitel): Use Infinityl.
9988         * tests/test-isinf.c: Include infinity.h.
9989         (test_isinff): Use Infinityf.
9990         (test_isinfd): Use Infinityd.
9991         (test_isinfl): Use Infinityl.
9992         * tests/test-isnan.c: Include infinity.h.
9993         (test_float): Use Infinityf.
9994         (test_double): Use Infinityd.
9995         (test_long_double): Use Infinityl.
9996         * tests/test-isnanf.h: Include infinity.h.
9997         (main): Use Infinityf.
9998         * tests/test-isnand.h: Include infinity.h.
9999         (main): Use Infinityd.
10000         * tests/test-isnanl.h: Include infinity.h.
10001         (main): Use Infinityl.
10002         * tests/test-ldexpl.c: Include infinity.h.
10003         (main): Use Infinityl.
10004         * tests/test-printf-posix.h: Include infinity.h.
10005         (test_function): Use Infinityd.
10006         * tests/test-roundf1.c: Include infinity.h.
10007         (main): Use Infinityf.
10008         * tests/test-round1.c: Include infinity.h.
10009         (main): Use Infinityd.
10010         * tests/test-roundl.c: Include infinity.h.
10011         (main): Use Infinityl.
10012         * tests/test-signbit.c: Include infinity.h.
10013         (test_signbitf): Use Infinityf.
10014         (test_signbitd): Use Infinityd.
10015         (test_signbitl): Use Infinityl.
10016         * tests/test-snprintf-posix.h: Include infinity.h.
10017         (test_function): Use Infinityd, Infinityl.
10018         * tests/test-sprintf-posix.h: Include infinity.h.
10019         (test_function): Use Infinityd, Infinityl.
10020         * tests/test-truncf1.c: Include infinity.h.
10021         (main): Use Infinityf.
10022         * tests/test-trunc1.c: Include infinity.h.
10023         (main): Use Infinityd.
10024         * tests/test-truncl.c: Include infinity.h.
10025         (main): Use Infinityl.
10026         * tests/test-vasnprintf-posix.c: Include infinity.h.
10027         (test_function): Use Infinityd, Infinityl.
10028         * tests/test-vasprintf-posix.c: Include infinity.h.
10029         (test_function): Use Infinityd, Infinityl.
10030         * modules/ceilf-tests (Files): Add tests/infinity.h.
10031         * modules/ceil-tests (Files): Likewise.
10032         * modules/ceill-tests (Files): Likewise.
10033         * modules/dprintf-posix-tests (Files): Likewise.
10034         * modules/floorf-tests (Files): Likewise.
10035         * modules/floor-tests (Files): Likewise.
10036         * modules/floorl-tests (Files): Likewise.
10037         * modules/fprintf-posix-tests (Files): Likewise.
10038         * modules/frexp-tests (Files): Likewise.
10039         * modules/frexp-nolibm-tests (Files): Likewise.
10040         * modules/frexpl-tests (Files): Likewise.
10041         * modules/frexpl-nolibm-tests (Files): Likewise.
10042         * modules/isfinite-tests (Files): Likewise.
10043         * modules/isinf-tests (Files): Likewise.
10044         * modules/isnan-tests (Files): Likewise.
10045         * modules/isnanf-tests (Files): Likewise.
10046         * modules/isnanf-nolibm-tests (Files): Likewise.
10047         * modules/isnand-tests (Files): Likewise.
10048         * modules/isnand-nolibm-tests (Files): Likewise.
10049         * modules/isnanl-tests (Files): Likewise.
10050         * modules/isnanl-nolibm-tests (Files): Likewise.
10051         * modules/ldexpl-tests (Files): Likewise.
10052         * modules/printf-posix-tests (Files): Likewise.
10053         * modules/roundf-tests (Files): Likewise.
10054         * modules/round-tests (Files): Likewise.
10055         * modules/roundl-tests (Files): Likewise.
10056         * modules/signbit-tests (Files): Likewise.
10057         * modules/snprintf-posix-tests (Files): Likewise.
10058         * modules/sprintf-posix-tests (Files): Likewise.
10059         * modules/truncf-tests (Files): Likewise.
10060         * modules/trunc-tests (Files): Likewise.
10061         * modules/truncl-tests (Files): Likewise.
10062         * modules/vasnprintf-posix-tests (Files): Likewise.
10063         * modules/vasprintf-posix-tests (Files): Likewise.
10064         * modules/vdprintf-posix-tests (Files): Likewise.
10065         * modules/vfprintf-posix-tests (Files): Likewise.
10066         * modules/vprintf-posix-tests (Files): Likewise.
10067         * modules/vsnprintf-posix-tests (Files): Likewise.
10068         * modules/vsprintf-posix-tests (Files): Likewise.
10069         * modules/xprintf-posix-tests (Files): Likewise.
10070
10071 2011-09-11  Bruno Haible  <bruno@clisp.org>
10072
10073         Ensure pid_t gets defined.
10074         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10075         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10076         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10077         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10078         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10079         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10080         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10081         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10082         * tests/test-fcntl-h.c: Check that pid_t is defined.
10083         * tests/test-sched.c: Likewise.
10084         * tests/test-termios.c: Likewise.
10085         * tests/test-time.c: Likewise.
10086         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10087         * doc/posix-headers/signal.texi: Likewise.
10088         * doc/posix-headers/sys_types.texi: Likewise.
10089         * doc/posix-headers/time.texi: Likewise.
10090
10091 2011-09-11  Bruno Haible  <bruno@clisp.org>
10092
10093         acl: Fix compilation on Solaris 10 (older version).
10094         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10095         of ACE_EVERYONE.
10096         * lib/set-mode-acl.c (qset_acl): Likewise.
10097         Reported by Christian Jullien <eligis@orange.fr>.
10098
10099 2011-09-10  Bruno Haible  <bruno@clisp.org>
10100
10101         iconv, unsetenv: Add support for MSVC compiler.
10102         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10103         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10104
10105 2011-09-10  Bruno Haible  <bruno@clisp.org>
10106
10107         *printf: Add support for MSVC compiler.
10108         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10109         handles the exception caused by the %n directive. When cross-compiling,
10110         guess no on native Windows.
10111         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10112         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10113         emulate it through vsnprintf.
10114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10115         * doc/posix-functions/dprintf.texi: Update documentation regarding
10116         MSVC 9.
10117         * doc/posix-functions/fprintf.texi: Likewise.
10118         * doc/posix-functions/printf.texi: Likewise.
10119         * doc/posix-functions/snprintf.texi: Likewise.
10120         * doc/posix-functions/sprintf.texi: Likewise.
10121         * doc/posix-functions/swprintf.texi: Likewise.
10122         * doc/posix-functions/vdprintf.texi: Likewise.
10123         * doc/posix-functions/vfprintf.texi: Likewise.
10124         * doc/posix-functions/vprintf.texi: Likewise.
10125         * doc/posix-functions/vsnprintf.texi: Likewise.
10126         * doc/posix-functions/vsprintf.texi: Likewise.
10127         * doc/glibc-functions/asprintf.texi: Likewise.
10128         * doc/glibc-functions/obstack_printf.texi: Likewise.
10129         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10130         * doc/glibc-functions/vasprintf.texi: Likewise.
10131
10132 2011-09-10  Bruno Haible  <bruno@clisp.org>
10133
10134         nocrash: Add support for native Windows.
10135         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10136
10137 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10138             Bruno Haible  <bruno@clisp.org>
10139
10140         absolute-header, include-next: Add support for MSVC compiler.
10141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10142         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10143         directory separator in #line directives.
10144         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10145         recognize also backslash as directory separator in #line directives.
10146
10147 2011-09-08  Jim Meyering  <meyering@redhat.com>
10148
10149         maint.mk: mark the post-release commit log with "maint: " prefix
10150         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10151         one-line commit-log summary.
10152
10153 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10154             Bruno Haible  <bruno@clisp.org>
10155
10156         Doc about crypt functions.
10157         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10158         systems.
10159         * doc/posix-functions/encrypt.texi: Likewise.
10160         * doc/posix-functions/setkey.texi: Likewise.
10161
10162 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10163
10164         * lib/gc.h: Fix copyright header.
10165
10166 2011-09-07  Bruno Haible  <bruno@clisp.org>
10167
10168         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10169         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10170         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10171
10172 2011-09-07  Bruno Haible  <bruno@clisp.org>
10173
10174         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10175         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10176         * lib/freopen.c: Likewise.
10177         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10178         * lib/lstat.c: Likewise.
10179         * lib/stat.c: Likewise.
10180         * lib/open.c: Use different syntax for include of <fcntl.h>.
10181         * lib/openat.c: Include fcntl.h again, explicitly.
10182
10183 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10184
10185         parse-datetime: document the newly accepted format
10186         * doc/parse-datetime.texi (Combined date and time of day items):
10187         New section.
10188
10189 2011-09-06  Bruno Haible  <bruno@clisp.org>
10190
10191         acl: Fix a test failure on newer Solaris 10 with ZFS.
10192         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10193         ENOSYS as no ACL.
10194         Reported by Jim Meyering.
10195
10196 2011-09-06  Bruno Haible  <bruno@clisp.org>
10197
10198         acl: Update for AIX >= 5.3 with NFS.
10199         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10200         ENOSYS as no ACL.
10201
10202         acl: Fix a test failure on AIX >= 5.3 with NFS.
10203         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10204         as no ACL.
10205
10206 2011-09-06  Bruno Haible  <bruno@clisp.org>
10207
10208         acl: Fix a test failure on IRIX 6.5 with NFS.
10209         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10210         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10211         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10212         * lib/copy-acl.c (qcopy_acl): Likewise.
10213
10214 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10215
10216         openat: port to AIX 7.1 with large files
10217         AIX 7.1 does a "#define openat open64at" if large files are in use,
10218         so we can't simply #undef openat.  Use the orig_openat trick (similar
10219         to orig_open in lib/open.c) to work around the problem.  Problem
10220         reported by Kevin Brott for GNU tar, in the thread containing
10221         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10222         * lib/openat.c (__need_system_fcntl_h): Define first.
10223         Include <fcntl.h> and <sys/types.h> before undefining.
10224         (orig_openat) [HAVE_OPENAT]: New inline function.
10225         (openat) [HAVE_OPENAT]: Do not undef.
10226         (rpl_openat): Use orig_openat, not openat.
10227
10228 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10229             Bruno Haible  <bruno@clisp.org>
10230
10231         acl: Avoid errors on NonStop Kernel.
10232         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10233         ENOTSUP errors.
10234
10235 2011-09-05  Bruno Haible  <bruno@clisp.org>
10236
10237         acl: Clean up Solaris code.
10238         * lib/acl-internal.h: Remove no-op #if.
10239         * lib/file-has-acl.c: Likewise.
10240         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10241         * lib/copy-acl.c (qcopy_acl): Likewise.
10242
10243 2011-09-05  Bruno Haible  <bruno@clisp.org>
10244
10245         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10246         binaries built on the original Solaris 10.
10247         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10248         trivial.
10249
10250 2011-09-05  Bruno Haible  <bruno@clisp.org>
10251
10252         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10253         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10254         10.
10255         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10256         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10257         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10258         instead of acl_get, facl_get, acl_set, facl_set.
10259
10260 2011-09-05  Bruno Haible  <bruno@clisp.org>
10261
10262         copy-file: Try unit tests on more file systems.
10263         * tests/test-copy-file-1.sh: New file.
10264         * tests/test-copy-file-2.sh: New file.
10265         * modules/copy-file-tests (Files): Add them.
10266         (Makefile.am): Add them to TESTS.
10267
10268         acl: Try unit tests on more file systems.
10269         * tests/test-file-has-acl-1.sh: New file.
10270         * tests/test-file-has-acl-2.sh: New file.
10271         * tests/test-set-mode-acl-1.sh: New file.
10272         * tests/test-set-mode-acl-2.sh: New file.
10273         * tests/test-copy-acl-1.sh: New file.
10274         * tests/test-copy-acl-2.sh: New file.
10275         * modules/acl-tests (Files): Add them.
10276         (Makefile.am): Add them to TESTS.
10277
10278 2011-09-04  Bruno Haible  <bruno@clisp.org>
10279
10280         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10281         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10282         10.
10283         (OLD_ALLOW, OLD_DENY): New macros.
10284         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10285         ACE_ACCESS_ALLOWED_ACE_TYPE.
10286         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10287         ACE_ACCESS_DENIED_ACE_TYPE.
10288         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10289         (NEW_ACE_EXECUTE): Fix value.
10290         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10291         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10292         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10293         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10294         NEW_ACE_SYNCHRONIZE): New macros.
10295         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10296         instead of acl_fromtext, acl_set, facl_set.
10297         Fixes a coreutils/tests/cp/perm failure.
10298
10299 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10300
10301         openat: test for fstatat (..., 0) bug
10302         Further testing with tar suggests that fstatat (..., 0)
10303         does not work in general, on AIX 7.1; see
10304         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10305         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10306         replacement fstatat (which is what older AIX releases were using
10307         anyway).
10308         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10309         use is now changed to orig_fstatat.  This was probably the right
10310         thing to do anyway.
10311         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10312         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10313         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10314         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10315         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10316         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10317         if the bug is found.
10318
10319         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10320         This tests for another fstatat bug on AIX 7.1:
10321         fstatat (AT_FDCWD, ..., 0) does not work.  See
10322         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10323         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10324         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10325         (rpl_fstatat): Adjust so that it works around either (or both)
10326         bugs if present.
10327         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10328
10329 2011-09-03  Karl Berry  <karl@gnu.org>
10330
10331         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10332         in index entries.
10333
10334 2011-09-02  Bruno Haible  <bruno@clisp.org>
10335
10336         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10337         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10338         values of AR, ARFLAGS, RANLIB.
10339         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10340
10341 2011-09-02  Bruno Haible  <bruno@clisp.org>
10342
10343         Find 'ar' program that fits with --host argument.
10344         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10345
10346 2011-09-02  Bruno Haible  <bruno@clisp.org>
10347
10348         tests: init.sh: Support any non-GNU diff.
10349         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10350         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10351         Solaris 8.
10352
10353 2011-09-02  Bruno Haible  <bruno@clisp.org>
10354
10355         tests: init.sh: work also with any non-GNU diff that supports -u
10356         * tests/init.sh: Relax check for diff -u support.
10357         Rather than checking for GNU diff via --version, simply check
10358         for support for -u itself.  Useful at least on OpenBSD 4.9,
10359         AIX 7.1, IRIX 6.5, and Solaris 10.
10360
10361 2011-09-01  Bruno Haible  <bruno@clisp.org>
10362
10363         strtoimax, strtoumax: Document problem on HP-UX 11.
10364         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10365         * doc/posix-functions/strtoumax.texi: Likewise.
10366
10367 2011-09-01  Bruno Haible  <bruno@clisp.org>
10368
10369         strtoumax: Avoid link error on OSF/1 with DTK cc.
10370         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10371         defined as a function.
10372         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10373         strtoumax is defined, not whether it is declared.
10374
10375 2011-09-01  Bruno Haible  <bruno@clisp.org>
10376
10377         strtoimax: Avoid link error on OSF/1 with DTK cc.
10378         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10379         defined as a function.
10380         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10381         strtoimax is defined, not whether it is declared.
10382
10383 2011-09-01  Bruno Haible  <bruno@clisp.org>
10384
10385         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10386         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10387         as a function.
10388         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10389         whether it is declared.
10390
10391 2011-09-01  Bruno Haible  <bruno@clisp.org>
10392
10393         imaxabs: Avoid link error on OSF/1 with DTK cc.
10394         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10395         as a function.
10396         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10397         whether it is declared.
10398
10399 2011-09-01  Bruno Haible  <bruno@clisp.org>
10400
10401         Tests for module 'strtoumax'.
10402         * modules/strtoumax-tests: New file.
10403         * tests/test-strtoumax.c: New file.
10404
10405         Tests for module 'strtoimax'.
10406         * modules/strtoimax-tests: New file.
10407         * tests/test-strtoimax.c: New file.
10408
10409         Tests for module 'imaxdiv'.
10410         * modules/imaxdiv-tests: New file.
10411         * tests/test-imaxdiv.c: New file.
10412
10413         Tests for module 'imaxabs'.
10414         * modules/imaxabs-tests: New file.
10415         * tests/test-imaxabs.c: New file.
10416
10417 2011-09-01  Bruno Haible  <bruno@clisp.org>
10418
10419         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10420         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10421         pthread_create.
10422
10423 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10424
10425         openat: work around AIX 7.1 fstatat issue
10426         This should fix the problem that was not properly fixed
10427         in the previous change, dated 2011-08-30.
10428         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10429         __need_system_stat_h defined.
10430         (orig_fstatat) [HAVE_FSTATAT]: New function.
10431         (rpl_fstatat): Go back to the old way of doing things,
10432         except call orig_fstatat instead of fstatat.
10433         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10434         Remove unnecessary check whether fstatat fills in st_size etc.
10435
10436 2011-09-01  Bruno Haible  <bruno@clisp.org>
10437
10438         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10439         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10440         just include the system's header.
10441
10442 2011-08-31  Jim Meyering  <meyering@redhat.com>
10443
10444         tests: avoid spurious assertion failure in test-float.c on ppc64
10445         * tests/test-float.c (test_long_double): Comment out an assertion,
10446         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10447         with gcc-4.4.4.
10448
10449         maint: indent with spaces, not TABs
10450         I need to get in the habit of running gnulib's "make check".
10451         Both of these would have been caught.
10452         * m4/largefile.m4: Indent with spaces, not TABs.
10453         * lib/parse-datetime.y (iso_8601_time): Likewise.
10454         Spotted by Pádraig Brady.
10455
10456         test-parse-datetime.c: accommodate a relatively strict gcc warning
10457         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10458         to avoid a warning from gcc's -Werror=missing-declarations.
10459         Insert a few spaces-before-funcall-parenthesis.
10460
10461 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10462
10463         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10464         The parser now accepts ISO 8601 date-time strings with "T" as the
10465         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10466         with a space between the date and time strings.  Now it also parses
10467         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10468         variants like "2004-02-29T16:21:42.333-07:00"
10469         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10470         of day representation using the 'T' separator character.
10471         * doc/parse-datetime.texi (General date syntax): replace use of
10472         deprecated --iso-8601 option with --rfc-3339 in example of date
10473         command output formats that can be parsed.
10474         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10475         lib/parse-datetime.y.
10476         (gmt_offset): New function.
10477         (main): Add additional test cases to validate ISO8601 extended
10478         date and time of day parsing.
10479
10480 2011-08-31  Bruno Haible  <bruno@clisp.org>
10481
10482         freopen: Documentation.
10483         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10484         name.
10485         Reported by Claudio Bley <claudio.bley@gmail.com>.
10486
10487 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10488
10489         freopen: Don't crash if the filename argument is NULL.
10490         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10491         NULL.
10492
10493 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10494
10495         openat: work around AIX 7.1 fstatat bug
10496         Problem reported by Kevin Brott for GNU tar, in the thread containing
10497         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10498         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10499         FSTATAT_ST_SIZE_ETC_BROKEN.
10500         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10501         rpl_fstatat.
10502         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10503         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10504         AC_CHECK_FUNCS_ONCE for fstatat.
10505         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10506         fchmodat, mkdirat, openat and unlinkat.
10507
10508 2011-08-30  Bruno Haible  <bruno@clisp.org>
10509
10510         Avoid endless recursions if config.h includes some header files.
10511         * lib/fopen.c (__need_FILE): Define already before including config.h.
10512         * lib/freopen.c (__need_FILE): Likewise.
10513         * lib/open.c (__need_system_fcntl_h): Likewise.
10514         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10515         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10516         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10517
10518 2011-08-25  Karl Berry  <karl@gnu.org>
10519
10520         * config/srclist.txt (ylwrap): new try.
10521         * build-aux/ylwrap: new file.
10522
10523 2011-08-23  Bruno Haible  <bruno@clisp.org>
10524
10525         tmpdir: Use a good default directory on native Windows.
10526         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10527         (P_tmpdir): Default to _P_tmpdir on native Windows.
10528         (path_search): On native Windows, try the value returned by GetTempPath
10529         before trying P_tmpdir.
10530         * modules/tmpdir (Depends-on): Add pathmax.
10531         Suggested by John Darrington <john@darrington.wattle.id.au>.
10532
10533 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10534
10535         doc: fix typo in README-release
10536         * top/README-release: Capitalize first word of a sentence.
10537
10538 2011-08-19  Jim Meyering  <meyering@redhat.com>
10539
10540         fts: do not exhaust memory when processing million-entry directories
10541         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10542         directory would require about 256*N bytes of memory.  Thus, it was
10543         easy to construct a directory too large to be processed by any of
10544         those tools.  With this change, fts' maximum memory utilization is
10545         now limited to around 30MB.
10546         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10547         (fts_read): When we've processed the final entry (i.e., when
10548         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10549         using the parent entry to read any remaining entries.  Dispatch
10550         depending on what fts_build returns:
10551         - NULL+stop, aka failure: stop
10552         - NULL otherwise: move up in the dir hierarchy
10553         - non-NULL: handle this new entry
10554         (fts_build): Declare and use new local, continue_readdir.
10555         Prepare to be called from fts_read, when the entries
10556         from a partially-read directory have just been exhausted.
10557         In that case, we'll skip the opendir and instead use the parent's
10558         fts_dirp and derive dir_fd from that.
10559         Finally, in the readdir loop, if we read max_entries entries,
10560         exit the loop ensuring *not* to call closedir.  This is required
10561         so that fts_dirp can be reused on a subsequent call.
10562         Prompted by Ben England's report of memory exhaustion in find
10563         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10564
10565         maint: fts: move decl of `dp' down into while loop; split a long line
10566         * lib/fts.c (fts_build): No semantic change.
10567
10568         fts: add/use new struct member, fts_dirp
10569         We are about to use this to manage any directory with
10570         too many entries to read all of them into memory at once.
10571         To do that, we'll need to save the DIR* pointer in each
10572         affected FTSENT struct.
10573         * lib/fts_.h: Include <dirent.h>.
10574         (struct FTSENT) [fts_dirp]: New member.
10575         * lib/fts.c (closedir_and_clear): Define.
10576         Use it in place of closedir so that we are sure to
10577         clear the new fts_dirp member when done with it.
10578         (fts_alloc): Initialize the new member.
10579         (fts_lfree): Free, if needed.
10580
10581         maint: fts: give __opendir2 a new parameter and rename
10582         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10583         than surreptitiously using sole caller's "dir_fd".
10584         (fts_opendir): Rename from __opendir2.
10585
10586         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10587         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10588
10589         maint: fts.c: correct off-by-one indentation
10590         * lib/fts.c (fts_build): Correct indentation, change style
10591         of a couple of block comments, and bracing style.
10592
10593         maint: fts.c: move __opendir2 #define "up" out of function body
10594         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10595
10596         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10597         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10598         out for a long time and besides was useful only on BSD systems.
10599
10600 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10601
10602         regex: port to Stratus OpenVOS
10603         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10604         define to empty, rather than attempting nonportable optimizations.
10605         Problem reported by Paul Green in:
10606         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10607         and fix suggested by Eric Blake in:
10608         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10609
10610 2011-08-17  Eric Blake  <eblake@redhat.com>
10611
10612         getcwd: fix test failures on mingw
10613         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10614         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10615         test if long directory cannot be created, and allow mingw errno.
10616
10617         getcwd-lgpl: fix m4 to match relaxed test for BSD
10618         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10619         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10620         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10621         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10622         signature problem.
10623
10624         getcwd: fix compilation on mingw64
10625         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10626         getcwd.
10627         Reported by Marc-André Lureau.
10628
10629         pipe2: silence compiler warning
10630         * lib/pipe2.c (pipe2): Hide label if it is not used.
10631
10632 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10633
10634         relocatable-prog: fix link error
10635         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10636         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10637         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10638         into modules/relocatable-lib without noticing that
10639         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10640         also needs to build relocatable.c.
10641
10642 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10643
10644         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10646         shell code: it contained a 'break' that was not in a loop.
10647         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10648         via a shell-language loop; this may have been true in old Autoconf
10649         versions, but it's not true in Autoconf 2.68.  I found this bug
10650         when testing coreutils git on Solaris 8, whose shell complains
10651         about the syntax error.
10652
10653 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10654
10655         * lib/base64.c: Fix comment to reference RFC 4648.
10656         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10657         <gvtulder@gmail.com>.
10658
10659 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10662
10663         po/Makefile.in.in: fix make -q problem
10664         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10665         rule, since there's no file named 'check-macro-version' and its
10666         use as a file breaks make -q.
10667         (all): Don't depend on check-macro-version.
10668         (CHECK_MACRO_VERSION): New macro.
10669         (stamp-po): Use it.
10670
10671         configmake: fix make -q problem
10672         * modules/configmake (configmake.h): Update configmake.h's time stamp
10673         even if the file does not change.  Otherwise, 'make -q' fails.
10674         Problem reported by Simon Josefsson in
10675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10676
10677 2011-08-11  Jim Meyering  <meyering@redhat.com>
10678
10679         git-version-gen: correct the advice in a comment
10680         * build-aux/git-version-gen: Correct comment.
10681         Don't recommend to list .tarball-version in .gitignore.
10682
10683 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10684
10685         base64: fix off-by-one buffer size bug
10686         Problem and (trivial) fix reported by Gijs van Tulder in
10687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10688         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10689         * tests/test-base64.c (main): Catch the bug.
10690
10691 2011-08-10  Eric Blake  <eblake@redhat.com>
10692
10693         closein: correct comments
10694         * lib/closein.c (close_stdin): Improve comments.
10695
10696 2011-08-09  Bruno Haible  <bruno@clisp.org>
10697
10698         More tests for 'fseeko'.
10699         * tests/test-fseeko3.c: New file, from Eric Blake.
10700         * tests/test-fseeko3.sh: New file.
10701         * modules/fseeko-tests (Files): Add them.
10702         (TESTS): Add test-fseeko3.sh.
10703         (check_PROGRAMS): Add test-fseeko3.
10704
10705 2011-08-09  Eric Blake  <eblake@redhat.com>
10706
10707         fseeko: remove unneeded hack
10708         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10709
10710         fseeko: fix bug on glibc
10711         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10712         Reported by John W. Eaton.
10713
10714 2011-08-08  Bruno Haible  <bruno@clisp.org>
10715
10716         unictype/base: Fix interoperability with preinstalled libunistring.
10717         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10718         Reported by Simon Josefsson.
10719
10720 2011-08-08  Bruno Haible  <bruno@clisp.org>
10721
10722         iswblank: Detect declaration correctly.
10723         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10724         AC_CHECK_DECLS invocation.
10725
10726 2011-08-08  Bruno Haible  <bruno@clisp.org>
10727
10728         tcgetsid: Detect declaration correctly.
10729         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10730         AC_CHECK_DECLS invocation.
10731         Reported by Simon Josefsson.
10732
10733 2011-08-08  Eric Blake  <eblake@redhat.com>
10734
10735         largefile: fix typo that regressed large file support
10736         * modules/largefile (configure.ac-early): Fix section name.
10737
10738 2011-08-06  Karl Berry  <karl@gnu.org>
10739
10740         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10741         a separate module.
10742
10743 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10744
10745         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10746         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10747         get prototype for free.
10748
10749 2011-08-04  Bruno Haible  <bruno@clisp.org>
10750
10751         Tests for module 'pathmax'.
10752         * modules/pathmax-tests: New file.
10753         * tests/test-pathmax.c: New file.
10754
10755         canonicalize-lgpl: Support larger filenames on the Hurd.
10756         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10757         Reported by Paul Eggert.
10758
10759         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10760         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10761         * lib/chdir-long.h: Include pathmax.h.
10762         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10763         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10764         (PATH_MAX): Remove code that is done by pathmax.h.
10765         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10766         * lib/tmpfile.c: Add a comment.
10767         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10768         * modules/chdir-long (Depends-on): Add pathmax.
10769         * modules/getcwd (Depends-on): Add pathmax.
10770         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10771         is not defined.
10772         * doc/posix-headers/limits.texi: Mention the pathmax module.
10773         * NEWS: Mention the change.
10774
10775 2011-08-02  Bruno Haible  <bruno@clisp.org>
10776
10777         pthread_sigmask: Actually use results of gl_THREADLIB.
10778         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10779         gl_THREADLIB, not gl_[]THREADLIB.
10780         Reported by Eric Blake.
10781
10782 2011-08-02  Jim Meyering  <meyering@redhat.com>
10783
10784         maint.mk: relax the default _gl_TS_function_match regexp
10785         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10786         space between function name and "(" in an "extern" declaration.
10787         That would fail to match a decl with no space there: extern void foo();
10788
10789 2011-07-31  Iain Nicol  <iain@thenicols.net>
10790
10791         git-version-gen: document that EXTRA_DIST must include .version
10792         * build-aux/git-version-gen: In the how-to-use comment, document
10793         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10794         will fail when run from an unpacked distribution tarball.
10795
10796 2011-08-01  Bruno Haible  <bruno@clisp.org>
10797
10798         wctype-h: Fix last change.
10799         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10800         REPLACE_TOWLOWER to 0.
10801         Reported by Sam Steingold <sds@gnu.org>.
10802
10803 2011-07-31  Bruno Haible  <bruno@clisp.org>
10804
10805         frexpl: Update autoconf test.
10806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10807         according to changes of 2011-06-20.
10808
10809 2011-07-31  Bruno Haible  <bruno@clisp.org>
10810
10811         sys_utsname: Add support for Minix.
10812         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10813         <sys/utsname.h>.
10814         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10815         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10816
10817 2011-07-31  Bruno Haible  <bruno@clisp.org>
10818
10819         strings: Add support for Minix.
10820         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10821         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10822         * doc/posix-headers/strings.texi: Document the Minix problem.
10823
10824 2011-07-31  Bruno Haible  <bruno@clisp.org>
10825
10826         wctype-h: Add support for Minix.
10827         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10828         REPLACE_TOWLOWER.
10829         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10830         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10831         REPLACE_ISWCNTRL.
10832
10833 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10834
10835         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10836         This is a performance improvement for 64-bit hosts: it causes the
10837         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10838
10839 2011-07-31  Bruno Haible  <bruno@clisp.org>
10840
10841         stdioext: Add support for Minix.
10842         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10843         * lib/fpurge.c (fpurge): Likewise.
10844         * lib/freadahead.c (freadahead): Likewise.
10845         * lib/freadable.c (freadable): Likewise.
10846         * lib/freading.c (freading): Likewise.
10847         * lib/freadptr.c (freadptr): Likewise.
10848         * lib/freadseek.c (freadptrinc): Likewise.
10849         * lib/fseeko.c (rpl_fseeko): Likewise.
10850         * lib/fseterr.c (fseterr): Likewise.
10851         * lib/fwritable.c (fwritable): Likewise.
10852         * lib/fwriting.c (fwriting): Likewise.
10853         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10854         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10855
10856 2011-07-31  Bruno Haible  <bruno@clisp.org>
10857
10858         errno: Port to Minix.
10859         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10860         ECONNABORTED are defined.
10861         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10862         GNULIB_defined_ECONNABORTED): New macros.
10863         * lib/strerror-override.h (strerror_override): Test also
10864         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10865         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10866         ECONNABORTED.
10867         * doc/posix-headers/errno.texi: Mention the Minix problem.
10868
10869 2011-07-31  Bruno Haible  <bruno@clisp.org>
10870
10871         Work around declaration collisions on Minix.
10872         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10873         defined, set REPLACE_MBSINIT.
10874         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10875         defined, set REPLACE_MBRTOWC.
10876         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10877         set REPLACE_MBRLEN.
10878         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10879         defined, set REPLACE_MBSRTOWCS.
10880         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10881         defined, set REPLACE_WCRTOMB.
10882         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10883         defined, set REPLACE_WCSRTOMBS.
10884
10885 2011-07-31  Bruno Haible  <bruno@clisp.org>
10886
10887         Add support for Minix with ACK compiler.
10888         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10889         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10890         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10891
10892 2011-07-31  Bruno Haible  <bruno@clisp.org>
10893
10894         Documentation about Minix.
10895         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10896         * doc/glibc-headers/*.texi: Likewise.
10897         * doc/posix-functions/*.texi: Likewise.
10898         * doc/glibc-functions/*.texi: Likewise.
10899
10900 2011-07-31  Bruno Haible  <bruno@clisp.org>
10901
10902         snippet/warn-on-use: Fix indentation.
10903         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10904
10905 2011-07-25  Jim Meyering  <meyering@redhat.com>
10906
10907         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10908         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10909         commands.
10910
10911 2011-07-27  Jim Meyering  <meyering@redhat.com>
10912
10913         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10914         * top/maint.mk (gl_extract_significant_defines_): Now that
10915         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10916         gnulib/lib/signal.in.h, and now that we recommend to
10917         define-if-undefined those two symbols in application code,
10918         we must filter them out of the "significant" list.
10919         This avoids a "make syntax-check" failure in coreutils.
10920
10921 2011-07-26  Eric Blake  <eblake@redhat.com>
10922
10923         warnings: add comments about previous patch
10924         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10925         * m4/include_next.m4: Likewise.
10926         * m4/warn-on-use.m4: Likewise.
10927         * m4/warnings.m4: Likewise, and simplify use.
10928         Suggested by Stefano Lattarini.
10929
10930         include-next, warnings: support older autoconf
10931         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10932         AS_VAR_PUSHDEF in a way that works with older autoconf.
10933         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10934         Reported by Daniel P. Berrange.
10935
10936 2011-07-25  Bruno Haible  <bruno@clisp.org>
10937
10938         fseek, ftell: Fix doc.
10939         * doc/posix-functions/fseek.texi: Reword statement about
10940         AC_SYS_LARGEFILE.
10941         * doc/posix-functions/ftell.texi: Likewise.
10942
10943 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10944             Bruno Haible  <bruno@clisp.org>
10945
10946         Add dependencies to the 'largefile' module.
10947         * modules/fopen (Depends-on): Add 'largefile'.
10948         * modules/freopen (Depends-on): Likewise.
10949         * modules/fseeko (Depends-on): Likewise.
10950         * modules/ftello (Depends-on): Likewise.
10951         * modules/glob (Depends-on): Likewise.
10952         * modules/lseek (Depends-on): Likewise.
10953         * modules/lstat (Depends-on): Likewise.
10954         * modules/mkostemp (Depends-on): Likewise.
10955         * modules/mkostemps (Depends-on): Likewise.
10956         * modules/mkstemp (Depends-on): Likewise.
10957         * modules/mkstemps (Depends-on): Likewise.
10958         * modules/open (Depends-on): Likewise.
10959         * modules/openat (Depends-on): Likewise.
10960         * modules/pread (Depends-on): Likewise.
10961         * modules/pwrite (Depends-on): Likewise.
10962         * modules/scandir (Depends-on): Likewise.
10963         * modules/stat (Depends-on): Likewise.
10964         * modules/tmpfile (Depends-on): Likewise.
10965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10966         since the containing module now depends on the largefile module.
10967         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10968         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10969         off_t is fixed by gnulib.
10970         * doc/posix-functions/freopen.texi: Likewise.
10971         * doc/posix-functions/fseeko.texi: Likewise.
10972         * doc/posix-functions/fstatat.texi: Likewise.
10973         * doc/posix-functions/ftello.texi: Likewise.
10974         * doc/posix-functions/glob.texi: Likewise.
10975         * doc/posix-functions/lseek.texi: Likewise.
10976         * doc/posix-functions/lstat.texi: Likewise.
10977         * doc/posix-functions/mkstemp.texi: Likewise.
10978         * doc/posix-functions/open.texi: Likewise.
10979         * doc/posix-functions/openat.texi: Likewise.
10980         * doc/posix-functions/pread.texi: Likewise.
10981         * doc/posix-functions/pwrite.texi: Likewise.
10982         * doc/posix-functions/scandir.texi: Likewise.
10983         * doc/posix-functions/stat.texi: Likewise.
10984         * doc/posix-functions/tmpfile.texi: Likewise.
10985         * doc/glibc-functions/mkostemp.texi: Likewise.
10986         * doc/glibc-functions/mkostemps.texi: Likewise.
10987         * doc/glibc-functions/mkstemps.texi: Likewise.
10988
10989 2011-07-25  Bruno Haible  <bruno@clisp.org>
10990
10991         fcntl: Move AC_LIBOBJ invocation to module description.
10992         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10993         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10994
10995         fcntl: Remove call-in from fchdir.m4.
10996         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10997         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10998
10999         dup3: Remove potential call-in from fchdir.m4.
11000         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11002
11003         dup2: Move AC_LIBOBJ invocation to module description.
11004         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11005         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11006         Don't invoke AC_LIBOBJ.
11007         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11008
11009         dup2: Remove call-in from fchdir.m4.
11010         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11012
11013         fclose: Move AC_LIBOBJ invocation to module description.
11014         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11015         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11016         to 1.
11017         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11018
11019         fclose: Remove call-in from close.m4.
11020         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11021         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11022
11023         close: Move AC_LIBOBJ invocation to module description.
11024         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11025         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11026         1.
11027         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11028
11029         close: Remove call-in from fchdir.m4.
11030         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11032
11033         open: Move AC_LIBOBJ invocation to module description.
11034         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11035         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11036         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11037
11038         open: Remove call-in from fchdir.m4.
11039         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11041
11042         fchdir: Start to remove gl_REPLACE_* idiom.
11043         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11044         (gl_FUNC_FCHDIR): Invoke it.
11045
11046 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11047
11048         * lib/ftell.c (ftell): Comment out cast.
11049
11050         close: use gl_REPLACE_FCLOSE only if defined
11051         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11052         is defined.  The close module doesn't depend on the fclose module
11053         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11055         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11056
11057 2011-07-24  Jim Meyering  <meyering@redhat.com>
11058
11059         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11060         * tests/test-select.h (test_function): Declare as "static".
11061
11062 2011-07-24  Bruno Haible  <bruno@clisp.org>
11063
11064         doc: Mention the effects of AC_SYS_LARGEFILE.
11065         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11066         on this function.
11067         * doc/posix-functions/aio_error.texi: Likewise.
11068         * doc/posix-functions/aio_fsync.texi: Likewise.
11069         * doc/posix-functions/aio_read.texi: Likewise.
11070         * doc/posix-functions/aio_return.texi: Likewise.
11071         * doc/posix-functions/aio_suspend.texi: Likewise.
11072         * doc/posix-functions/aio_write.texi: Likewise.
11073         * doc/posix-functions/fgetpos.texi: Likewise.
11074         * doc/posix-functions/fopen.texi: Likewise.
11075         * doc/posix-functions/freopen.texi: Likewise.
11076         * doc/posix-functions/fsetpos.texi: Likewise.
11077         * doc/posix-functions/fstatvfs.texi: Likewise.
11078         * doc/posix-functions/ftruncate.texi: Likewise.
11079         * doc/posix-functions/ftw.texi: Likewise.
11080         * doc/posix-functions/getrlimit.texi: Likewise.
11081         * doc/posix-functions/glob.texi: Likewise.
11082         * doc/posix-functions/lio_listio.texi: Likewise.
11083         * doc/posix-functions/lockf.texi: Likewise.
11084         * doc/posix-functions/mkstemp.texi: Likewise.
11085         * doc/posix-functions/mmap.texi: Likewise.
11086         * doc/posix-functions/nftw.texi: Likewise.
11087         * doc/posix-functions/openat.texi: Likewise.
11088         * doc/posix-functions/opendir.texi: Likewise.
11089         * doc/posix-functions/posix_fadvise.texi: Likewise.
11090         * doc/posix-functions/posix_fallocate.texi: Likewise.
11091         * doc/posix-functions/pread.texi: Likewise.
11092         * doc/posix-functions/pwrite.texi: Likewise.
11093         * doc/posix-functions/readdir.texi: Likewise.
11094         * doc/posix-functions/readdir_r.texi: Likewise.
11095         * doc/posix-functions/rewinddir.texi: Likewise.
11096         * doc/posix-functions/scandir.texi: Likewise.
11097         * doc/posix-functions/seekdir.texi: Likewise.
11098         * doc/posix-functions/setrlimit.texi: Likewise.
11099         * doc/posix-functions/statvfs.texi: Likewise.
11100         * doc/posix-functions/telldir.texi: Likewise.
11101         * doc/posix-functions/tmpfile.texi: Likewise.
11102         * doc/posix-functions/truncate.texi: Likewise.
11103         * doc/glibc-functions/fallocate.texi: Likewise.
11104         * doc/glibc-functions/fstatfs.texi: Likewise.
11105         * doc/glibc-functions/fts_children.texi: Likewise.
11106         * doc/glibc-functions/fts_read.texi: Likewise.
11107         * doc/glibc-functions/getdirentries.texi: Likewise.
11108         * doc/glibc-functions/mkostemp.texi: Likewise.
11109         * doc/glibc-functions/mkostemps.texi: Likewise.
11110         * doc/glibc-functions/mkstemps.texi: Likewise.
11111         * doc/glibc-functions/preadv.texi: Likewise.
11112         * doc/glibc-functions/pwritev.texi: Likewise.
11113         * doc/glibc-functions/sendfile.texi: Likewise.
11114         * doc/glibc-functions/statfs.texi: Likewise.
11115
11116 2011-07-24  Bruno Haible  <bruno@clisp.org>
11117
11118         doc: Fix typo.
11119         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11120
11121 2011-07-24  Bruno Haible  <bruno@clisp.org>
11122
11123         doc: Mention fsusage.
11124         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11125
11126 2011-07-24  Bruno Haible  <bruno@clisp.org>
11127
11128         doc: Mention new glibc headers and functions.
11129         * doc/glibc-headers/gshadow.texi: New file.
11130         * doc/glibc-functions/endsgent.texi: New file.
11131         * doc/glibc-functions/fgetsgent.texi: New file.
11132         * doc/glibc-functions/fgetsgent_r.texi: New file.
11133         * doc/glibc-functions/getsgent.texi: New file.
11134         * doc/glibc-functions/getsgent_r.texi: New file.
11135         * doc/glibc-functions/getsgnam.texi: New file.
11136         * doc/glibc-functions/getsgnam_r.texi: New file.
11137         * doc/glibc-functions/putsgent.texi: New file.
11138         * doc/glibc-functions/setsgent.texi: New file.
11139         * doc/glibc-functions/sgetsgent.texi: New file.
11140         * doc/glibc-functions/sgetsgent_r.texi: New file.
11141         * doc/glibc-functions/malloc_info.texi: New file.
11142         * doc/glibc-functions/preadv.texi: New file.
11143         * doc/glibc-functions/pwritev.texi: New file.
11144         * doc/glibc-functions/register_printf_modifier.texi: New file.
11145         * doc/glibc-functions/register_printf_specifier.texi: New file.
11146         * doc/glibc-functions/register_printf_type.texi: New file.
11147         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11148         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11149         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11150         * doc/glibc-functions/pthread_getname_np.texi: New file.
11151         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11152         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11153         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11154         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11155         * doc/glibc-functions/pthread_setname_np.texi: New file.
11156         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11157         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11158         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11159         * doc/glibc-functions/qsort_r.texi: New file.
11160         * doc/glibc-functions/quick_exit.texi: New file.
11161         * doc/glibc-functions/syncfs.texi: New file.
11162         * doc/gnulib.texi: Include them.
11163         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11164         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11165         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11166         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11167         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11168         * doc/glibc-functions/execvpe.texi: Likewise.
11169
11170 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11171
11172         ftell: don't include <unistd.h>
11173         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11174         guaranteed to define off_t, and the ftell module depends on the
11175         stdio module.
11176
11177         ftell: do not assume wraparound signed arithmetic
11178         * lib/ftell.c: Include <limits.h>.
11179         (ftell): Don't assume wraparound signed arithmetic.
11180
11181 2011-07-24  Bruno Haible  <bruno@clisp.org>
11182
11183         close: No longer depend on module 'fclose'.
11184         * modules/close (Depends-on): Remove fclose.
11185         * NEWS: Mention the change.
11186         Suggested by Sam Steingold <sds@gnu.org>.
11187
11188 2011-07-24  Bruno Haible  <bruno@clisp.org>
11189
11190         fsusage: Enable large volume support on AIX >= 5.2.
11191         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11192         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11193         instead of STAT_STATVFS.
11194         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11195
11196         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11197         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11198         f_blocks field only on MacOS X.
11199
11200         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11201         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11202         * modules/fsusage (Depends-on): Add largefile.
11203
11204 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11205
11206         * README: Modernize discussion of signed integers.
11207         Assuming overflow wraparound is no longer safe.
11208         Mention ones' complement and signed magnitude.
11209
11210 2011-07-22  Bruno Haible  <bruno@clisp.org>
11211
11212         select tests, pselect tests: Refactor.
11213         * tests/test-select.h: New file, extracted from tests/test-select.c.
11214         (select_fn): New type.
11215         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11216         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11217         test_pipe): Add my_select argument.
11218         (test_function): Renamed from main. Add my_select argument.
11219         * tests/test-select.c: Move most code to tests/test-select.h. Include
11220         test-select.h.
11221         * modules/select-tests (Files): Add tests/test-select.h.
11222         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11223         (my_select, main): New functions.
11224         * modules/pselect-tests (Files): Add tests/test-select.h,
11225         tests/macros.h, tests/signature.h.
11226         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11227         (configure.ac): Check for <sys/wait.h>.
11228
11229 2011-07-22  Bruno Haible  <bruno@clisp.org>
11230
11231         sys_select tests: Check the signature of FD_*.
11232         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11233         signature tests from here...
11234         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11235         here.
11236         * modules/sys_select-tests (Files): Add tests/signature.h.
11237
11238 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11239
11240         largefile: new module, replacing large-inode
11241         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11242         * MODULES.html.sh: Add largefile, remove large-inode.
11243         * modules/largefile, m4/largefile.m4: New files.
11244         * modules/large-inode, m4/large-inode.m4: Remove.
11245
11246         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11248         implementations that use only 32 bits to count blocks.
11249         On typical hosts with 1024-byte blocks, this fails with file
11250         systems as small as 4 TiB.  Problem reported by Herb Wartens
11251         <http://debbugs.gnu.org/9140> and this should also fix a similar
11252         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11253
11254         large-inode: New module
11255         * MODULES.html.sh: Add it.
11256         * modules/large-inode, m4/large-inode.m4: New files.
11257
11258         extensions: Enable extensions on MacOS X 10.5 and later.
11259         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11260
11261 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11262
11263         file-has-acl: use acl_extended_file_nofollow if available
11264         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11265         (acl_extended_file): New macro.
11266         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11267         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11268
11269 2011-07-21  Bruno Haible  <bruno@clisp.org>
11270
11271         Declare system functions in a way that works with C++.
11272         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11273         declare fdopendir as extern "C".
11274         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11275         declare frexpl as extern "C".
11276         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11277         declare gai_strerror as extern "C".
11278         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11279         programs, declare gai_strerror as extern "C".
11280         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11281         declare getlogin_r as extern "C".
11282         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11283         as extern "C".
11284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11285         declare ldexpl as extern "C".
11286         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11287         as extern "C".
11288         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11289         program, declare getmntinfo as extern "C".
11290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11291         stpncpy as extern "C".
11292         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11293         program, declare __xpg_strerror_r as extern "C".
11294         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11295         strndup as extern "C".
11296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11297         declare memset and bzero as extern "C".
11298         Reported by Sam Steingold <sds@gnu.org>.
11299
11300 2011-07-12  Jim Meyering  <meyering@redhat.com>
11301
11302         maint.mk: prohibit inclusion of "verify.h" without use
11303         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11304
11305 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11306
11307         timer-time: A new module to check for timer_settime()
11308         * m4/timer_time.m4: Check for the posix function.
11309         * modules/timer-time: Add the new module.
11310         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11311         Mention it.
11312
11313 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11314             Bruno Haible  <bruno@clisp.org>
11315
11316         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11318         not defined, assume POSIX threads and look for pthread_sigmask in
11319         $LIBS, without changing $CPPFLAGS.
11320
11321 2011-07-19  Bruno Haible  <bruno@clisp.org>
11322
11323         strstr: Update cross-compilation guess.
11324         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11325         CPUs, guess no, in view of glibc
11326         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11327         Suggested by Eric Blake. Reported by Reuben Thomas.
11328
11329 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11330
11331         getopt-gnu: suppress core dumps from detection code
11332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11333         to suppress core dumps that may well occur on glibc systems.
11334         * modules/getopt-gnu: Depend on nocrash.
11335
11336 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11337
11338         pthread_sigmask: ensure usleep is declared
11339         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11340         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11341
11342 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11343
11344         doc: Document NonStop portability issues.
11345         * doc/posix-functions/sigaction.texi (sigaction):
11346         * doc/posix-headers/signal.texi (signal.h):
11347         Document NonStop.  See Joachim Schmitz in
11348         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11349
11350 2011-07-15  Bruno Haible  <bruno@clisp.org>
11351
11352         ffsl, ffsll: Avoid unportable behaviour.
11353         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11354
11355 2011-07-15  Bruno Haible  <bruno@clisp.org>
11356
11357         ffs: More tests.
11358         * tests/test-ffs.c (NBITS): New macro.
11359         (main): Add more tests.
11360         * tests/test-ffsl.c (NBITS): New macro.
11361         (main): Add more tests.
11362         * tests/test-ffsll.c (NBITS): New macro.
11363         (main): Add more tests.
11364
11365 2011-07-15  Eric Blake  <eblake@redhat.com>
11366
11367         ffsl, ffsll: new modules
11368         * modules/ffsl: New file.
11369         * modules/ffsll: Likewise.
11370         * m4/ffsl.m4: Likewise.
11371         * m4/ffsll.m4: Likewise.
11372         * lib/ffsl.c: Likewise.
11373         * lib/ffsl.h: Likewise.
11374         * lib/ffsll.c: Likewise.
11375         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11376         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11377         * modules/string (Makefile.am): Substitute witnesses.
11378         * lib/strings.in.h (ffsl, ffsll): Declare.
11379         * modules/ffsl-tests: New test file.
11380         * modules/ffsll-tests: Likewise.
11381         * tests/test-ffsl.c: Likewise.
11382         * tests/test-ffsll.c: Likewise.
11383         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11384         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11385         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11386
11387         ffs: fix m4 prerequisite
11388         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11389
11390         ffs: avoid undefined behavior
11391         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11392         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11393         Reported by Bruno Haible.
11394
11395 2011-07-12  Bruno Haible  <bruno@clisp.org>
11396
11397         pthread_sigmask: Rely on module 'threadlib'.
11398         * modules/pthread_sigmask (Depends-on): Add threadlib.
11399         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11400         is defined.
11401
11402 2011-07-12  Bruno Haible  <bruno@clisp.org>
11403
11404         regex: Depend on module 'strcase'.
11405         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11406
11407 2011-07-12  Jim Meyering  <meyering@redhat.com>
11408
11409         warn-on-use: fix typo in file name
11410         * modules/snippet/warn-on-use (Files): Correct file name:
11411         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11412
11413 2011-07-12  Bruno Haible  <bruno@clisp.org>
11414
11415         strings: Document module.
11416         * doc/posix-headers/strings.texi: Mention module 'strings'.
11417
11418 2011-07-12  Bruno Haible  <bruno@clisp.org>
11419
11420         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11421         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11422         (Files, Makefile.am): Update.
11423         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11424         * modules/stdlib (Depends-on): Update.
11425
11426 2011-07-12  Bruno Haible  <bruno@clisp.org>
11427
11428         * NEWS: Mention the changes.
11429
11430         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11431         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11432         (Files, Makefile.am): Update.
11433         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11434         * modules/arpa_inet (Depends-on): Update.
11435         * modules/ctype (Depends-on): Update.
11436         * modules/dirent (Depends-on): Update.
11437         * modules/fcntl-h (Depends-on): Update.
11438         * modules/glob (Depends-on): Update.
11439         * modules/iconv-h (Depends-on): Update.
11440         * modules/inttypes-incomplete (Depends-on): Update.
11441         * modules/langinfo (Depends-on): Update.
11442         * modules/locale (Depends-on): Update.
11443         * modules/math (Depends-on): Update.
11444         * modules/netdb (Depends-on): Update.
11445         * modules/poll-h (Depends-on): Update.
11446         * modules/pty (Depends-on): Update.
11447         * modules/search (Depends-on): Update.
11448         * modules/signal (Depends-on): Update.
11449         * modules/spawn (Depends-on): Update.
11450         * modules/stdio (Depends-on): Update.
11451         * modules/stdlib (Depends-on): Update.
11452         * modules/string (Depends-on): Update.
11453         * modules/strings (Depends-on): Update.
11454         * modules/sys_file (Depends-on): Update.
11455         * modules/sys_ioctl (Depends-on): Update.
11456         * modules/sys_select (Depends-on): Update.
11457         * modules/sys_socket (Depends-on): Update.
11458         * modules/sys_stat (Depends-on): Update.
11459         * modules/sys_time (Depends-on): Update.
11460         * modules/sys_times (Depends-on): Update.
11461         * modules/sys_utsname (Depends-on): Update.
11462         * modules/sys_wait (Depends-on): Update.
11463         * modules/termios (Depends-on): Update.
11464         * modules/time (Depends-on): Update.
11465         * modules/unistd (Depends-on): Update.
11466         * modules/wchar (Depends-on): Update.
11467         * modules/wctype-h (Depends-on): Update.
11468         * MODULES.html.sh (Support for building libraries and executables):
11469         Update.
11470
11471         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11472         * modules/snippet/unused-parameter: Renamed from
11473         modules/unused-parameter.
11474         (Files, Makefile.am): Update.
11475         * build-aux/snippet/unused-parameter.h: Renamed from
11476         build-aux/unused-parameter.h.
11477         * modules/selinux-h (Depends-on): Update.
11478         * modules/unistr/base (Depends-on): Update.
11479         * MODULES.html.sh (Core language properties): Update.
11480
11481         Rename module 'link-warning' to 'snippet/link-warning'.
11482         * modules/snippet/link-warning: Renamed from modules/link-warning.
11483         (Files, Makefile.am): Update.
11484         * build-aux/snippet/link-warning.h: Renamed from
11485         build-aux/link-warning.h.
11486         * MODULES.html.sh (Support for building libraries and executables):
11487         Update.
11488
11489         Rename module 'c++defs' to 'snippet/c++defs'.
11490         * modules/snippet/c++defs: Renamed from modules/c++defs.
11491         (Files, Makefile.am): Update.
11492         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11493         * modules/arpa_inet (Depends-on): Update.
11494         * modules/ctype (Depends-on): Update.
11495         * modules/dirent (Depends-on): Update.
11496         * modules/fcntl-h (Depends-on): Update.
11497         * modules/glob (Depends-on): Update.
11498         * modules/iconv-h (Depends-on): Update.
11499         * modules/langinfo (Depends-on): Update.
11500         * modules/locale (Depends-on): Update.
11501         * modules/math (Depends-on): Update.
11502         * modules/netdb (Depends-on): Update.
11503         * modules/poll-h (Depends-on): Update.
11504         * modules/pty (Depends-on): Update.
11505         * modules/search (Depends-on): Update.
11506         * modules/signal (Depends-on): Update.
11507         * modules/spawn (Depends-on): Update.
11508         * modules/stdio (Depends-on): Update.
11509         * modules/stdlib (Depends-on): Update.
11510         * modules/string (Depends-on): Update.
11511         * modules/strings (Depends-on): Update.
11512         * modules/sys_ioctl (Depends-on): Update.
11513         * modules/sys_select (Depends-on): Update.
11514         * modules/sys_socket (Depends-on): Update.
11515         * modules/sys_stat (Depends-on): Update.
11516         * modules/sys_time (Depends-on): Update.
11517         * modules/sys_wait (Depends-on): Update.
11518         * modules/termios (Depends-on): Update.
11519         * modules/time (Depends-on): Update.
11520         * modules/unistd (Depends-on): Update.
11521         * modules/wchar (Depends-on): Update.
11522         * modules/wctype-h (Depends-on): Update.
11523
11524         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11525         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11526         (Files, Makefile.am): Update.
11527         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11528         * modules/argv-iter (Depends-on): Update.
11529         * modules/arpa_inet (Depends-on): Update.
11530         * modules/dirent (Depends-on): Update.
11531         * modules/fcntl-h (Depends-on): Update.
11532         * modules/fnmatch (Depends-on): Update.
11533         * modules/getopt-posix (Depends-on): Update.
11534         * modules/glob (Depends-on): Update.
11535         * modules/iconv-h (Depends-on): Update.
11536         * modules/inttypes-incomplete (Depends-on): Update.
11537         * modules/locale (Depends-on): Update.
11538         * modules/math (Depends-on): Update.
11539         * modules/netdb (Depends-on): Update.
11540         * modules/search (Depends-on): Update.
11541         * modules/signal (Depends-on): Update.
11542         * modules/spawn (Depends-on): Update.
11543         * modules/stdio (Depends-on): Update.
11544         * modules/stdlib (Depends-on): Update.
11545         * modules/string (Depends-on): Update.
11546         * modules/strings (Depends-on): Update.
11547         * modules/sys_socket (Depends-on): Update.
11548         * modules/sys_stat (Depends-on): Update.
11549         * modules/sys_time (Depends-on): Update.
11550         * modules/sys_times (Depends-on): Update.
11551         * modules/sys_utsname (Depends-on): Update.
11552         * modules/time (Depends-on): Update.
11553         * modules/unistd (Depends-on): Update.
11554         * modules/wchar (Depends-on): Update.
11555         * MODULES.html.sh (Support for building libraries and executables):
11556         Update.
11557
11558 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11559
11560         Improvements on _Noreturn and related modules.
11561
11562         modules/_Exit-tests: test _Noreturn too
11563         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11564         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11565         (main): Use them.
11566
11567         stdnoreturn, stdnoreturn-tests: remove modules
11568         They're not needed here and a bit premature for use elsewhere.  See
11569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11570         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11571         * tests/test-stdnoreturn.c: Remove files.
11572         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11573         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11574         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11575         and using noreturn.
11576         * modules/openat, modules/sigpipe-die, modules/xalloc:
11577         * modules/xmemdup0, modules/xstrtol:
11578         Remove dependency on stdnoreturn.
11579
11580         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11581         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11582         Reparenthesize to avoid GCC warning.
11583         Support Microsoft's syntax.
11584         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11585
11586         _Noreturn-tests: remove module
11587         * modules/_Noreturn-tests: Remove.
11588         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11589         * tests/test-_Noreturn.c: Remove.
11590         * tests/test-stdnoreturn.c: Merge from the old
11591         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11592
11593 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         _Noreturn, stdnoreturn, and related modules.
11596
11597         * top/maint.mk: Adjust to new noreturn support.
11598         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11599         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11600
11601         xalloc: use stdnoreturn.h
11602         * lib/xalloc.h: Include <stdnoreturn.h>.
11603         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11604         * modules/xalloc (Depends-on): Add stdnoreturn.
11605
11606         xstrtol: use stdnoreturn.h
11607         * lib/xstrtol.h: Include <stdnoreturn.h>.
11608         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11609         * modules/xstrtol (Depends-on): Add stdnoreturn.
11610
11611         xmemdup0: use stdnoreturn.h
11612         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11613         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11614         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11615
11616         sigpipe-die: use stdnoreturn.h
11617         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11618         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11619         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11620
11621         openat: use stdnoreturn.h
11622         * lib/openat.h: Include <stdnoreturn.h>.
11623         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11624         * modules/openat (Depends-on): Add stdnoreturn.
11625
11626         * lib/openat-die.c (openat_save_fail): Modernize comment.
11627
11628         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11629
11630         * lib/glthread/thread.h: Modernize comment.
11631
11632         obstack: use _Noreturn
11633         * lib/obstack.c (__attribute__): Remove macro.
11634         (print_and_abort): Use _Noreturn.
11635
11636         c-stack: use _Noreturn
11637         * lib/c-stack.c (die, overflow_handler, segv_handler):
11638         Use _Noreturn rather than __attribute__((noreturn)).
11639
11640         argmatch-tests, exclude_tests: use _Noreturn
11641         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11642         Remove.
11643         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11644
11645         stdlib: use _Noreturn
11646         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11647         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11648         * modules/stdlib (Depends-on): Add _Noreturn.
11649         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11650
11651         stdnoreturn-tests: new module
11652         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11653
11654         stdnoreturn: new module
11655         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11656         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11657
11658         _Noreturn-tests: new module
11659         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11660
11661         _Noreturn: new module
11662         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11663         New section, mentioning it.
11664         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11665
11666         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11667
11668 2011-07-11  Eric Blake  <eblake@redhat.com>
11669
11670         ffs: new module
11671         * modules/ffs: New file.
11672         * m4/ffs.m4: Likewise.
11673         * lib/ffs.c: Likewise.
11674         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11675         * modules/strings (Makefile.am): Substitute witness.
11676         (Depends-on): Add c++defs.
11677         * lib/strings.in.h (ffs): Declare.
11678         * modules/ffs-tests: New test file.
11679         * tests/test-ffs.c: Test new module.
11680         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11681         * doc/posix-functions/ffs.texi (ffs): Likewise.
11682
11683         regex: avoid compiler warning
11684         * lib/regex.c (includes): Include <strings.h>, for use of
11685         strcasecmp in regcomp.c.
11686         Reported by Joachim Schmitz.
11687
11688 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         stdint: respect system's intmax_t if INTMAX_MAX
11691         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11692         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11693         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11694         long but int64_t is long long, and where we will clash with the
11695         system intmax_t if we override it.  See
11696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11697         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11698         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11699         similarly for UINTMAX_C.
11700
11701 2011-07-08  Bruno Haible  <bruno@clisp.org>
11702
11703         pthread_sigmask tests: Avoid a compiler warning.
11704         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11705         non-zero.
11706
11707         sigprocmask tests: A better way to avoid a compiler warning.
11708         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11709         (main): Complain if system() returns non-zero.
11710         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11711
11712 2011-07-08  Bruno Haible  <bruno@clisp.org>
11713
11714         pthread_sigmask: Work around IRIX bug.
11715         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11716         bug.
11717         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11718         there may be unblocked pending signals.
11719         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11720
11721 2011-07-08  Bruno Haible  <bruno@clisp.org>
11722
11723         pthread_sigmask: Work around Cygwin bug.
11724         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11725         bug.
11726         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11727         the system's pthread_sigmask function.
11728         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11729
11730 2011-07-08  Bruno Haible  <bruno@clisp.org>
11731
11732         pthread_sigmask: Work around bug in single-threaded implementation.
11733         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11734         FreeBSD, HP-UX, Solaris bug.
11735         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11736         * lib/pthread_sigmask.c: Include <stddef.h>.
11737         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11738         the system's pthread_sigmask function.
11739         * modules/pthread_sigmask (configure.ac): Invoke
11740         gl_PREREQ_PTHREAD_SIGMASK.
11741         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11742         HP-UX, Solaris.
11743
11744 2011-07-08  Eric Blake  <eblake@redhat.com>
11745
11746         test-sigprocmask: avoid compiler warning
11747         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11748         * tests/test-sigprocmask.c (main): Use it to silence warning.
11749         Reported by Jim Meyering.
11750
11751         test-snprintf: avoid compiler warning
11752         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11753         * tests/test-vsnprintf.c (main): Likewise.
11754         Reported by Jim Meyering.
11755
11756 2011-07-08  Bruno Haible  <bruno@clisp.org>
11757
11758         Tests for module 'pthread_sigmask'.
11759         * modules/pthread_sigmask-tests: New file.
11760         * tests/test-pthread_sigmask1.c: New file, based on
11761         tests/test-sigprocmask.c.
11762         * tests/test-pthread_sigmask2.c: New file.
11763
11764 2011-07-08  Jim Meyering  <meyering@redhat.com>
11765
11766         test-getopt.h: avoid warning about an unused variable
11767         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11768
11769 2011-07-07  Jim Meyering  <meyering@redhat.com>
11770
11771         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11772         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11773         now that it no longer contains leading TABs.
11774         Remove unused "url=FIXME" statement.
11775
11776 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11777
11778         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11779         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11780         When gl_THREADLIB is not in use, assume that the POSIX sematics
11781         are desired.  This is better for Emacs, which uses POSIX semantics
11782         on GNUish and/or POSIXish platforms, and does not use threads at
11783         all otherwise.
11784
11785         pthread_sigmask: fix typo when testing for libraries
11786         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11787         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11788
11789 2011-07-08  Eric Blake  <eblake@redhat.com>
11790
11791         fts: introduce FTS_NOATIME
11792         * lib/fts_.h (FTS_NOATIME): New bit flag.
11793         (FTS_OPTIONMASK): Adjust.
11794         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11795         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11796
11797 2011-07-08  Bruno Haible  <bruno@clisp.org>
11798
11799         Tests for module 'thread'.
11800         * modules/thread-tests: New file.
11801         * tests/test-thread_self.c: New file.
11802         * tests/test-thread_create.cc: New file.
11803
11804 2011-07-08  Bruno Haible  <bruno@clisp.org>
11805
11806         thread: Avoid gcc warnings when using gl_thread_self().
11807         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11808         'void *'.
11809         (gl_thread_self_pointer): Update.
11810
11811 2011-07-07  Bruno Haible  <bruno@clisp.org>
11812
11813         signal-c++-tests: Check declaration of pthread_sigmask.
11814         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11815         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11816         $(LIB_PTHREAD_SIGMASK).
11817
11818 2011-07-07  Bruno Haible  <bruno@clisp.org>
11819
11820         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11821         * lib/signal.in.h (pthread_sigmask): Override if
11822         REPLACE_PTHREAD_SIGMASK is 1.
11823         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11824         REPLACE_PTHREAD_SIGMASK.
11825         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11826         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11827         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11828         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11829         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11830
11831 2011-07-07  Bruno Haible  <bruno@clisp.org>
11832
11833         pthread_sigmask: Ensure declaration in <signal.h>.
11834         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11835         include <pthread.h>.
11836         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11837         problem.
11838
11839 2011-07-07  Bruno Haible  <bruno@clisp.org>
11840
11841         pthread_sigmask: Document the module.
11842         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11843
11844 2011-07-07  Bruno Haible  <bruno@clisp.org>
11845
11846         pthread_sigmask: Follow gnulib conventions.
11847         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11848         gl_PTHREAD_SIGMASK.
11849         * modules/pthread_sigmask (configure.ac): Update.
11850
11851 2011-07-07  Bruno Haible  <bruno@clisp.org>
11852
11853         pthread_sigmask: Make declaration C++ safe.
11854         * lib/signal.in.h: In two special conditions, just do an #include_next.
11855         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11856         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11857         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11858         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11859         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11860         not REPLACE_PTHREAD_MASK.
11861         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11862         not REPLACE_PTHREAD_MASK.
11863         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11864
11865 2011-07-07  Bruno Haible  <bruno@clisp.org>
11866
11867         pthread_sigmask: Fix return value.
11868         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11869         * lib/pthread_sigmask.c: New file.
11870         * modules/pthread_sigmask (Files): Add it.
11871         (configure.ac): Invoke AC_LIBOBJ.
11872
11873 2011-07-07  Eric Blake  <eblake@redhat.com>
11874
11875         getopt: more portable argv creation
11876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11877         const, use char arrays rather than strings.
11878         Suggested by Paul Eggert.
11879
11880 2011-07-07  Bruno Haible  <bruno@clisp.org>
11881
11882         Tests for module 'sigprocmask'.
11883         * modules/sigprocmask-tests: New file.
11884         * tests/test-sigprocmask.c: New file.
11885
11886 2011-07-07  Bruno Haible  <bruno@clisp.org>
11887
11888         float tests: Tweak.
11889         * tests/test-float.c (main): Tweak skip message.
11890
11891 2011-07-07  Eric Blake  <eblake@redhat.com>
11892
11893         getopt: avoid compiler warning during configure
11894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11895         assigning string literals to non-const pointer.
11896
11897         getopt-gnu: avoid crash in glibc getopt
11898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11899         * tests/test-getopt.h (test_getopt): Enhance test.
11900         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11901         * doc/posix-functions/getopt.texi (getopt): Document it.
11902         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11903         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11904         Likewise.
11905
11906 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11907
11908         getopt: handle W; without long options in getopt [BZ #12922]
11909         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11910         but no long options are defined, just return 'W'.
11911
11912 2011-07-07  Bruno Haible  <bruno@clisp.org>
11913
11914         Avoid literal tabs.
11915         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11916         variable containing a tab instead of a literal tab.
11917         Reported by Jim Meyering.
11918
11919 2011-07-07  Bruno Haible  <bruno@clisp.org>
11920
11921         Comments.
11922         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11923
11924 2011-07-06  Bruno Haible  <bruno@clisp.org>
11925
11926         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11927         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11928         <winsock2.h>.
11929         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11930         lib/sys_socket.in.h.
11931         (close, gethostname): Hide declarations from <winsock2.h>.
11932         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11933         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11934         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11935         (select): Don't override if gnulib's <sys/select.h> was already
11936         included.
11937         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11938         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11939         setsockopt, shutdown, select): Tweak indentation.
11940
11941 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11942
11943         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11944         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11945         in an application that does not use the sys_select module.
11946
11947 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11948
11949         poll: do not return 0 on timeout=-1
11950         * lib/poll.c: Loop with yield if no events occured
11951
11952 2011-07-06  Eric Blake  <eblake@redhat.com>
11953
11954         pthread_sigmask: always replace when not using pthread
11955         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11956         replacement when using some threading other than pthread.  Fix
11957         logic bug.
11958
11959 2011-07-06  Bruno Haible  <bruno@clisp.org>
11960
11961         Comments.
11962         * m4/printf.m4: Update comments about mingw.
11963
11964 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11965
11966         sys_select: define sigset_t more portably
11967         * lib/sys_select.in.h: Always include <sys/types.h>, since
11968         we now need sigset_t and mingw defines it there.
11969         Include <signal.h> before split inclusion guard, to avoid
11970         mishaps on Solaris, whose <signal.h> eventually includes us.
11971         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11972         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11973         which come from ...
11974         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11975         gl_CHECK_TYPE_SIGSET_T.
11976         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11977         does the real work.
11978         * modules/sys_select (Depends-on): Add 'signal'.
11979
11980         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11981         Suggested by Bruno Haible.
11982
11983         pselect: Use pthread_sigmask, not sigprocmask.
11984         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11985         multithreaded apps better than sigprocmask does.
11986         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11987         sigprocmask directly.
11988
11989 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11990
11991         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11992         Don't #undef,  since we don't need any underlying pselect.
11993         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11994         (Depends-on): Add select.
11995         (Link): Add $(LIBSOCKET).
11996         These changes suggested by Bruno Haible.
11997
11998         pselect: document better
11999         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12000         * doc/posix-functions/pselect.texi (pselect): Document new module.
12001
12002         pthread_sigmask: new module
12003         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12004         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12005         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12006         This is done only as a macro; I don't know how well that'll
12007         work for C++.  Move <sys/types.h> include before the include_next,
12008         to avoid mishap on Solaris.
12009         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12010         * modules/signal (Makefile.am): Substitute the check's results.
12011         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12012
12013         test-pselect: new module
12014         * modules/pselect-tests, tests/test-pselect.c: New files.
12015         * tests/test-select.c, tests/test-sys_select-c++.cc:
12016         If TEST_PSELECT is defined, test pselect instead of testing select.
12017
12018         * tests/test-sys_select.c (sigset_t): Test for it, too.
12019         Suggested by Bruno Haible.
12020
12021 2011-07-05  Eric Blake  <eblake@redhat.com>
12022
12023         snprintf: guarantee %1$d, for libintl
12024         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12025         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12026         * doc/posix-functions/snprintf.texi (snprintf): Update.
12027         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12028         * tests/test-snprintf.c (main): Enhance test.
12029         * tests/test-vsnprintf.c (main): Likewise.
12030
12031 2011-07-05  Jim Meyering  <meyering@redhat.com>
12032
12033         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12034         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12035         per Bruno's request, to accommodate this idiom (no space after "#")
12036         even when the function is inside an #if block:
12037         char *
12038         gets (char *s)
12039         #undef gets
12040         {
12041           ...
12042         }
12043
12044 2011-07-04  Jim Meyering  <meyering@redhat.com>
12045
12046         maint: indent with spaces, not TABs, and add a rule to check this
12047         * tests/test-userspec.c: Indent with spaces, not TABs.
12048         * tests/test-argp.c: Likewise.
12049         * tests/test-c-stack2.sh: Likewise.
12050         * tests/test-parse-duration.sh: Likewise
12051         * m4/strtod.m4: Likewise.
12052         * m4/alloca.m4: Likewise.
12053         * m4/pselect.m4: Likewise.
12054         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12055
12056 2011-07-03  Jim Meyering  <meyering@redhat.com>
12057
12058         maint.mk: correct omissions in prohibit_argmatch_without_use check
12059         This rule would mistakenly report that argmatch.h is included without
12060         use even when both the argmatch and invalid_arg macro were used.
12061         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12062         of argmatch and invalid_arg.
12063
12064 2011-07-03  Bruno Haible  <bruno@clisp.org>
12065
12066         Comments about EINTR.
12067         * lib/safe-read.h: Explain the purpose of this module.
12068         * lib/safe-write.h: Likewise.
12069         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12070         module.
12071         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12072         module.
12073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12074
12075 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12076
12077         xnanosleep: Rewrite to use new dtotimespec module.
12078         It has the conversion code that used to be in xnanosleep.
12079         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12080         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12081         (TIME_T_MAX): Remove.
12082         (xnanosleep): Rewrite in terms of dtotimespec.
12083         * modules/xnanosleep (Depends-on): Add dtotimespec.
12084         Remove intprops, stdbool.
12085
12086         timespec-add, timespec-sub: new modules
12087         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12088         * lib/timespec-add.c, lib/timespec-sub.c:
12089         * modules/timespec-add, modules/timespec-sub: New files.
12090
12091         dtotimespec: new module
12092         * lib/timespec.h (dtotimespec): New decl.
12093         * lib/dtotimespec.c, modules/dtotimespec: New files.
12094
12095         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12096
12097         pselect: new module
12098         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12099         (pselect): New decls.
12100         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12101         since the standard pselect decl uses 'restrict'.
12102         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12103         HAVE_PSELECT, REPLACE_PSELECT.
12104         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12105         HAVE_PSELECT, REPLACE_PSELECT.
12106         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12107
12108         sys_select: don't depend on sys_socket
12109         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12111         This fix works on GNU and GNU-like platforms, but has not been tested
12112         on native Windows.
12113         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12115         gl_HEADER_SYS_SOCKET.
12116         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12117         gl_PREREQ_SYS_H_WINSOCK2.
12118
12119 2011-06-29  Eric Blake  <eblake@redhat.com>
12120
12121         pipe2: fix C89 compile problem
12122         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12123         Reported by Bruno Haible.
12124
12125         pipe, pipe2: don't corrupt fd on error
12126         * lib/pipe.c (pipe): Leave fd unchanged on error.
12127         * lib/pipe2.c (pipe2): Likewise.
12128         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12129         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12130
12131 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12132
12133         mmap-anon: do not use regular expressions inadvertently
12134         * m4/mmap-anon.m4: Remove trailing period from strings sought
12135         in the output.
12136
12137 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12138
12139         nanosleep: fix integer overflow problem
12140         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12141         arithmetic wraps around on overflow.
12142
12143         nanosleep: simplify carrying
12144         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12145         first call to the underyling nanosleep, not for the last one.
12146         This doesn't fix any bugs, but it simplifies the computation of
12147         the remaining delay.  Found while auditing integer overflow issues.
12148
12149         dup2: remove test for existence of fcntl
12150         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12151         "#if HAVE_FCNTL", in the configure-time test program.
12152         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12153         and therefore speeds up "configure" a bit.  Found while
12154         adding the dup2 module to Emacs.
12155
12156 2011-06-24  Eric Blake  <eblake@redhat.com>
12157
12158         maint.mk: enhance useless header checks
12159         * top/maint.mk (_sc_header_without_use): Check both include
12160         styles.
12161         (sc_prohibit_assert_without_use)
12162         (sc_prohibit_close_stream_without_use)
12163         (sc_prohibit_getopt_without_use)
12164         (sc_prohibit_quotearg_without_use)
12165         (sc_prohibit_quote_without_use)
12166         (sc_prohibit_long_options_without_use)
12167         (sc_prohibit_inttostr_without_use)
12168         (sc_prohibit_ignore_value_without_use)
12169         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12170         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12171         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12172         (sc_prohibit_hash_pjw_without_use)
12173         (sc_prohibit_safe_read_without_use)
12174         (sc_prohibit_argmatch_without_use)
12175         (sc_prohibit_canonicalize_without_use)
12176         (sc_prohibit_root_dev_ino_without_use)
12177         (sc_prohibit_openat_without_use)
12178         (sc_prohibit_c_ctype_without_use)
12179         (sc_prohibit_signal_without_use)
12180         (sc_prohibit_stdio--_without_use)
12181         (sc_prohibit_stdio-safer_without_use)
12182         (sc_prohibit_strings_without_use)
12183         (sc_prohibit_intprops_without_use)
12184         (sc_prohibit_stddef_without_use)
12185         (sc_prohibit_xfreopen_without_use): Update clients.
12186
12187 2011-06-24  Jim Meyering  <meyering@redhat.com>
12188
12189         syntax-check: keep one maint.mk rule in sync with its header
12190         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12191         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12192         I prefer to avoid temporary files here, so use <(...), but that
12193         is not supported by /bin/sh, so...
12194         (SHELL): Define to /bin/bash.
12195
12196 2011-06-24  Eric Blake  <eblake@redhat.com>
12197
12198         maint.mk: update sc_prohibit_intprops_without_use
12199         * top/maint.mk (_intprops_names): Match recent changes.
12200
12201 2011-06-24  Bruno Haible  <bruno@clisp.org>
12202
12203         strerror-override: No-op tweak.
12204         * lib/strerror-override.h (strerror_override): Reorder conditions,
12205         for consistency with lib/strerror-override.c.
12206
12207 2011-06-23  Eric Blake  <eblake@redhat.com>
12208
12209         maint.mk: test further PATH_MAX issues
12210         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12211         (sc_prohibit_path_max_allocation): ...and also test alloca.
12212         Suggested by Jim Meyering.
12213
12214 2011-06-22  Eric Blake  <eblake@redhat.com>
12215
12216         maint.mk: add syntax-check to avoid char[PATH_MAX]
12217         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12218
12219         stat: be robust to PATH_MAX definition
12220         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12221         * modules/stat (Depends-on): Add verify.
12222
12223         link: work around IRIX bug
12224         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12225         * lib/link.c (rpl_link): Work around it.
12226         * tests/test-link.h (test_link): Enhance test.
12227         * doc/posix-functions/link.texi (link): Document the bug.
12228
12229         getopt: silence clang warning
12230         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12231         dereference.
12232         Reported by Gustavo Martin Domato.
12233
12234 2011-06-22  Jim Meyering  <meyering@redhat.com>
12235
12236         bootstrap: do not insert a blank line into each .gitignore file
12237         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12238
12239 2011-06-21  Eric Blake  <eblake@redhat.com>
12240
12241         perror: test for output mismatch
12242         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12243         perror on IRIX.
12244
12245         strerror_r: fix OpenBSD behavior on out-of-range
12246         * lib/strerror_r.c (strerror_r): Always use maximal string.
12247         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12248
12249         strerror_r: fix OpenBSD behavior on 0
12250         * lib/strerror-override.c (strerror_override): Also override 0
12251         when needed.
12252         * lib/strerror-override.h (strerror_override): Likewise.
12253         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12254         earlier.
12255         * lib/strerror_r.c (strerror_r): Likewise.
12256         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12257         behavior...
12258         (gl_FUNC_STRERROR_0): ...into new macro.
12259         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12260         is overridden.
12261         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12262         * modules/strerror-override (Files): Add strerror.m4.
12263         (configure.ac): Also provide override for 0 when needed.
12264         * doc/posix-functions/strerror.texi (strerror): Document this.
12265         * doc/posix-functions/perror.texi (perror): Likewise.
12266
12267         perror: adjust array size
12268         * modules/perror (Depends-on): Add strerror-override.
12269         * lib/perror.c (perror): Use it to avoid magic number.
12270
12271         strerror-override: reduce size
12272         * lib/strerror-override.c (strerror_override): Use fewer lines.
12273
12274 2011-06-20  Bruno Haible  <bruno@clisp.org>
12275
12276         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12277         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12278
12279 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12280
12281         alloca: port to compilers that can optimize like GCC 4.6.0
12282         * lib/alloca.c (find_stack_direction): New signature, taken from
12283         Autoconf git.  This works with GCC 4.6.0.  This code should never
12284         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12285         be used with other compilers that optimize as well as GCC 4.6.0 does.
12286         (alloca): Adjust to new signature.
12287         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12288         New macro, which patches Autoconf in a similar way.
12289
12290         c-stack: stop worrying about stack direction
12291         * lib/c-stack.c (find_stack_direction): Remove.
12292         (segv_handler): Don't worry about stack direction growth, as it's
12293         too much of a pain to configure this correctly, given how compilers
12294         are optimizing-away our stack-growth detection code.  Instead, assume
12295         that any access to just before or just after the stack is OK.
12296         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12297         Don't require AC_FUNC_ALLOCA; no longer needed.
12298
12299 2011-06-20  Eric Blake  <eblake@redhat.com>
12300
12301         test-stat: don't allocate PATH_MAX bytes
12302         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12303         PATH_MAX-sized buffer.
12304         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12305         * modules/stat-tests (Depends-on): Likewise.
12306         * tests/test-fstatat.c (includes): Drop pathmax.h.
12307         * tests/test-stat.c (includes): Likewise.
12308         Reported by Bruno Haible.
12309
12310 2011-06-20  Bruno Haible  <bruno@clisp.org>
12311
12312         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12313         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12314         * lib/float.c: New file.
12315         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12316         REPLACE_FLOAT_LDBL.
12317         * modules/float (Files): Add lib/float.c.
12318         (configure.ac): Invoke AC_LIBOBJ.
12319         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12320
12321 2011-06-20  Bruno Haible  <bruno@clisp.org>
12322
12323         Tests for module 'float'.
12324         * modules/float-tests: New file.
12325         * tests/test-float.c: New file.
12326
12327 2011-06-19  Bruno Haible  <bruno@clisp.org>
12328
12329         isinf: Coding style.
12330         * lib/isinf.c: Use GNU coding style.
12331
12332 2011-06-19  Bruno Haible  <bruno@clisp.org>
12333
12334         linkat test: Avoid test failure on AIX 7.1.
12335         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12336         * tests/test-link.h (test_link): Likewise.
12337
12338 2011-06-19  Bruno Haible  <bruno@clisp.org>
12339
12340         pread test: Avoid test failure on OpenBSD 4.9.
12341         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12342
12343 2011-06-19  Bruno Haible  <bruno@clisp.org>
12344
12345         sprintf-posix: Fix test failure on AIX 7.1.
12346         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12347         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12348         on AIX.
12349         * doc/posix-functions/fprintf.texi: Likewise.
12350         * doc/posix-functions/printf.texi: Likewise.
12351         * doc/posix-functions/snprintf.texi: Likewise.
12352         * doc/posix-functions/sprintf.texi: Likewise.
12353         * doc/posix-functions/vdprintf.texi: Likewise.
12354         * doc/posix-functions/vfprintf.texi: Likewise.
12355         * doc/posix-functions/vprintf.texi: Likewise.
12356         * doc/posix-functions/vsnprintf.texi: Likewise.
12357         * doc/posix-functions/vsprintf.texi: Likewise.
12358
12359 2011-06-19  Bruno Haible  <bruno@clisp.org>
12360
12361         roundl-ieee: Fix test failure on AIX 7.1.
12362         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12363         * doc/posix-functions/roundl.texi: Mention problem with negative
12364         arguments.
12365
12366 2011-06-19  Bruno Haible  <bruno@clisp.org>
12367
12368         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12369         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12370         * doc/posix-functions/round.texi: Mention problem with negative
12371         arguments.
12372         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12373
12374 2011-06-19  Bruno Haible  <bruno@clisp.org>
12375
12376         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12378         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12379         * doc/posix-functions/roundf.texi: Mention problem with negative
12380         arguments.
12381         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12382
12383 2011-06-19  Bruno Haible  <bruno@clisp.org>
12384
12385         ceilf-ieee: Work around bug on MacOS X 10.5.
12386         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12387
12388         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12389         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12390         IEEE compliant, avoid compiler optimizations.
12391         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12392         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12393         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12394         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12395         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12396         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12397         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12399         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12400         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12401
12402 2011-06-19  Bruno Haible  <bruno@clisp.org>
12403
12404         ceilf-ieee: Work around bug on AIX 7.1.
12405         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12406         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12407
12408 2011-06-19  Bruno Haible  <bruno@clisp.org>
12409
12410         ceil-ieee: Work around bug on AIX 7.1.
12411         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12412         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12413
12414 2011-06-18  Bruno Haible  <bruno@clisp.org>
12415
12416         fsync test: Avoid test failure on MacOS X and AIX.
12417         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12418         EINVAL.
12419
12420 2011-06-18  Bruno Haible  <bruno@clisp.org>
12421
12422         openat, fdopendir tests: Fix link errors.
12423         * modules/openat-tests (Depends-on): Add progname.
12424         * modules/fdopendir-tests (Depends-on): Likewise.
12425         * tests/test-fchownat.c: Include progname.h.
12426         (main): Call set_program_name.
12427         * tests/test-fstatat.c: Include progname.h.
12428         (main): Call set_program_name.
12429         * tests/test-mkdirat.c: Include progname.h.
12430         (main): Call set_program_name.
12431         * tests/test-openat.c: Include progname.h.
12432         (main): Call set_program_name.
12433         * tests/test-unlinkat.c: Include progname.h.
12434         (main): Call set_program_name.
12435         * tests/test-fdopendir.c: Include progname.h.
12436         (main): Call set_program_name.
12437
12438 2011-06-18  Bruno Haible  <bruno@clisp.org>
12439
12440         Doc update.
12441         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12442         HP-UX.
12443         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12444
12445 2011-06-18  Bruno Haible  <bruno@clisp.org>
12446
12447         getcwd tests: Avoid compilation error on HP-UX 11.31.
12448         * modules/getcwd-tests (Depends-on): Add pathmax.
12449         * tests/test-getcwd.c: Include pathmax.h.
12450
12451 2011-06-18  Bruno Haible  <bruno@clisp.org>
12452
12453         isfinite, isinf: Fix link error on AIX 6 and 7.
12454         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12455         needed, also test the macro with a 'float' argument.
12456         * m4/isinf.m4 (gl_ISINF): Likewise.
12457
12458 2011-06-18  Bruno Haible  <bruno@clisp.org>
12459
12460         getloadavg: Don't clobber LIBS. Regression from previous commit.
12461         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12462         AC_CHECK_LIB from here...
12463         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12464         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12465         gl_func_getloadavg_done.
12466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12467
12468 2011-06-18  Bruno Haible  <bruno@clisp.org>
12469
12470         clean-temp: Improve documentation.
12471         * lib/clean-temp.h: Explain better how to use this module.
12472         Reported by John Darrington <john@darrington.wattle.id.au>.
12473
12474 2011-06-17  Bruno Haible  <bruno@clisp.org>
12475
12476         pread, pwrite: Avoid cc warning on AIX.
12477         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12478         (pwrite): Likewise.
12479
12480 2011-06-17  Bruno Haible  <bruno@clisp.org>
12481
12482         spawn-pipe tests: Fix link error.
12483         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12485
12486 2011-06-17  Bruno Haible  <bruno@clisp.org>
12487
12488         Tests: Remove unnecessary dependency.
12489         * modules/canonicalize-tests (Depends-on): Remove progname.
12490         * modules/chown-tests (Depends-on): Likewise.
12491         * modules/dirname-tests (Depends-on): Likewise.
12492         * modules/fdopendir-tests (Depends-on): Likewise.
12493         * modules/fdutimensat-tests (Depends-on): Likewise.
12494         * modules/hash-tests (Depends-on): Likewise.
12495         * modules/lchown-tests (Depends-on): Likewise.
12496         * modules/linkat-tests (Depends-on): Likewise.
12497         * modules/renameat-tests (Depends-on): Likewise.
12498         * modules/spawn-pipe-tests (Depends-on): Likewise.
12499         * modules/utimensat-tests (Depends-on): Likewise.
12500
12501 2011-06-17  Bruno Haible  <bruno@clisp.org>
12502
12503         spawn-pipe tests: Fix link error.
12504         * tests/test-spawn-pipe-child.c: Undefine fflush.
12505
12506 2011-06-17  Bruno Haible  <bruno@clisp.org>
12507
12508         Fix tests link errors.
12509         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12510         * modules/chown-tests (Makefile.am): Don't link test-chown with
12511         LIBINTL.
12512         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12513         LIBINTL.
12514         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12515         LIBINTL.
12516         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12517         LIBINTL.
12518
12519 2011-06-16  Bruno Haible  <bruno@clisp.org>
12520
12521         crypto/gc-sha1: Fix recent regression.
12522         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12523         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12524
12525         crypto/gc-md5: Fix recent regression.
12526         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12527
12528         crypto/gc-md4: Fix recent regression.
12529         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12530         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12531
12532         crypto/gc-arctwo: Fix recent regression.
12533         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12534         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12535
12536         crypto/gc-rijndael: Fix recent regression.
12537         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12538         (configure.ac): Invoke AC_LIBOBJ here.
12539         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12541
12542         crypto/gc-hmac-sha1: Fix recent regression.
12543         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12544         (configure.ac): Invoke AC_LIBOBJ here.
12545         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12546         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12547
12548         crypto/gc-hmac-md5: Fix recent regression.
12549         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12550         (configure.ac): Invoke AC_LIBOBJ here.
12551         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12553
12554         crypto/gc-des: Fix recent regression.
12555         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12556         (configure.ac): Invoke AC_LIBOBJ here.
12557         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12559
12560         crypto/gc-arcfour: Fix recent regression.
12561         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12562         (configure.ac): Invoke AC_LIBOBJ here.
12563         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12565
12566 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12567
12568         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12569         After the 2011-05-21 change, this macro requires
12570         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12571         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12572
12573 2011-06-16  Bruno Haible  <bruno@clisp.org>
12574
12575         fprintftime: Move AC_LIBOBJ invocations to module description.
12576         * m4/fprintftime.m4: Remove file.
12577         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12578         (configure.ac): Remove gl_FPRINTFTIME call.
12579         (Makefile.am): Augment lib_SOURCES.
12580         Reported by Jim Meyering.
12581
12582 2011-06-16  Bruno Haible  <bruno@clisp.org>
12583
12584         tmpfile-safer: Finish 2011-05-23 commit.
12585         * m4/stdio-safer.m4: Really remove file.
12586         Reported by Jim Meyering.
12587
12588 2011-06-16  Bruno Haible  <bruno@clisp.org>
12589
12590         syntax-check: Fix typo.
12591         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12592         printf-posix.m4.
12593         Reported by Jim Meyering.
12594
12595 2011-06-13  Jim Meyering  <meyering@redhat.com>
12596
12597         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12598         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12599
12600 2011-05-23  Bruno Haible  <bruno@clisp.org>
12601
12602         yesno: Move AC_LIBOBJ invocations to module description.
12603         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12604         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12605
12606 2011-05-23  Bruno Haible  <bruno@clisp.org>
12607
12608         xstrtol: Move AC_LIBOBJ invocations to module description.
12609         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12610         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12611
12612 2011-05-23  Bruno Haible  <bruno@clisp.org>
12613
12614         xstrtold: Move AC_LIBOBJ invocations to module description.
12615         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12616         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12617
12618 2011-05-23  Bruno Haible  <bruno@clisp.org>
12619
12620         xstrtod: Move AC_LIBOBJ invocations to module description.
12621         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12622         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12623
12624 2011-05-23  Bruno Haible  <bruno@clisp.org>
12625
12626         xnanosleep: Move AC_LIBOBJ invocations to module description.
12627         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12628         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12629
12630 2011-05-23  Bruno Haible  <bruno@clisp.org>
12631
12632         xgetcwd: Move AC_LIBOBJ invocations to module description.
12633         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12634         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12635
12636 2011-05-23  Bruno Haible  <bruno@clisp.org>
12637
12638         xalloc: Move AC_LIBOBJ invocations to module description.
12639         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12640         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12641
12642 2011-05-23  Bruno Haible  <bruno@clisp.org>
12643
12644         write-any-file: Move AC_LIBOBJ invocations to module description.
12645         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12646         invocation.
12647         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12648
12649 2011-05-23  Bruno Haible  <bruno@clisp.org>
12650
12651         utimens: Move AC_LIBOBJ invocations to module description.
12652         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12653         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12654
12655 2011-05-23  Bruno Haible  <bruno@clisp.org>
12656
12657         utimecmp: Move AC_LIBOBJ invocations to module description.
12658         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12659         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12660
12661 2011-05-23  Bruno Haible  <bruno@clisp.org>
12662
12663         userspec: Move AC_LIBOBJ invocations to module description.
12664         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12665         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12666
12667 2011-05-23  Bruno Haible  <bruno@clisp.org>
12668
12669         unlinkdir: Move AC_LIBOBJ invocations to module description.
12670         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12671         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12672
12673 2011-05-23  Bruno Haible  <bruno@clisp.org>
12674
12675         unistd-safer: Move AC_LIBOBJ invocations to module description.
12676         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12677         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12678
12679 2011-05-23  Bruno Haible  <bruno@clisp.org>
12680
12681         tempname: Move AC_LIBOBJ invocations to module description.
12682         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12683         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12684
12685 2011-05-23  Bruno Haible  <bruno@clisp.org>
12686
12687         strftime: Move AC_LIBOBJ invocations to module description.
12688         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12689         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12690
12691 2011-05-23  Bruno Haible  <bruno@clisp.org>
12692
12693         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12694         * m4/stdlib-safer.m4: Remove file.
12695         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12696         (configure.ac): Remove gl_STDLIB_SAFER call.
12697         (Makefile.am): Augment lib_SOURCES.
12698
12699 2011-05-23  Bruno Haible  <bruno@clisp.org>
12700
12701         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12702         * m4/stdio-safer.m4: Remove file.
12703         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12704         (configure.ac): Remove gl_TMPFILE_SAFER call.
12705         (Makefile.am): Augment lib_SOURCES.
12706
12707 2011-05-23  Bruno Haible  <bruno@clisp.org>
12708
12709         popen-safer: Move AC_LIBOBJ invocations to module description.
12710         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12711         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12712         (configure.ac): Remove gl_POPEN_SAFER call.
12713         (Makefile.am): Augment lib_SOURCES.
12714
12715 2011-05-23  Bruno Haible  <bruno@clisp.org>
12716
12717         freopen-safer: Move AC_LIBOBJ invocations to module description.
12718         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12719         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12720         (configure.ac): Remove gl_FREOPEN_SAFER call.
12721         (Makefile.am): Augment lib_SOURCES.
12722
12723 2011-05-23  Bruno Haible  <bruno@clisp.org>
12724
12725         fopen-safer: Move AC_LIBOBJ invocations to module description.
12726         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12727         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12728         (configure.ac): Remove gl_FOPEN_SAFER call.
12729         (Makefile.am): Augment lib_SOURCES.
12730
12731 2011-05-23  Bruno Haible  <bruno@clisp.org>
12732
12733         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12734         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12735         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12736
12737 2011-05-23  Bruno Haible  <bruno@clisp.org>
12738
12739         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12740         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12741         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12742
12743 2011-05-23  Bruno Haible  <bruno@clisp.org>
12744
12745         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12746         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12747         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12748
12749 2011-05-23  Bruno Haible  <bruno@clisp.org>
12750
12751         settime: Move AC_LIBOBJ invocations to module description.
12752         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12753         * modules/settime (Makefile.am): Augment lib_SOURCES.
12754
12755 2011-05-23  Bruno Haible  <bruno@clisp.org>
12756
12757         savedir: Move AC_LIBOBJ invocations to module description.
12758         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12759         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12760
12761 2011-05-23  Bruno Haible  <bruno@clisp.org>
12762
12763         save-cwd: Move AC_LIBOBJ invocations to module description.
12764         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12765         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12766
12767 2011-05-23  Bruno Haible  <bruno@clisp.org>
12768
12769         same: Move AC_LIBOBJ invocations to module description.
12770         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12771         * modules/same (Makefile.am): Augment lib_SOURCES.
12772
12773 2011-05-23  Bruno Haible  <bruno@clisp.org>
12774
12775         safe-write: Move AC_LIBOBJ invocations to module description.
12776         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12777         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12778         instead of gl_SAFE_WRITE.
12779         (Makefile.am): Augment lib_SOURCES.
12780
12781 2011-05-23  Bruno Haible  <bruno@clisp.org>
12782
12783         safe-read: Move AC_LIBOBJ invocations to module description.
12784         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12785         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12786         of gl_SAFE_READ.
12787         (Makefile.am): Augment lib_SOURCES.
12788
12789 2011-05-23  Bruno Haible  <bruno@clisp.org>
12790
12791         safe-alloc: Move AC_LIBOBJ invocations to module description.
12792         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12793         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12794
12795 2011-05-23  Bruno Haible  <bruno@clisp.org>
12796
12797         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12798         * m4/rijndael.m4: Remove file.
12799         * modules/crypto/rijndael (Files): Remove it.
12800         (configure.ac): Remove gl_RIJNDAEL call.
12801         (Makefile.am): Augment lib_SOURCES.
12802
12803 2011-05-23  Bruno Haible  <bruno@clisp.org>
12804
12805         readtokens: Move AC_LIBOBJ invocations to module description.
12806         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12807         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12808
12809 2011-05-23  Bruno Haible  <bruno@clisp.org>
12810
12811         read-file: Move AC_LIBOBJ invocations to module description.
12812         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12813         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12814         of gl_FUNC_READ_FILE.
12815         (Makefile.am): Augment lib_SOURCES.
12816
12817 2011-05-23  Bruno Haible  <bruno@clisp.org>
12818
12819         quotearg: Move AC_LIBOBJ invocations to module description.
12820         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12821         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12822
12823 2011-05-23  Bruno Haible  <bruno@clisp.org>
12824
12825         quote: Move AC_LIBOBJ invocations to module description.
12826         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12827         * modules/quote (Makefile.am): Augment lib_SOURCES.
12828
12829 2011-05-23  Bruno Haible  <bruno@clisp.org>
12830
12831         posixver: Move AC_LIBOBJ invocations to module description.
12832         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12833         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12834
12835 2011-05-23  Bruno Haible  <bruno@clisp.org>
12836
12837         posixtm: Move AC_LIBOBJ invocations to module description.
12838         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12839         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12840
12841 2011-05-23  Bruno Haible  <bruno@clisp.org>
12842
12843         physmem: Move AC_LIBOBJ invocations to module description.
12844         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12845         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12846
12847 2011-05-23  Bruno Haible  <bruno@clisp.org>
12848
12849         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12850         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12851         invocation.
12852         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12853
12854 2011-05-23  Bruno Haible  <bruno@clisp.org>
12855
12856         mpsort: Move AC_LIBOBJ invocations to module description.
12857         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12858         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12859
12860 2011-05-23  Bruno Haible  <bruno@clisp.org>
12861
12862         modechange: Move AC_LIBOBJ invocations to module description.
12863         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12864         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12865
12866 2011-05-23  Bruno Haible  <bruno@clisp.org>
12867
12868         mkdir-p: Move AC_LIBOBJ invocations to module description.
12869         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12870         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12871
12872 2011-05-23  Bruno Haible  <bruno@clisp.org>
12873
12874         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12875         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12876         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12877
12878 2011-05-23  Bruno Haible  <bruno@clisp.org>
12879
12880         mgetgroups: Move AC_LIBOBJ invocations to module description.
12881         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12882         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12883
12884 2011-05-23  Bruno Haible  <bruno@clisp.org>
12885
12886         memxor: Move AC_LIBOBJ invocations to module description.
12887         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12888         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12889
12890 2011-05-23  Bruno Haible  <bruno@clisp.org>
12891
12892         memcoll: Move AC_LIBOBJ invocations to module description.
12893         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12894         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12895
12896 2011-05-23  Bruno Haible  <bruno@clisp.org>
12897
12898         memcasecmp: Move AC_LIBOBJ invocations to module description.
12899         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12900         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12901
12902 2011-05-23  Bruno Haible  <bruno@clisp.org>
12903
12904         crypto/md5: Move AC_LIBOBJ invocations to module description.
12905         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12906         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12907
12908 2011-05-23  Bruno Haible  <bruno@clisp.org>
12909
12910         crypto/md4: Move AC_LIBOBJ invocations to module description.
12911         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12912         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12913
12914 2011-05-23  Bruno Haible  <bruno@clisp.org>
12915
12916         crypto/md2: Move AC_LIBOBJ invocations to module description.
12917         * m4/md2.m4: Remove file.
12918         * modules/crypto/md2 (Files): Remove it.
12919         (configure.ac): Remove gl_MD2 call.
12920         (Makefile.am): Augment lib_SOURCES.
12921
12922 2011-05-23  Bruno Haible  <bruno@clisp.org>
12923
12924         long-options: Move AC_LIBOBJ invocations to module description.
12925         * m4/long-options.m4: Remove file.
12926         * modules/long-options (Files): Remove it.
12927         (configure.ac): Remove gl_LONG_OPTIONS call.
12928         (Makefile.am): Augment lib_SOURCES.
12929
12930 2011-05-23  Bruno Haible  <bruno@clisp.org>
12931
12932         i-ring: Move AC_LIBOBJ invocations to module description.
12933         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12934         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12935
12936 2011-05-23  Bruno Haible  <bruno@clisp.org>
12937
12938         idcache: Move AC_LIBOBJ invocations to module description.
12939         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12940         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12941
12942 2011-05-23  Bruno Haible  <bruno@clisp.org>
12943
12944         human: Move AC_LIBOBJ invocations to module description.
12945         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12946         * modules/human (Makefile.am): Augment lib_SOURCES.
12947
12948 2011-05-23  Bruno Haible  <bruno@clisp.org>
12949
12950         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12951         * m4/hmac-sha1.m4: Remove file.
12952         * modules/crypto/hmac-sha1 (Files): Remove it.
12953         (configure.ac): Remove gl_HMAC_SHA1 call.
12954         (Makefile.am): Augment lib_SOURCES.
12955
12956 2011-05-23  Bruno Haible  <bruno@clisp.org>
12957
12958         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12959         * m4/hmac-md5.m4: Remove file.
12960         * modules/crypto/hmac-md5 (Files): Remove it.
12961         (configure.ac): Remove gl_HMAC_MD5 call.
12962         (Makefile.am): Augment lib_SOURCES.
12963
12964 2011-05-23  Bruno Haible  <bruno@clisp.org>
12965
12966         hash: Move AC_LIBOBJ invocations to module description.
12967         * m4/hash.m4: Remove file.
12968         * modules/hash (Files): Remove it.
12969         (configure.ac): Remove gl_HASH call.
12970         (Makefile.am): Augment lib_SOURCES.
12971
12972 2011-05-23  Bruno Haible  <bruno@clisp.org>
12973
12974         hard-locale: Move AC_LIBOBJ invocations to module description.
12975         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12976         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12977
12978 2011-05-23  Bruno Haible  <bruno@clisp.org>
12979
12980         getugroups: Move AC_LIBOBJ invocations to module description.
12981         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12982         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12983
12984 2011-05-23  Bruno Haible  <bruno@clisp.org>
12985
12986         gettime: Move AC_LIBOBJ invocations to module description.
12987         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12988         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12989
12990 2011-05-23  Bruno Haible  <bruno@clisp.org>
12991
12992         getndelim2: Move AC_LIBOBJ invocations to module description.
12993         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12994         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12995
12996 2011-05-23  Bruno Haible  <bruno@clisp.org>
12997
12998         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12999         * m4/gc-pbkdf2-sha1.m4: Remove file.
13000         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13001         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13002         (Makefile.am): Augment lib_SOURCES.
13003
13004 2011-05-23  Bruno Haible  <bruno@clisp.org>
13005
13006         fts: Move AC_LIBOBJ invocations to module description.
13007         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13008         * modules/fts (configure.ac): ... to here.
13009
13010 2011-05-23  Bruno Haible  <bruno@clisp.org>
13011
13012         file-type: Move AC_LIBOBJ invocations to module description.
13013         * m4/file-type.m4: Remove file.
13014         * modules/file-type (Files): Remove it.
13015         (configure.ac): Remove gl_FILE_TYPE call.
13016         (Makefile.am): Augment lib_SOURCES.
13017
13018 2011-05-23  Bruno Haible  <bruno@clisp.org>
13019
13020         filenamecat*: Respect rules for use of AC_LIBOBJ.
13021         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13022         Remove AC_LIBOBJ invocation.
13023         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13024         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13025
13026 2011-05-23  Bruno Haible  <bruno@clisp.org>
13027
13028         filemode: Move AC_LIBOBJ invocations to module description.
13029         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13030         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13031
13032 2011-05-23  Bruno Haible  <bruno@clisp.org>
13033
13034         openat-safer: Move AC_LIBOBJ invocations to module description.
13035         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13036         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13037
13038 2011-05-23  Bruno Haible  <bruno@clisp.org>
13039
13040         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13041         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13042         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13043
13044 2011-05-23  Bruno Haible  <bruno@clisp.org>
13045
13046         exclude: Move AC_LIBOBJ invocations to module description.
13047         * m4/exclude.m4: Remove file.
13048         * modules/exclude (Files): Remove it.
13049         (configure.ac): Remove gl_EXCLUDE call.
13050         (Makefile.am): Augment lib_SOURCES.
13051
13052 2011-05-23  Bruno Haible  <bruno@clisp.org>
13053
13054         dirname*: Respect rules for use of AC_LIBOBJ.
13055         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13056         invocations.
13057         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13058         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13059
13060 2011-05-23  Bruno Haible  <bruno@clisp.org>
13061
13062         dirent-safer: Move AC_LIBOBJ invocations to module description.
13063         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13064         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13065
13066 2011-05-23  Bruno Haible  <bruno@clisp.org>
13067
13068         crypto/des: Move AC_LIBOBJ invocations to module description.
13069         * m4/des.m4: Remove file.
13070         * modules/crypto/des (Files): Remove it.
13071         (configure.ac): Remove gl_DES call.
13072         (Makefile.am): Augment lib_SOURCES.
13073
13074 2011-05-23  Bruno Haible  <bruno@clisp.org>
13075
13076         cycle-check: Move AC_LIBOBJ invocations to module description.
13077         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13078         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13079
13080 2011-05-23  Bruno Haible  <bruno@clisp.org>
13081
13082         c-strtold: Move AC_LIBOBJ invocations to module description.
13083         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13084         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13085
13086 2011-05-23  Bruno Haible  <bruno@clisp.org>
13087
13088         c-strtod: Move AC_LIBOBJ invocations to module description.
13089         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13090         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13091
13092 2011-05-23  Bruno Haible  <bruno@clisp.org>
13093
13094         crc: Move AC_LIBOBJ invocations to module description.
13095         * m4/crc.m4: Remove file.
13096         * modules/crc (Files): Remove it.
13097         (configure.ac): Remove gl_CRC call.
13098         (Makefile.am): Augment lib_SOURCES.
13099
13100 2011-05-23  Bruno Haible  <bruno@clisp.org>
13101
13102         close-stream: Move AC_LIBOBJ invocations to module description.
13103         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13104         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13105
13106 2011-05-23  Bruno Haible  <bruno@clisp.org>
13107
13108         closeout: Move AC_LIBOBJ invocations to module description.
13109         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13110         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13111
13112 2011-05-23  Bruno Haible  <bruno@clisp.org>
13113
13114         closein: Move AC_LIBOBJ invocations to module description.
13115         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13116         * modules/closein (Makefile.am): Augment lib_SOURCES.
13117
13118 2011-05-23  Bruno Haible  <bruno@clisp.org>
13119
13120         cloexec: Move AC_LIBOBJ invocations to module description.
13121         * m4/cloexec.m4: Remove file.
13122         * modules/cloexec (Files): Remove it.
13123         (configure.ac): Remove gl_CLOEXEC call.
13124         (Makefile.am): Augment lib_SOURCES.
13125
13126 2011-05-23  Bruno Haible  <bruno@clisp.org>
13127
13128         check-version: Move AC_LIBOBJ invocations to module description.
13129         * m4/check-version.m4: Remove file.
13130         * modules/check-version (Files): Remove it.
13131         (configure.ac): Remove gl_CHECK_VERSION call.
13132         (Makefile.am): Augment lib_SOURCES.
13133
13134 2011-05-23  Bruno Haible  <bruno@clisp.org>
13135
13136         chdir-safer: Move AC_LIBOBJ invocations to module description.
13137         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13138         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13139
13140 2011-05-23  Bruno Haible  <bruno@clisp.org>
13141
13142         canonicalize: Move AC_LIBOBJ invocations to module description.
13143         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13144         AC_LIBOBJ invocation.
13145         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13146
13147 2011-05-23  Bruno Haible  <bruno@clisp.org>
13148
13149         canon-host: Move AC_LIBOBJ invocations to module description.
13150         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13151         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13152         instead of gl_CANON_HOST.
13153         (Makefile.am): Augment lib_SOURCES.
13154
13155 2011-05-23  Bruno Haible  <bruno@clisp.org>
13156
13157         backupfile: Move AC_LIBOBJ invocations to module description.
13158         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13159         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13160
13161 2011-05-23  Bruno Haible  <bruno@clisp.org>
13162
13163         argmatch: Move AC_LIBOBJ invocations to module description.
13164         * m4/argmatch.m4: Remove file.
13165         * modules/argmatch (Files): Remove it.
13166         (configure.ac): Remove gl_ARGMATCH call.
13167         (Makefile.am): Augment lib_SOURCES.
13168
13169 2011-05-23  Bruno Haible  <bruno@clisp.org>
13170
13171         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13172         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13173         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13174
13175 2011-05-23  Bruno Haible  <bruno@clisp.org>
13176
13177         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13178         * m4/arcfour.m4: Remove file.
13179         * modules/crypto/arcfour (Files): Remove it.
13180         (configure.ac): Remove gl_ARCFOUR call.
13181         (Makefile.am): Augment lib_SOURCES.
13182
13183 2011-05-22  Bruno Haible  <bruno@clisp.org>
13184
13185         write: Move AC_LIBOBJ invocations to module description.
13186         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13187         * modules/write (configure.ac): ... to here.
13188
13189 2011-05-22  Bruno Haible  <bruno@clisp.org>
13190
13191         wmemset: Move AC_LIBOBJ invocations to module description.
13192         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13193         here...
13194         * modules/wmemset (configure.ac): ... to here.
13195
13196 2011-05-22  Bruno Haible  <bruno@clisp.org>
13197
13198         wmemmove: Move AC_LIBOBJ invocations to module description.
13199         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13200         here...
13201         * modules/wmemmove (configure.ac): ... to here.
13202
13203 2011-05-22  Bruno Haible  <bruno@clisp.org>
13204
13205         wmemcpy: Move AC_LIBOBJ invocations to module description.
13206         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13207         here...
13208         * modules/wmemcpy (configure.ac): ... to here.
13209
13210 2011-05-22  Bruno Haible  <bruno@clisp.org>
13211
13212         wmemcmp: Move AC_LIBOBJ invocations to module description.
13213         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13214         here...
13215         * modules/wmemcmp (configure.ac): ... to here.
13216
13217 2011-05-22  Bruno Haible  <bruno@clisp.org>
13218
13219         wmemchr: Move AC_LIBOBJ invocations to module description.
13220         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13221         here...
13222         * modules/wmemchr (configure.ac): ... to here.
13223
13224 2011-05-22  Bruno Haible  <bruno@clisp.org>
13225
13226         wcswidth: Move AC_LIBOBJ invocations to module description.
13227         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13228         here...
13229         * modules/wcswidth (configure.ac): ... to here.
13230
13231 2011-05-22  Bruno Haible  <bruno@clisp.org>
13232
13233         wcwidth: Respect rules for use of AC_LIBOBJ.
13234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13235         invocation from here...
13236         * modules/wcwidth (configure.ac): ... to here.
13237         (Depends-on): Update conditions.
13238
13239 2011-05-22  Bruno Haible  <bruno@clisp.org>
13240
13241         wctype: Move AC_LIBOBJ invocations to module description.
13242         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13243         invocation from here...
13244         * modules/wctype (configure.ac): ... to here.
13245         (Depends-on): Update conditions.
13246
13247 2011-05-22  Bruno Haible  <bruno@clisp.org>
13248
13249         wctrans: Move AC_LIBOBJ invocations to module description.
13250         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13251         invocation from here...
13252         * modules/wctrans (configure.ac): ... to here.
13253
13254 2011-05-22  Bruno Haible  <bruno@clisp.org>
13255
13256         wctomb: Move AC_LIBOBJ invocations to module description.
13257         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13258         invocations from here...
13259         * modules/wctomb (configure.ac): ... to here.
13260
13261 2011-05-22  Bruno Haible  <bruno@clisp.org>
13262
13263         wctob: Move AC_LIBOBJ invocations to module description.
13264         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13265         gl_PREREQ_WCTOB invocations from here...
13266         * modules/wctob (configure.ac): ... to here.
13267         (Depends-on): Update conditions.
13268
13269 2011-05-22  Bruno Haible  <bruno@clisp.org>
13270
13271         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13272         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13273         here...
13274         * modules/wcsxfrm (configure.ac): ... to here.
13275
13276 2011-05-22  Bruno Haible  <bruno@clisp.org>
13277
13278         wcstok: Move AC_LIBOBJ invocations to module description.
13279         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13280         * modules/wcstok (configure.ac): ... to here.
13281
13282 2011-05-22  Bruno Haible  <bruno@clisp.org>
13283
13284         wcsstr: Move AC_LIBOBJ invocations to module description.
13285         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13286         * modules/wcsstr (configure.ac): ... to here.
13287
13288 2011-05-22  Bruno Haible  <bruno@clisp.org>
13289
13290         wcsspn: Move AC_LIBOBJ invocations to module description.
13291         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13292         * modules/wcsspn (configure.ac): ... to here.
13293
13294 2011-05-22  Bruno Haible  <bruno@clisp.org>
13295
13296         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13297         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13298         gl_PREREQ_WCSRTOMBS invocations from here...
13299         * modules/wcsrtombs (configure.ac): ... to here.
13300
13301 2011-05-22  Bruno Haible  <bruno@clisp.org>
13302
13303         wcsrchr: Move AC_LIBOBJ invocations to module description.
13304         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13305         here...
13306         * modules/wcsrchr (configure.ac): ... to here.
13307
13308 2011-05-22  Bruno Haible  <bruno@clisp.org>
13309
13310         wcspbrk: Move AC_LIBOBJ invocations to module description.
13311         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13312         here...
13313         * modules/wcspbrk (configure.ac): ... to here.
13314
13315 2011-05-22  Bruno Haible  <bruno@clisp.org>
13316
13317         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13318         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13319         gl_PREREQ_WCSNRTOMBS invocations from here...
13320         * modules/wcsnrtombs (configure.ac): ... to here.
13321
13322 2011-05-22  Bruno Haible  <bruno@clisp.org>
13323
13324         wcsnlen: Move AC_LIBOBJ invocations to module description.
13325         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13326         here...
13327         * modules/wcsnlen (configure.ac): ... to here.
13328
13329 2011-05-22  Bruno Haible  <bruno@clisp.org>
13330
13331         wcsncpy: Move AC_LIBOBJ invocations to module description.
13332         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13333         here...
13334         * modules/wcsncpy (configure.ac): ... to here.
13335
13336 2011-05-22  Bruno Haible  <bruno@clisp.org>
13337
13338         wcsncmp: Move AC_LIBOBJ invocations to module description.
13339         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13340         here...
13341         * modules/wcsncmp (configure.ac): ... to here.
13342
13343 2011-05-22  Bruno Haible  <bruno@clisp.org>
13344
13345         wcsncat: Move AC_LIBOBJ invocations to module description.
13346         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13347         here...
13348         * modules/wcsncat (configure.ac): ... to here.
13349
13350 2011-05-22  Bruno Haible  <bruno@clisp.org>
13351
13352         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13353         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13354         from here...
13355         * modules/wcsncasecmp (configure.ac): ... to here.
13356
13357 2011-05-22  Bruno Haible  <bruno@clisp.org>
13358
13359         wcslen: Move AC_LIBOBJ invocations to module description.
13360         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13361         * modules/wcslen (configure.ac): ... to here.
13362
13363 2011-05-22  Bruno Haible  <bruno@clisp.org>
13364
13365         wcsdup: Move AC_LIBOBJ invocations to module description.
13366         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13367         * modules/wcsdup (configure.ac): ... to here.
13368
13369 2011-05-22  Bruno Haible  <bruno@clisp.org>
13370
13371         wcscspn: Move AC_LIBOBJ invocations to module description.
13372         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13373         here...
13374         * modules/wcscspn (configure.ac): ... to here.
13375
13376 2011-05-22  Bruno Haible  <bruno@clisp.org>
13377
13378         wcscpy: Move AC_LIBOBJ invocations to module description.
13379         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13380         * modules/wcscpy (configure.ac): ... to here.
13381
13382 2011-05-22  Bruno Haible  <bruno@clisp.org>
13383
13384         wcscoll: Move AC_LIBOBJ invocations to module description.
13385         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13386         here...
13387         * modules/wcscoll (configure.ac): ... to here.
13388
13389 2011-05-22  Bruno Haible  <bruno@clisp.org>
13390
13391         wcscmp: Move AC_LIBOBJ invocations to module description.
13392         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13393         * modules/wcscmp (configure.ac): ... to here.
13394
13395 2011-05-22  Bruno Haible  <bruno@clisp.org>
13396
13397         wcschr: Move AC_LIBOBJ invocations to module description.
13398         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13399         * modules/wcschr (configure.ac): ... to here.
13400
13401 2011-05-22  Bruno Haible  <bruno@clisp.org>
13402
13403         wcscat: Move AC_LIBOBJ invocations to module description.
13404         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13405         * modules/wcscat (configure.ac): ... to here.
13406
13407 2011-05-22  Bruno Haible  <bruno@clisp.org>
13408
13409         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13410         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13411         here...
13412         * modules/wcscasecmp (configure.ac): ... to here.
13413
13414 2011-05-22  Bruno Haible  <bruno@clisp.org>
13415
13416         wcrtomb: Move AC_LIBOBJ invocations to module description.
13417         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13418         invocations from here...
13419         * modules/wcrtomb (configure.ac): ... to here.
13420
13421 2011-05-22  Bruno Haible  <bruno@clisp.org>
13422
13423         wcpncpy: Move AC_LIBOBJ invocations to module description.
13424         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13425         here...
13426         * modules/wcpncpy (configure.ac): ... to here.
13427
13428 2011-05-22  Bruno Haible  <bruno@clisp.org>
13429
13430         wcpcpy: Move AC_LIBOBJ invocations to module description.
13431         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13432         * modules/wcpcpy (configure.ac): ... to here.
13433
13434 2011-05-22  Bruno Haible  <bruno@clisp.org>
13435
13436         waitpid: Move AC_LIBOBJ invocations to module description.
13437         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13438         invocation from here...
13439         * modules/waitpid (configure.ac): ... to here.
13440
13441 2011-05-22  Bruno Haible  <bruno@clisp.org>
13442
13443         utimensat: Move AC_LIBOBJ invocations to module description.
13444         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13445         here...
13446         * modules/utimensat (configure.ac): ... to here.
13447
13448 2011-05-22  Bruno Haible  <bruno@clisp.org>
13449
13450         usleep: Move AC_LIBOBJ invocations to module description.
13451         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13452         here...
13453         * modules/usleep (configure.ac): ... to here.
13454
13455 2011-05-22  Bruno Haible  <bruno@clisp.org>
13456
13457         unlockpt: Move AC_LIBOBJ invocations to module description.
13458         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13459         gl_PREREQ_UNLOCKPT invocations from here...
13460         * modules/unlockpt (configure.ac): ... to here.
13461
13462 2011-05-22  Bruno Haible  <bruno@clisp.org>
13463
13464         unlink: Respect rules for use of AC_LIBOBJ.
13465         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13466         * modules/unlink (configure.ac): ... to here.
13467
13468 2011-05-22  Bruno Haible  <bruno@clisp.org>
13469
13470         uname: Move AC_LIBOBJ invocations to module description.
13471         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13473         here...
13474         * modules/uname (configure.ac): ... to here.
13475
13476 2011-05-22  Bruno Haible  <bruno@clisp.org>
13477
13478         ttyname_r: Move AC_LIBOBJ invocations to module description.
13479         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13480         gl_PREREQ_TTYNAME_R invocations from here...
13481         * modules/ttyname_r (configure.ac): ... to here.
13482
13483 2011-05-22  Bruno Haible  <bruno@clisp.org>
13484
13485         tsearch: Move AC_LIBOBJ invocations to module description.
13486         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13487         invocations from here...
13488         * modules/tsearch (configure.ac): ... to here.
13489
13490 2011-05-22  Bruno Haible  <bruno@clisp.org>
13491
13492         towctrans: Move AC_LIBOBJ invocations to module description.
13493         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13494         AC_LIBOBJ invocation from here...
13495         * modules/towctrans (configure.ac): ... to here.
13496
13497 2011-05-22  Bruno Haible  <bruno@clisp.org>
13498
13499         tmpfile: Move AC_LIBOBJ invocations to module description.
13500         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13501         invocations from here...
13502         * modules/tmpfile (configure.ac): ... to here.
13503
13504 2011-05-22  Bruno Haible  <bruno@clisp.org>
13505
13506         times: Move AC_LIBOBJ invocations to module description.
13507         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13508         * modules/times (configure.ac): ... to here.
13509
13510 2011-05-22  Bruno Haible  <bruno@clisp.org>
13511
13512         time_r: Move AC_LIBOBJ invocations to module description.
13513         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13514         invocations from here...
13515         * modules/time_r (configure.ac): ... to here.
13516
13517 2011-05-22  Bruno Haible  <bruno@clisp.org>
13518
13519         timegm: Move AC_LIBOBJ invocations to module description.
13520         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13521         invocations from here...
13522         * modules/timegm (configure.ac): ... to here.
13523
13524 2011-05-22  Bruno Haible  <bruno@clisp.org>
13525
13526         tcgetsid: Move AC_LIBOBJ invocations to module description.
13527         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13528         and gl_PREREQ_TCGETSID invocations from here...
13529         * modules/tcgetsid (configure.ac): ... to here.
13530         (Depends-on): Update conditions.
13531
13532 2011-05-22  Bruno Haible  <bruno@clisp.org>
13533
13534         symlinkat: Move AC_LIBOBJ invocations to module description.
13535         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13536         here...
13537         * modules/symlinkat (configure.ac): ... to here.
13538
13539 2011-05-22  Bruno Haible  <bruno@clisp.org>
13540
13541         symlink: Move AC_LIBOBJ invocations to module description.
13542         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13543         here...
13544         * modules/symlink (configure.ac): ... to here.
13545
13546 2011-05-22  Bruno Haible  <bruno@clisp.org>
13547
13548         strverscmp: Move AC_LIBOBJ invocations to module description.
13549         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13550         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13551         from here...
13552         * modules/strverscmp (configure.ac): ... to here.
13553
13554 2011-05-22  Bruno Haible  <bruno@clisp.org>
13555
13556         strtok_r: Move AC_LIBOBJ invocations to module description.
13557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13558         and gl_PREREQ_STRTOK_R invocations from here...
13559         * modules/strtok_r (configure.ac): ... to here.
13560         (Depends-on): Update conditions.
13561
13562 2011-05-22  Bruno Haible  <bruno@clisp.org>
13563
13564         strtoumax: Move AC_LIBOBJ invocations to module description.
13565         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13566         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13567         from here...
13568         * modules/strtoumax (configure.ac): ... to here.
13569
13570 2011-05-22  Bruno Haible  <bruno@clisp.org>
13571
13572         strtoimax: Move AC_LIBOBJ invocations to module description.
13573         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13574         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13575         from here...
13576         * modules/strtoimax (configure.ac): ... to here.
13577
13578 2011-05-22  Bruno Haible  <bruno@clisp.org>
13579
13580         strtoull: Move AC_LIBOBJ invocations to module description.
13581         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13582         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13583         from here...
13584         * modules/strtoull (configure.ac): ... to here.
13585
13586 2011-05-22  Bruno Haible  <bruno@clisp.org>
13587
13588         strtoll: Move AC_LIBOBJ invocations to module description.
13589         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13590         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13591         here...
13592         * modules/strtoll (configure.ac): ... to here.
13593
13594 2011-05-22  Bruno Haible  <bruno@clisp.org>
13595
13596         strtoul: Move AC_LIBOBJ invocations to module description.
13597         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13598         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13599         * modules/strtoul (configure.ac): ... to here.
13600
13601 2011-05-22  Bruno Haible  <bruno@clisp.org>
13602
13603         strtol: Move AC_LIBOBJ invocations to module description.
13604         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13605         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13606         * modules/strtol (configure.ac): ... to here.
13607
13608 2011-05-22  Bruno Haible  <bruno@clisp.org>
13609
13610         strtod: Move AC_LIBOBJ invocations to module description.
13611         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13612         invocations from here...
13613         * modules/strtod (configure.ac): ... to here.
13614
13615 2011-05-22  Bruno Haible  <bruno@clisp.org>
13616
13617         strstr*: Move AC_LIBOBJ invocations to module description.
13618         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13619         invocations from here...
13620         * modules/strstr-simple (configure.ac): ... to here.
13621         * modules/strstr (configure.ac): ... and here.
13622
13623 2011-05-22  Bruno Haible  <bruno@clisp.org>
13624
13625         strsignal: Move AC_LIBOBJ invocations to module description.
13626         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13627         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13628         * modules/strsignal (configure.ac): ... to here.
13629         (Depends-on): Update conditions.
13630
13631 2011-05-22  Bruno Haible  <bruno@clisp.org>
13632
13633         strsep: Move AC_LIBOBJ invocations to module description.
13634         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13636         here...
13637         * modules/strsep (configure.ac): ... to here.
13638
13639 2011-05-22  Bruno Haible  <bruno@clisp.org>
13640
13641         strptime: Move AC_LIBOBJ invocations to module description.
13642         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13643         gl_PREREQ_STRPTIME invocations from here...
13644         * modules/strptime (configure.ac): ... to here.
13645
13646 2011-05-22  Bruno Haible  <bruno@clisp.org>
13647
13648         strpbrk: Move AC_LIBOBJ invocations to module description.
13649         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13650         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13651         here...
13652         * modules/strpbrk (configure.ac): ... to here.
13653
13654 2011-05-22  Bruno Haible  <bruno@clisp.org>
13655
13656         strnlen: Move AC_LIBOBJ invocations to module description.
13657         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13658         invocations from here...
13659         * modules/strnlen (configure.ac): ... to here.
13660
13661 2011-05-22  Bruno Haible  <bruno@clisp.org>
13662
13663         strndup: Move AC_LIBOBJ invocations to module description.
13664         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13665         invocations from here...
13666         * modules/strndup (configure.ac): ... to here.
13667         (Depends-on): Update conditions.
13668
13669 2011-05-22  Bruno Haible  <bruno@clisp.org>
13670
13671         strncat: Move AC_LIBOBJ invocations to module description.
13672         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13673         invocations from here...
13674         * modules/strncat (configure.ac): ... to here.
13675
13676 2011-05-22  Bruno Haible  <bruno@clisp.org>
13677
13678         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13679         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13680         invocations from here...
13681         * modules/strdup (configure.ac): ... to here.
13682         * modules/strdup-posix (configure.ac): ... and here.
13683
13684 2011-05-22  Bruno Haible  <bruno@clisp.org>
13685
13686         strcspn: Move AC_LIBOBJ invocations to module description.
13687         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13688         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13689         here...
13690         * modules/strcspn (configure.ac): ... to here.
13691
13692 2011-05-22  Bruno Haible  <bruno@clisp.org>
13693
13694         strchrnul: Move AC_LIBOBJ invocations to module description.
13695         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13696         gl_PREREQ_STRCHRNUL invocations from here...
13697         * modules/strchrnul (configure.ac): ... to here.
13698
13699 2011-05-22  Bruno Haible  <bruno@clisp.org>
13700
13701         strcasestr*: Move AC_LIBOBJ invocations to module description.
13702         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13703         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13704         * modules/strcasestr-simple (configure.ac): ... to here.
13705         * modules/strcasestr (configure.ac): ... and here.
13706
13707 2011-05-22  Bruno Haible  <bruno@clisp.org>
13708
13709         strcase: Move AC_LIBOBJ invocations to module description.
13710         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13711         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13712         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13713         gl_PREREQ_STRNCASECMP invocations from here...
13714         * modules/strcase (configure.ac): ... to here.
13715
13716 2011-05-22  Bruno Haible  <bruno@clisp.org>
13717
13718         stpncpy: Move AC_LIBOBJ invocations to module description.
13719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13720         here...
13721         * modules/stpncpy (configure.ac): ... to here.
13722
13723 2011-05-22  Bruno Haible  <bruno@clisp.org>
13724
13725         stpcpy: Move AC_LIBOBJ invocations to module description.
13726         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13728         here...
13729         * modules/stpcpy (configure.ac): ... to here.
13730
13731 2011-05-21  Bruno Haible  <bruno@clisp.org>
13732
13733         stat: Move AC_LIBOBJ invocations to module description.
13734         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13735         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13736         here...
13737         * modules/stat (configure.ac): ... to here.
13738
13739 2011-05-21  Bruno Haible  <bruno@clisp.org>
13740
13741         sleep: Move AC_LIBOBJ invocations to module description.
13742         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13743         * modules/sleep (configure.ac): ... to here.
13744
13745 2011-05-21  Bruno Haible  <bruno@clisp.org>
13746
13747         signbit: Move AC_LIBOBJ invocations to module description.
13748         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13749         * modules/signbit (configure.ac): ... to here.
13750
13751 2011-05-21  Bruno Haible  <bruno@clisp.org>
13752
13753         sigprocmask: Move AC_LIBOBJ invocations to module description.
13754         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13755         gl_PREREQ_SIGPROMASK invocations from here...
13756         * modules/sigprocmask (configure.ac): ... to here.
13757
13758 2011-05-21  Bruno Haible  <bruno@clisp.org>
13759
13760         sigaction: Move AC_LIBOBJ invocations to module description.
13761         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13762         gl_PREREQ_SIGACTION invocations from here...
13763         * modules/sigaction (configure.ac): ... to here.
13764
13765 2011-05-21  Bruno Haible  <bruno@clisp.org>
13766
13767         sig2str: Move AC_LIBOBJ invocations to module description.
13768         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13769         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13770         here...
13771         * modules/sig2str (configure.ac): ... to here.
13772
13773 2011-05-21  Bruno Haible  <bruno@clisp.org>
13774
13775         setlocale: Move AC_LIBOBJ invocations to module description.
13776         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13777         gl_PREREQ_SETLOCALE invocations from here...
13778         * modules/setlocale (configure.ac): ... to here.
13779
13780 2011-05-21  Bruno Haible  <bruno@clisp.org>
13781
13782         unsetenv: Move AC_LIBOBJ invocations to module description.
13783         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13784         and gl_PREREQ_UNSETENV invocations from here...
13785         * modules/unsetenv (configure.ac): ... to here.
13786         (Depends-on): Update.
13787
13788 2011-05-21  Bruno Haible  <bruno@clisp.org>
13789
13790         setenv: Move AC_LIBOBJ invocations to module description.
13791         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13792         here...
13793         * modules/setenv (configure.ac): ... to here.
13794
13795 2011-05-21  Bruno Haible  <bruno@clisp.org>
13796
13797         selinux-h: Move AC_LIBOBJ invocations to module description.
13798         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13799         AC_LIBOBJ invocation from here...
13800         * modules/selinux-h (configure.ac): ... to here.
13801
13802 2011-05-21  Bruno Haible  <bruno@clisp.org>
13803
13804         select: Respect rules for use of AC_LIBOBJ.
13805         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13806         here...
13807         * modules/select (configure.ac): ... to here.
13808
13809 2011-05-21  Bruno Haible  <bruno@clisp.org>
13810
13811         scandir: Move AC_LIBOBJ invocations to module description.
13812         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13813         invocations from here...
13814         * modules/scandir (configure.ac): ... to here.
13815
13816 2011-05-21  Bruno Haible  <bruno@clisp.org>
13817
13818         rpmatch: Move AC_LIBOBJ invocations to module description.
13819         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13820         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13821         here...
13822         * modules/rpmatch (configure.ac): ... to here.
13823
13824 2011-05-21  Bruno Haible  <bruno@clisp.org>
13825
13826         rmdir: Respect rules for use of AC_LIBOBJ.
13827         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13828         * modules/rmdir (configure.ac): ... to here.
13829
13830 2011-05-21  Bruno Haible  <bruno@clisp.org>
13831
13832         renameat: Move AC_LIBOBJ invocations to module description.
13833         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13834         here...
13835         * modules/renameat (configure.ac): ... to here.
13836
13837 2011-05-21  Bruno Haible  <bruno@clisp.org>
13838
13839         rename: Respect rules for use of AC_LIBOBJ.
13840         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13841         here...
13842         * modules/rename (configure.ac): ... to here.
13843
13844 2011-05-21  Bruno Haible  <bruno@clisp.org>
13845
13846         remove: Move AC_LIBOBJ invocations to module description.
13847         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13848         here...
13849         * modules/remove (configure.ac): ... to here.
13850
13851 2011-05-21  Bruno Haible  <bruno@clisp.org>
13852
13853         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13854         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13855         macro.
13856         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13857         * modules/relocatable-lib (configure.ac): ... to here.
13858         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13859         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13860
13861 2011-05-21  Bruno Haible  <bruno@clisp.org>
13862
13863         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13864         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13865         here...
13866         * modules/relocatable-prog (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         regex: Move AC_LIBOBJ invocations to module description.
13871         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13872         invocations from here...
13873         * modules/regex (configure.ac): ... to here.
13874
13875 2011-05-21  Bruno Haible  <bruno@clisp.org>
13876
13877         realloc-*: Move AC_LIBOBJ invocations to module description.
13878         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13879         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13880         AC_LIBOBJ invocations from here...
13881         * modules/realloc-gnu (configure.ac): ... to here.
13882         * modules/realloc-posix (configure.ac): ... and here.
13883
13884 2011-05-21  Bruno Haible  <bruno@clisp.org>
13885
13886         readutmp: Move AC_LIBOBJ invocations to module description.
13887         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13888         * modules/readutmp (configure.ac): ... to here.
13889
13890 2011-05-21  Bruno Haible  <bruno@clisp.org>
13891
13892         readlinkat: Move AC_LIBOBJ invocations to module description.
13893         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13894         here...
13895         * modules/readlinkat (configure.ac): ... to here.
13896
13897 2011-05-21  Bruno Haible  <bruno@clisp.org>
13898
13899         readlink: Move AC_LIBOBJ invocations to module description.
13900         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13901         gl_PREREQ_READLINK invocations from here...
13902         * modules/readlink (configure.ac): ... to here.
13903
13904 2011-05-21  Bruno Haible  <bruno@clisp.org>
13905
13906         readline: Move AC_LIBOBJ invocations to module description.
13907         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13908         gl_PREREQ_READLINE invocations from here...
13909         * modules/readline (configure.ac): ... to here.
13910
13911 2011-05-21  Bruno Haible  <bruno@clisp.org>
13912
13913         read: Move AC_LIBOBJ invocations to module description.
13914         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13915         * modules/read (configure.ac): ... to here.
13916
13917 2011-05-21  Bruno Haible  <bruno@clisp.org>
13918
13919         rawmemchr: Move AC_LIBOBJ invocations to module description.
13920         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13921         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13922         from here...
13923         * modules/rawmemchr (configure.ac): ... to here.
13924
13925 2011-05-21  Bruno Haible  <bruno@clisp.org>
13926
13927         random_r: Move AC_LIBOBJ invocations to module description.
13928         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13929         gl_PREREQ_RANDOM_R invocations from here...
13930         * modules/random_r (configure.ac): ... to here.
13931
13932 2011-05-21  Bruno Haible  <bruno@clisp.org>
13933
13934         pwrite: Move AC_LIBOBJ invocations to module description.
13935         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13936         * modules/pwrite (configure.ac): ... to here.
13937
13938 2011-05-21  Bruno Haible  <bruno@clisp.org>
13939
13940         putenv: Move AC_LIBOBJ invocations to module description.
13941         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13942         * modules/putenv (configure.ac): ... to here.
13943
13944 2011-05-21  Bruno Haible  <bruno@clisp.org>
13945
13946         login_tty: Move AC_LIBOBJ invocations to module description.
13947         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13948         * modules/login_tty (configure.ac): ... to here.
13949
13950 2011-05-21  Bruno Haible  <bruno@clisp.org>
13951
13952         openpty: Move AC_LIBOBJ invocations to module description.
13953         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13954         * modules/openpty (configure.ac): ... to here.
13955
13956 2011-05-21  Bruno Haible  <bruno@clisp.org>
13957
13958         forkpty: Move AC_LIBOBJ invocations to module description.
13959         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13960         * modules/forkpty (configure.ac): ... to here.
13961
13962 2011-05-21  Bruno Haible  <bruno@clisp.org>
13963
13964         ptsname: Move AC_LIBOBJ invocations to module description.
13965         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13966         invocations from here...
13967         * modules/ptsname (configure.ac): ... to here.
13968
13969 2011-05-21  Bruno Haible  <bruno@clisp.org>
13970
13971         pread: Move AC_LIBOBJ invocations to module description.
13972         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13973         * modules/pread (configure.ac): ... to here.
13974
13975 2011-05-21  Bruno Haible  <bruno@clisp.org>
13976
13977         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13978         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13979         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13980         * modules/posix_spawn (configure.ac): ... to here.
13981         * modules/posix_spawnp (configure.ac): ... and here.
13982
13983 2011-05-21  Bruno Haible  <bruno@clisp.org>
13984
13985         popen: Move AC_LIBOBJ invocations to module description.
13986         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13987         invocations from here...
13988         * modules/popen (configure.ac): ... to here.
13989
13990 2011-05-21  Bruno Haible  <bruno@clisp.org>
13991
13992         poll: Move AC_LIBOBJ invocations to module description.
13993         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13994         invocations from here...
13995         * modules/poll (configure.ac): ... to here.
13996
13997 2011-05-21  Bruno Haible  <bruno@clisp.org>
13998
13999         pipe-posix: Move AC_LIBOBJ invocations to module description.
14000         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14001         * modules/pipe-posix (configure.ac): ... to here.
14002
14003 2011-05-21  Bruno Haible  <bruno@clisp.org>
14004
14005         openat: Respect rules for use of AC_LIBOBJ.
14006         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14007         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14008         * modules/openat (configure.ac): ... to here.
14009
14010 2011-05-21  Bruno Haible  <bruno@clisp.org>
14011
14012         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14013         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14014         invocation from here...
14015         * modules/obstack-printf (configure.ac): ... to here.
14016         * modules/obstack-printf-posix (configure.ac): ... and here.
14017
14018 2011-05-21  Bruno Haible  <bruno@clisp.org>
14019
14020         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14021         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14022         from here...
14023         * modules/nl_langinfo (configure.ac): ... to here.
14024
14025 2011-05-21  Bruno Haible  <bruno@clisp.org>
14026
14027         nanosleep: Move AC_LIBOBJ invocations to module description.
14028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14029         gl_PREREQ_NANOSLEEP invocations from here...
14030         * modules/nanosleep (configure.ac): ... to here.
14031
14032 2011-05-21  Bruno Haible  <bruno@clisp.org>
14033
14034         mountlist: Move AC_LIBOBJ invocations to module description.
14035         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14036         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14037         * modules/mountlist (configure.ac): ... to here.
14038
14039 2011-05-21  Bruno Haible  <bruno@clisp.org>
14040
14041         mktime: Respect rules for use of AC_LIBOBJ.
14042         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14043         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14044         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14045         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14046         * modules/mktime (configure.ac): ... to here.
14047         * modules/mktime-internal (configure.ac): ... and here.
14048         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14049
14050 2011-05-21  Bruno Haible  <bruno@clisp.org>
14051
14052         mkstemps: Move AC_LIBOBJ invocations to module description.
14053         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14054         here...
14055         * modules/mkstemps (configure.ac): ... to here.
14056
14057 2011-05-21  Bruno Haible  <bruno@clisp.org>
14058
14059         mkstemp: Move AC_LIBOBJ invocations to module description.
14060         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14061         gl_PREREQ_MKSTEMP invocations from here...
14062         * modules/mkstemp (configure.ac): ... to here.
14063
14064 2011-05-21  Bruno Haible  <bruno@clisp.org>
14065
14066         mkostemps: Move AC_LIBOBJ invocations to module description.
14067         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14068         here...
14069         * modules/mkostemps (configure.ac): ... to here.
14070
14071 2011-05-21  Bruno Haible  <bruno@clisp.org>
14072
14073         mkostemp: Move AC_LIBOBJ invocations to module description.
14074         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14075         gl_PREREQ_MKOSTEMP invocations from here...
14076         * modules/mkostemp (configure.ac): ... to here.
14077
14078 2011-05-21  Bruno Haible  <bruno@clisp.org>
14079
14080         mknod: Move AC_LIBOBJ invocations to module description.
14081         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14082         * modules/mknod (configure.ac): ... to here.
14083
14084 2011-05-21  Bruno Haible  <bruno@clisp.org>
14085
14086         mkfifoat: Move AC_LIBOBJ invocations to module description.
14087         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14088         here...
14089         * modules/mkfifoat (configure.ac): ... to here.
14090
14091 2011-05-21  Bruno Haible  <bruno@clisp.org>
14092
14093         mkfifo: Respect rules for use of AC_LIBOBJ.
14094         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14095         here...
14096         * modules/mkfifo (configure.ac): ... to here.
14097
14098 2011-05-21  Bruno Haible  <bruno@clisp.org>
14099
14100         mkdtemp: Move AC_LIBOBJ invocations to module description.
14101         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14102         invocations from here...
14103         * modules/mkdtemp (configure.ac): ... to here.
14104
14105 2011-05-21  Bruno Haible  <bruno@clisp.org>
14106
14107         mkdir: Move AC_LIBOBJ invocations to module description.
14108         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14109         * modules/mkdir (configure.ac): ... to here.
14110
14111 2011-05-21  Bruno Haible  <bruno@clisp.org>
14112
14113         memset: Move AC_LIBOBJ invocations to module description.
14114         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14115         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14116         here...
14117         * modules/memset (configure.ac): ... to here.
14118
14119 2011-05-21  Bruno Haible  <bruno@clisp.org>
14120
14121         memrchr: Move AC_LIBOBJ invocations to module description.
14122         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14123         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14124         here...
14125         * modules/memrchr (configure.ac): ... to here.
14126
14127 2011-05-21  Bruno Haible  <bruno@clisp.org>
14128
14129         mempcpy: Move AC_LIBOBJ invocations to module description.
14130         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14131         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14132         here...
14133         * modules/mempcpy (configure.ac): ... to here.
14134
14135 2011-05-21  Bruno Haible  <bruno@clisp.org>
14136
14137         memmove: Move AC_LIBOBJ invocations to module description.
14138         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14140         here...
14141         * modules/memmove (configure.ac): ... to here.
14142
14143 2011-05-21  Bruno Haible  <bruno@clisp.org>
14144
14145         memmem*: Move AC_LIBOBJ invocations to module description.
14146         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14147         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14148         here...
14149         (gl_FUNC_MEMMEM): ... and here...
14150         * modules/memmem-simple (configure.ac): ... to here.
14151         * modules/memmem (configure.ac): ... and here.
14152
14153 2011-05-21  Bruno Haible  <bruno@clisp.org>
14154
14155         memcpy: Move AC_LIBOBJ invocations to module description.
14156         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14158         here...
14159         * modules/memcpy (configure.ac): ... to here.
14160
14161 2011-05-21  Bruno Haible  <bruno@clisp.org>
14162
14163         memcmp: Simplify autoconf macro.
14164         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14165         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14166         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14167
14168 2011-05-21  Bruno Haible  <bruno@clisp.org>
14169
14170         memcmp: Move AC_LIBOBJ invocations to module description.
14171         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14172         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14173         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14174         * modules/memcmp (configure.ac): ... to here.
14175         (Depends-on): Update conditions.
14176
14177 2011-05-21  Bruno Haible  <bruno@clisp.org>
14178
14179         memchr: Respect rules for use of AC_LIBOBJ.
14180         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14181         invocations from here...
14182         * modules/memchr (configure.ac): ... to here.
14183
14184 2011-05-21  Bruno Haible  <bruno@clisp.org>
14185
14186         mbtowc: Move AC_LIBOBJ invocations to module description.
14187         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14188         invocations from here...
14189         * modules/mbtowc (configure.ac): ... to here.
14190
14191 2011-05-21  Bruno Haible  <bruno@clisp.org>
14192
14193         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14194         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14195         gl_PREREQ_MBSRTOWCS invocations from here...
14196         * modules/mbsrtowcs (configure.ac): ... to here.
14197
14198 2011-05-21  Bruno Haible  <bruno@clisp.org>
14199
14200         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14201         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14202         gl_PREREQ_MBSNRTOWCS invocations from here...
14203         * modules/mbsnrtowcs (configure.ac): ... to here.
14204
14205 2011-05-21  Bruno Haible  <bruno@clisp.org>
14206
14207         mbsinit: Move AC_LIBOBJ invocations to module description.
14208         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14209         invocations from here...
14210         * modules/mbsinit (configure.ac): ... to here.
14211
14212 2011-05-21  Bruno Haible  <bruno@clisp.org>
14213
14214         mbrlen: Move AC_LIBOBJ invocations to module description.
14215         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14216         invocations from here...
14217         * modules/mbrlen (configure.ac): ... to here.
14218
14219 2011-05-21  Bruno Haible  <bruno@clisp.org>
14220
14221         mbrtowc: Respect rules for use of AC_LIBOBJ.
14222         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14223         invocations from here...
14224         * modules/mbrtowc (configure.ac): ... to here.
14225
14226 2011-05-21  Bruno Haible  <bruno@clisp.org>
14227
14228         malloc-*: Move AC_LIBOBJ invocations to module description.
14229         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14230         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14231         AC_LIBOBJ invocations from here...
14232         * modules/malloc-gnu (configure.ac): ... to here.
14233         * modules/malloc-posix (configure.ac): ... and here.
14234
14235 2011-05-21  Bruno Haible  <bruno@clisp.org>
14236
14237         lstat, openat: Respect rules for use of AC_LIBOBJ.
14238         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14239         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14240         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14241         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14242         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14243         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14244         here.
14245         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14246
14247 2011-05-21  Bruno Haible  <bruno@clisp.org>
14248
14249         lseek: Move AC_LIBOBJ invocations to module description.
14250         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14251         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14252         * modules/lseek (configure.ac): ... to here.
14253
14254 2011-05-21  Bruno Haible  <bruno@clisp.org>
14255
14256         linkat: Move AC_LIBOBJ invocations to module description.
14257         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14258         here...
14259         * modules/linkat (configure.ac): ... to here.
14260
14261 2011-05-21  Bruno Haible  <bruno@clisp.org>
14262
14263         link: Respect rules for use of AC_LIBOBJ.
14264         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14265         * modules/link (configure.ac): ... to here.
14266
14267 2011-05-21  Bruno Haible  <bruno@clisp.org>
14268
14269         lchown: Move AC_LIBOBJ invocations to module description.
14270         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14271         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14272         * modules/lchown (configure.ac): ... to here.
14273
14274 2011-05-21  Bruno Haible  <bruno@clisp.org>
14275
14276         iswctype: Move AC_LIBOBJ invocations to module description.
14277         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14278         here...
14279         * modules/iswctype (configure.ac): ... to here.
14280
14281 2011-05-21  Bruno Haible  <bruno@clisp.org>
14282
14283         iswblank: Move AC_LIBOBJ invocations to module description.
14284         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14285         here...
14286         * modules/iswblank (configure.ac): ... to here.
14287
14288 2011-05-21  Bruno Haible  <bruno@clisp.org>
14289
14290         atanl: Move AC_LIBOBJ invocations to module description.
14291         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14292         * modules/atanl (configure.ac): ... to here.
14293
14294 2011-05-21  Bruno Haible  <bruno@clisp.org>
14295
14296         acosl: Move AC_LIBOBJ invocations to module description.
14297         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14298         * modules/acosl (configure.ac): ... to here.
14299
14300 2011-05-21  Bruno Haible  <bruno@clisp.org>
14301
14302         asinl: Respect rules for use of AC_LIBOBJ.
14303         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14304         * modules/asinl (configure.ac): ... to here.
14305
14306 2011-05-21  Bruno Haible  <bruno@clisp.org>
14307
14308         tanl: Move AC_LIBOBJ invocations to module description.
14309         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14310         * modules/tanl (configure.ac): ... to here.
14311
14312 2011-05-21  Bruno Haible  <bruno@clisp.org>
14313
14314         cosl: Move AC_LIBOBJ invocations to module description.
14315         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14316         * modules/cosl (configure.ac): ... to here.
14317
14318 2011-05-21  Bruno Haible  <bruno@clisp.org>
14319
14320         sinl: Move AC_LIBOBJ invocations to module description.
14321         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14322         * modules/sinl (configure.ac): ... to here.
14323
14324 2011-05-21  Bruno Haible  <bruno@clisp.org>
14325
14326         logl: Move AC_LIBOBJ invocations to module description.
14327         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14328         * modules/logl (configure.ac): ... to here.
14329
14330 2011-05-21  Bruno Haible  <bruno@clisp.org>
14331
14332         expl: Move AC_LIBOBJ invocations to module description.
14333         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14334         * modules/expl (configure.ac): ... to here.
14335
14336 2011-05-21  Bruno Haible  <bruno@clisp.org>
14337
14338         roundl: Move AC_LIBOBJ invocations to module description.
14339         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14340         * modules/roundl (configure.ac): ... to here.
14341
14342 2011-05-21  Bruno Haible  <bruno@clisp.org>
14343
14344         round: Move AC_LIBOBJ invocations to module description.
14345         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14346         * modules/round (configure.ac): ... to here.
14347
14348 2011-05-21  Bruno Haible  <bruno@clisp.org>
14349
14350         roundf: Move AC_LIBOBJ invocations to module description.
14351         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14352         * modules/roundf (configure.ac): ... to here.
14353
14354 2011-05-21  Bruno Haible  <bruno@clisp.org>
14355
14356         truncl: Move AC_LIBOBJ invocations to module description.
14357         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14358         * modules/truncl (configure.ac): ... to here.
14359
14360 2011-05-21  Bruno Haible  <bruno@clisp.org>
14361
14362         trunc: Move AC_LIBOBJ invocations to module description.
14363         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14364         * modules/trunc (configure.ac): ... to here.
14365
14366 2011-05-21  Bruno Haible  <bruno@clisp.org>
14367
14368         truncf: Move AC_LIBOBJ invocations to module description.
14369         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14370         * modules/truncf (configure.ac): ... to here.
14371
14372 2011-05-21  Bruno Haible  <bruno@clisp.org>
14373
14374         ceill: Move AC_LIBOBJ invocations to module description.
14375         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14376         * modules/ceill (configure.ac): ... to here.
14377
14378 2011-05-21  Bruno Haible  <bruno@clisp.org>
14379
14380         ceil: Move AC_LIBOBJ invocations to module description.
14381         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14382         * modules/ceil (configure.ac): ... to here.
14383
14384 2011-05-21  Bruno Haible  <bruno@clisp.org>
14385
14386         ceilf: Move AC_LIBOBJ invocations to module description.
14387         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14388         * modules/ceilf (configure.ac): ... to here.
14389
14390 2011-05-21  Bruno Haible  <bruno@clisp.org>
14391
14392         floorl: Respect rules for use of AC_LIBOBJ.
14393         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14394         * modules/floorl (configure.ac): ... to here.
14395
14396 2011-05-21  Bruno Haible  <bruno@clisp.org>
14397
14398         floor: Respect rules for use of AC_LIBOBJ.
14399         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14400         * modules/floor (configure.ac): ... to here.
14401
14402 2011-05-21  Bruno Haible  <bruno@clisp.org>
14403
14404         floorf: Move AC_LIBOBJ invocations to module description.
14405         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14406         * modules/floorf (configure.ac): ... to here.
14407
14408 2011-05-20  Bruno Haible  <bruno@clisp.org>
14409
14410         sqrtl: Respect rules for use of AC_LIBOBJ.
14411         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14412         * modules/sqrtl (configure.ac): ... to here.
14413
14414 2011-05-20  Bruno Haible  <bruno@clisp.org>
14415
14416         ldexpl: Respect rules for use of AC_LIBOBJ.
14417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14418         * modules/ldexpl (configure.ac): ... to here.
14419
14420 2011-05-20  Bruno Haible  <bruno@clisp.org>
14421
14422         frexpl*: Respect rules for use of AC_LIBOBJ.
14423         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14424         invocation from here...
14425         * modules/frexpl (configure.ac): ... to here.
14426         * modules/frexpl-nolibm (configure.ac): ... and here.
14427
14428 2011-05-20  Bruno Haible  <bruno@clisp.org>
14429
14430         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14431         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14432         invocation from here...
14433         * modules/frexp (configure.ac): ... to here.
14434         * modules/frexp-nolibm (configure.ac): ... and here.
14435
14436 2011-05-20  Bruno Haible  <bruno@clisp.org>
14437
14438         isnan: Respect rules for use of AC_LIBOBJ.
14439         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14440         invocations here.
14441         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14442         REPLACE_ISNAN.
14443         * modules/isnand (configure.ac): Likewise.
14444         * modules/isnanl (configure.ac): Likewise.
14445
14446 2011-05-20  Bruno Haible  <bruno@clisp.org>
14447
14448         isnanl*: Respect rules for use of AC_LIBOBJ.
14449         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14450         invocation from here...
14451         * modules/isnanl (configure.ac): ... to here.
14452         * modules/isnanl-nolibm (configure.ac): ... and here.
14453
14454 2011-05-20  Bruno Haible  <bruno@clisp.org>
14455
14456         isnand*: Move AC_LIBOBJ invocations to module description.
14457         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14458         invocation from here...
14459         * modules/isnand (configure.ac): ... to here.
14460         * modules/isnand-nolibm (configure.ac): ... and here.
14461
14462 2011-05-20  Bruno Haible  <bruno@clisp.org>
14463
14464         isnanf*: Move AC_LIBOBJ invocations to module description.
14465         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14466         invocation from here...
14467         * modules/isnanf (configure.ac): ... to here.
14468         * modules/isnanf-nolibm (configure.ac): ... and here.
14469
14470 2011-05-20  Bruno Haible  <bruno@clisp.org>
14471
14472         isnan*: Separate the AC_LIBOBJ invocations.
14473         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14474         AC_LIBOBJ invocation.
14475         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14476         here.
14477         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14478         AC_LIBOBJ invocation.
14479         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14480         here.
14481         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14482         AC_LIBOBJ invocation.
14483         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14484         here.
14485         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14486
14487 2011-05-08  Bruno Haible  <bruno@clisp.org>
14488
14489         isinf: Move AC_LIBOBJ invocations to module description.
14490         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14491         * modules/isinf (configure.ac): ... to here.
14492
14493 2011-05-08  Bruno Haible  <bruno@clisp.org>
14494
14495         isfinite: Move AC_LIBOBJ invocations to module description.
14496         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14497         * modules/isfinite (configure.ac): ... to here.
14498
14499 2011-05-08  Bruno Haible  <bruno@clisp.org>
14500
14501         isblank: Move AC_LIBOBJ invocations to module description.
14502         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14503         here...
14504         * modules/isblank (configure.ac): ... to here.
14505
14506 2011-05-08  Bruno Haible  <bruno@clisp.org>
14507
14508         isapipe: Move AC_LIBOBJ invocations to module description.
14509         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14510         gl_PREREQ_ISAPIPE invocations from here...
14511         * modules/isapipe (configure.ac): ... to here.
14512         (Depends-on): Update condition.
14513
14514 2011-05-08  Bruno Haible  <bruno@clisp.org>
14515
14516         ioctl: Move AC_LIBOBJ invocations to module description.
14517         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14518         invocations from here...
14519         * modules/ioctl (configure.ac): ... to here.
14520         (Depends-on): Update condition.
14521
14522 2011-05-08  Bruno Haible  <bruno@clisp.org>
14523
14524         imaxdiv: Move AC_LIBOBJ invocations to module description.
14525         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14526         invocations from here...
14527         * modules/imaxdiv (configure.ac): ... to here.
14528
14529 2011-05-08  Bruno Haible  <bruno@clisp.org>
14530
14531         imaxabs: Move AC_LIBOBJ invocations to module description.
14532         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14533         invocations from here...
14534         * modules/imaxabs (configure.ac): ... to here.
14535
14536 2011-05-08  Bruno Haible  <bruno@clisp.org>
14537
14538         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14539         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14540         AC_LIBOBJ invocations from here...
14541         * modules/getaddrinfo (configure.ac): ... to here.
14542         (Depends-on): Add conditions.
14543
14544 2011-05-08  Bruno Haible  <bruno@clisp.org>
14545
14546         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14547         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14548         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14549         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14550         (gl_PREREQ_INET_PTON): ... from here.
14551         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14552         gl_PREREQ_INET_PTON here.
14553         (Depends-on): Update condition.
14554
14555 2011-05-08  Bruno Haible  <bruno@clisp.org>
14556
14557         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14558         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14559         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14560         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14561         (gl_PREREQ_INET_NTOP): ... from here.
14562         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14563         gl_PREREQ_INET_NTOP here.
14564         (Depends-on): Update condition.
14565
14566 2011-05-08  Bruno Haible  <bruno@clisp.org>
14567
14568         iconv_open: Move AC_LIBOBJ invocations to module description.
14569         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14570         AC_LIBOBJ invocations from here...
14571         * modules/iconv_open (configure.ac): ... to here.
14572
14573 2011-05-08  Bruno Haible  <bruno@clisp.org>
14574
14575         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14576         If module 'iconv_open' is among the main modules and module
14577         'iconv_open-utf' is among the tests dependencies, then
14578         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14579         return the special iconv_t values. Therefore iconv() and iconv_close()
14580         must support these special iconv_t values, already in lib, not only in
14581         tests.
14582         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14583         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14584         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14585         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14586         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14587         (Depends-on): Add the dependencies of iconv_open-utf.
14588         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14589         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14590         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14591
14592 2011-05-08  Bruno Haible  <bruno@clisp.org>
14593
14594         group-member: Move AC_LIBOBJ invocations to module description.
14595         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14596         gl_PREREQ_GROUP_MEMBER invocations from here...
14597         * modules/group-member (configure.ac): ... to here.
14598
14599 2011-05-08  Bruno Haible  <bruno@clisp.org>
14600
14601         grantpt: Move AC_LIBOBJ invocations to module description.
14602         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14603         invocations from here...
14604         * modules/grantpt (configure.ac): ... to here.
14605
14606 2011-05-08  Bruno Haible  <bruno@clisp.org>
14607
14608         glob: Move AC_LIBOBJ invocations to module description.
14609         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14610         from here...
14611         * modules/glob (configure.ac): ... to here.
14612
14613 2011-05-08  Bruno Haible  <bruno@clisp.org>
14614
14615         getusershell: Move AC_LIBOBJ invocations to module description.
14616         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14617         Move AC_LIBOBJ invocation from here...
14618         * modules/getusershell (configure.ac): ... to here.
14619         (Depends-on): Update condition.
14620
14621 2011-05-08  Bruno Haible  <bruno@clisp.org>
14622
14623         gettimeofday: Move AC_LIBOBJ invocations to module description.
14624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14625         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14626         gl_PREREQ_GETTIMEOFDAY invocations from here...
14627         * modules/gettimeofday (configure.ac): ... to here.
14628
14629 2011-05-08  Bruno Haible  <bruno@clisp.org>
14630
14631         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14632         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14633         just gl_FUNC_TZSET.
14634         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14635         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14636         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14637         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14638
14639 2011-05-08  Bruno Haible  <bruno@clisp.org>
14640
14641         getsubopt: Move AC_LIBOBJ invocations to module description.
14642         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14643         gl_PREREQ_GETSUBOPT invocations from here...
14644         * modules/getsubopt (configure.ac): ... to here.
14645
14646 2011-05-08  Bruno Haible  <bruno@clisp.org>
14647
14648         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14649         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14650         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14651         * modules/getpass-gnu (configure.ac): ... to here.
14652
14653 2011-05-08  Bruno Haible  <bruno@clisp.org>
14654
14655         getpass: Move AC_LIBOBJ invocations to module description.
14656         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14657         gl_PREREQ_GETPASS invocations from here...
14658         * modules/getpass (configure.ac): ... to here.
14659
14660 2011-05-08  Bruno Haible  <bruno@clisp.org>
14661
14662         getpagesize: Move AC_LIBOBJ invocations to module description.
14663         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14664         from here...
14665         * modules/getpagesize (configure.ac): ... to here.
14666
14667 2011-05-08  Bruno Haible  <bruno@clisp.org>
14668
14669         getopt: Move AC_LIBOBJ invocations to module description.
14670         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14671         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14672         invocations from here...
14673         * modules/getopt-gnu (configure.ac): ... to here.
14674         * modules/getopt-posix (configure.ac): ... and here.
14675         (Depends-on): Update condition.
14676
14677 2011-05-08  Bruno Haible  <bruno@clisp.org>
14678
14679         getopt, argp: Respect rules for use of AC_LIBOBJ.
14680         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14681         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14682         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14683         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14684
14685 2011-05-08  Bruno Haible  <bruno@clisp.org>
14686
14687         getlogin_r: Move AC_LIBOBJ invocations to module description.
14688         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14689         gl_PREREQ_GETLOGIN_R invocations from here...
14690         * modules/getlogin_r (configure.ac): ... to here.
14691
14692 2011-05-08  Bruno Haible  <bruno@clisp.org>
14693
14694         getlogin: Move AC_LIBOBJ invocations to module description.
14695         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14696         here...
14697         * modules/getlogin (configure.ac): ... to here.
14698
14699 2011-05-08  Bruno Haible  <bruno@clisp.org>
14700
14701         getloadavg: Move AC_LIBOBJ invocations to module description.
14702         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14703         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14704         * modules/getloadavg (configure.ac): ... to here.
14705
14706 2011-05-08  Bruno Haible  <bruno@clisp.org>
14707
14708         gethrxtime: Move AC_LIBOBJ invocations to module description.
14709         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14710         LIB_GETHRXTIME from here...
14711         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14712         invocations from here...
14713         * modules/gethrxtime (configure.ac): ... to here.
14714
14715 2011-05-08  Bruno Haible  <bruno@clisp.org>
14716
14717         gethostname: Move AC_LIBOBJ invocations to module description.
14718         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14719         gl_PREREQ_GETHOSTNAME invocations from here...
14720         * modules/gethostname (configure.ac): ... to here.
14721
14722 2011-05-08  Bruno Haible  <bruno@clisp.org>
14723
14724         getgroups: Move AC_LIBOBJ invocations to module description.
14725         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14726         here...
14727         * modules/getgroups (configure.ac): ... to here.
14728
14729 2011-05-08  Bruno Haible  <bruno@clisp.org>
14730
14731         getdtablesize: Move AC_LIBOBJ invocations to module description.
14732         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14733         invocation from here...
14734         * modules/getdtablesize (configure.ac): ... to here.
14735
14736 2011-05-08  Bruno Haible  <bruno@clisp.org>
14737
14738         getdomainname: Move AC_LIBOBJ invocations to module description.
14739         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14740         gl_PREREQ_GETDOMAINNAME invocations from here...
14741         * modules/getdomainname (configure.ac): ... to here.
14742
14743 2011-05-08  Bruno Haible  <bruno@clisp.org>
14744
14745         getline: Move AC_LIBOBJ invocations to module description.
14746         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14747         invocations from here...
14748         * modules/getline (configure.ac): ... to here.
14749
14750 2011-05-08  Bruno Haible  <bruno@clisp.org>
14751
14752         getline: Simplify.
14753         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14754         It's already handled through the module dependency.
14755
14756 2011-05-08  Bruno Haible  <bruno@clisp.org>
14757
14758         getdelim: Move AC_LIBOBJ invocations to module description.
14759         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14760         and gl_PREREQ_GETDELIM invocations from here...
14761         * modules/getdelim (configure.ac): ... to here.
14762         (Depends-on): Fix condition.
14763
14764 2011-05-08  Bruno Haible  <bruno@clisp.org>
14765
14766         getcwd: Move AC_LIBOBJ invocations to module description.
14767         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14768         invocations from here...
14769         * modules/getcwd (configure.ac): ... to here.
14770
14771 2011-05-08  Bruno Haible  <bruno@clisp.org>
14772
14773         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14774         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14775         here...
14776         * modules/getcwd-lgpl (configure.ac): ... to here.
14777
14778 2011-05-07  Bruno Haible  <bruno@clisp.org>
14779
14780         crypto/gc: Move AC_LIBOBJ invocations to module description.
14781         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14782         * modules/crypto/gc (configure.ac): ... to here.
14783
14784 2011-05-07  Bruno Haible  <bruno@clisp.org>
14785
14786         fwriting: Move AC_LIBOBJ invocations to module description.
14787         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14788         here...
14789         * modules/fwriting (configure.ac): ... to here.
14790
14791 2011-05-07  Bruno Haible  <bruno@clisp.org>
14792
14793         fwritable: Move AC_LIBOBJ invocations to module description.
14794         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14795         here...
14796         * modules/fwritable (configure.ac): ... to here.
14797
14798 2011-05-07  Bruno Haible  <bruno@clisp.org>
14799
14800         futimens: Move AC_LIBOBJ invocations to module description.
14801         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14802         here...
14803         * modules/futimens (configure.ac): ... to here.
14804
14805 2011-05-07  Bruno Haible  <bruno@clisp.org>
14806
14807         ftruncate: Move AC_LIBOBJ invocations to module description.
14808         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14809         gl_PREREQ_FTRUNCATE invocations from here...
14810         * modules/ftruncate (configure.ac): ... to here.
14811
14812 2011-05-07  Bruno Haible  <bruno@clisp.org>
14813
14814         fsync: Move AC_LIBOBJ invocations to module description.
14815         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14816         invocations from here...
14817         * modules/fsync (configure.ac): ... to here.
14818
14819 2011-05-07  Bruno Haible  <bruno@clisp.org>
14820
14821         fsusage: Move AC_LIBOBJ invocations to module description.
14822         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14823         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14824         * modules/fsusage (configure.ac): ... to here.
14825
14826 2011-05-07  Bruno Haible  <bruno@clisp.org>
14827
14828         freopen: Move AC_LIBOBJ invocations to module description.
14829         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14830         invocations from here...
14831         * modules/freopen (configure.ac): ... to here.
14832
14833 2011-05-07  Bruno Haible  <bruno@clisp.org>
14834
14835         free: Move AC_LIBOBJ invocations to module description.
14836         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14837         invocations from here...
14838         * modules/free (configure.ac): ... to here.
14839
14840 2011-05-07  Bruno Haible  <bruno@clisp.org>
14841
14842         freadable: Move AC_LIBOBJ invocations to module description.
14843         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14844         here...
14845         * modules/freadable (configure.ac): ... to here.
14846
14847 2011-05-07  Bruno Haible  <bruno@clisp.org>
14848
14849         fpurge: Move AC_LIBOBJ invocations to module description.
14850         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14851         invocations from here...
14852         * modules/fpurge (configure.ac): ... to here.
14853
14854 2011-05-07  Bruno Haible  <bruno@clisp.org>
14855
14856         fpending: Move AC_LIBOBJ invocations to module description.
14857         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14858         gl_FUNC_FPENDING.
14859         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14860         invocations from here...
14861         * modules/fpending (configure.ac): ... to here.
14862
14863 2011-05-07  Bruno Haible  <bruno@clisp.org>
14864
14865         fopen: Move AC_LIBOBJ invocations to module description.
14866         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14867         invocations from here...
14868         * modules/fopen (configure.ac): ... to here.
14869
14870 2011-05-07  Bruno Haible  <bruno@clisp.org>
14871
14872         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14873         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14874         gl_FUNC_FNMATCH_POSIX.
14875         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14876         invocations from here...
14877         * modules/fnmatch (configure.ac): ... to here.
14878         * modules/fnmatch-gnu (configure.ac): ... and here.
14879
14880 2011-05-07  Bruno Haible  <bruno@clisp.org>
14881
14882         flock: Move AC_LIBOBJ invocations to module description.
14883         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14884         invocations from here...
14885         * modules/flock (configure.ac): ... to here.
14886
14887 2011-05-07  Bruno Haible  <bruno@clisp.org>
14888
14889         fileblocks: Move AC_LIBOBJ invocations to module description.
14890         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14891         gl_PREREQ_FILEBLOCKS invocations from here...
14892         * modules/fileblocks (configure.ac): ... to here.
14893
14894 2011-05-06  Bruno Haible  <bruno@clisp.org>
14895
14896         fflush: Move AC_LIBOBJ invocations to module description.
14897         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14898         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14899         invocations from here...
14900         * modules/fflush (configure.ac): ... to here.
14901
14902 2011-05-06  Bruno Haible  <bruno@clisp.org>
14903
14904         fdopendir: Move AC_LIBOBJ invocations to module description.
14905         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14906         here...
14907         * modules/fdopendir (configure.ac): ... to here.
14908         (Depends-on): Improve conditions.
14909
14910 2011-05-06  Bruno Haible  <bruno@clisp.org>
14911
14912         _Exit: Move AC_LIBOBJ invocations to module description.
14913         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14914         invocations from here...
14915         * modules/_Exit (configure.ac): ... to here.
14916
14917 2011-05-21  Bruno Haible  <bruno@clisp.org>
14918
14919         euidaccess: Respect rules for use of AC_LIBOBJ.
14920         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14921         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14922         from here...
14923         * modules/euidaccess (configure.ac): ... to here.
14924
14925 2011-05-06  Bruno Haible  <bruno@clisp.org>
14926
14927         error: Move AC_LIBOBJ invocations to module description.
14928         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14929         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14930         invocations from here...
14931         * modules/error (configure.ac): ... to here.
14932
14933 2011-05-06  Bruno Haible  <bruno@clisp.org>
14934
14935         duplocale: Move AC_LIBOBJ invocations to module description.
14936         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14937         gl_PREREQ_DUPLOCALE invocations from here...
14938         * modules/duplocale (configure.ac): ... to here.
14939
14940 2011-05-05  Bruno Haible  <bruno@clisp.org>
14941
14942         dirfd: Move AC_LIBOBJ invocations to module description.
14943         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14944         gl_FUNC_DIRFD.
14945         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14946         here...
14947         * modules/dirfd (configure.ac): ... to here.
14948         (Depends-on): Fix condition.
14949
14950 2011-05-05  Bruno Haible  <bruno@clisp.org>
14951
14952         chown: Respect rules for use of AC_LIBOBJ.
14953         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14954         * modules/chown (configure.ac): ... to here.
14955
14956 2011-05-05  Bruno Haible  <bruno@clisp.org>
14957
14958         chdir-long: Move AC_LIBOBJ invocations to module description.
14959         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14960         gl_PREREQ_CHDIR_LONG invocations from here...
14961         * modules/chdir-long (configure.ac): ... to here.
14962
14963 2011-05-05  Bruno Haible  <bruno@clisp.org>
14964
14965         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14966         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14967         from here...
14968         * modules/canonicalize-lgpl (configure.ac): ... to here.
14969
14970 2011-05-05  Bruno Haible  <bruno@clisp.org>
14971
14972         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14973         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14974         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14975         REPLACE_CALLOC.
14976         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14977         * modules/calloc-gnu (configure.ac): Likewise.
14978
14979 2011-05-05  Bruno Haible  <bruno@clisp.org>
14980
14981         btowc: Move AC_LIBOBJ invocations to module description.
14982         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14983         invocations from here...
14984         * modules/btowc (configure.ac): ... to here.
14985
14986 2011-05-21  Bruno Haible  <bruno@clisp.org>
14987
14988         atexit: Move AC_LIBOBJ invocations to module description.
14989         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14991         here...
14992         * modules/atexit (configure.ac): ... to here.
14993
14994 2011-05-05  Bruno Haible  <bruno@clisp.org>
14995
14996         atoll: Move AC_LIBOBJ invocations to module description.
14997         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14998         invocations from here...
14999         * modules/atoll (configure.ac): ... to here.
15000
15001 2011-05-05  Bruno Haible  <bruno@clisp.org>
15002
15003         argz: Move AC_LIBOBJ invocations to module description.
15004         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15005         * modules/argz (configure.ac): ... to here.
15006
15007 2011-05-05  Bruno Haible  <bruno@clisp.org>
15008
15009         alphasort: Move AC_LIBOBJ invocations to module description.
15010         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15011         gl_PREREQ_ALPHASORT invocations from here...
15012         * modules/alphasort (configure.ac): ... to here.
15013
15014 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15015
15016         verify: new macro verify_expr; verify_true deprecated
15017         * NEWS: Mention this.
15018         * doc/verify.texi (Compile-time Assertions): Document this.
15019         * lib/verify.h (verify_true): Deprecate.
15020         (verify_expr): New macro.
15021         * tests/test-verify.c (function): Test verify_expr.
15022
15023 2011-06-14  Jim Meyering  <meyering@redhat.com>
15024
15025         init.sh: give more portable redirection-related advice in a comment
15026         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15027         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15028         for lots of discussion.  Stefano Lattarini suggested the solution
15029         of putting "9>&2" after the command.  Reported by Bruno Haible.
15030
15031 2011-06-13  Bruno Haible  <bruno@clisp.org>
15032
15033         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15034         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15035         'none'.
15036
15037 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15038
15039         ftoastr: use strtof only if HAVE_STRTOF
15040         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15042         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15043         * modules/ftoastr (configure.ac): Check for strtof.
15044
15045 2011-06-13  Bruno Haible  <bruno@clisp.org>
15046
15047         gnulib-tool: Addendum to 2011-06-08 commit.
15048         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15049         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15050
15051 2011-06-13  Bruno Haible  <bruno@clisp.org>
15052
15053         fseeko: Provide a non-inline replacement of fseek().
15054         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15055         * modules/fseeko (Depends-on): Add fseek.
15056         * modules/fseek (License): Change to LGPLv2+.
15057
15058 2011-06-13  Bruno Haible  <bruno@clisp.org>
15059
15060         ftello: Provide a non-inline replacement of ftell().
15061         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15062         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15063         not have ftello() (such as on mingw).
15064         * modules/ftello (Depends-on): Add ftell.
15065         * modules/ftell (License): Change to LGPLv2+.
15066
15067 2011-05-07  Bruno Haible  <bruno@clisp.org>
15068
15069         ftell: Move AC_LIBOBJ invocations to module description.
15070         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15071         * modules/ftell (configure.ac): ... to here.
15072
15073 2011-05-07  Bruno Haible  <bruno@clisp.org>
15074
15075         ftello: Respect rules for use of AC_LIBOBJ.
15076         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15077         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15078         here...
15079         * modules/ftello (configure.ac): ... to here.
15080
15081 2011-05-07  Bruno Haible  <bruno@clisp.org>
15082
15083         fseeko: Simplify.
15084         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15085         (gl_FUNC_FSEEKO): Inline it here.
15086
15087 2011-05-07  Bruno Haible  <bruno@clisp.org>
15088
15089         fseek: Move AC_LIBOBJ invocations to module description.
15090         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15091         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15092         * modules/fseek (configure.ac): ... to here.
15093
15094 2011-05-07  Bruno Haible  <bruno@clisp.org>
15095
15096         fseek: Respect rules for use of AC_LIBOBJ.
15097         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15098         here...
15099         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15100
15101 2011-05-07  Bruno Haible  <bruno@clisp.org>
15102
15103         fseeko: Respect rules for use of AC_LIBOBJ.
15104         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15105         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15106         here...
15107         * modules/fseeko (configure.ac): ... to here.
15108
15109 2011-06-13  Bruno Haible  <bruno@clisp.org>
15110
15111         gnulib-tool: Allow comments in the 'Depends-on' section.
15112         * doc/gnulib.texi (Module description): Mention comment syntax in the
15113         Depends-on section.
15114         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15115
15116 2011-06-13  Bruno Haible  <bruno@clisp.org>
15117
15118         file-set.h: guard __attibute__ use, now that it's not always defined
15119         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15120         versions that support it.  This fixes a coreutils build failure with
15121         the vendor cc on HP-UX 11.31.
15122
15123 2011-06-12  Bruno Haible  <bruno@clisp.org>
15124
15125         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15126         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15127         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15128         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15129         (acl, aclsort): New declarations.
15130         (aclv_nontrivial): New declaration.
15131         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15132         (file_has_acl): Read also the second kind of HP-UX ACLs.
15133         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15134         kind of HP-UX ACLs if the first kind fails.
15135         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15136         second kind of HP-UX ACLs.
15137         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15138         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15139         agree.
15140         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15141         hpuxjfs.
15142         Handle hpuxjfs.
15143         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15144         hpuxjfs.
15145         Handle hpuxjfs.
15146         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15147         (func_test_same_acls): Use both lsacl and getacl.
15148         Handle hpuxjfs.
15149         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15150         (func_test_same_acls): Use both lsacl and getacl.
15151         Handle hpuxjfs.
15152
15153 2011-06-12  Bruno Haible  <bruno@clisp.org>
15154
15155         acl: Complete the 2010-08-10 fix.
15156         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15157         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15158         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15159         explicitly.
15160         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15161         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15162
15163 2011-06-12  Bruno Haible  <bruno@clisp.org>
15164
15165         spawn-pipe tests: Comments.
15166         * tests/test-spawn-pipe-child.c (main): Update comment.
15167         Reported by James Youngman <jay@gnu.org>.
15168
15169 2011-06-11  James Youngman  <jay@gnu.org>
15170
15171         New module 'stat-size'.
15172         * modules/stat-size: New module.  Provides macros for accessing
15173         file size information in instances of struct stat.  Depends on the
15174         fileblocks module because it calls st_blocks.
15175         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15176         * doc/gnulib.texi: Include stat-size.texi.
15177         * doc/stat-size.texi: Documentation for this module.
15178         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15179         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15180         AC_STRUCT_ST_BLOCKS.
15181
15182 2011-06-09  Bruno Haible  <bruno@clisp.org>
15183
15184         thread: Support pthreads-win32.
15185         * lib/glthread/thread.h (gl_thread_self): Define differently on
15186         pthreads-win32.
15187         (gl_null_thread): New declaration.
15188         (gl_thread_self_pointer): New macro.
15189         * lib/glthread/thread.c (gl_null_thread): New constant.
15190         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15191         gl_thread_self.
15192         * tests/test-tls.c: Likewise.
15193         Suggested by Paul Eggert. Reported by Eric Blake.
15194
15195 2011-06-09  Bruno Haible  <bruno@clisp.org>
15196
15197         thread: Fix confusion between NULL and 0.
15198         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15199         Reported by Paul Eggert.
15200
15201 2011-06-09  Bruno Haible  <bruno@clisp.org>
15202
15203         spawn-pipe tests: Avoid test failure on HP-UX 11.
15204         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15205         is closed.
15206
15207 2011-06-09  Bruno Haible  <bruno@clisp.org>
15208
15209         acl tests: Fix compilation error on HP-UX 11.
15210         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15211
15212 2011-06-09  Bruno Haible  <bruno@clisp.org>
15213
15214         rmdir: Avoid test failure on HP-UX 10.20.
15215         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15216         EEXIST.
15217
15218 2011-06-08  Eric Blake  <eblake@redhat.com>
15219
15220         perror: fix test on mingw
15221         * modules/perror-tests (Depends-on): Add dup2.
15222
15223         strerror_r-posix: fix on MacOS
15224         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15225         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15226         logic bug.
15227         * lib/strerror_r.c (strerror_r): Fix the bug.
15228         * lib/strerror.c (strerror): Likewise.
15229         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15230         problem.
15231         * doc/posix-functions/strerror.texi (strerror): Likewise.
15232         * doc/posix-functions/perror.texi (perror): Likewise.
15233         * tests/test-strerror.c (main): Enhance test.
15234         * tests/test-strerror_r.c (main): Likewise.
15235
15236 2011-06-08  Bruno Haible  <bruno@clisp.org>
15237
15238         gnulib-tool: Better isolation between different gnulib-tool invocations.
15239         * gnulib-tool: New option --witness-c-macro.
15240         (witness_c_macro): New variable.
15241         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15242         AM_CPPFLAGS define it as a C macro.
15243         (func_emit_tests_Makefile_am): Likewise.
15244         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15245         read it from there.
15246         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15247         m4_define, not AC_DEFUN.
15248         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15249         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15250         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15251         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15252         s|...|...|, to substitute the values of the GNULIB_* module indicator
15253         variables.
15254         * modules/dirent (Makefile.am): Likewise.
15255         * modules/fcntl-h (Makefile.am): Likewise.
15256         * modules/iconv-h (Makefile.am): Likewise.
15257         * modules/langinfo (Makefile.am): Likewise.
15258         * modules/locale (Makefile.am): Likewise.
15259         * modules/math (Makefile.am): Likewise.
15260         * modules/netdb (Makefile.am): Likewise.
15261         * modules/poll-h (Makefile.am): Likewise.
15262         * modules/pty (Makefile.am): Likewise.
15263         * modules/search (Makefile.am): Likewise.
15264         * modules/signal (Makefile.am): Likewise.
15265         * modules/spawn (Makefile.am): Likewise.
15266         * modules/stdio (Makefile.am): Likewise.
15267         * modules/stdlib (Makefile.am): Likewise.
15268         * modules/string (Makefile.am): Likewise.
15269         * modules/sys_ioctl (Makefile.am): Likewise.
15270         * modules/sys_select (Makefile.am): Likewise.
15271         * modules/sys_socket (Makefile.am): Likewise.
15272         * modules/sys_stat (Makefile.am): Likewise.
15273         * modules/sys_times (Makefile.am): Likewise.
15274         * modules/sys_utsname (Makefile.am): Likewise.
15275         * modules/sys_wait (Makefile.am): Likewise.
15276         * modules/termios (Makefile.am): Likewise.
15277         * modules/time (Makefile.am): Likewise.
15278         * modules/unistd (Makefile.am): Likewise.
15279         * modules/wchar (Makefile.am): Likewise.
15280
15281 2011-06-08  Eric Blake  <eblake@redhat.com>
15282
15283         strerror: simplify replacement
15284         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15285         * modules/strerror (configure.ac): No prereqs needed here...
15286         * modules/strerror-override (configure.ac): ...but this needs it.
15287         (Files): Add file for needed prereq macro.
15288
15289 2011-06-08  Bruno Haible  <bruno@clisp.org>
15290
15291         strerror_r-posix: Tweaks.
15292         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15293         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15294         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15295         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15296         (gl_FUNC_STRERROR_R): ... to here.
15297         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15298
15299 2011-06-07  Eric Blake  <eblake@redhat.com>
15300
15301         perror: document fixed bugs
15302         * doc/posix-functions/perror.texi (perror): Document recent
15303         patches.
15304
15305 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15306
15307         stat-time: get_stat_birthtime failure is better-defined
15308         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15309         return a timestamp whose tv_sec and tv_nsec values are both -1.
15310         Previously, the spec said only that the tv_nsec value was negative.
15311         This upward-compatible change simplifies GNU tar a bit.
15312
15313 2011-06-07  Eric Blake  <eblake@redhat.com>
15314
15315         strerror_r-posix: work around cygwin 1.7.9
15316         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15317         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15318         bug without replacing strerror_r.
15319         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15320         strerror_r is buggy, but without requiring strerror_r compilation.
15321         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15322
15323         test-perror: relax test to ignore cygwin bug
15324         * tests/test-perror2.c (main): Relax test on requiring detection
15325         of stream errors, and use unbuffered stream.
15326         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15327         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15328         * doc/posix-functions/fputc.texi (fputc): Likewise.
15329         * doc/posix-functions/fputs.texi (fputs): Likewise.
15330         * doc/posix-functions/fputws.texi (fputws): Likewise.
15331         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15332         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15333         * doc/posix-functions/getopt.texi (getopt): Likewise.
15334         * doc/posix-functions/perror.texi (perror): Likewise.
15335         * doc/posix-functions/printf.texi (printf): Likewise.
15336         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15337         * doc/posix-functions/psignal.texi (psignal): Likewise.
15338         * doc/posix-functions/putc.texi (putc): Likewise.
15339         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15340         Likewise.
15341         * doc/posix-functions/putchar.texi (putchar): Likewise.
15342         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15343         Likewise.
15344         * doc/posix-functions/puts.texi (puts): Likewise.
15345         * doc/posix-functions/putwc.texi (putwc): Likewise.
15346         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15347         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15348         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15349         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15350         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15351         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15352         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15353         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15354
15355 2011-05-22  Bruno Haible  <bruno@clisp.org>
15356
15357         strerror: Move AC_LIBOBJ invocations to module description.
15358         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15359         gl_PREREQ_STRERROR invocations from here...
15360         * modules/strerror (configure.ac): ... to here.
15361
15362 2011-05-21  Bruno Haible  <bruno@clisp.org>
15363
15364         perror: Use common idiom.
15365         * modules/perror (configure.ac): Reorder statements.
15366
15367 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15368
15369         tests: fix usage message in 'mktempd_'
15370         * tests/init.sh (mktempd_): In the usage message, use literal
15371         'mktempd_', not '$ME' (which is even undefined), as the name of
15372         the subroutine.
15373
15374 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15375
15376         tests init: new function 'fatal_', for hard errors
15377         Before this patch, the only way offered by tests/init.sh to
15378         properly signal a hard error was the `framework_failure_'
15379         function.  But the error message issued by that function,
15380         as its name would suggest, refers to a set-up failure in the
15381         testsuite, while hard errors can obviously also be due to
15382         other reasons.  The best way to fix this inconsistency is to
15383         introduce a new function with a more general error message.
15384         * tests/init.sh (fatal_): New function.
15385
15386 2011-06-06  Eric Blake  <eblake@redhat.com>
15387
15388         canonicalize-lgpl: use common idiom
15389         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15390         over newer POSIX -Rf.
15391         Reported by Bruno Haible.
15392
15393         canonicalize-lgpl: work around AIX realpath bug
15394         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15395         * doc/posix-functions/realpath.texi (realpath): Document it.
15396         Reported by Bruno Haible.
15397
15398         strerror: work around FreeBSD bug
15399         * lib/strerror.c (strerror): Special case 0.
15400         Reported by Bruno Haible.
15401
15402         strerror-override: avoid bloating errno module
15403         * modules/errno (Files, configure.ac): Move replacement strings...
15404         * modules/strerror-override: ...to new module.
15405         * modules/strerror (Depends-on): Add strerror-override.
15406         * modules/strerror_r-posix (Depends-on): Likewise.
15407         * MODULES.html.sh: Document new module.
15408         Reported by Bruno Haible.
15409
15410 2011-06-06  Bruno Haible  <bruno@clisp.org>
15411
15412         spawn-pipe tests: Rename program.
15413         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15414         * tests/test-spawn-pipe-child.c: Update comment.
15415         * tests/test-spawn-pipe.sh: Update.
15416         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15417
15418         spawn-pipe tests: Link the child program only against libc.
15419         * tests/test-spawn-pipe-child.c: New file, extracted from
15420         tests/test-spawn-pipe.c.
15421         (main): Expect only one argument.
15422         (is_open): New function, copied from tests/test-pipe.c.
15423         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15424         (child_main): Remove function.
15425         (test_pipe): Pass only one argument to the child program.
15426         (main): Remove child process code. Expect the child program's name as
15427         first argument.
15428         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15429         argument.
15430         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15431         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15432         test-spawn-pipe-child against no libraries.
15433
15434 2011-06-06  Bruno Haible  <bruno@clisp.org>
15435
15436         careadlinkat: Avoid mismatch between ssize_t and int.
15437         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15438         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15439
15440 2011-06-06  Jim Meyering  <meyering@redhat.com>
15441
15442         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15443         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15444         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15445
15446 2011-06-05  Bruno Haible  <bruno@clisp.org>
15447
15448         ansi-c++-opt: Interoperability with libtool.
15449         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15450         set the variable to "no", not to ":".
15451         * NEWS: Mention the change.
15452
15453 2011-06-05  Bruno Haible  <bruno@clisp.org>
15454
15455         acl: Fix test failure on AIX 7.
15456         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15457         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15458
15459 2011-06-05  Bruno Haible  <bruno@clisp.org>
15460
15461         pipe-filter-ii: Fix test failure on AIX and IRIX.
15462         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15463         with EAGAIN, retry with a smaller buffer size.
15464
15465 2011-06-05  Bruno Haible  <bruno@clisp.org>
15466
15467         localename: Fix link dependencies.
15468         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15469         * modules/localename-tests (Makefile.am): Link test-localename with
15470         $(LIBTHREAD).
15471
15472 2011-06-05  Bruno Haible  <bruno@clisp.org>
15473
15474         error: Avoid gcc warning.
15475         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15476
15477 2011-06-05  Bruno Haible  <bruno@clisp.org>
15478
15479         unsetenv: Avoid gcc warning.
15480         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15481
15482 2011-06-05  Bruno Haible  <bruno@clisp.org>
15483
15484         setenv: Avoid gcc warning.
15485         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15486
15487 2011-06-05  Bruno Haible  <bruno@clisp.org>
15488
15489         sys_select: Ensure memset is declared also on AIX 7.
15490         * lib/sys_select.in.h: Include <string.h> also on AIX.
15491         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15492         self-contained also on AIX 7.1.
15493
15494 2011-06-04  Jim Meyering  <meyering@redhat.com>
15495
15496         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15497         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15498         function name, "error".
15499         (_gl_translatable_diag_func_re): New configurable variable.
15500
15501 2011-06-04  Bruno Haible  <bruno@clisp.org>
15502
15503         getopt: Avoid gcc warning.
15504         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15505
15506 2011-06-04  Bruno Haible  <bruno@clisp.org>
15507
15508         strerror_r: Fix comments.
15509         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15510         commit.
15511
15512 2011-06-04  Bruno Haible  <bruno@clisp.org>
15513
15514         perror: Fix compilation error.
15515         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15516         Undefine fprintf, not sprintf.
15517         * modules/perror (Depends-on): Remove intprops, verify.
15518
15519 2011-06-04  Bruno Haible  <bruno@clisp.org>
15520
15521         setlocale: Enable replacement on Cygwin 1.5.
15522         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15523         Cygwin 1.5.x.
15524         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15525         LC_CTYPE category also exists on Cygwin 1.5.x.
15526
15527 2011-06-04  Bruno Haible  <bruno@clisp.org>
15528
15529         strerror-override: Don't disable symbol renamings.
15530         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15531         * lib/strerror-override.c: Include config.h.
15532         (strerror_override): Don't undefine.
15533
15534 2011-06-03  Bruno Haible  <bruno@clisp.org>
15535
15536         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15537         * lib/localename.h: Update copyright header.
15538         * lib/localename.c: Likewise.
15539         * lib/relocatable.h: Likewise.
15540         * lib/relocatable.c: Likewise.
15541
15542 2011-06-02  Bruno Haible  <bruno@clisp.org>
15543
15544         doc: Fix a module name.
15545         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15546
15547 2011-06-02  Bruno Haible  <bruno@clisp.org>
15548
15549         pipe2: Remove dependency on 'nonblocking' module.
15550         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15551         O_NONBLOCK is defined by gnulib.
15552         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15553         is zero.
15554         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15555         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15556         defined by gnulib.
15557         (get_nonblocking_flag): New function.
15558         (main): Test O_NONBLOCK flag only if it is nonzero.
15559         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15560
15561 2011-06-03  Jim Meyering  <meyering@redhat.com>
15562
15563         maint: three new prohibit-header-without-use rules
15564         Prohibit use of cloexec.h, posixver.h, same.h without use.
15565         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15566         (sc_prohibit_posixver_without_use): Likewise.
15567         (sc_prohibit_same_without_use): Likewise.
15568
15569 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15570
15571         allocator: 'die' routine is now given requested size
15572         * lib/allocator.h (struct allocator.die): New size arg.
15573         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15574         If the actual problem is an ssize_t limitation, not a size_t or
15575         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15576
15577 2011-06-01  Eric Blake  <eblake@redhat.com>
15578
15579         strerror: drop strerror_r dependency
15580         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15581         * lib/strerror-override.c (strerror_override): ...to new file.
15582         * lib/strerror-override.h: Add prototype.
15583         * lib/strerror-impl.h: Delete.
15584         * lib/strerror.c (strerror): New implementation.
15585         * modules/errno (Files): Add new files.
15586         (configure.ac): Compile new file as appropriate.
15587         * modules/strerror (Files): Drop unused file.
15588         (Depends-on): Drop strerror_r-posix.
15589         * MODULES.html.sh: Document strerror_r-posix.
15590         Requested by Sam Steingold.
15591
15592         perror: call strerror_r directly
15593         * modules/perror (Files): Drop strerror-impl.h.
15594         * lib/perror.c (perror): Use our own stack buffer, rather than
15595         calling a wrapper that uses static storage.
15596         * doc/posix-functions/perror.texi (perror): Document a limitation
15597         of our replacement.
15598
15599         strerror_r: fix includes for FreeBSD
15600         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15601         since we use abort on some platforms.
15602         Reported by Matthias Bolte.
15603
15604 2011-05-31  Bruno Haible  <bruno@clisp.org>
15605
15606         Fix link errors in tests: openat-die uses gettext-h.
15607         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15608         against $(LIBINTL).
15609         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15610         against $(LIBINTL).
15611         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15612         $(LIBINTL).
15613         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15614         against $(LIBINTL).
15615         * modules/linkat-tests (Makefile.am): Link test-linkat against
15616         $(LIBINTL).
15617         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15618         $(LIBINTL).
15619         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15620         against $(LIBINTL).
15621         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15622         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15623         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15624         $(LIBINTL).
15625         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15626         $(LIBINTL).
15627         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15628         $(LIBINTL).
15629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15630
15631 2011-05-31  Bruno Haible  <bruno@clisp.org>
15632
15633         Fix link errors in tests: wait-process uses gettext-h.
15634         * modules/nonblocking-pipe-tests (Makefile.am): Set
15635         test_nonblocking_pipe_main_LDADD.
15636         * modules/nonblocking-socket-tests (Makefile.am): Link
15637         test-nonblocking-socket-main against $(LIBINTL).
15638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15639
15640 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15641
15642         assert-h: work around 'verify' incompatibility
15643         * lib/verify.h: Use @...@ directives, not ifdef.
15644         * modules/assert-h (assert.h): Implement the directives.
15645         (assert.h): Substitute the symbol-prefix more consistently.
15646
15647 2011-05-29  Jim Meyering  <meyering@redhat.com>
15648
15649         trim: remove three superfluous assignments
15650         * lib/trim.c (trim2): Remove three superfluous assignments
15651         and correct brace positioning.
15652
15653 2011-05-29  Bruno Haible  <bruno@clisp.org>
15654
15655         wctype-h: Avoid namespace pollution on Solaris 2.6.
15656         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15657         identifiers.
15658         * doc/posix-headers/wctype.texi: Mention the problem.
15659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15660
15661 2011-05-28  Jim Meyering  <meyering@redhat.com>
15662
15663         parse-datetime.y: accommodate -Wstrict-overflow
15664         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15665         placate -Wstrict-overflow.
15666
15667         trim: avoid a warning from -O2 -Wstrict-overflow
15668         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15669
15670 2011-05-29  Bruno Haible  <bruno@clisp.org>
15671
15672         gnulib-tool: Fix bug in yesterday's commit.
15673         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15674         twice.
15675
15676 2011-05-29  Bruno Haible  <bruno@clisp.org>
15677
15678         Allow multiple gnulib generated include files to be combined.
15679         * gnulib-tool (func_compute_include_guard_prefix): New function.
15680         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15681         ${gl_include_guard_prefix} references.
15682         (func_import, func_create_testdir): Invoke
15683         func_compute_include_guard_prefix.
15684         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15685         * lib/ctype.in.h: Likewise.
15686         * lib/dirent.in.h: Likewise.
15687         * lib/errno.in.h: Likewise.
15688         * lib/fcntl.in.h: Likewise.
15689         * lib/float.in.h: Likewise.
15690         * lib/getopt.in.h: Likewise.
15691         * lib/iconv.in.h: Likewise.
15692         * lib/langinfo.in.h: Likewise.
15693         * lib/locale.in.h: Likewise.
15694         * lib/math.in.h: Likewise.
15695         * lib/netdb.in.h: Likewise.
15696         * lib/netinet_in.in.h: Likewise.
15697         * lib/poll.in.h: Likewise.
15698         * lib/pthread.in.h: Likewise.
15699         * lib/pty.in.h: Likewise.
15700         * lib/sched.in.h: Likewise.
15701         * lib/se-selinux.in.h: Likewise.
15702         * lib/search.in.h: Likewise.
15703         * lib/signal.in.h: Likewise.
15704         * lib/spawn.in.h: Likewise.
15705         * lib/stdarg.in.h: Likewise.
15706         * lib/stddef.in.h: Likewise.
15707         * lib/stdint.in.h: Likewise.
15708         * lib/stdio.in.h: Likewise.
15709         * lib/stdlib.in.h: Likewise.
15710         * lib/string.in.h: Likewise.
15711         * lib/strings.in.h: Likewise.
15712         * lib/sys_file.in.h: Likewise.
15713         * lib/sys_ioctl.in.h: Likewise.
15714         * lib/sys_select.in.h: Likewise.
15715         * lib/sys_socket.in.h: Likewise.
15716         * lib/sys_stat.in.h: Likewise.
15717         * lib/sys_time.in.h: Likewise.
15718         * lib/sys_times.in.h: Likewise.
15719         * lib/sys_uio.in.h: Likewise.
15720         * lib/sys_utsname.in.h: Likewise.
15721         * lib/sys_wait.in.h: Likewise.
15722         * lib/sysexits.in.h: Likewise.
15723         * lib/termios.in.h: Likewise.
15724         * lib/time.in.h: Likewise.
15725         * lib/unistd.in.h: Likewise.
15726         * lib/wchar.in.h: Likewise.
15727         * lib/wctype.in.h: Likewise.
15728         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15729         * modules/ctype (Makefile.am): Likewise.
15730         * modules/dirent (Makefile.am): Likewise.
15731         * modules/errno (Makefile.am): Likewise.
15732         * modules/fcntl-h (Makefile.am): Likewise.
15733         * modules/float (Makefile.am): Likewise.
15734         * modules/getopt-posix (Makefile.am): Likewise.
15735         * modules/iconv-h (Makefile.am): Likewise.
15736         * modules/langinfo (Makefile.am): Likewise.
15737         * modules/locale (Makefile.am): Likewise.
15738         * modules/math (Makefile.am): Likewise.
15739         * modules/netdb (Makefile.am): Likewise.
15740         * modules/netinet_in (Makefile.am): Likewise.
15741         * modules/poll-h (Makefile.am): Likewise.
15742         * modules/pthread (Makefile.am): Likewise.
15743         * modules/pty (Makefile.am): Likewise.
15744         * modules/sched (Makefile.am): Likewise.
15745         * modules/search (Makefile.am): Likewise.
15746         * modules/selinux-h (Makefile.am): Likewise.
15747         * modules/signal (Makefile.am): Likewise.
15748         * modules/spawn (Makefile.am): Likewise.
15749         * modules/stdarg (Makefile.am): Likewise.
15750         * modules/stddef (Makefile.am): Likewise.
15751         * modules/stdint (Makefile.am): Likewise.
15752         * modules/stdio (Makefile.am): Likewise.
15753         * modules/stdlib (Makefile.am): Likewise.
15754         * modules/string (Makefile.am): Likewise.
15755         * modules/strings (Makefile.am): Likewise.
15756         * modules/sys_file (Makefile.am): Likewise.
15757         * modules/sys_ioctl (Makefile.am): Likewise.
15758         * modules/sys_select (Makefile.am): Likewise.
15759         * modules/sys_socket (Makefile.am): Likewise.
15760         * modules/sys_stat (Makefile.am): Likewise.
15761         * modules/sys_time (Makefile.am): Likewise.
15762         * modules/sys_times (Makefile.am): Likewise.
15763         * modules/sys_uio (Makefile.am): Likewise.
15764         * modules/sys_utsname (Makefile.am): Likewise.
15765         * modules/sys_wait (Makefile.am): Likewise.
15766         * modules/sysexits (Makefile.am): Likewise.
15767         * modules/termios (Makefile.am): Likewise.
15768         * modules/time (Makefile.am): Likewise.
15769         * modules/unistd (Makefile.am): Likewise.
15770         * modules/wchar (Makefile.am): Likewise.
15771         * modules/wctype-h (Makefile.am): Likewise.
15772         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15773
15774 2011-05-29  Bruno Haible  <bruno@clisp.org>
15775
15776         assert-h: Allow multiple gnulib generated replacements to coexist.
15777         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15778
15779 2011-05-29  Bruno Haible  <bruno@clisp.org>
15780
15781         argp: Allow coexistence with strerror_r-posix module.
15782         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15783         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15784         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15785         not the glibc signature.
15786
15787 2011-05-28  Bruno Haible  <bruno@clisp.org>
15788
15789         gnulib-tool: Alternative structure of testdirs, similar to --import.
15790         * gnulib-tool: New option --single-configure.
15791         (func_usage): Document it.
15792         (single_configure): New variable.
15793         (func_modules_transitive_closure_separately,
15794         func_modules_transitive_closure_separately,
15795         func_determine_use_libtests, func_modules_add_dummy_separately,
15796         func_modules_to_filelist_separately): New functions, extracted from
15797         func_import.
15798         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15799         (func_import): Use the new functions.
15800         (func_create_testdir): Set final_modules. Handle $single_configure =
15801         true case.
15802
15803 2011-05-28  Bruno Haible  <bruno@clisp.org>
15804
15805         getloadavg: Remove an unreliable safety check.
15806         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15807         getloadavg.c is in place.
15808         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15809         Reported by Sam Steingold <sds@gnu.org>.
15810
15811 2011-05-28  Bruno Haible  <bruno@clisp.org>
15812
15813         doc: Cleanup yet another file produced by texinfo.tex.
15814         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15815
15816 2011-05-28  Bruno Haible  <bruno@clisp.org>
15817
15818         Finish the conditional dependencies mechanism.
15819         * gnulib-tool: New option --no-conditional-dependencies.
15820         (func_usage): Document it. Don't mark --conditional-dependencies as
15821         experimental.
15822         (cond_dependencies): The possible values can now be true, false, empty.
15823         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15824         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15825         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15826
15827 2011-05-28  Bruno Haible  <bruno@clisp.org>
15828
15829         doc: Use a recent texinfo.tex.
15830         * doc/Makefile (tex_opts): New variable.
15831         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15832
15833 2011-05-28  Jim Meyering  <meyering@redhat.com>
15834
15835         intprops.h: adjust comment to match code change
15836         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15837         only once, it *may* have side effects.  Also fix an unrelated typo.
15838         (_GL_INT_SIGNED): Likewise.
15839
15840 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15841
15842         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15843
15844 2011-05-26  Bruno Haible  <bruno@clisp.org>
15845
15846         mbsrchr: Avoid collision with system function on Interix.
15847         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15848         Reported by Markus Duft <mduft@gentoo.org>.
15849
15850 2011-05-15  James Youngman  <jay@gnu.org>
15851
15852         getopt: for ambiguous options, enumerate the possibilities.
15853         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15854         the ambiguous options when an ambiguous prefix is given. This was
15855         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15856         glibc change was
15857         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15858
15859 2011-05-25  Eric Blake  <eblake@redhat.com>
15860
15861         getcwd: work around mingw bug
15862         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15863         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15864         Reported by Matthias Bolte.
15865
15866 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15867
15868         test-intprops: disable -Wtype-limits diagnostics
15869         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15870         diagnostics.  Otherwise, the integer overflow macros generate many
15871         diagnostics.  Reported by Jim Meyering in
15872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15873
15874         intprops: shorten, to pacify gcc -Woverlength-strings
15875         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15876         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15877         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15878         likely to run afoul of C compiler limits for string constant lengths.
15879         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15880
15881 2011-05-24  Eric Blake  <eblake@redhat.com>
15882
15883         docs: document recently fixed glibc printf bug
15884         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15885         * doc/posix-functions/printf.texi (printf): Likewise.
15886         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15887         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15888
15889         closein-tests: convert to init.sh
15890         * modules/closein-tests (Files): Add init.sh
15891         * tests/test-closein.sh Use it.
15892
15893         yesno-tests: convert to init.sh
15894         * modules/yesno-tests (Files): Add init.sh.
15895         * tests/test-yesno.sh: Use it.
15896
15897         atexit-tests: ensure reliable exit status
15898         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15899         Reported by Bruno Haible.
15900
15901 2011-05-24  Bruno Haible  <bruno@clisp.org>
15902
15903         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15904         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15905         gl_PREREQ_STRERROR_R invocations from here...
15906         * modules/strerror_r-posix (configure.ac): ... to here.
15907
15908 2011-05-24  Eric Blake  <eblake@redhat.com>
15909
15910         strerror_r: fix missing header
15911         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15912
15913         strerror_r: fix AIX test failures
15914         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15915         ERANGE failure.
15916
15917         strerror_r: fix Solaris test failures
15918         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15919         failures.
15920         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15921
15922         strerror_r: enforce POSIX recommendations
15923         * lib/strerror_r.c (safe_copy): New helper method.
15924         (strerror_r): Guarantee a non-empty string.
15925         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15926         recent POSIX rulings and to match our strerror guarantees.
15927         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15928
15929 2011-05-24  Jim Meyering  <meyering@redhat.com>
15930
15931         test-perror2.c: avoid warning about unused variable
15932         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15933
15934 2011-05-24  Eric Blake  <eblake@redhat.com>
15935
15936         perror: avoid spurious test failure on HP-UX
15937         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15938
15939         tests: fix logic bug in init.sh
15940         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15941         shell.
15942
15943 2011-05-24  Jim Meyering  <meyering@redhat.com>
15944
15945         utimensat: do not reference an out-of-scope buffer
15946         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15947         declared in an inner scope, yet "times" would be dereferenced outside
15948         the scope in which "ts" was valid.
15949         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15950         of ts[2] "out/up", so that the use of aliased "times" (via
15951         "times = ts;") does not end up referencing an out-of-scope "ts"
15952
15953         opendir-safer.c: don't clobber errno; don't close negative FD
15954         * lib/opendir-safer.c (opendir_safer):
15955         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15956         file descriptor, and more importantly, don't clobber the
15957         offending errno value with EINVAL.  Before, upon failure
15958         of dup_safer, we would pass the negative file descriptor to
15959         fdopendir, which would clobber errno.
15960
15961 2011-05-23  Bruno Haible  <bruno@clisp.org>
15962
15963         idcache: Fix module description.
15964         * modules/idcache (Include): Set to "idcache.h".
15965
15966 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15967
15968         gnulib-tool: fix portability problem with MacOS sed
15969         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15970         before the "}".  Problem reported by Leo in
15971         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15972         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15973         sed_extract_condition1, sed_extract_condition2.
15974
15975 2011-05-23  Bruno Haible  <bruno@clisp.org>
15976
15977         hash: Simplify autoconf macro.
15978         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15979
15980 2011-05-23  Bruno Haible  <bruno@clisp.org>
15981
15982         getugroups: Fix module description.
15983         * modules/getugroups (Include): Set to "getugroups.h".
15984
15985 2011-05-23  Bruno Haible  <bruno@clisp.org>
15986
15987         linkat: Simplify autoconf macro.
15988         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15989
15990 2011-05-23  Bruno Haible  <bruno@clisp.org>
15991             Eric Blake  <eblake@redhat.com>
15992
15993         linkat, renameat: Update dependencies.
15994         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15995         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15996         symlinkat.
15997
15998 2011-05-23  Jim Meyering  <meyering@redhat.com>
15999
16000         maint.mk: more tight_scope improvements
16001         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16002         (_gl_TS_headers): Define only in if-0'd block.
16003         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16004         sometimes we must *not* use it.  Adjust uses accordingly.
16005         (sc_tight_scope): Use much simpler grep-based test to determine
16006         whether we skip this rule.
16007
16008         maint.mk: generalize/improve the tight-scope rule
16009         * top/maint.mk: Emit a warning when the test is skipped.
16010         (_gl_TS_dir): Add $(srcdir)/ prefix.
16011         (_gl_TS_function_match): Simplify, rather than trying
16012         to enumerate common types.  Otherwise, it would fail to match an
16013         "extern unsigned char const *" declaration in idutils.
16014         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16015         a way to support use of that type of macro.
16016         (_gl_TS_var_match): Simplify regexp.
16017         (_gl_TS_obj_files): New configurable variable.
16018         (_gl_TS_headers): Likewise.
16019
16020 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16021
16022         verify: fix bug when gnulib <assert.h> is also included
16023         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16024         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16025         Perhaps there's a better way, but this fixes the immediate problem.
16026         Problem reported by Bruno Haible in
16027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16028
16029 2011-05-22  Bruno Haible  <bruno@clisp.org>
16030
16031         xgetcwd: Simplify autoconf macro.
16032         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16033
16034 2011-05-22  Bruno Haible  <bruno@clisp.org>
16035
16036         New module 'mktime-internal'.
16037         * modules/mktime-internal: New file.
16038         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16039         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16040         mktime_internal as a C macro if libc has __mktime_internal.
16041         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16042         conditions.
16043         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16044
16045 2011-05-22  Bruno Haible  <bruno@clisp.org>
16046
16047         timegm: Correct mktime replacement statements.
16048         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16049         defining mktime as a C macro. This completes a 2009-07-28 commit.
16050
16051 2011-05-22  Bruno Haible  <bruno@clisp.org>
16052
16053         timegm: Simplify autoconf macro.
16054         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16055
16056 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16057
16058         clock-time: change to LGPLv2+.
16059         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16060         BSD-like but we have no mark for that; this is good enough for now.
16061
16062 2011-05-21  Bruno Haible  <bruno@clisp.org>
16063
16064         strerror_r: Fix comments.
16065         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16066
16067 2011-05-21  Bruno Haible  <bruno@clisp.org>
16068
16069         relocatable-prog-wrapper: Fix possible link error.
16070         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16071         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16072         (gl_FUNC_SETENV): ... to here.
16073         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16074         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16075
16076 2011-05-21  Bruno Haible  <bruno@clisp.org>
16077
16078         relocatable-prog-wrapper: Assume strerror() exists.
16079         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16080         m4/strerror.m4.
16081         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16082         * lib/relocwrapper.c: Remove mention of strerror module.
16083         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16084         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16085         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16086         C macro.
16087
16088 2011-05-21  Bruno Haible  <bruno@clisp.org>
16089
16090         select: Simplify replacement idiom.
16091         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16092         Win32 platforms.
16093         * lib/sys_select.in.h (select): Simplify accordingly.
16094         * modules/select (Depends-on): Likewise.
16095
16096 2011-05-21  Bruno Haible  <bruno@clisp.org>
16097
16098         mkdir-p: Simplify autoconf macro.
16099         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16100         gl_FUNC_LCHOWN.
16101
16102 2011-05-21  Eric Blake  <eblake@redhat.com>
16103
16104         strerror_r: avoid clobbering strerror on cygwin
16105         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16106         fall back instead to sys_errlist.
16107         * modules/strerror (configure.ac): Add witness.
16108         * tests/test-strerror_r.c (main): Enhance test.
16109         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16110         * tests/test-perror2.c (main): Free memory before exit.
16111
16112 2011-05-21  Bruno Haible  <bruno@clisp.org>
16113
16114         mkdtemp: Use gnulib naming conventions.
16115         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16116         * modules/mkdtemp (configure.ac): Update.
16117
16118 2011-05-20  Eric Blake  <eblake@redhat.com>
16119
16120         strerror_r: avoid corrupting errno on Solaris
16121         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16122         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16123
16124         strerror_r: avoid compiler warning
16125         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16126
16127         strerror_r: simplify AIX code
16128         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16129
16130         test-perror: avoid spurious failure on FreeBSD
16131         * modules/perror-tests (Depends-on): Add strerror, now that
16132         strerror_r no longer pulls it in.
16133
16134 2011-05-20  Bruno Haible  <bruno@clisp.org>
16135
16136         strerror_r-posix: Remove unused dependencies.
16137         * modules/strerror_r-posix (Depends-on): Remove strerror.
16138         Reported by Eric Blake.
16139
16140 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16141
16142         intprops: remove assumption about A|B representation
16143         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16144         is a valid integer if both A and B are.  Although this is true for
16145         all known practical hosts, the C standard doesn't guarantee it,
16146         and the code need not assume it.  Also, this change may work around
16147         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16149
16150 2011-05-20  Eric Blake  <eblake@redhat.com>
16151
16152         perror: work around FreeBSD bug
16153         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16154         is broken.  Move AC_LIBOBJ...
16155         * modules/perror (configure.ac): Here.
16156         * doc/posix-functions/perror.texi (perror): Document this.
16157         * tests/test-perror2.c (main): Enhance test.
16158
16159         test-perror: check for strerror interactions
16160         * tests/macros.h (STREQ): Add macro.
16161         * modules/perror-tests (Files): Add second test.
16162         * tests/test-perror2.c (main): New file.
16163         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16164
16165         test-perror: rewrite to use init script
16166         * modules/perror-tests (Files): Add init.sh.
16167         * tests/test-perror.sh: Use temporary directory.
16168
16169 2011-05-20  Jim Meyering  <meyering@redhat.com>
16170
16171         maint: replace misused "a" with "an"
16172         * doc/intprops.texi: "a integer"
16173         * doc/regex.texi: "a explanation"
16174         * lib/alignof.h: "a object"
16175         * lib/argmatch.h: "a explanation"
16176         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16177         * lib/stdint.in.h: "a integer"
16178         * lib/userspec.c: "a owner"
16179         * doc/gnulib.texi: Fix "a idea", and reword.
16180
16181 2011-05-19  Jim Meyering  <meyering@redhat.com>
16182
16183         maint: correct misuse of "a" and "an"
16184         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16185         * lib/argp-help.c: "an docum...": s/an/a/
16186         * lib/argp-parse.c: "An vector": s/An/A/
16187         * lib/execute.c: "an native": s/an/a/
16188         * lib/spawn-pipe.c: Likewise.
16189         * lib/gc.h: "an Gc_rc": s/an/a/
16190         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16191         * lib/fts.c: "an stat.st_dev": s/an/a/
16192
16193 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         intprops-tests: work around HP-UX 11.23 cc bug with constants
16196         * tests/test-intprops.c (VERIFY): New macro.
16197         (main): Use it, instead of verify, to work around the compiler bug; see
16198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16199
16200         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16201         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16202         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16203         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16204         (_GL_REMAINDER_OVERFLOW): Use it.
16205
16206         intprops-tests: revert unsigned part of previous change
16207         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16208         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16209         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16211
16212 2011-05-19  Bruno Haible  <bruno@clisp.org>
16213
16214         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16215         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16216         strerror_r() returned without filling the buffer.
16217         Reported by Eric Blake.
16218
16219 2011-05-19  Eric Blake  <eblake@redhat.com>
16220
16221         strerror_r: guarantee unchanged errno
16222         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16223         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16224         failure.
16225         * tests/test-strerror_r.c (main): Enhance test.
16226
16227 2011-05-19  Bruno Haible  <bruno@clisp.org>
16228
16229         strerror_r: Reorder #if blocks.
16230         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16231         for consistency with the previous commit.
16232
16233 2011-05-19  Bruno Haible  <bruno@clisp.org>
16234
16235         perror: Avoid clobbering the strerror buffer when possible.
16236         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16237         * lib/strerror.c: Include it.
16238         * modules/strerror (Files): Add lib/strerror-impl.h.
16239         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16240         (my_strerror): New function, defined through lib/strerror-impl.h.
16241         (perror): Use it instead of strerror.
16242         * modules/perror (Files): Add lib/strerror-impl.h.
16243         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16244
16245 2011-05-19  Eric Blake  <eblake@redhat.com>
16246
16247         strerror_r: fix on newer cygwin
16248         * lib/strerror_r.c (strerror_r): Cygwin now has
16249         __xpg_strerror_r, use it.
16250
16251 2011-05-19  Bruno Haible  <bruno@clisp.org>
16252
16253         strerror_r: Avoid clobbering the strerror buffer when possible.
16254         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16255         (sys_nerr, sys_errlist): New declarations.
16256         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16257         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16258         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16259
16260 2011-05-19  Bruno Haible  <bruno@clisp.org>
16261
16262         strerror_r: Fix test failure on mingw.
16263         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16264         EXTEND_STRERROR_R.
16265         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16266         macros from errno.in.h instead.
16267
16268 2011-05-19  Eric Blake  <eblake@redhat.com>
16269
16270         strerror: relax test for Solaris
16271         * tests/test-strerror.c (main): Permit Solaris behavior.
16272         * tests/test-strerror_r.c (main): Likewise.
16273
16274         strerror: enforce POSIX ruling on strerror(0)
16275         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16277         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16278         * doc/posix-functions/strerror.texi (strerror): Document it.
16279         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16280         * tests/test-strerror.c (main): Strengthen test.
16281         * tests/test-strerror_r.c (main): Likewise.
16282
16283 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16284
16285         intprop-tests: port to older and more-pedantic compilers
16286         * modules/intprops-tests (Files): Add tests/macros.h.
16287         * tests/test-intprops.c: Include macros.h.
16288         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16289         it's no longer documented to expand to an integer constant expression.
16290         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16291         argument is floating point, as it's no longer documented to expand
16292         to an integer constant expression in that case.
16293         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16294         compiler bugs reported by Bruno Haible.  See
16295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16296         (U0, U1): New constants, to work around the same bugs.  Also,
16297         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16298
16299         intprops: work around C compiler bugs
16300         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16301         bug in Sun C 5.11 2010/08/13 and other compilers; see
16302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16303
16304         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16305         * doc/intprops.texi (Integer Type Determination): Fix
16306         documentation for TYPE_IS_INTEGER: it returns an constant
16307         expression, not an integer constant expression.  Fix doc for
16308         TYPE_SIGNED: it returns an integer constant expression only if its
16309         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16310         hardly worth documented that way....)
16311
16312 2011-05-18  Bruno Haible  <bruno@clisp.org>
16313
16314         strerror_r: Avoid clobbering the strerror buffer when possible.
16315         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16316         Handle gnulib defined errno values here. When strerror() returns NULL
16317         or an empty string, return EINVAL.
16318         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16319         gnulib defined errno values here.
16320         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16321
16322 2011-05-18  Eric Blake  <eblake@redhat.com>
16323
16324         fnmatch: avoid compiler warning
16325         * lib/fnmatch_loop.c (FCT): Use correct type.
16326         Reported by Matthias Bolte.
16327
16328 2011-05-13  Jim Meyering  <meyering@redhat.com>
16329
16330         maint.mk: three new prohibit_<HDR>_without_use rules
16331         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16332         (sc_prohibit_stdio-safer_without_use): Likewise.
16333         (sc_prohibit_xfreopen_without_use): Likewise.
16334
16335 2011-05-17  Jim Meyering  <meyering@redhat.com>
16336
16337         announce-gen: fail if the NEWS delta is empty
16338         If there's nothing noteworthy in NEWS, then either you forgot
16339         or you shouldn't be releasing.
16340         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16341
16342 2011-05-17  Pádraig Brady <P@draigBrady.com>
16343
16344         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16345         reserved symbols starting with double underscore from the check.
16346
16347 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16348
16349         intprops: add doc
16350         * doc/intprops.texi: New file, documenting intprops.
16351         * doc/gnulib.texi (Particular Modules): Include it.
16352
16353         verify: add doc to gnulib manual and fix example
16354         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16355         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16356         (Compile-time Assertions): Fix example so it can't overflow.
16357
16358 2011-05-17  Jim Meyering  <meyering@redhat.com>
16359
16360         warnings.m4: don't usurp save_CPPFLAGS variable name
16361         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16362
16363         doc: fix typo
16364         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16365
16366 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16367             Bruno Haible  <bruno@clisp.org>
16368
16369         doc: Tweak recent change.
16370         * README (Portability guidelines): Tweak new text.
16371         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16372         Interix 6.1.
16373
16374 2011-05-16  Eric Blake  <eblake@redhat.com>
16375
16376         inttypes: avoid autoconf warning
16377         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16378         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16379
16380 2011-05-16  Sam Steingold <sds@gnu.org>
16381         and Eric Blake  <eblake@redhat.com>
16382
16383         vc-list-files: accept multiple directory operands
16384         * build-aux/vc-list-files: Iterate over all remaining operands.
16385
16386 2011-05-16  Bruno Haible  <bruno@clisp.org>
16387
16388         Fix confusion regarding deprecated modules.
16389         * modules/calloc (Status, Notice): Mark module as deprecated, not
16390         obsolete.
16391         * modules/fnmatch-posix (Status, Notice): Likewise.
16392         * modules/getdate (Status, Notice): Likewise.
16393         * modules/getopt (Status, Notice): Likewise.
16394         * modules/malloc (Status, Notice): Likewise.
16395         * modules/pipe (Status, Notice): Likewise.
16396         * modules/realloc (Status, Notice): Likewise.
16397         * modules/rename-dest-slash (Status, Notice): Likewise.
16398         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16399         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16400         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16401         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16402         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16403
16404 2011-05-16  Bruno Haible  <bruno@clisp.org>
16405
16406         doc: List the target platforms.
16407         * doc/gnulib-intro.texi (Target Platforms): New section.
16408         * doc/gnulib.texi (Introduction): Update menu.
16409         * README (Portability guidelines): Refer to the new section. Update
16410         statement about oldest supported environment. Remove rationale why
16411         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16412         unportable C89 function.
16413         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16414         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16415
16416 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16417
16418         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16419
16420 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16421
16422         intprops-tests: new module
16423         * modules/intprops-tests, tests/test-intprops.c: New files.
16424
16425         intprops: add safe, portable integer overflow checking
16426         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16427         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16428         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16429         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16430         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16431         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16432         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16433         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16434         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16435         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16436         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16437
16438 2011-05-12  James Youngman  <jay@gnu.org>
16439
16440         Add a test for glibc's Bugzilla bug #12378.
16441         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16442         doesn't allow the literal matching of a lone "[" (which is
16443         required by POSIX).
16444         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16445
16446 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16447
16448         Sync glibc change fixing Bugzilla bug #12378.
16449         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16450         beginning and fall back to matching as normal character if the
16451         string ends before the matching ']' is found.  This is what POSIX
16452         requires.
16453
16454 2011-05-13  Eric Blake  <eblake@redhat.com>
16455
16456         getcwd-lgpl: relax test for FreeBSD
16457         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16458         issue.
16459         * tests/test-getcwd-lgpl.c (main): Relax test.
16460         Reported by Matthias Bolte.
16461
16462 2011-05-11  Eric Blake  <eblake@redhat.com>
16463
16464         test-fflush: silence compiler warning
16465         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16466
16467 2011-05-11  Bruno Haible  <bruno@clisp.org>
16468
16469         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16470         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16471         * modules/canonicalize (Depends-on): Add 'nocrash'.
16472         * modules/canonicalize-lgpl (Depends-on): Likewise.
16473         * doc/posix-functions/realpath.texi: Update platforms list.
16474         Reported by Ryan Schmidt <ryandesign@macports.org>.
16475
16476 2011-05-11  Bruno Haible  <bruno@clisp.org>
16477
16478         group-member: Declare function in <unistd.h>.
16479         * lib/unistd.in.h (group_member): New declaration.
16480         * lib/group-member.h: Remove file.
16481         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16482         * tests/test-unistd-c++.cc: Check signature of group_member.
16483         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16484         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16485         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16486         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16487         HAVE_GROUP_MEMBER.
16488         * modules/group-member (Files): Remove lib/group-member.h.
16489         (Depends-on): Add unistd. Specify conditions.
16490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16491         (Include): Change to <unistd.h>.
16492         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16493         HAVE_GROUP_MEMBER.
16494         * NEWS: Mention the change.
16495         * lib/euidaccess.c: Don't include group-member.h.
16496
16497 2011-05-11  Bruno Haible  <bruno@clisp.org>
16498
16499         group-member: Document module.
16500         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16501         module.
16502
16503 2011-05-11  Bruno Haible  <bruno@clisp.org>
16504
16505         fclose: Fix mistake earlier today.
16506         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16507
16508 2011-05-11  Eric Blake  <eblake@redhat.com>
16509
16510         fclose: preserve fflush errors
16511         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16512         Reported by Jim Meyering.
16513
16514         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16515         * build-aux/bootstrap (check_versions): When no specific version
16516         is required, merely check that the app produces an exit status
16517         that indicates its existence.
16518
16519         maint.mk: drop redundant check
16520         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16521         the same but better.
16522
16523 2011-05-11  Bruno Haible  <bruno@clisp.org>
16524
16525         fclose: Fix possible link error.
16526         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16527         unregister_shadow_fd. Improve comments.
16528         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16529         Eric Blake.
16530
16531 2011-05-11  Jim Meyering  <meyering@redhat.com>
16532
16533         maint.mk: improve "can not" detection and generalize rule name
16534         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16535         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16536         Use the same technique as in sc_prohibit_doubled_word, so that
16537         we recognize "can not" also when the words are separated by a newline.
16538         Suggested by Eric Blake.
16539         (perl_filename_lineno_text_): Define.  Factored out of...
16540         (prohibit_doubled_word_): ...here.  Use the new definition.
16541         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16542         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16543         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16544
16545 2011-05-10  Eric Blake  <eblake@redhat.com>
16546
16547         fclose: avoid double close race when possible
16548         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16549         all but WINDOWS_SOCKETS.
16550
16551 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16552
16553         openat: correct new comment
16554         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16555
16556 2011-05-10  Jim Meyering  <meyering@redhat.com>
16557
16558         openat: add comments
16559         * lib/openat-proc.c (openat_proc_name): Add comments,
16560         mostly from Eric Blake.
16561
16562 2011-05-09  Eric Blake  <eblake@redhat.com>
16563
16564         openat: reduce syscalls in first probe of /proc
16565         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16566         be a directory.  Simplify the probe for .. bugs.
16567         * modules/openat (Depends-on): Drop same-inode.
16568         Reported by Bastien ROUCARIES.
16569
16570 2011-05-09  Jim Meyering  <meyering@redhat.com>
16571
16572         maint.mk: change semantics/name of tight_scope variables
16573         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16574         Rename variables to align with semantics that make them more useful.
16575
16576         maint.mk: tweak new rule's name not to impinge
16577         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16578         (sc_tight_scope): Use new rule name rather than $@-0.
16579
16580         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16581         * top/maint.mk (sc_tight_scope): New rule.
16582         (sc_tight_scope-0): New rule, ifdef'd out.
16583         (_gl_TS_dir): Default.
16584         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16585         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16586
16587 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16588
16589         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16590         Haible <bruno@clisp.org>.
16591
16592 2011-05-08  Bruno Haible  <bruno@clisp.org>
16593
16594         Comments.
16595         * m4/isnanf.m4: Add comment.
16596         * m4/isnanl.m4: Likewise.
16597
16598 2011-05-08  Bruno Haible  <bruno@clisp.org>
16599
16600         glob: Remove obsolete macro.
16601         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16602
16603 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16604
16605         intprops: Sun C 5.11 supports __typeof__
16606         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16607         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16608         which is new.
16609         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16610
16611         intprops: switch to usual gnulib indenting and naming
16612         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16613         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16614
16615         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16616
16617 2011-05-08  Jim Meyering  <meyering@redhat.com>
16618
16619         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16620         * top/maint.mk (release-prep): Use make's --no-print-directory
16621         option when generating the announcement.  This eliminates the
16622         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16623         generated announcement template.
16624
16625 2011-05-08  Bruno Haible  <bruno@clisp.org>
16626
16627         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16628         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16629         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16630
16631 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16632
16633         ignore-value, verify: Omit include files from lib_SOURCES.
16634         * modules/ignore-value, modules/verify (Makefile.am):
16635         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16636         that leads Automake to duplicate use of am__objects_... variables
16637         in Makefile.in.  See
16638         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16639
16640 2011-05-07  Bruno Haible  <bruno@clisp.org>
16641
16642         fclose: Simplify autoconf macro.
16643         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16644         defined.
16645
16646 2011-05-07  Bruno Haible  <bruno@clisp.org>
16647
16648         canonicalize-lgpl: Fix autoconf macro ordering bug.
16649         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16650         gl_STDLIB_H_DEFAULTS.
16651
16652 2011-05-06  Eric Blake  <eblake@redhat.com>
16653
16654         maintainer-makefile: make sc_po_check easier to tune
16655         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16656         to probe for strings, such as an alternate location for gnulib.
16657
16658         fclose: guarantee behavior on seekable stdin
16659         * modules/fclose (Depends-on): Add fflush.
16660         * doc/posix-functions/fclose.texi (fclose): Document this.
16661         * tests/test-fclose.c (main): Make test for this unconditional.
16662
16663 2011-05-06  Bruno Haible  <bruno@clisp.org>
16664
16665         fflush, fpurge: Relicense under LGPLv2+.
16666         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16667         * modules/fpurge (License): Likewise.
16668         With permission from Eric Blake and Jim Meyering.
16669         Suggested by Eric Blake.
16670
16671 2011-05-06  Karl Berry  <karl@gnu.org>
16672
16673         * MODULES.html.sh (func_all_modules): remove exit.
16674
16675 2011-05-06  Jim Meyering  <meyering@redhat.com>
16676
16677         maint.mk: use info-gnu@ as the default only for a stable release
16678         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16679         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16680         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16681         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16682
16683 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16684
16685         assert-h: new module, which supports C1X-style static_assert
16686         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16687         * lib/verify.h: Revamp so that this can be copied into assert.h,
16688         while retaining the ability to use it standalone as before.
16689         Rename private identifiers so as not to encroach on the
16690         standard C namespace, since this is now used by assert.h.
16691         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16692         the old verify_true.
16693         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16694         the old verify_true.  Use _GL_VERIFY_TYPE.
16695         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16696         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16697         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16698         defined when this file is copied into the replacement assert.h.
16699         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16700         and _Static_assert is not built in.
16701         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16702         defined, and use the new macros mentioned above.
16703         * doc/posix-headers/assert.texi: Document this.
16704
16705 2011-05-05  Bruno Haible  <bruno@clisp.org>
16706
16707         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16708         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16709         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16710         gl_REPLACE_FCLOSE here.
16711         * modules/fflush (Depends-on): Remove fclose.
16712         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16713         combination with module 'fclose'.
16714
16715 2011-05-05  Bruno Haible  <bruno@clisp.org>
16716
16717         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16718         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16719         gl_FUNC_FFLUSH.
16720         (gl_FUNC_FFLUSH): Use it.
16721         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16722         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16723         gl_REPLACE_FSEEKO here.
16724
16725 2011-05-05  Bruno Haible  <bruno@clisp.org>
16726
16727         tzset: Relicense under LGPL.
16728         * modules/tzset (License): Change to LGPL.
16729         No agreement needed; it's a no-op.
16730
16731         strtoimax, strtoumax: Relicense under LGPL.
16732         * modules/strtoimax (License): Change to LGPL.
16733         * modules/strtoumax (License): Likewise.
16734         With permission from Jim Meyering, Paul Eggert:
16735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16737
16738         getgroups: Relicense under LGPL.
16739         * modules/getgroups (License): Change to LGPL.
16740         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16744
16745         nanosleep: Relicense under LGPL.
16746         * modules/nanosleep (License): Change to LGPL.
16747         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16748         Haible:
16749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16753
16754         futimens: Relicense under LGPL.
16755         * modules/futimens (License): Change to LGPL.
16756         With permission from Eric Blake:
16757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16758
16759         fflush: Relicense under LGPL.
16760         * modules/fflush (License): Change to LGPL.
16761         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16765
16766         tmpfile: Relicense under LGPL.
16767         * modules/tmpfile (License): Change to LGPL.
16768         With permission from Ben Pfaff:
16769         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16770
16771         isfinite: Relicense under LGPL.
16772         * modules/isfinite (License): Change to LGPL.
16773         With permission from Ben Pfaff, Bruno Haible:
16774         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16776
16777         acosl..tanl: Relicense under LGPL.
16778         * modules/acosl (License): Change to LGPL.
16779         * modules/asinl (License): Likewise.
16780         * modules/atanl (License): Likewise.
16781         * modules/cosl (License): Likewise.
16782         * modules/expl (License): Likewise.
16783         * modules/logl (License): Likewise.
16784         * modules/sinl (License): Likewise.
16785         * modules/sqrtl (License): Likewise.
16786         * modules/tanl (License): Likewise.
16787         Source code originally from glibc and Paolo Bonzini. Agreements:
16788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16790
16791 2011-05-05  Bruno Haible  <bruno@clisp.org>
16792
16793         signal: Define sighandler_t.
16794         * lib/signal.in.h (sighandler_t): New type.
16795         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16796         whether sighandler_t is defined.
16797         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16798         * modules/signal (Depends-on): Add extensions.
16799         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16800         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16801         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16802
16803 2011-05-05  Eric Blake  <eblake@redhat.com>
16804
16805         maint: remove useless REPLACE_*_H macros
16806         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16807         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16808         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16809         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16810         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16811         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16812         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16813         * m4/btowc.m4: Update callers.
16814         * m4/dirfd.m4: Likewise.
16815         * m4/duplocale.m4: Likewise.
16816         * m4/fchdir.m4: Likewise.
16817         * m4/fdopendir.m4: Likewise.
16818         * m4/inet_ntop.m4: Likewise.
16819         * m4/inet_pton.m4: Likewise.
16820         * m4/ioctl.m4: Likewise.
16821         * m4/mbrlen.m4: Likewise.
16822         * m4/mbrtowc.m4: Likewise.
16823         * m4/mbsinit.m4: Likewise.
16824         * m4/mbsnrtowcs.m4: Likewise.
16825         * m4/mbsrtowcs.m4: Likewise.
16826         * m4/poll.m4: Likewise.
16827         * m4/setlocale.m4: Likewise.
16828         * m4/wcrtomb.m4: Likewise.
16829         * m4/wcsnrtombs.m4: Likewise.
16830         * m4/wcsrtombs.m4: Likewise.
16831         * m4/wctob.m4: Likewise.
16832         * m4/wcwidth.m4: Likewise.
16833         * modules/posix_spawn: Likewise.
16834         * modules/posix_spawn_file_actions_addclose: Likewise.
16835         * modules/posix_spawn_file_actions_adddup2: Likewise.
16836         * modules/posix_spawn_file_actions_addopen: Likewise.
16837         * modules/posix_spawn_file_actions_destroy: Likewise.
16838         * modules/posix_spawn_file_actions_init: Likewise.
16839         * modules/posix_spawnattr_destroy: Likewise.
16840         * modules/posix_spawnattr_getflags: Likewise.
16841         * modules/posix_spawnattr_getpgroup: Likewise.
16842         * modules/posix_spawnattr_getschedparam: Likewise.
16843         * modules/posix_spawnattr_getschedpolicy: Likewise.
16844         * modules/posix_spawnattr_getsigdefault: Likewise.
16845         * modules/posix_spawnattr_getsigmask: Likewise.
16846         * modules/posix_spawnattr_init: Likewise.
16847         * modules/posix_spawnattr_setflags: Likewise.
16848         * modules/posix_spawnattr_setpgroup: Likewise.
16849         * modules/posix_spawnattr_setschedparam: Likewise.
16850         * modules/posix_spawnattr_setschedpolicy: Likewise.
16851         * modules/posix_spawnattr_setsigdefault: Likewise.
16852         * modules/posix_spawnattr_setsigmask: Likewise.
16853         * modules/posix_spawnp: Likewise.
16854
16855 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16856
16857         Add option to do-release-commit-and-tag to specify branch.
16858         * build-aux/do-release-commit-and-tag: Add --branch.
16859
16860 2011-05-03  Bruno Haible  <bruno@clisp.org>
16861
16862         Avoid unnecessary compilation units, through conditional dependencies.
16863         * modules/accept (Depends-on): Add conditions to the dependencies.
16864         * modules/acosl (Depends-on): Likewise.
16865         * modules/argz (Depends-on): Likewise.
16866         * modules/asinl (Depends-on): Likewise.
16867         * modules/atanl (Depends-on): Likewise.
16868         * modules/atoll (Depends-on): Likewise.
16869         * modules/bind (Depends-on): Likewise.
16870         * modules/btowc (Depends-on): Likewise.
16871         * modules/canonicalize-lgpl (Depends-on): Likewise.
16872         * modules/ceil (Depends-on): Likewise.
16873         * modules/ceilf (Depends-on): Likewise.
16874         * modules/ceill (Depends-on): Likewise.
16875         * modules/chdir-long (Depends-on): Likewise.
16876         * modules/chown (Depends-on): Likewise.
16877         * modules/close (Depends-on): Likewise.
16878         * modules/connect (Depends-on): Likewise.
16879         * modules/cosl (Depends-on): Likewise.
16880         * modules/dirfd (Depends-on): Likewise.
16881         * modules/dprintf (Depends-on): Likewise.
16882         * modules/dprintf-posix (Depends-on): Likewise.
16883         * modules/error (Depends-on): Likewise.
16884         * modules/euidaccess (Depends-on): Likewise.
16885         * modules/expl (Depends-on): Likewise.
16886         * modules/faccessat (Depends-on): Likewise.
16887         * modules/fchdir (Depends-on): Likewise.
16888         * modules/fclose (Depends-on): Likewise.
16889         * modules/fcntl (Depends-on): Likewise.
16890         * modules/fdopendir (Depends-on): Likewise.
16891         * modules/fflush (Depends-on): Likewise.
16892         * modules/floor (Depends-on): Likewise.
16893         * modules/floorf (Depends-on): Likewise.
16894         * modules/floorl (Depends-on): Likewise.
16895         * modules/fnmatch (Depends-on): Likewise.
16896         * modules/fopen (Depends-on): Likewise.
16897         * modules/fprintf-posix (Depends-on): Likewise.
16898         * modules/frexp (Depends-on): Likewise.
16899         * modules/frexp-nolibm (Depends-on): Likewise.
16900         * modules/frexpl (Depends-on): Likewise.
16901         * modules/frexpl-nolibm (Depends-on): Likewise.
16902         * modules/fseek (Depends-on): Likewise.
16903         * modules/fsusage (Depends-on): Likewise.
16904         * modules/ftell (Depends-on): Likewise.
16905         * modules/ftello (Depends-on): Likewise.
16906         * modules/futimens (Depends-on): Likewise.
16907         * modules/getcwd (Depends-on): Likewise.
16908         * modules/getcwd-lgpl (Depends-on): Likewise.
16909         * modules/getdelim (Depends-on): Likewise.
16910         * modules/getdomainname (Depends-on): Likewise.
16911         * modules/getgroups (Depends-on): Likewise.
16912         * modules/gethostname (Depends-on): Likewise.
16913         * modules/getline (Depends-on): Likewise.
16914         * modules/getlogin_r (Depends-on): Likewise.
16915         * modules/getopt-posix (Depends-on): Likewise.
16916         * modules/getpeername (Depends-on): Likewise.
16917         * modules/getsockname (Depends-on): Likewise.
16918         * modules/getsockopt (Depends-on): Likewise.
16919         * modules/getsubopt (Depends-on): Likewise.
16920         * modules/getusershell (Depends-on): Likewise.
16921         * modules/glob (Depends-on): Likewise.
16922         * modules/grantpt (Depends-on): Likewise.
16923         * modules/iconv_open (Depends-on): Likewise.
16924         * modules/iconv_open-utf (Depends-on): Likewise.
16925         * modules/inet_ntop (Depends-on): Likewise.
16926         * modules/inet_pton (Depends-on): Likewise.
16927         * modules/ioctl (Depends-on): Likewise.
16928         * modules/isapipe (Depends-on): Likewise.
16929         * modules/isfinite (Depends-on): Likewise.
16930         * modules/isinf (Depends-on): Likewise.
16931         * modules/lchown (Depends-on): Likewise.
16932         * modules/ldexpl (Depends-on): Likewise.
16933         * modules/link (Depends-on): Likewise.
16934         * modules/linkat (Depends-on): Likewise.
16935         * modules/listen (Depends-on): Likewise.
16936         * modules/logl (Depends-on): Likewise.
16937         * modules/lstat (Depends-on): Likewise.
16938         * modules/mbrlen (Depends-on): Likewise.
16939         * modules/mbrtowc (Depends-on): Likewise.
16940         * modules/mbsinit (Depends-on): Likewise.
16941         * modules/mbsnrtowcs (Depends-on): Likewise.
16942         * modules/mbsrtowcs (Depends-on): Likewise.
16943         * modules/mbtowc (Depends-on): Likewise.
16944         * modules/memcmp (Depends-on): Likewise.
16945         * modules/mkdir (Depends-on): Likewise.
16946         * modules/mkdtemp (Depends-on): Likewise.
16947         * modules/mkfifo (Depends-on): Likewise.
16948         * modules/mkfifoat (Depends-on): Likewise.
16949         * modules/mknod (Depends-on): Likewise.
16950         * modules/mkostemp (Depends-on): Likewise.
16951         * modules/mkostemps (Depends-on): Likewise.
16952         * modules/mkstemp (Depends-on): Likewise.
16953         * modules/mkstemps (Depends-on): Likewise.
16954         * modules/mktime (Depends-on): Likewise.
16955         * modules/nanosleep (Depends-on): Likewise.
16956         * modules/open (Depends-on): Likewise.
16957         * modules/openat (Depends-on): Likewise.
16958         * modules/perror (Depends-on): Likewise.
16959         * modules/poll (Depends-on): Likewise.
16960         * modules/popen (Depends-on): Likewise.
16961         * modules/posix_spawn (Depends-on): Likewise.
16962         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16963         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16964         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16965         * modules/posix_spawnp (Depends-on): Likewise.
16966         * modules/pread (Depends-on): Likewise.
16967         * modules/printf-posix (Depends-on): Likewise.
16968         * modules/ptsname (Depends-on): Likewise.
16969         * modules/putenv (Depends-on): Likewise.
16970         * modules/pwrite (Depends-on): Likewise.
16971         * modules/readline (Depends-on): Likewise.
16972         * modules/readlink (Depends-on): Likewise.
16973         * modules/readlinkat (Depends-on): Likewise.
16974         * modules/recv (Depends-on): Likewise.
16975         * modules/recvfrom (Depends-on): Likewise.
16976         * modules/regex (Depends-on): Likewise.
16977         * modules/remove (Depends-on): Likewise.
16978         * modules/rename (Depends-on): Likewise.
16979         * modules/renameat (Depends-on): Likewise.
16980         * modules/rmdir (Depends-on): Likewise.
16981         * modules/round (Depends-on): Likewise.
16982         * modules/roundf (Depends-on): Likewise.
16983         * modules/roundl (Depends-on): Likewise.
16984         * modules/rpmatch (Depends-on): Likewise.
16985         * modules/select (Depends-on): Likewise.
16986         * modules/send (Depends-on): Likewise.
16987         * modules/sendto (Depends-on): Likewise.
16988         * modules/setenv (Depends-on): Likewise.
16989         * modules/setlocale (Depends-on): Likewise.
16990         * modules/setsockopt (Depends-on): Likewise.
16991         * modules/shutdown (Depends-on): Likewise.
16992         * modules/sigaction (Depends-on): Likewise.
16993         * modules/signbit (Depends-on): Likewise.
16994         * modules/sigprocmask (Depends-on): Likewise.
16995         * modules/sinl (Depends-on): Likewise.
16996         * modules/sleep (Depends-on): Likewise.
16997         * modules/snprintf (Depends-on): Likewise.
16998         * modules/snprintf-posix (Depends-on): Likewise.
16999         * modules/socket (Depends-on): Likewise.
17000         * modules/sprintf-posix (Depends-on): Likewise.
17001         * modules/sqrtl (Depends-on): Likewise.
17002         * modules/stat (Depends-on): Likewise.
17003         * modules/strchrnul (Depends-on): Likewise.
17004         * modules/strdup-posix (Depends-on): Likewise.
17005         * modules/strerror (Depends-on): Likewise.
17006         * modules/strerror_r-posix (Depends-on): Likewise.
17007         * modules/strndup (Depends-on): Likewise.
17008         * modules/strnlen (Depends-on): Likewise.
17009         * modules/strptime (Depends-on): Likewise.
17010         * modules/strsep (Depends-on): Likewise.
17011         * modules/strsignal (Depends-on): Likewise.
17012         * modules/strstr-simple (Depends-on): Likewise.
17013         * modules/strtod (Depends-on): Likewise.
17014         * modules/strtoimax (Depends-on): Likewise.
17015         * modules/strtok_r (Depends-on): Likewise.
17016         * modules/strtoumax (Depends-on): Likewise.
17017         * modules/symlink (Depends-on): Likewise.
17018         * modules/symlinkat (Depends-on): Likewise.
17019         * modules/tanl (Depends-on): Likewise.
17020         * modules/tcgetsid (Depends-on): Likewise.
17021         * modules/tmpfile (Depends-on): Likewise.
17022         * modules/trunc (Depends-on): Likewise.
17023         * modules/truncf (Depends-on): Likewise.
17024         * modules/truncl (Depends-on): Likewise.
17025         * modules/uname (Depends-on): Likewise.
17026         * modules/unlink (Depends-on): Likewise.
17027         * modules/unlockpt (Depends-on): Likewise.
17028         * modules/unsetenv (Depends-on): Likewise.
17029         * modules/usleep (Depends-on): Likewise.
17030         * modules/utimensat (Depends-on): Likewise.
17031         * modules/vasprintf (Depends-on): Likewise.
17032         * modules/vdprintf (Depends-on): Likewise.
17033         * modules/vdprintf-posix (Depends-on): Likewise.
17034         * modules/vfprintf-posix (Depends-on): Likewise.
17035         * modules/vprintf-posix (Depends-on): Likewise.
17036         * modules/vsnprintf (Depends-on): Likewise.
17037         * modules/vsnprintf-posix (Depends-on): Likewise.
17038         * modules/vsprintf-posix (Depends-on): Likewise.
17039         * modules/wcrtomb (Depends-on): Likewise.
17040         * modules/wcscasecmp (Depends-on): Likewise.
17041         * modules/wcscspn (Depends-on): Likewise.
17042         * modules/wcsdup (Depends-on): Likewise.
17043         * modules/wcsncasecmp (Depends-on): Likewise.
17044         * modules/wcsnrtombs (Depends-on): Likewise.
17045         * modules/wcspbrk (Depends-on): Likewise.
17046         * modules/wcsrtombs (Depends-on): Likewise.
17047         * modules/wcsspn (Depends-on): Likewise.
17048         * modules/wcsstr (Depends-on): Likewise.
17049         * modules/wcstok (Depends-on): Likewise.
17050         * modules/wcswidth (Depends-on): Likewise.
17051         * modules/wctob (Depends-on): Likewise.
17052         * modules/wctomb (Depends-on): Likewise.
17053         * modules/wctype (Depends-on): Likewise.
17054         * modules/wcwidth (Depends-on): Likewise.
17055         * modules/write (Depends-on): Likewise.
17056
17057 2011-05-03  Bruno Haible  <bruno@clisp.org>
17058
17059         Support for conditional dependencies.
17060         * doc/gnulib.texi (Module description): Document the syntax of
17061         conditional dependencies.
17062         * gnulib-tool: New option --conditional-dependencies.
17063         (func_usage): Document it.
17064         (cond_dependencies): New variable.
17065         (func_get_automake_snippet_conditional,
17066         func_get_automake_snippet_unconditional): New functions, extracted from
17067         func_get_automake_snippet.
17068         (func_get_automake_snippet): Use them.
17069         (sed_first_32_chars): New variable.
17070         (func_module_shellfunc_name): New function.
17071         (func_module_shellvar_name): New function.
17072         (func_module_conditional_name): New function.
17073         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17074         func_cond_module_condition): New functions.
17075         (func_modules_transitive_closure): Add support for conditional
17076         dependencies.
17077         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17078         conditional automake snippet in an automake conditional.
17079         (func_emit_autoconf_snippets): Emit shell functions that contain the
17080         code for conditional modules.
17081         (func_import, func_create_testdir): Update specification.
17082
17083 2011-05-03  Eric Blake  <eblake@redhat.com>
17084
17085         test-getaddrinfo: report error information
17086         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17087
17088 2011-05-03  Jim Meyering  <meyering@redhat.com>
17089
17090         bootstrap: avoid build failure when $GZIP is set
17091         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17092         program name.  If defined at all, it is supposed to list gzip options.
17093         Reported by Alan Curry in http://debbugs.gnu.org/8609
17094
17095 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17096
17097         readme-release: new module with release instructions
17098         * modules/readme-release: New module.
17099         * top/README-release: New file, from coreutils, grep, diffutils.
17100         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17101
17102 2011-05-02  Eric Blake  <eblake@redhat.com>
17103
17104         fflush: also replace fclose when fixing fflush
17105         * modules/fflush (Depends-on): Add fclose.
17106         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17107         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17108         memstreams with no backing fd.
17109         * doc/posix-functions/fclose.texi (fclose): Document the use of
17110         fflush module to fix the bug.
17111         * tests/test-fclose.c (main): Relax test when fclose is used in
17112         isolation.
17113
17114         fclose: add some tests
17115         * modules/fclose-tests: New test module.
17116         * tests/test-fclose.c: New file.
17117         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17118
17119         fclose: reduced dependencies
17120         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17121         simpler lseek.
17122         * lib/fclose.c (rpl_fclose): Likewise.
17123         Reported by Simon Josefsson.
17124
17125         exit: drop remaining clients
17126         * modules/argmatch (Depends-on): Replace exit with stdlib.
17127         * modules/copy-file (Depends-on): Likewise.
17128         * modules/execute (Depends-on): Likewise.
17129         * modules/exitfail (Depends-on): Likewise.
17130         * modules/obstack (Depends-on): Likewise.
17131         * modules/pagealign_alloc (Depends-on): Likewise.
17132         * modules/pipe-filter-gi (Depends-on): Likewise.
17133         * modules/pipe-filter-ii (Depends-on): Likewise.
17134         * modules/savewd (Depends-on): Likewise.
17135         * modules/spawn-pipe (Depends-on): Likewise.
17136         * modules/wait-process (Depends-on): Likewise.
17137         * modules/xsetenv (Depends-on): Likewise.
17138         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17139         * modules/git-merge-changelog (Depends-on): Likewise.
17140         * modules/long-options (Depends-on): Likewise.
17141         * modules/pt_chown (Depends-on): Likewise.
17142         * modules/sysexits (Depends-on): Likewise.
17143
17144         freading: relax license from LGPLv3+ to LGPLv2+
17145         * modules/freading (License): Relax LGPL version.
17146
17147 2011-05-02  Bruno Haible  <bruno@clisp.org>
17148
17149         fchdir: Remove unused dependencies.
17150         * modules/fchdir (Depends-on): Remove include_next.
17151
17152 2011-05-02  Bruno Haible  <bruno@clisp.org>
17153
17154         gnulib-tool: Refactor.
17155         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17156         from func_emit_autoconf_snippets.
17157         (func_emit_autoconf_snippets): Use it.
17158
17159 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17160
17161         * NEWS: Document removal of 'exit'.
17162         * modules/exit: Remove file.
17163
17164 2011-05-01  Bruno Haible  <bruno@clisp.org>
17165
17166         Update DEPENDENCIES.
17167         * DEPENDENCIES (gettext): Recommend the newest release.
17168         Reported by Simon Josefsson.
17169
17170 2011-05-01  Bruno Haible  <bruno@clisp.org>
17171
17172         gnulib-tool: Reduce code duplication.
17173         * gnulib-tool (func_emit_autoconf_snippets): New function.
17174         (func_import, func_create_testdir): Use it.
17175
17176 2011-04-30  Eric Blake  <eblake@redhat.com>
17177
17178         fclose: don't fail on non-seekable input stream
17179         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17180         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17181         since fflush is allowed to fail in that case.
17182
17183 2011-04-30  Bruno Haible  <bruno@clisp.org>
17184
17185         dup3: cleanup
17186         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17187
17188 2011-04-30  Bruno Haible  <bruno@clisp.org>
17189
17190         netdb: Make it work in C++ mode.
17191         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17192         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17193         module.
17194         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17195         gl_MODULE_INDICATOR_FOR_TESTS.
17196         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17197         * modules/netdb-c++-tests: New file.
17198         * tests/test-netdb-c++.cc: New file.
17199
17200 2011-04-30  Bruno Haible  <bruno@clisp.org>
17201
17202         New modules 'vfscanf', 'vscanf'.
17203         * modules/vfscanf: New file.
17204         * modules/vscanf: New file.
17205         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17206         here.
17207         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17208         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17209
17210 2011-04-30  Bruno Haible  <bruno@clisp.org>
17211
17212         passfd: Add comments.
17213         * lib/passfd.c: Add comments about platforms.
17214
17215 2011-04-30  Bruno Haible  <bruno@clisp.org>
17216
17217         sys_uio: Make <sys/uio.h> self-contained.
17218         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17219         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17220
17221 2011-04-30  Bruno Haible  <bruno@clisp.org>
17222
17223         sys_socket: Ensure 'struct iovec' definition.
17224         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17225         <sys/socket.h>.
17226         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17227
17228 2011-04-30  Bruno Haible  <bruno@clisp.org>
17229
17230         sys_uio: Protect definition of 'struct iovec'.
17231         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17232         it as a C struct.
17233
17234 2011-04-30  Bruno Haible  <bruno@clisp.org>
17235
17236         manywarnings: fix indentation
17237         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17238
17239 2011-04-30  Pádraig Brady <P@draigBrady.com>
17240
17241         manywarnings: add -Wno-missing-field-initializers if needed.
17242         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17243         option if it's needed to allow initialization with { 0, }
17244
17245 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17246
17247         announce-gen: cosmetic improvement
17248         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17249
17250 2011-04-29  Jim Meyering  <meyering@redhat.com>
17251
17252         vc-list-files: indent with spaces, not TABs
17253         * build-aux/vc-list-files: Convert leading TABs to spaces,
17254         to match the style of most other files in gnulib.
17255
17256         announce-gen: indent with spaces, not TABs
17257         * build-aux/announce-gen: Convert all TABs to spaces, to match
17258         the style of most other files in gnulib.
17259
17260 2011-04-29  Eric Blake  <eblake@redhat.com>
17261
17262         quotearg: avoid uninitialized variable use
17263         * lib/quotearg.c (quoting_options_from_style): Initialize
17264         remaining fields, and ensure that custom styles are only used via
17265         quoting_options rather than quoting_style.
17266
17267 2011-04-29  Jim Meyering  <meyering@redhat.com>
17268
17269         maint.mk: remove unused VC-tag variable
17270         * top/maint.mk (VC-tag): Remove unused variable.
17271
17272 2011-04-29  Bruno Haible  <bruno@clisp.org>
17273
17274         netdb: fix gai_strerror replacements
17275         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17276         * modules/netdb: Substitute it.
17277
17278 2011-04-29  Jim Meyering  <meyering@redhat.com>
17279
17280         test-getcwd.c: avoid new set-but-not-used warning
17281         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17282         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17283         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17284         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17285
17286         test-hash.c: avoid a new shadowing warning
17287         * tests/test-hash.c (main): Don't shadow "dup".
17288
17289 2011-04-28  Eric Blake  <eblake@redhat.com>
17290
17291         getaddrinfo: fix gai_strerror signature
17292         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17293         and work around mingw with UNICODE defined.
17294         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17295         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17296         * modules/netdb (Makefile.am): Substitute it.
17297         * lib/netdb.in.h (gai_strerror): Declare replacement.
17298         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17299         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17300         the fix.
17301
17302         getsockopt: avoid compiler warning
17303         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17304         Reported by Matthias Bolte.
17305
17306         tests: drop unused link dependency
17307         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17308         * modules/dirent-safer-tests (Makefile.am): Likewise.
17309         * modules/fdopendir-tests (Makefile.am): Likewise.
17310         * modules/mkfifoat-tests (Makefile.am): Likewise.
17311         * modules/openat-safer-tests (Makefile.am): Likewise.
17312         * modules/openat-tests (Makefile.am): Likewise.
17313         * modules/readlinkat-tests (Makefile.am): Likewise.
17314         * modules/symlinkat-tests (Makefile.am): Likewise.
17315         * modules/linkat-tests (Makefile.am): Likewise.
17316         (Depends-on): Switch to filenamecat-lgpl.
17317         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17318         LIBINTL.
17319         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17320         * tests/test-linkat.c (main): Don't require xalloc.
17321
17322         hash, mgetgroups: drop xalloc dependency
17323         * lib/hash.c (includes): Adjust includes.
17324         * lib/mgetgroups.c (includes): Likewise.
17325         (xgetgroups): Move...
17326         * lib/xgetgroups.c: ...to new file.
17327         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17328         * modules/xgetgroups: New file, split from...
17329         * modules/mgetgroups: ...here.
17330         (Depends-on): Add xalloc-oversized.
17331         * modules/hash (Depends-on): Likewise.
17332         * modules/hash-tests (Depends-on): Drop xalloc.
17333         (test_hash_LDADD): Drop unused library.
17334         * tests/test-hash.c (main): Break xalloc dependency.
17335         (includes): Drop unused include.
17336
17337         xalloc-oversized: new module
17338         * modules/xalloc-oversized: New module.
17339         * modules/xalloc (Depends-on): Add it.
17340         * lib/xalloc.h (xalloc_oversized): Move...
17341         * lib/xalloc-oversized.h: ...into new file.
17342
17343         utimecmp: drop dependency on xmalloc
17344         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17345         due to memory pressure.
17346         * modules/utimecmp (Depends-on): Drop xalloc.
17347
17348 2011-04-27  Eric Blake  <eblake@redhat.com>
17349
17350         getcwd: fix mingw bugs
17351         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17352         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17353         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17354
17355 2011-04-27  Bruno Haible  <bruno@clisp.org>
17356
17357         mkstemps: Ensure declaration on MacOS X 10.5.
17358         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17359         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17360         MacOS X.
17361
17362 2011-04-27  Bruno Haible  <bruno@clisp.org>
17363
17364         mkstemp: More documentation.
17365         * doc/posix-functions/mkstemp.texi: Document header file problem on
17366         MacOS X.
17367
17368 2011-04-27  Bruno Haible  <bruno@clisp.org>
17369
17370         mkstemp: Tweak configure message when cross-compiling.
17371         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17372         result as a guess.
17373
17374 2011-04-27  Bruno Haible  <bruno@clisp.org>
17375
17376         clean-temp: Clarify what it does.
17377         * lib/clean-temp.h: Add more comments.
17378         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17379         module.
17380         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17381         * doc/glibc-functions/mkstemps.texi: Likewise.
17382         * doc/glibc-functions/mkostemps.texi: Likewise.
17383
17384 2011-04-27  Eric Blake  <eblake@redhat.com>
17385
17386         fchdir: avoid extra chdir and fix test
17387         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17388         getcwd-lgpl.
17389         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17390         have to be canonical.
17391         (canonicalize_file_name): Drop unused macro.
17392         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17393
17394         filenamecat-lgpl: fix licence
17395         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17396         when it was first created.
17397
17398         linkat, renameat: add missing dependency
17399         * modules/linkat (Depends-on): Require getcwd-lgpl.
17400         * modules/renameat (Depends-on): Likewise.
17401
17402         tests: reduce dependencies
17403         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17404         * tests/test-renameat.c (main): Likewise.
17405         * modules/linkat-tests (Depends-on): Relax dependency.
17406         * modules/renameat-tests (Depends-on): Likewise.
17407         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17408         dependency explicit.
17409
17410         save-cwd: reduce default dependency
17411         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17412         * lib/save-cwd.c: Update comments.
17413         * NEWS: Document the semantic change.
17414
17415         getcwd: enhance tests
17416         * tests/test-getcwd-lgpl.c: New file, taken from...
17417         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17418         repeat long path stress tests from m4 probe.
17419         * modules/getcwd-lgpl-tests: New module.
17420         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17421         * m4/getcwd-abort-bug.m4: Update comment.
17422         * m4/getcwd-path-max.m4: Likewise.
17423
17424         getcwd-lgpl: new module
17425         * modules/getcwd-lgpl: New module.
17426         * lib/getcwd-lgpl.c: New file.
17427         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17428         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17429         * modules/getcwd (configure.ac): Set C witness.
17430         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17431
17432         getcwd: tweak comments
17433         * m4/getcwd-abort-bug.m4: Fix comments.
17434         * m4/getcwd-path-max.m4: Likewise.
17435         * m4/getcwd.m4: Likewise.
17436
17437 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17438         and Eric Blake  <eblake@redhat.com>
17439
17440         mkstemp: replace if system version uses wrong permissions
17441         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17442         read/write mode bits set in file created by mkstemp.
17443         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17444
17445 2011-04-27  Eric Blake  <eblake@redhat.com>
17446
17447         passfd: avoid compiler warning
17448         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17449         Reported by Laine Stump.
17450
17451 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17452
17453         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17454         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17455
17456 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17457         and Eric Blake  <eblake@redhat.com>
17458
17459         mkstemp: mention clean-temp module
17460         * lib/mkstemp.c: Add comment.
17461         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17462
17463 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17464
17465         inttypes: also provide default values for 32-bit tests
17466         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17467         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17468
17469 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17470
17471         strtoumax: remove dependency on strtoimax
17472         This is like the strtoull change of yesterday.
17473         * modules/strtoumax (Files): Add lib/strtoimax.c.
17474         (Depends-on): Remove strtoimax and add verify.
17475
17476         inttypes-incomplete: new module
17477         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17478         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17479         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17480         of gl_INTTYPES_H.
17481         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17482         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17483         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17484         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17485         * modules/strtoumax, modules/xstrtol (Depends-on):
17486         Depend on inttypes-incomplete, not inttypes.
17487         * modules/inttypes-incomplete: New module, containing the contents
17488         of the old modules/inttypes module, except that the Files: section
17489         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17490         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17491         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17492         (Depends-on): Depend only on inttypes-incomplete.
17493         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17494
17495         inttypes: omit now-redundant strtoimax and strtoumax work
17496         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17497         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17498
17499         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17500         This supports apps that need pointers to strtoimax and strtoumax,
17501         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17502         nonexistent functions.  See
17503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17504         et seq.
17505         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17506         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17507         a macro.
17508         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17509
17510 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17511
17512         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17513
17514 2011-04-25  Bruno Haible  <bruno@clisp.org>
17515
17516         strtol, strtoul: Mark modules as obsolete.
17517         * modules/strtol (Status, Notice): New sections.
17518         * modules/strtoul (Status, Notice): New sections.
17519
17520 2011-04-25  Bruno Haible  <bruno@clisp.org>
17521
17522         strtod: Remove check for strtod, unless supporting old platforms.
17523         * modules/strtod-obsolete: New file.
17524         * m4/strtod-obsolete.m4: New file.
17525         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17526         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17527         * modules/strtod (Depends-on): Add strtod-obsolete.
17528         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17529
17530 2011-04-25  Bruno Haible  <bruno@clisp.org>
17531
17532         strcase: Make module obsolete.
17533         * modules/strcase (Status, Notice): New sections.
17534
17535 2011-04-25  Bruno Haible  <bruno@clisp.org>
17536
17537         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17538         * modules/dup2-obsolete: New file.
17539         * m4/dup2-obsolete.m4: New file.
17540         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17541         gl_FUNC_DUP2_OBSOLETE is not also defined.
17542         * modules/dup2 (Depends-on): Add dup2-obsolete.
17543         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17544
17545 2011-04-25  Bruno Haible  <bruno@clisp.org>
17546
17547         strnlen: Avoid memchr related link error on old obsolete platforms.
17548         * modules/memchr-obsolete: New file.
17549         * m4/memchr-obsolete.m4: New file.
17550         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17551         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17552         * modules/memchr (Depends-on): Add memchr-obsolete.
17553         * modules/strnlen (Depends-on): Likewise.
17554         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17555
17556 2011-04-25  Jim Meyering  <meyering@redhat.com>
17557
17558         maint.mk: makefile_at_at_check extend and clean up
17559         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17560         in addition to */Makefile.am.
17561         Exempt legitimate uses of @VAR@ notation, e.g.,
17562         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17563         Remove obsolete coreutils-specific comment.
17564         Prompted by discussion here:
17565         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17566
17567 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17568
17569         strtoul: remove dependency on strtol
17570         This is so that 'configure' need not check for strtol merely because
17571         the application needs strtoul.
17572         * modules/strtoul (Files): Add lib/strtol.c.
17573         (Depends-on): Remove strtol.
17574
17575         strtoull: remove dependency on strtoul
17576         This is like the strtoll change.
17577         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17578         (Depends-on): Remove strtoul.
17579
17580         strtoll: remove dependency on strtol
17581         This is so that 'configure' need not check for strtol merely because
17582         the application needs strtoll.
17583         * modules/strtoll (Files): Add lib/strtol.c.
17584         (Depends-on): Remove strtol.
17585
17586 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17587
17588         inttypes: Move some configure check to module 'imaxdiv'.
17589         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17590         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17591         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17592
17593 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17594
17595         inttypes: Move some configure check to module 'imaxabs'.
17596         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17597         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17598         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17599
17600 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17601
17602         inttypes: Remove configure tests that are not needed since 2009-12-31.
17603         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17604         gl_cv_header_working_inttypes_h.
17605
17606 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17607
17608         * modules/strnlen (Depends-on): Remove memchr.
17609         The strnlen implementation doesn't need the memchr module's fixes; see
17610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17611
17612         strtol: remove dependency on wchar
17613         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17614         * modules/strtol (Depends-on): Remove wchar.
17615
17616 2011-04-21  Eric Blake  <eblake@redhat.com>
17617
17618         passfd: fix test regression on Linux
17619         * modules/passfd-tests (configure.ac): Correct socketpair check.
17620
17621         passfd: speed up configure and drop unused code
17622         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17623         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17624         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17625         Instead of probing at configure for unix_scm_rights_bsd44_way,
17626         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17627         check to a struct member probe.
17628         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17629         (sendfd, recvfd): Update preprocessor checks.
17630         * modules/passfd (Files): Reflect rename, and drop unused file.
17631         (Depends-on): Drop unused dependency.
17632
17633         passfd: allow compilation on mingw
17634         * modules/sys_socket (Depends-on): Add sys_uio.
17635         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17636         iovec and a minimal struct msghdr.
17637         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17638         * tests/test-sys_socket.c (main): Enhance test.
17639         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17640         guaranteed to provide what we need.
17641         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17642         * modules/passfd-tests (Depends-on): Add sys_wait.
17643         * tests/test-passfd.c (main): Skip test on mingw, for now.
17644         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17645         partial 'struct msghdr' implementation.
17646
17647         sys_uio: new module
17648         * modules/sys_uio: New module.
17649         * modules/sys_uio-tests: Likewise.
17650         * lib/sys_uio.in.h: New file.
17651         * m4/sys_uio_h.m4: Likewise.
17652         * tests/test-sys_uio.c: Likewise.
17653         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17654         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17655
17656 2011-04-20  Jim Meyering  <meyering@redhat.com>
17657
17658         useless-if-before-free: avoid false-positive
17659         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17660         disjunct so that it too requires a terminating ";".  Without that,
17661         this script would identify as useless one statement from gcc that
17662         was not:
17663           if (aligned_ptr)
17664             free (((void **) aligned_ptr) [-1]);
17665
17666 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17667
17668         doc: update users.txt.
17669         * users.txt: Add barcode.
17670
17671 2011-04-19  Bruno Haible  <bruno@clisp.org>
17672
17673         ioctl: Remove link dependency on native Windows.
17674         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17675         (gl_close_fn, gl_ioctl_fn): New types.
17676         (struct fd_hook): Renamed from struct close_hook. Change type of
17677         private_close_fn field. Add private_ioctl_fn field.
17678         (close_hook_fn): Add parameter for primary close method.
17679         (execute_close_hooks, execute_all_close_hooks): Likewise.
17680         (ioctl_hook_fn): New type.
17681         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17682         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17683         argument.
17684         (unregister_fd_hook): Renamed from unregister_close_hook.
17685         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17686         Don't include <unistd.h>.
17687         (close): Remove undef.
17688         (anchor): Update.
17689         (execute_close_hooks): Add argument for primary close method.
17690         (execute_all_close_hooks): Likewise.
17691         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17692         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17693         argument. Allow each argument to be NULL.
17694         (unregister_fd_hook): Renamed from unregister_close_hook.
17695         * lib/close.c (rpl_close): Pass 'close' function pointer to
17696         execute_all_close_hooks.
17697         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17698         (primary_ioctl): New function.
17699         (ioctl): Don't call ioctlsocket here. Instead, call
17700         execute_all_ioctl_hooks.
17701         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17702         close method.
17703         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17704         (fd_sockets_hook): Renamed from close_sockets_hook.
17705         (gl_sockets_startup, gl_sockets_cleanup): Update.
17706         * modules/fd-hook: Renamed from modules/close-hook. Update.
17707         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17708         * modules/sockets (Depends-on): Likewise.
17709         * modules/ioctl (Depends-on): Add fd-hook.
17710         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17711         GNULIB_SOCKET.
17712
17713 2011-04-19  Bruno Haible  <bruno@clisp.org>
17714
17715         Move the support of O_NONBLOCK in open() to the 'open' module.
17716         * modules/nonblocking (Depends-on): Remove 'open'.
17717         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17718         gl_cv_have_open_O_NONBLOCK.
17719         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17720         O_NONBLOCK support.
17721         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17722
17723 2011-04-17  Bruno Haible  <bruno@clisp.org>
17724
17725         pipe2: Simplify code.
17726         * lib/pipe2.c (pipe2): Reduce code duplication.
17727
17728 2011-04-17  Bruno Haible  <bruno@clisp.org>
17729
17730         nonblocking: Add comment.
17731         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17732
17733 2011-04-17  Bruno Haible  <bruno@clisp.org>
17734
17735         nonblocking: Add tests for sockets.
17736         * tests/test-nonblocking-socket.sh: New file.
17737         * tests/test-nonblocking-socket-main.c: New file.
17738         * tests/test-nonblocking-socket-child.c: New file.
17739         * tests/test-nonblocking-socket.h: New file.
17740         * tests/socket-server.h: New file.
17741         * tests/socket-client.h: New file.
17742         * modules/nonblocking-socket-tests: New file.
17743         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17744
17745 2011-04-17  Bruno Haible  <bruno@clisp.org>
17746
17747         nonblocking: Add tests for pipes.
17748         * tests/test-nonblocking-pipe.sh: New file.
17749         * tests/test-nonblocking-pipe-main.c: New file.
17750         * tests/test-nonblocking-pipe-child.c: New file.
17751         * tests/test-nonblocking-pipe.h: New file.
17752         * tests/test-nonblocking-writer.h: New file.
17753         * tests/test-nonblocking-reader.h: New file.
17754         * tests/test-nonblocking-misc.h: New file.
17755         * modules/nonblocking-pipe-tests: New file.
17756         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17757
17758 2011-04-16  Bruno Haible  <bruno@clisp.org>
17759
17760         gettext: Clarify the needed programmer actions.
17761         * modules/gettext (Notice): New field.
17762         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17763
17764 2011-04-16  Bruno Haible  <bruno@clisp.org>
17765
17766         strchrnul: Tweak last commit.
17767         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17768         bug.
17769         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17770         as in _GL_FUNCDECL_SYS.
17771         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17772         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17773
17774 2011-04-15  Eric Blake  <eblake@redhat.com>
17775
17776         strchrnul: work around cygwin bug
17777         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17778         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17780         * modules/string (Makefile.am): Substitute it.
17781         * lib/string.in.h (strchrnul): Use it.
17782
17783 2011-04-15  Bruno Haible  <bruno@clisp.org>
17784
17785         Don't require lib/stdio-write.c when only module 'stdio' is used.
17786         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17787         invocation.
17788         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17789
17790 2011-04-14  Bruno Haible  <bruno@clisp.org>
17791
17792         Support non-blocking pipe I/O in read() on native Windows.
17793         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17794         (read): New declaration.
17795         * lib/read.c: New file.
17796         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17797         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17798         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17799         vscanf): New declarations.
17800         * lib/stdio-read.c: New file.
17801         * m4/read.m4: New file.
17802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17803         REPLACE_READ.
17804         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17805         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17806         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17807         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17808         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17809         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17810         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17811         * modules/read: New file.
17812         * modules/nonblocking (Files): Add lib/stdio-read.c.
17813         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17814         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17815         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17816         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17817         * modules/pread (Depends-on): Add read.
17818         * modules/safe-read (Depends-on): Likewise.
17819         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17820         gets, scanf, vfscanf, vscanf): Verify signatures.
17821         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17822         problem with non-blocking pipes.
17823         * doc/posix-functions/fgetc.texi: Likewise.
17824         * doc/posix-functions/fgets.texi: Likewise.
17825         * doc/posix-functions/fread.texi: Likewise.
17826         * doc/posix-functions/fscanf.texi: Likewise.
17827         * doc/posix-functions/getc.texi: Likewise.
17828         * doc/posix-functions/getchar.texi: Likewise.
17829         * doc/posix-functions/gets.texi: Likewise.
17830         * doc/posix-functions/scanf.texi: Likewise.
17831         * doc/posix-functions/vfscanf.texi: Likewise.
17832         * doc/posix-functions/vscanf.texi: Likewise.
17833
17834 2011-04-14  Bruno Haible  <bruno@clisp.org>
17835
17836         Support non-blocking pipe I/O in write() on native Windows.
17837         * lib/write.c (rpl_write): Split a write request that failed merely
17838         because the byte count was larger than the pipe buffer's size.
17839         * doc/posix-functions/write.texi: Mention the problem with large byte
17840         counts.
17841
17842 2011-04-14  Bruno Haible  <bruno@clisp.org>
17843
17844         wchar: Ensure that wchar_t gets defined on uClibc.
17845         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17846         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17847
17848 2011-04-13  Bruno Haible  <bruno@clisp.org>
17849
17850         safe-write, full-read: Avoid unnecessary compilation units.
17851         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17852         (Depends-on): Remove safe-read. Add ssize_t.
17853         * modules/full-read (Files): Add lib/full-write.c.
17854         (Depends-on): Add full-write.
17855
17856 2011-04-13  Bruno Haible  <bruno@clisp.org>
17857
17858         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17859         * modules/pwrite (Depends-on): Add 'write'.
17860
17861 2011-04-13  Bruno Haible  <bruno@clisp.org>
17862
17863         Support non-blocking pipe I/O in write() on native Windows.
17864         * lib/unistd.in.h (write): Enable replacement also if
17865         GNULIB_UNISTD_H_NONBLOCKING is 1.
17866         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17867         (rpl_write): When failing to write on a non-blocking pipe, change
17868         errno from ENOSPC to EAGAIN.
17869         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17870         putchar, puts, vfprintf, vprintf): Enable replacement also if
17871         GNULIB_STDIO_H_NONBLOCKING is 1.
17872         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17873         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17874         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17875         CALL_WITH_SIGPIPE_EMULATION.
17876         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17877         * m4/nonblocking.m4: New file.
17878         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17879         for non-blocking I/O support.
17880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17881         GNULIB_UNISTD_H_NONBLOCKING.
17882         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17883         required for non-blocking I/O support.
17884         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17885         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17886         lib/stdio-write.c, m4/asm-underscore.m4.
17887         (Depends-on): Add stdio, unistd.
17888         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17889         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17890         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17891         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17892         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17893         problem with non-blocking pipes.
17894         * doc/posix-functions/fputc.texi: Likewise.
17895         * doc/posix-functions/fputs.texi: Likewise.
17896         * doc/posix-functions/fwrite.texi: Likewise.
17897         * doc/posix-functions/printf.texi: Likewise.
17898         * doc/posix-functions/putc.texi: Likewise.
17899         * doc/posix-functions/putchar.texi: Likewise.
17900         * doc/posix-functions/puts.texi: Likewise.
17901         * doc/posix-functions/vfprintf.texi: Likewise.
17902         * doc/posix-functions/vprintf.texi: Likewise.
17903         * doc/posix-functions/write.texi: Likewise.
17904
17905 2011-04-10  Jim Meyering  <meyering@redhat.com>
17906
17907         maint.mk: prohibit doubled words
17908         Detect them also when they're separated by a newline.
17909         There are 3 ways to customize it:
17910           - disable the test on a per file basis, as usual with rules using
17911             $(VC_LIST_EXCEPT)
17912           - replace the default doubled-word-selecting regexp (affects all files)
17913           - ignore a particular file-vs-doubled-word match
17914         I nearly used that last one to ignore the "is is" match in
17915         coreutils' NEWS file, since the text was "ls -is is ..."
17916         To do that, I would have added this line to cfg.mk:
17917           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17918         but it would have ignored any "is is" match in NEWS.
17919         Low probability, but still...
17920         Instead, I changed the text, slightly:
17921           -  ls -is is now consistent with ls -lis in ignoring values returned
17922           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17923         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17924         (prohibit_doubled_word_): Define.
17925         (sc_prohibit_doubled_word): New rule.
17926         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17927
17928 2011-04-10  Jim Meyering  <meyering@redhat.com>
17929
17930         maint: fix doubled-word typo in comment
17931         * m4/gethostname.m4: s/is is/it is/
17932         * m4/getdomainname.m4: Likewise.
17933
17934 2011-04-10  Jim Meyering  <meyering@redhat.com>
17935
17936         maint: remove doubled word: s/it it/it/
17937         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17938
17939 2011-04-10  Jim Meyering  <meyering@redhat.com>
17940
17941         maint.mk: remove useless semicolon and backslash
17942         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17943         semicolon and backslash.
17944
17945 2011-04-10  Bruno Haible  <bruno@clisp.org>
17946
17947         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17948         * modules/stdint-tests (Depends-on): Add wchar.
17949
17950 2011-04-10  Jim Meyering  <meyering@redhat.com>
17951
17952         maint: remove doubled words in comments, e.g., s/a a/a/
17953         * lib/strptime.c (day_of_the_week): s/the the/the/
17954         * tests/test-chown.h (test_chown): s/a a/a/
17955
17956         test-chown.h: correct a cast
17957         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17958         when the destination is a stat.st_gid.
17959
17960 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17961
17962         getaddrinfo: Fix test for sa_len member.
17963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17964         include <sys/types.h> before <sys/socket.h>.
17965
17966 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17967
17968         maint: change "can not" to "cannot"
17969         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17970         boundaries.
17971
17972 2011-04-09  Jim Meyering  <meyering@redhat.com>
17973
17974         maint: change "a a" to "a"
17975         * tests/test-lchown.h (test_lchown): s/a a/a/
17976
17977         maint.mk: prohibit \<the the\>
17978         * top/maint.mk (sc_prohibit_the_the): New rule.
17979
17980         maint: fix "the the" in comment
17981         * lib/count-one-bits.h: s/the the/the/
17982
17983         maint: change "can not" to "cannot"
17984         But do not change the occurrences in maintain.texi or in
17985         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17986         * doc/gnulib-tool.texi: s/can not/cannot/
17987         * doc/posix-functions/accept.texi (accept): Likewise.
17988         * doc/posix-functions/socket.texi (socket): Likewise.
17989         * lib/mbrtowc.c: Likewise.
17990
17991         maint.mk: prohibit use of "can not"
17992         * top/maint.mk (sc_prohibit_can_not): New rule.
17993         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17994
17995 2011-04-09  Bruno Haible  <bruno@clisp.org>
17996
17997         careadlinkat: Guard against misuse of careadlinkatcwd.
17998         * lib/careadlinkat.c: Include <stdlib.h>.
17999         (careadlinkatcwd): Check that the fd argument is as expected.
18000
18001 2011-04-09  Bruno Haible  <bruno@clisp.org>
18002
18003         careadlinkat: Use common coding style.
18004         * lib/careadlinkat.c: Move gnulib includes after system includes.
18005
18006 2011-04-09  Bruno Haible  <bruno@clisp.org>
18007
18008         careadlinkat: Clarify specification.
18009         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18010         (careadlinkatcwd): Add comment.
18011         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18012
18013 2011-04-09  Bruno Haible  <bruno@clisp.org>
18014
18015         areadlinkat: Avoid link error on many platforms.
18016         * modules/areadlinkat (Depends-on): Add areadlink.
18017
18018 2011-04-09  Bruno Haible  <bruno@clisp.org>
18019
18020         allocator, careadlinkat: Fix double-inclusion guard.
18021         * lib/allocator.h: Fix double-inclusion guard.
18022         * lib/careadlinkat.h: Likewise.
18023
18024 2011-04-09  Bruno Haible  <bruno@clisp.org>
18025
18026         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18027         * lib/relocwrapper.c: Update dependencies hierarchy.
18028         * build-aux/install-reloc: Update list of files to be compiled.
18029         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18030         lib/allocator.[hc].
18031
18032 2011-04-08  Eric Blake  <eblake@redhat.com>
18033
18034         strftime: silence gnulib-tool warning
18035         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18036
18037 2011-04-08  Bruno Haible  <bruno@clisp.org>
18038
18039         verify: Fix syntax error with GCC 4.6 in C++ mode.
18040         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18041         (HAVE_STATIC_ASSERT): New macro.
18042         (verify_true, verify): Use 'static_assert' if it is supported and
18043         '_Static_assert' is not supported.
18044
18045 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18046
18047         allocator: New module.
18048         * modules/allocator, lib/allocator.c: New files.
18049         * lib/allocator.h (stdlib_allocator): New decl.
18050         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18051         Remove.  Do not include <stdlib.h>.
18052         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18053         * modules/careadlinkat (Files): Remove lib/allocator.h.
18054         (Depends-on): Add allocator.
18055
18056         stdlib: let modules use system malloc, realloc
18057         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18058         if !_GL_USE_STDLIB_ALLOC.
18059         (malloc, realloc): Limit this change to a smaller scope.
18060
18061         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18062         (malloc, realloc): Don't #undef; no longer needed.
18063         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18064         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18065         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18066         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18067         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18068         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18069         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18070         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18071
18072         careadlinkat: rename members to avoid problem
18073         * lib/allocator.h (struct allocator): Rename members from
18074         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18075         and realloc are #define'd.  Reported by Eric Blake in
18076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18077         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18078
18079 2011-04-08  Eric Blake  <eblake@redhat.com>
18080
18081         nonblocking: reduce dependency
18082         * tests/test-nonblocking.c: Only test sockets when in use.
18083         * modules/nonblocking-tests (Depends-on): Drop socket.
18084         (Makefile.am): Link even if sockets are not present.
18085         * modules/pipe2-tests (Makefile.am): Likewise.
18086         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18087
18088         pipe2: fix O_NONBLOCK support on mingw
18089         * modules/pipe2 (Depends-on): Add nonblocking.
18090         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18091         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18092         * tests/test-nonblocking.c (main): Likewise.
18093         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18094
18095         fcntl-h: fix O_ACCMODE on cygwin
18096         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18097         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18098
18099         pipe-filter: drop O_NONBLOCK workarounds
18100         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18101         * modules/pipe-filter-ii (Depends-on): Likewise.
18102         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18103
18104         nonblocking: provide O_NONBLOCK for mingw
18105         * modules/nonblocking (Depends-on): Add open.
18106         (configure.ac): Set new witness macro.
18107         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18108         * modules/fcntl-h (Makefile.am): Substitute it.
18109         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18110         nonblocking module is in use.
18111         * lib/nonblocking.c: Adjust portability test.
18112         * lib/open.c (open): Don't let native open see gnulib flag.
18113         * tests/test-fcntl-h.c (main): Enhance test.
18114         * tests/test-open.h (test_open): Likewise.
18115         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18116
18117         careadlinkat: fix compilation error on mingw
18118         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18119         within struct allocator.
18120
18121 2011-04-06  Eric Blake  <eblake@redhat.com>
18122
18123         binary-io: relicense under LGPLv2+
18124         * modules/binary-io (License): Relax to LGPLv2+.
18125         Requested for libvirt, and required by pipe2.
18126
18127 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18128
18129         verify: use _Static_assert if available
18130         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18131         (verify_true, verify): Use it if available.  This generates better
18132         diagnostics with GCC 4.6.0 and later.
18133
18134 2011-04-05  Bruno Haible  <bruno@clisp.org>
18135
18136         Remove leftover generated .h files after config.status changed.
18137
18138         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18139         GL_GENERATE_ALLOCA_H.
18140         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18141         GL_GENERATE_ALLOCA_H evaluates to false.
18142
18143         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18144         GL_GENERATE_ARGZ_H.
18145         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18146         evaluates to false.
18147
18148         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18149         GL_GENERATE_BYTESWAP_H.
18150         * modules/byteswap (Makefile.am): Remove byteswap.h if
18151         GL_GENERATE_BYTESWAP_H evaluates to false.
18152
18153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18154         GL_GENERATE_ERRNO_H.
18155         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18156         evaluates to false.
18157
18158         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18159         GL_GENERATE_FLOAT_H.
18160         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18161         evaluates to false.
18162
18163         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18164         GL_GENERATE_FNMATCH_H.
18165         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18166         GL_GENERATE_FNMATCH_H evaluates to false.
18167
18168         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18169         GL_GENERATE_GLOB_H.
18170         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18171         evaluates to false.
18172
18173         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18174         automake conditional GL_GENERATE_ICONV_H.
18175         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18176         evaluates to false.
18177
18178         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18179         GL_GENERATE_NETINET_IN_H.
18180         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18181         GL_GENERATE_NETINET_IN_H evaluates to false.
18182
18183         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18184         conditional GL_GENERATE_PTHREAD_H.
18185         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18186         * modules/pthread (Makefile.am): Remove pthread.h if
18187         GL_GENERATE_PTHREAD_H evaluates to false.
18188
18189         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18190         GL_GENERATE_SCHED_H.
18191         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18192         evaluates to false.
18193
18194         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18195         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18196         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18197         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18198
18199         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18200         GL_GENERATE_STDARG_H.
18201         * modules/stdarg (Makefile.am): Remove stdarg.h if
18202         GL_GENERATE_STDARG_H evaluates to false.
18203
18204         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18205         GL_GENERATE_STDBOOL_H.
18206         * modules/stdbool (Makefile.am): Remove stdbool.h if
18207         GL_GENERATE_STDBOOL_H evaluates to false.
18208
18209         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18210         conditional GL_GENERATE_STDDEF_H.
18211         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18212         * modules/stddef (Makefile.am): Remove stddef.h if
18213         GL_GENERATE_STDDEF_H evaluates to false.
18214
18215         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18216         GL_GENERATE_STDINT_H.
18217         * modules/stdint (Makefile.am): Remove stdint.h if
18218         GL_GENERATE_STDINT_H evaluates to false.
18219
18220         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18221         GL_GENERATE_SYSEXITS_H.
18222         * modules/sysexits (Makefile.am): Remove sysexits.h if
18223         GL_GENERATE_SYSEXITS_H evaluates to false.
18224
18225         Reported by Karl Berry and Ralf Wildenhues.
18226
18227 2011-04-05  Bruno Haible  <bruno@clisp.org>
18228
18229         Ensure to rebuild generated .h files when config.status has changed.
18230         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18231         config.status.
18232         * modules/ctype (Makefile.am): Likewise.
18233         * modules/dirent (Makefile.am): Likewise.
18234         * modules/errno (Makefile.am): Likewise.
18235         * modules/fcntl-h (Makefile.am): Likewise.
18236         * modules/float (Makefile.am): Likewise.
18237         * modules/getopt-posix (Makefile.am): Likewise.
18238         * modules/glob (Makefile.am): Likewise.
18239         * modules/iconv-h (Makefile.am): Likewise.
18240         * modules/inttypes (Makefile.am): Likewise.
18241         * modules/langinfo (Makefile.am): Likewise.
18242         * modules/locale (Makefile.am): Likewise.
18243         * modules/math (Makefile.am): Likewise.
18244         * modules/netdb (Makefile.am): Likewise.
18245         * modules/netinet_in (Makefile.am): Likewise.
18246         * modules/poll-h (Makefile.am): Likewise.
18247         * modules/pthread (Makefile.am): Likewise.
18248         * modules/pty (Makefile.am): Likewise.
18249         * modules/sched (Makefile.am): Likewise.
18250         * modules/search (Makefile.am): Likewise.
18251         * modules/selinux-h (Makefile.am): Likewise.
18252         * modules/signal (Makefile.am): Likewise.
18253         * modules/spawn (Makefile.am): Likewise.
18254         * modules/stdarg (Makefile.am): Likewise.
18255         * modules/stdbool (Makefile.am): Likewise.
18256         * modules/stddef (Makefile.am): Likewise.
18257         * modules/stdint (Makefile.am): Likewise.
18258         * modules/stdio (Makefile.am): Likewise.
18259         * modules/stdlib (Makefile.am): Likewise.
18260         * modules/string (Makefile.am): Likewise.
18261         * modules/strings (Makefile.am): Likewise.
18262         * modules/sys_file (Makefile.am): Likewise.
18263         * modules/sys_ioctl (Makefile.am): Likewise.
18264         * modules/sys_select (Makefile.am): Likewise.
18265         * modules/sys_socket (Makefile.am): Likewise.
18266         * modules/sys_stat (Makefile.am): Likewise.
18267         * modules/sys_time (Makefile.am): Likewise.
18268         * modules/sys_times (Makefile.am): Likewise.
18269         * modules/sys_utsname (Makefile.am): Likewise.
18270         * modules/sys_wait (Makefile.am): Likewise.
18271         * modules/sysexits (Makefile.am): Likewise.
18272         * modules/termios (Makefile.am): Likewise.
18273         * modules/time (Makefile.am): Likewise.
18274         * modules/unistd (Makefile.am): Likewise.
18275         * modules/wchar (Makefile.am): Likewise.
18276         * modules/wctype-h (Makefile.am): Likewise.
18277         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18278
18279 2011-04-05  Bruno Haible  <bruno@clisp.org>
18280
18281         pipe2: Relicense under LGPLv2+.
18282         * modules/pipe2 (License): Change to LGPLv2+.
18283         Requested by Eric Blake, for libvirt.
18284
18285 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18286
18287         bootstrap: compute gnulib_extra_files after updating build_aux
18288         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18289         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18290
18291 2011-04-05  Eric Blake  <eblake@redhat.com>
18292
18293         bootstrap: preserve git whitelist item sorting
18294         * build-aux/bootstrap (sort_patterns): New function.
18295         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18296
18297 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18298
18299         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18300         sc_space_tab check.
18301
18302 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18303
18304         areadlink, areadlinkat: rewrite in terms of careadlinkat
18305         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18306         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18307         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18308         (malloc, realloc): Remove #undefs.
18309         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18310         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18311         readlink, ssize_t, stdint, unistd.
18312         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18313         areadlink, stdint.
18314
18315         careadlinkat: new module
18316         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18317         * modules/careadlinkat: New files, written by me with
18318         a review and feedback from Ben Pfaff in
18319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18320
18321 2011-04-01  Bruno Haible  <bruno@clisp.org>
18322
18323         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18324         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18325         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18326         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18327         Reported by Bruce Korb <bruce.korb@gmail.com>.
18328
18329 2011-04-01  Bruno Haible  <bruno@clisp.org>
18330
18331         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18332         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18333         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18334         * modules/wcpcpy (Depends-on): Add extensions.
18335         * modules/wcpncpy (Depends-on): Likewise.
18336         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18337         systems.
18338         * doc/posix-functions/wcpncpy.texi: Likewise.
18339         * doc/posix-functions/wcwidth.texi: Likewise.
18340
18341 2011-03-31  Eric Blake  <eblake@redhat.com>
18342
18343         nonblocking: fix mingw test failures
18344         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18345         non-blocking flag on regular file.
18346         (get_nonblocking_flag): Set errno on invalid fd.
18347         * tests/test-nonblocking.c (main): Avoid test failure on
18348         directories if fchdir is not active.
18349         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18350
18351 2011-03-31  Bruno Haible  <bruno@clisp.org>
18352
18353         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18354         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18355         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18356         Reported by Simon Josefsson <simon@josefsson.org>.
18357
18358 2011-03-31  Bruno Haible  <bruno@clisp.org>
18359         and Eric Blake  <eblake@redhat.com>
18360
18361         nonblocking: new module
18362         * modules/nonblocking: New module.
18363         * modules/nonblocking-tests: Likewise.
18364         * lib/nonblocking.h: New file.
18365         * lib/nonblocking.c: Likewise.
18366         * tests/test-nonblocking.c: New test.
18367         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18368
18369 2011-03-30  Bruno Haible  <bruno@clisp.org>
18370
18371         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18372         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18373         instead of 'printf' format for GCC >= 4.4.
18374         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18375         (fprintf, printf, vfprintf, vprintf): Declare with
18376         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18377         the system's vfprintf() function.
18378         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18379
18380 2011-03-30  Eric Blake  <eblake@redhat.com>
18381
18382         passfd: fix scoping bug
18383         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18384         before sendmsg/recvmsg.
18385
18386         passfd: standardize coding conventions
18387         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18388         can be learned at compile time.
18389         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18390         ifdefs.
18391         (sendfd, recvfd): Follow gnulib code conventions.
18392
18393         passfd: fix incorrect sendmsg arguments
18394         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18395         incorrect msg_controllen value.
18396         * modules/passfd-tests (Depends-on): Check for alarm.
18397         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18398         Reported by Bastien ROUCARIES.
18399
18400 2011-03-30  Bruno Haible  <bruno@clisp.org>
18401
18402         c-strcasestr: Relicense under LGPLv2+.
18403         * modules/c-strcasestr (License): Change to LGPLv2+.
18404         Requested by Eric Blake, for libvirt.
18405
18406 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18407
18408         * users.txt: Add libidn2.  Fix libtasn1 link.
18409
18410 2011-03-30  Jim Meyering  <meyering@redhat.com>
18411
18412         tests: readlink* ("",... fails with EINVAL on newer kernels
18413         readlink and readlinkat have typically failed with ENOENT for
18414         the invalid, empty file name,  "".  However, with the advent
18415         of linux-2.6.39, they fail with EINVAL.
18416         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18417         when operating on the empty file name.
18418         * tests/test-readlink.h (test_readlink): Likewise.
18419
18420 2011-03-29  Bruno Haible  <bruno@clisp.org>
18421
18422         Relicense some modules under LGPLv2+, for libidn2.
18423         * modules/array-mergesort (License): Change to LGPLv2+.
18424         * modules/c-strcaseeq (License): Likewise.
18425         * modules/striconveh (License): Likewise.
18426         * modules/striconveha (License): Likewise.
18427         * modules/uniconv/base (License): Likewise.
18428         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18429         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18430         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18431         * modules/unictype/base (License): Likewise.
18432         * modules/unictype/bidiclass-of (License): Likewise.
18433         * modules/unictype/category-M (License): Likewise.
18434         * modules/unictype/category-none (License): Likewise.
18435         * modules/unictype/category-of (License): Likewise.
18436         * modules/unictype/category-test (License): Likewise.
18437         * modules/unictype/category-test-withtable (License): Likewise.
18438         * modules/unictype/combining-class (License): Likewise.
18439         * modules/unictype/joiningtype-of (License): Likewise.
18440         * modules/unictype/scripts (License): Likewise.
18441         * modules/uninorm/base (License): Likewise.
18442         * modules/uninorm/canonical-decomposition (License): Likewise.
18443         * modules/uninorm/composition (License): Likewise.
18444         * modules/uninorm/decompose-internal (License): Likewise.
18445         * modules/uninorm/decomposition-table (License): Likewise.
18446         * modules/uninorm/nfc (License): Likewise.
18447         * modules/uninorm/nfd (License): Likewise.
18448         * modules/uninorm/u32-normalize (License): Likewise.
18449         * modules/unistr/base (License): Likewise.
18450         * modules/unistr/u32-cpy (License): Likewise.
18451         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18452         * modules/unistr/u32-to-u8 (License): Likewise.
18453         * modules/unistr/u32-uctomb (License): Likewise.
18454         * modules/unistr/u8-check (License): Likewise.
18455         * modules/unistr/u8-mblen (License): Likewise.
18456         * modules/unistr/u8-mbtouc (License): Likewise.
18457         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18458         * modules/unistr/u8-mbtoucr (License): Likewise.
18459         * modules/unistr/u8-prev (License): Likewise.
18460         * modules/unistr/u8-strlen (License): Likewise.
18461         * modules/unistr/u8-to-u32 (License): Likewise.
18462         * modules/unistr/u8-uctomb (License): Likewise.
18463         * modules/unitypes (License): Likewise.
18464         Requested by Simon Josefsson.
18465
18466 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18467
18468         lib-symbol-visibility: Add a notice.
18469         * modules/lib-symbol-visibility (Notice): New field.
18470
18471 2011-03-29  Bruno Haible  <bruno@clisp.org>
18472
18473         getaddrinfo: Doc fix.
18474         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18475         section "fixed in Gnulib".
18476
18477 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18478
18479         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18480         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18481
18482 2011-03-26  Bruno Haible  <bruno@clisp.org>
18483
18484         unictype/property-byname: Reduce the number of load-time relocations.
18485         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18486         (UC_PROPERTY_INDEX_*): New enumeration values.
18487         (uc_property_byname): Convert an index from the lookup table to an
18488         uc_property_t.
18489         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18490         values.
18491
18492 2011-03-26  Bruno Haible  <bruno@clisp.org>
18493
18494         unictype/property-byname: Allow omitted word separators and aliases.
18495         * lib/unictype/pr_byname.gperf: Add property names without word
18496         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18497         for 'space'.
18498
18499 2011-03-26  Bruno Haible  <bruno@clisp.org>
18500
18501         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18502         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18503         also hyphens to space.
18504         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18505         without spaces.
18506         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18507
18508 2011-03-26  Bruno Haible  <bruno@clisp.org>
18509
18510         unictype/joiningtype-byname: Recognize long names as well.
18511         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18512         a long name.
18513         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18514         unictype/joiningtype_byname.h.
18515         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18516         * lib/unictype/joiningtype_byname.gperf: New file.
18517         * modules/unictype/joiningtype-byname (Files): Add
18518         lib/unictype/joiningtype_byname.gperf.
18519         (Depends-on): Add gperf.
18520         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18521         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18522         long names.
18523
18524         Tests for module 'unictype/joiningtype-longname'.
18525         * modules/unictype/joiningtype-longname-tests: New file.
18526         * tests/unictype/test-joiningtype_longname.c: New file.
18527
18528         New module 'unictype/joiningtype-longname'.
18529         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18530         * lib/unictype/joiningtype_longname.c: New file.
18531         * modules/unictype/joiningtype-longname: New file.
18532         * modules/unictype/joiningtype-all (Depends-on): Add
18533         unictype/joiningtype-longname.
18534
18535 2011-03-26  Bruno Haible  <bruno@clisp.org>
18536
18537         unictype/bidiclass-byname: Recognize long names as well.
18538         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18539         name.
18540         * lib/unictype/bidi_byname.c: Include <string.h>,
18541         unictype/bidi_byname.h.
18542         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18543         * lib/unictype/bidi_byname.gperf: New file.
18544         * modules/unictype/bidiclass-byname (Files): Add
18545         lib/unictype/bidi_byname.gperf.
18546         (Depends-on): Add gperf.
18547         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18548         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18549         long names.
18550
18551         Tests for module 'unictype/bidiclass-longname'.
18552         * modules/unictype/bidiclass-longname-tests: New file.
18553         * tests/unictype/test-bidi_longname.c: New file.
18554
18555         New module 'unictype/bidiclass-longname'.
18556         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18557         * lib/unictype/bidi_longname.c: New file.
18558         * modules/unictype/bidiclass-longname: New file.
18559         * modules/unictype/bidiclass-all (Depends-on): Add
18560         unictype/bidiclass-longname.
18561
18562 2011-03-26  Bruno Haible  <bruno@clisp.org>
18563
18564         unictype/bidi*: Rename modules.
18565         * modules/unictype/bidiclass-all: Renamed from
18566         modules/unictype/bidicategory-all.
18567         * modules/unictype/bidiclass-name: Renamed from
18568         modules/unictype/bidiclass-name.
18569         (Description): Update.
18570         * modules/unictype/bidiclass-name-tests: Renamed from
18571         modules/unictype/bidicategory-name-tests.
18572         * modules/unictype/bidiclass-byname: Renamed from
18573         modules/unictype/bidicategory-byname.
18574         (Description): Update.
18575         * modules/unictype/bidiclass-byname-tests: Renamed from
18576         modules/unictype/bidicategory-byname-tests.
18577         * modules/unictype/bidiclass-of: Renamed from
18578         modules/unictype/bidicategory-of.
18579         (Description): Update.
18580         * modules/unictype/bidiclass-of-tests: Renamed from
18581         modules/unictype/bidicategory-of-tests.
18582         * modules/unictype/bidiclass-test: Renamed from
18583         modules/unictype/bidicategory-test.
18584         (Description): Update.
18585         * modules/unictype/bidiclass-test-tests: Renamed from
18586         modules/unictype/bidicategory-test-tests.
18587         * modules/unictype/bidicategory-all: New file, a simple redirection.
18588         * modules/unictype/bidicategory-name: Likewise.
18589         * modules/unictype/bidicategory-byname: Likewise.
18590         * modules/unictype/bidicategory-of: Likewise.
18591         * modules/unictype/bidicategory-test: Likewise.
18592         * modules/unictype/property-bidi-* (Dependencies): Update.
18593         * lib/unictype/bidi_*.c: Update comment.
18594
18595 2011-03-26  Bruno Haible  <bruno@clisp.org>
18596
18597         unictype/bidi*: Rename functions, part 2.
18598         * modules/unictype/bidicategory-name (configure.ac): Update required
18599         libunistring version.
18600         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18601
18602 2011-03-25  Bruno Haible  <bruno@clisp.org>
18603
18604         New module 'unictype/combining-class-all'.
18605         * modules/unictype/combining-class-all: New file.
18606
18607         Tests for module 'unictype/combining-class-byname'.
18608         * modules/unictype/combining-class-byname-tests: New file.
18609         * tests/unictype/test-combiningclass_byname.c: New file.
18610
18611         New module 'unictype/combining-class-byname'.
18612         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18613         * lib/unictype/combiningclass_byname.c: New file.
18614         * lib/unictype/combiningclass_byname.gperf: New file.
18615         * modules/unictype/combining-class-byname: New file.
18616
18617         Tests for module 'unictype/combining-class-longname'.
18618         * modules/unictype/combining-class-longname-tests: New file.
18619         * tests/unictype/test-combiningclass_longname.c: New file.
18620
18621         New module 'unictype/combining-class-longname'.
18622         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18623         * lib/unictype/combiningclass_longname.c: New file.
18624         * modules/unictype/combining-class-longname: New file.
18625
18626         Tests for module 'unictype/combining-class-name'.
18627         * modules/unictype/combining-class-name-tests: New file.
18628         * tests/unictype/test-combiningclass_name.c: New file.
18629
18630         New module 'unictype/combining-class-name'.
18631         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18632         * lib/unictype/combiningclass_name.c: New file.
18633         * modules/unictype/combining-class-name: New file.
18634
18635 2011-03-25  Bruno Haible  <bruno@clisp.org>
18636
18637         unictype/combining-class: Rename source files.
18638         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18639         of unictype/combining.h.
18640         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18641         Update.
18642         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18643         * modules/unictype/combining-class (Description): Fix.
18644         (Files, Makefile.am): Update.
18645         * tests/unictype/test-combiningclass.c: Renamed from
18646         tests/unictype/test-combining.c.
18647         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18648
18649 2011-03-25  Bruno Haible  <bruno@clisp.org>
18650
18651         unictype: Update list of canonical combining classes.
18652         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18653
18654 2011-03-25  Bruno Haible  <bruno@clisp.org>
18655
18656         unictype/category-byname: Recognize long names as well.
18657         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18658         a long name.
18659         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18660         unictype/categ_byname.h.
18661         (UC_CATEGORY_INDEX_*): New enumeration values.
18662         (uc_general_category_byname): Use uc_general_category_lookup and
18663         convert from index to value.
18664         * lib/unictype/categ_byname.gperf: New file.
18665         * modules/unictype/category-byname (Files): Add
18666         lib/unictype/categ_byname.gperf.
18667         (Depends-on): Add gperf.
18668         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18669         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18670         long names.
18671
18672         Tests for module 'unictype/category-longname'.
18673         * modules/unictype/category-longname-tests: New file.
18674         * tests/unictype/test-categ_longname.c: New file.
18675
18676         New module 'unictype/category-longname'.
18677         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18678         * lib/unictype/categ_longname.c: New file.
18679         * modules/unictype/category-longname: New file.
18680         * modules/unictype/category-all (Depends-on): Add it.
18681
18682 2011-03-25  Bruno Haible  <bruno@clisp.org>
18683
18684         Tests for module 'unictype/category-LC'.
18685         * modules/unictype/category-LC-tests: New file.
18686         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18687
18688         New module 'unictype/category-LC'.
18689         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18690         (UC_CATEGORY_LC): New declaration.
18691         (UC_CASED_LETTER): New macro.
18692         * lib/gen-uni-tables.c (is_category_LC): New function.
18693         (output_categories): Also handle category LC.
18694         (UC_CATEGORY_MASK_LC): New enumeration value.
18695         (general_category_byname): Also handle category LC.
18696         * lib/unictype/categ_LC.c: New file.
18697         * lib/unictype/categ_LC.h: New file, automatically generated.
18698         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18699         category LC.
18700         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18701         * modules/unictype/category-LC: New file.
18702         * modules/unictype/category-byname (Depends-on): Add
18703         unictype/category-LC.
18704         * modules/unictype/category-all (Depends-on): Likewise.
18705
18706 2011-03-25  Eric Blake  <eblake@redhat.com>
18707
18708         xmalloc: revert yesterday's regression
18709         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18710         realloc's underlying behavior (allowing allocation of zero-size
18711         objects, especially if malloc-gnu is also in use).
18712
18713 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18714
18715         maint.mk: add missing version to VC-tag
18716         * top/maint.mk: git tag was missing actual tag name; add it.
18717
18718         valgrind: do leak checking, and exit with code 1 on error (not 0)
18719         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18720         to VALGRIND.
18721
18722 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18723
18724         posix-modules: say what it does.
18725         * posix-modules: Add a line to the --help output saying what it does.
18726
18727 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18728
18729         xmalloc: Do not leak if underlying realloc is C99 compatible.
18730         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18731         This avoids a leak on C99-based systems.  See
18732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18733
18734 2011-03-24  Eric Blake  <eblake@redhat.com>
18735
18736         realloc: document portability problem
18737         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18738         passing 0 size to realloc.
18739
18740 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18741
18742         doc: update users.txt
18743         * users.txt: Add cvsps, tmpwatch
18744
18745 2011-03-23  Matt Rice  <ratmice@gmail.com>
18746
18747         doc: update users.txt
18748         * users.txt: Add gdb.
18749
18750 2011-03-23  Jim Meyering  <meyering@redhat.com>
18751
18752         doc: update users.txt
18753         Looking through matches up to the following URL (there are still
18754         several more pages), I found several projects that use gnulib:
18755         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18756         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18757         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18758
18759 2011-03-22  Bruno Haible  <bruno@clisp.org>
18760
18761         unictype/bidi*: Rename functions.
18762         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18763         uc_bidi_class, uc_is_bidi_class): New declarations.
18764         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18765         uc_bidi_category_byname.
18766         (uc_bidi_category_byname): New function.
18767         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18768         u_bidi_category_name.
18769         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18770         (uc_bidi_category_name): New function.
18771         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18772         uc_bidi_category.
18773         (uc_bidi_category): New function.
18774         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18775         uc_is_bidi_category. Invoke uc_bidi_class.
18776         (uc_is_bidi_category): New function.
18777         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18778         instead of uc_bidi_category_byname.
18779         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18780         instead of uc_bidi_category_name.
18781         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18782         uc_bidi_category.
18783         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18784         instead of uc_is_bidi_category.
18785
18786 2011-03-21  Bruno Haible  <bruno@clisp.org>
18787
18788         New module 'unictype/joininggroup-all'.
18789         * modules/unictype/joininggroup-all: New file.
18790
18791         Tests for module 'unictype/joininggroup-of'.
18792         * modules/unictype/joininggroup-of-tests: New file.
18793         * tests/unictype/test-joininggroup_of.c: New file.
18794         * tests/unictype/test-joininggroup_of.h: New file, automatically
18795         generated by gen-uni-tables.
18796
18797         New module 'unictype/joininggroup-of'.
18798         * modules/unictype/joininggroup-of: New file.
18799         * lib/unictype/joininggroup_of.c: New file.
18800         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18801         gen-uni-tables.
18802
18803         Tests for module 'unictype/joininggroup-byname'.
18804         * modules/unictype/joininggroup-byname-tests: New file.
18805         * tests/unictype/test-joininggroup_byname.c: New file.
18806
18807         New module 'unictype/joininggroup-byname'.
18808         * modules/unictype/joininggroup-byname: New file.
18809         * lib/unictype/joininggroup_byname.c: New file.
18810         * lib/unictype/joininggroup_byname.gperf: New file.
18811
18812         Tests for module 'unictype/joininggroup-name'.
18813         * modules/unictype/joininggroup-name-tests: New file.
18814         * tests/unictype/test-joininggroup_name.c: New file.
18815
18816         New module 'unictype/joininggroup-name'.
18817         * modules/unictype/joininggroup-name: New file.
18818         * lib/unictype/joininggroup_name.c: New file.
18819         * lib/unictype/joininggroup_name.h: New file.
18820
18821         New module 'unictype/joiningtype-all'.
18822         * modules/unictype/joiningtype-all: New file.
18823
18824         Tests for module 'unictype/joiningtype-of'.
18825         * modules/unictype/joiningtype-of-tests: New file.
18826         * tests/unictype/test-joiningtype_of.c: New file.
18827         * tests/unictype/test-joiningtype_of.h: New file, automatically
18828         generated by gen-uni-tables.
18829
18830         New module 'unictype/joiningtype-of'.
18831         * modules/unictype/joiningtype-of: New file.
18832         * lib/unictype/joiningtype_of.c: New file.
18833         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18834         gen-uni-tables.
18835
18836         Tests for module 'unictype/joiningtype-byname'.
18837         * modules/unictype/joiningtype-byname-tests: New file.
18838         * tests/unictype/test-joiningtype_byname.c: New file.
18839
18840         New module 'unictype/joiningtype-byname'.
18841         * modules/unictype/joiningtype-byname: New file.
18842         * lib/unictype/joiningtype_byname.c: New file.
18843
18844         Tests for module 'unictype/joiningtype-name'.
18845         * modules/unictype/joiningtype-name-tests: New file.
18846         * tests/unictype/test-joiningtype_name.c: New file.
18847
18848         New module 'unictype/joiningtype-name'.
18849         * modules/unictype/joiningtype-name: New file.
18850         * lib/unictype/joiningtype_name.c: New file.
18851
18852         unictype: Add support for Arabic shaping properties.
18853         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18854         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18855         declarations.
18856         (UC_JOINING_GROUP_*): New enumeration values.
18857         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18858         declarations.
18859         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18860         (unicode_joining_type): New variable.
18861         (UC_JOINING_GROUP_*): New enumeration values.
18862         (unicode_joining_group): New variable.
18863         (fill_arabicshaping, joining_type_as_c_identifier,
18864         output_joining_type_test, output_joining_type,
18865         joining_group_as_c_identifier, output_joining_group_test,
18866         output_joining_group): New functions.
18867         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18868         fill_arabicshaping and output_joining_type_test, output_joining_type,
18869         output_joining_group_test, output_joining_group.
18870         Reported by Simon Josefsson.
18871
18872 2011-03-21  Jim Meyering  <meyering@redhat.com>
18873
18874         strftime: fix a bug in yesterday's change
18875         * lib/strftime.c (add): Accommodate width's initial value of -1.
18876         Otherwise, nstrftime would copy uninitialized data into
18877         the result buffer.
18878
18879 2011-03-21  Jim Meyering  <meyering@redhat.com>
18880
18881         tests: add strftime-tests module
18882         * tests/test-strftime.c: New file.
18883         * modules/strftime-tests: New module.
18884
18885 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18886
18887         strftime: don't assume a byte count fits in 'int'
18888         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18889         found this problem by static analysis, using gcc -Wstrict-overflow
18890         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18891         on an integer overflow having undefined behavior, but it turns out
18892         that the argument is a size, which might not fit in 'int' anyway,
18893
18894 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18895
18896         stdio: don't require ignore_value around fwrite
18897
18898         This patch works around libc bug 11959
18899         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18900         Without this patch, applications must often write
18901         ignore_value (fwrite (...)) even though the ignore_value is
18902         not helpful here.  It's common to write many objects, using
18903         fwrite/printf/etc., and then use ferror to detect output error.
18904
18905         I considered making this patch optional, but decided against it,
18906         because libc is obviously being inconsistent here: there is no
18907         reason libc should insist that user code must inspect fwrite
18908         return's value without also insisting that it inspect printf's,
18909         putchar's, etc.  If user code wants to have a strict style where
18910         all these functions' values are checked (so that ferror need not
18911         be checked), we could add support for that style in a new gnulib
18912         module, but in the meantime it's better to be consistent and to
18913         support common usage.
18914
18915         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18916         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18917         that we are compiling in checking mode, and if not C++, and
18918         if not already wrapping fwrite for some other reason.
18919         (fwrite): #define to rpl_fwrite if the latter is defined.
18920
18921 2011-03-20  Bruno Haible  <bruno@clisp.org>
18922
18923         verror: Fix compilation error introduced on 2011-02-13.
18924         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18925         instead of __attribute__.
18926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18927
18928 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18929             Bruno Haible  <bruno@clisp.org>
18930
18931         socklen: do not depend on sys_socket
18932         While trying to modify Emacs to use gnulib's socklen module,
18933         I discovered a circular dependency: socklen depends on sys_socket
18934         and vice versa.  Emacs can use socklen, but it does not need
18935         sys_socket because it has its own substitute for sys/socket.h.
18936         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18937         gl_TYPE_SOCKLEN_T.
18938         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18939         gl_PREREQ_SYS_H_SOCKET.
18940         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18941         gl_PREREQ_SYS_H_SOCKET.
18942         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18943         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18944         * modules/socklen (Depends-on): Do not depend on sys_socket.
18945         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18946
18947 2011-03-20  Jim Meyering  <meyering@redhat.com>
18948
18949         maint.mk: sort file names *after* new transformation
18950         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18951         prefix would have led to an unwarranted failure in GNU parted.
18952         Sort after that transformation.
18953
18954 2011-03-19  Jim Meyering  <meyering@redhat.com>
18955
18956         maint.mk: fix po-file syntax-check rule
18957         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18958         Patch by Bruno Haible.
18959
18960 2011-03-19  Bruno Haible  <bruno@clisp.org>
18961
18962         socklen: Update comment.
18963         * m4/socklen.m4: Update comment about platforms.
18964
18965 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18966             Bruno Haible  <bruno@clisp.org>
18967
18968         inet_ntop, inet_pton: Simplify.
18969         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18970         documented to provide socklen_t and we already depend on sys_socket.
18971         * modules/inet_pton (Depends-on): Likewise.
18972         * lib/arpa_inet.in.h: Adjust comment.
18973
18974 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18975             Bruno Haible  <bruno@clisp.org>
18976
18977         netdb: Simplify.
18978         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18979         documented to provide socklen_t and we already depend on sys_socket.
18980         * lib/netdb.in.h: Adjust comment.
18981
18982 2011-03-19  Bruno Haible  <bruno@clisp.org>
18983
18984         sys_socket, netdb: Document problem with socklen_t.
18985         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18986         platforms.
18987         * doc/posix-headers/netdb.texi: Likewise.
18988
18989 2011-03-18  Eric Blake  <eblake@redhat.com>
18990
18991         maint.mk: let po check work in VPATH build
18992         * top/maint.mk (po_file): Allow cfg.mk override.
18993         (sc_po_check): Allow VPATH use.
18994         Reported by Jiri Denemark.
18995
18996 2011-03-16  Jim Meyering  <meyering@redhat.com>
18997
18998         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18999         Before, you would have had to create one .x-sc_ file per rule in order
19000         to exempt offending files.  Now, you may instead use a Make variable --
19001         usually defined in cfg.mk -- whose name identifies the affected rule.
19002         * top/maint.mk (_sc_excl): Define.
19003         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19004         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19005
19006 2011-03-13  Bruno Haible  <bruno@clisp.org>
19007
19008         ignore-value tests: Avoid warnings.
19009         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19010         empty for gcc < 3.4.
19011
19012 2011-03-13  Bruno Haible  <bruno@clisp.org>
19013
19014         passfd: Fix link error on Solaris.
19015         * modules/passfd (Description): Correct.
19016         (Depends-on): Add socketlib.
19017         (Link): New section.
19018         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19019
19020 2011-03-13  Bruno Haible  <bruno@clisp.org>
19021
19022         passfd: Fix link error on AIX 5.2.
19023         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19024
19025 2011-03-13  Bruno Haible  <bruno@clisp.org>
19026
19027         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19028         * lib/sys_socket.in.h: Include <stddef.h>.
19029         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19030         CMSG_FIRSTHDR. Remove unused variable.
19031
19032 2011-03-13  Bruno Haible  <bruno@clisp.org>
19033
19034         passfd: Fix compilation error on OpenBSD.
19035         * lib/passfd.c: Include <sys/uio.h>.
19036
19037 2011-03-13  Bruno Haible  <bruno@clisp.org>
19038
19039         passfd test: Fix warnings.
19040         * tests/test-passfd.c: Include <sys/wait.h>.
19041         (main): Fix typo.
19042
19043 2011-03-13  Bruno Haible  <bruno@clisp.org>
19044
19045         passfd module, part 4, tweaks.
19046         * tests/test-passfd.c: Reorder includes.
19047         (main): Fix perror and printf calls.
19048
19049 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19050
19051         passfd module, part 4.
19052         * modules/passfd-tests: New file.
19053         * tests/test-passfd.c: New file.
19054
19055 2011-03-13  Jim Meyering  <meyering@redhat.com>
19056
19057         Makefile: rely on GNU make; derive syntax-check rule names
19058         Rather than requiring that each sc_ rule be listed as a dependent
19059         of "check", use features of GNU make to derive the list.
19060         * Makefile (syntax-check-rules): Define.
19061         (check): Depend on the new variable, not the hard-coded list.
19062
19063 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19064             Bruno Haible  <bruno@clisp.org>
19065
19066         passfd module, part 3.
19067         * lib/passfd.h (recvfd): Add a flags argument.
19068         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19069         (recvfd): Add a flags argument.
19070         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19071         exists.
19072         * modules/passfd (Depends-on): Add cloexec.
19073         Suggested by Eric Blake.
19074
19075 2011-03-13  Bruno Haible  <bruno@clisp.org>
19076
19077         passfd module, part 2, tweaks.
19078         * modules/passfd (Files): Reorder.
19079         (Depends-on): Remove errno.
19080         (Include): Remove <sys/socket.h>, <sys/un.h>.
19081         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19082         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19083         specification header. Include <sys/socket.h> always. Don't include
19084         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19085         (sendfd): Clarify that it sets errno when it fails.
19086         (recvfd): Fix specification.
19087
19088 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19089
19090         passfd module, part 2.
19091         * modules/passfd: New file.
19092         * lib/passfd.h: New file.
19093         * lib/passfd.c: New file.
19094
19095 2011-03-12  Bruno Haible  <bruno@clisp.org>
19096
19097         wcswidth, mbswidth: Avoid integer overflow.
19098         * lib/wcswidth.c: Include <limits.h>.
19099         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19100         * lib/mbswidth.c: Include <limits.h>.
19101         (mbsnwidth): Avoid 'int' overflow.
19102         Reported by Jim Meyering.
19103
19104 2011-03-12  Bruno Haible  <bruno@clisp.org>
19105
19106         futimens, utimensat: Avoid endless recursion on Solaris 10.
19107         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19108         Solaris.
19109         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19110         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19111
19112 2011-03-11  Jim Meyering  <meyering@redhat.com>
19113
19114         maint.mk: relax a regexp to accommodate other formatting styles
19115         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19116         between "ngettext" and the following "(".
19117
19118 2011-03-11  Pádraig Brady <P@draigBrady.com>
19119
19120         maint.mk: suppress a false positive warning
19121         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19122         diagnostics are marked with ngettext.
19123
19124 2011-03-10  Eric Blake  <eblake@redhat.com>
19125
19126         wchar: add explicit dependencies, for Tru64
19127         * modules/mbmemcasecoll (Depends-on): Add wchar.
19128         * modules/mbtowc (Depends-on): Likewise.
19129         * modules/vasnprintf (Depends-on): Likewise.
19130         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19131         * modules/wctomb (Depends-on): Likewise.
19132         Reported by Peter O'Gorman.
19133
19134 2011-03-08  Bruno Haible  <bruno@clisp.org>
19135
19136         passfd module, part 1, tweaks.
19137         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19138         Improve indentation. Improve AC_MSG_CHECKING messages.
19139         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19140         gl_SOCKET_FAMILIES.
19141
19142 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19143
19144         passfd module, part 1.
19145         * m4/afunix.m4: New file.
19146         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19147         sockets.
19148
19149 2011-03-08  Bruno Haible  <bruno@clisp.org>
19150
19151         regex-quote: New API.
19152         * lib/regex-quote.h: Include <stdbool.h>.
19153         (struct regex_quote_spec): New type.
19154         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19155         New declarations.
19156         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19157         'const struct regex_quote_spec *' argument.
19158         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19159         (pcre_special): New constant.
19160         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19161         New functions.
19162         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19163         'const struct regex_quote_spec *' argument.
19164         * modules/regex-quote (Depends-on): Add stdbool.
19165         * tests/test-regex-quote.c (check): Update for new API. Add test for
19166         anchored results.
19167         * NEWS: Mention the API change.
19168         Reported by Reuben Thomas and Eric Blake.
19169
19170 2011-03-06  Bruno Haible  <bruno@clisp.org>
19171
19172         regex-quote: Fix creation of POSIX extended regular expressions.
19173         * lib/regex-quote.c (ere_special): Add grouping and alternation
19174         operators.
19175
19176 2011-03-05  Bruno Haible  <bruno@clisp.org>
19177
19178         doc: Improve doc regarding autopoint vs. gnulib.
19179         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19180         disable autopoint while running autoreconf.
19181         Suggested by Ralf Wildenhues.
19182
19183 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19184
19185         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19186         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19187
19188 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19189
19190         parse-duration: remove xalloc.h dependency
19191         * lib/parse-duration.c (parse_period): handle NULL return from
19192         strdup instead of calling xstrdup().
19193         * modules/parse-duration: remove "xalloc" dependency
19194
19195 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19196
19197         bootstrap: honor m4_base when running aclocal
19198         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19199
19200 2011-03-02  Jim Meyering  <meyering@redhat.com>
19201
19202         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19203         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19204         on request from Matt Booth.
19205
19206 2011-03-01  Eric Blake  <eblake@redhat.com>
19207
19208         test-link: work on Hurd
19209         * tests/test-link.h (test_link): Hurd rejects linking directories
19210         with EISDIR instead of the POSIX-mandated EPERM.
19211
19212 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19213
19214         stdio: simplify by moving files to printf-posix, sigpipe
19215         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19216         since this symbol is needed only if printf is replaced.
19217         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19218         Require gl_ASM_SYMBOL_PREFIX.
19219         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19220         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19221         (Depends-on): Add 'raise'.
19222         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19223         * modules/stdio (Files): Remove lib/stdio-write.c,
19224         m4/asm-underscore.m4.
19225         (Depends-on): Remove 'raise'.
19226
19227         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19228         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19229         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19230         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19231
19232 2011-02-28  Bruno Haible  <bruno@clisp.org>
19233
19234         localcharset: Assume ANSI C behaviour of free().
19235         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19236         calling free().
19237         Suggested by Simon Josefsson <simon@josefsson.org>.
19238
19239 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19240             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19241             Bruno Haible  <bruno@clisp.org>  (tiny change)
19242
19243         On Cygwin, use /proc file system instead of win32 API.
19244         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19245         Win32 file names.
19246         (DllMain): Simplify by removing Cygwin specific code.
19247         (find_shared_library_fullname): Use Linux specific implementation also
19248         for Cygwin.
19249         (get_shared_library_fullname): Update accordingly.
19250         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19251         Win32 file names.
19252         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19253         Cygwin specific code.
19254
19255 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19256             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19257
19258         Fix OpenMP flag detection for various Fortran compilers.
19259         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19260         OpenMP-conditional compilation construct, to force compile
19261         failure with missing OpenMP flag.
19262         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19263
19264 2011-02-25  Eric Blake  <eblake@redhat.com>
19265
19266         strstr: expand test coverage
19267         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19268         compilation.
19269         * tests/test-memmem.c (main): Duplicate tests.
19270         * tests/test-strcasestr.c (main): Likewise.
19271         * tests/test-c-strcasestr.c (main): Likewise.
19272
19273 2011-02-25  Jim Meyering  <meyering@redhat.com>
19274
19275         maint.mk: detect missing-NL-at-EOF, too
19276         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19277         it also detects when a file lacks a newline at EOF.
19278         (require_exactly_one_NL_at_EOF_): Renamed from
19279         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19280         since people may well have .x-sc_... file names tied to the
19281         existing name.  Suggested by Eric Blake.
19282
19283 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19284
19285         dirname: move m4/dos.m4 functionality into lib/dosname.h
19286
19287         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19288         extracts symbols from it, puts them into config.h; but it's much
19289         easier to use the symbols directly.  filename.h already does this,
19290         but it disagrees with dos.m4 in some respects.  This patch
19291         introduces a different include file dosname.h that packages up
19292         dos.m4, and then later we can work on merging filename.h and
19293         dosname.h.  Applications that need only the easy-to-configure
19294         symbols should consider including dosname.h rather than dirname.h.
19295         * NEWS: Mention incompatible changes.
19296         * m4/dos.m4: Remove.
19297         * lib/dosname.h, modules/dosname: New files.
19298         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19299         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19300         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19301         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19302         Include dosname.h, not dirname.h.
19303         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19304         Include dosname.h, for definitions of symbols like ISSLASH
19305         that used to be in config.h.
19306         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19307         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19308         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19309         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19310         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19311         * modules/rmdir (Files): Likewise.
19312         * modules/stat (Files): Likewise.
19313         * modules/unlink (Files): Likewise.
19314         * modules/dirname-lgpl (Depends-on): Add dosname.
19315         * modules/lstat (Depends-on): Likewise.
19316         * modules/openat (Depends-on): Likewise.
19317         * modules/rmdir (Depends-on): Likewise.
19318         * modules/savewd (Depends-on): Likewise.
19319         * modules/stat (Depends-on): Likewise.
19320         * modules/unlink (Depends-on): Likewise.
19321         * modules/openat (Depends-on): Remove dirname-lgpl.
19322         * modules/savewd (Depends-on): Likewise.
19323         * tests/test-dirname.c: Do not use removed symbols like
19324         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19325         the remaining symbols, e.g., ISSLASH ('\\').
19326
19327 2011-02-25  Eric Blake  <eblake@redhat.com>
19328
19329         strstr: revert patches that introduced bug and pessimization
19330         * lib/str-two-way.h: Add another reference.
19331         (two_way_short_needle, two_way_long_needle): Revert changes from
19332         2011-02-24; they pessimize search speed.
19333         (critical_factorization): Partially revert changes from
19334         2010-06-22; they violate the requirement that the left half of the
19335         needle be smaller than the period of the needle.
19336
19337 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19338
19339         filenamecat: remove unnecessary dependency on dirname-lgpl
19340         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19341         is no direct dependency, just an indirect one via filenamecat-lgpl.
19342
19343         remove: remove unnecessary use of m4/dos.m4
19344         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19345         * modules/remove (FILES): Remove m4/dos.m4.
19346
19347         * lib/openat-proc.c: Don't include dirname.h; not needed.
19348
19349         backupfile: remove unnecessary use of m4/dos.m4
19350         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19351         of its symbols are used by the backupfile code.  backupfile.c does
19352         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19353         for the rare case of programs that want all their backup file
19354         names to live within 8+3 limits, and dos.m4 doesn't address that.
19355         * modules/backupfile (Files): Remove m4/dos.m4.
19356
19357 2011-02-24  Jim Meyering  <meyering@redhat.com>
19358
19359         strstr: fix a bug whereby strstr would mistakenly return NULL
19360         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19361         in period calculation.
19362         (two_way_long_needle): Likewise.
19363         The original problem was reported by Mike Stump in
19364         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19365         Ralf Wildenhues provided the short needle and haystack.
19366         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19367         Add a more involved test to trigger the bug in two_way_long_needle.
19368
19369 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19370
19371         gnulib-tool: remove use of bold display in help screen
19372         * gnulib-tool (func_usage): Do not use bold display anymore in the
19373         help screen.  That was just meant to be a temporary emphasis for a
19374         backward-incompatible change.
19375
19376 2011-02-23  Bruno Haible  <bruno@clisp.org>
19377
19378         Fix misindentation of preprocessor directives.
19379         * lib/argp-namefrob.h: Reindent preprocessor directives.
19380         * lib/getopt_int.h (struct _getopt_data): Likewise.
19381         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19382         * lib/vasnprintf.c (decode_long_double): Likewise.
19383         * tests/test-argmatch.c: Insert blank lines, for clarity.
19384         * tests/test-exclude.c: Likewise.
19385
19386 2011-02-22  Bruno Haible  <bruno@clisp.org>
19387
19388         ioctl: Fix for MacOS X in 64-bit mode.
19389         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19390         value.
19391         Suggested by Eric Blake.
19392         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19393
19394 2011-02-22  Jim Meyering  <meyering@redhat.com>
19395
19396         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19397         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19398         in lib/.
19399
19400 2011-02-22  Eric Blake  <eblake@redhat.com>
19401
19402         maint: avoid any CDPATH issue
19403         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19404
19405         maint: adjust cpp indentation for my modules, as well
19406         * Makefile (sc_cpp_indent_check): Add my name.
19407         * lib/fbufmode.c: Filter through cppi.
19408         * lib/fpurge.c: Likewise.
19409         * lib/freadable.c: Likewise.
19410         * lib/freading.c: Likewise.
19411         * lib/fwritable.c: Likewise.
19412         * lib/fwriting.c: Likewise.
19413         * lib/sigaction.c: Likewise.
19414
19415 2011-02-22  Jim Meyering  <meyering@redhat.com>
19416
19417         maint: adjust cpp indentation to reflect nesting depth
19418         I.e., in a block of code that begins with an unnested "#if",
19419         put one space between the "#" in column 1 and following token.
19420         For example,
19421         -#include <sys/vfs.h>
19422         +# include <sys/vfs.h>
19423         Do this only in .c files that are part of a module I maintain.
19424         * lib/linkat.c: Filter through cppi.
19425         * lib/nanosleep.c: Likewise.
19426         * lib/openat.c: Likewise.
19427         * lib/openat-die.c: Likewise.
19428         * lib/dup3.c: Likewise.
19429         * lib/fchownat.c: Likewise.
19430         * lib/flock.c: Likewise.
19431         * lib/fsync.c: Likewise.
19432         * lib/fts.c: Likewise.
19433         * lib/getpass.c: Likewise.
19434         * lib/gettimeofday.c: Likewise.
19435         * lib/userspec.c: Likewise.
19436         * Makefile (sc_cpp_indent_check): New rule, to check this.
19437
19438 2011-02-22  Bruno Haible  <bruno@clisp.org>
19439
19440         New module 'wctomb'.
19441         * lib/stdlib.in.h (wctomb): New declaration.
19442         * lib/wctomb.c: New file.
19443         * lib/wctomb-impl.h: New file.
19444         * m4/wctomb.m4: New file.
19445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19446         REPLACE_WCTOMB.
19447         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19448         REPLACE_WCTOMB.
19449         * modules/wctomb: New file.
19450         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19451         * doc/posix-functions/wctomb.texi: Mention the new module.
19452         * modules/wctob (Depends-on): Add wctomb.
19453
19454 2011-02-22  Bruno Haible  <bruno@clisp.org>
19455
19456         New module 'mbtowc'.
19457         * lib/stdlib.in.h (mbtowc): New declaration.
19458         * lib/mbtowc.c: New file.
19459         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19460         * m4/mbtowc.m4: New file.
19461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19462         REPLACE_MBTOWC.
19463         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19464         REPLACE_MBTOWC.
19465         * modules/mbtowc: New file.
19466         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19467         * doc/posix-functions/mbtowc.texi: Mention the new module.
19468         * modules/btowc (Depends-on): Add mbtowc.
19469
19470 2011-02-22  Bruno Haible  <bruno@clisp.org>
19471
19472         wcrtomb: Add more tests for native Windows platforms.
19473         * tests/test-wcrtomb-w32-1.sh: New file.
19474         * tests/test-wcrtomb-w32-2.sh: New file.
19475         * tests/test-wcrtomb-w32-3.sh: New file.
19476         * tests/test-wcrtomb-w32-4.sh: New file.
19477         * tests/test-wcrtomb-w32-5.sh: New file.
19478         * tests/test-wcrtomb-w32.c: New file.
19479         * modules/wcrtomb-tests (Files): Add them.
19480         (Makefile.am): Arrange to run these tests.
19481         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19482         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19483
19484 2011-02-20  Bruno Haible  <bruno@clisp.org>
19485
19486         wcrtomb: Enhance test.
19487         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19488
19489 2011-02-20  Bruno Haible  <bruno@clisp.org>
19490
19491         mbrtowc: Tiny optimization.
19492         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19493
19494 2011-02-20  Jim Meyering  <meyering@redhat.com>
19495
19496         test-exclude.c: remove unmatched #endif
19497         * tests/test-exclude.c: Remove stray #endif, left over from
19498         the change of a week ago.
19499
19500 2011-02-19  Jim Meyering  <meyering@redhat.com>
19501
19502         git-version-gen: skip "-dirty" check when appropriate
19503         * build-aux/git-version-gen: Don't run any git commands when the
19504         version string comes from .tarball-version.  Prior to this, we
19505         would run git update-index --refresh even from a just-unpacked
19506         tarball directory, and that could affect a .git/ directory in a
19507         parent of the build directory.  Reported by Mike Frysinger.
19508
19509 2011-02-19  Bruno Haible  <bruno@clisp.org>
19510
19511         unictype/property-byname: Reduce the size of the 'data' segment.
19512         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19513
19514 2011-02-19  Bruno Haible  <bruno@clisp.org>
19515
19516         unictype/scripts: Reduce the size of the 'data' segment.
19517         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19518         '%pic'.
19519         * lib/unictype/scripts_byname.gperf: Regenerated.
19520
19521 2011-02-19  Bruno Haible  <bruno@clisp.org>
19522
19523         stdint: Update documentation.
19524         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19525
19526 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19527
19528         stdint: omit redundant check for wchar.h
19529         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19530         always tests whether wchar.h exists, so remove the now-redundant test.
19531
19532 2011-02-18  Bruno Haible  <bruno@clisp.org>
19533
19534         stdint: Cut dependency to module 'wchar'.
19535         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19536         include the necessary prerequisites.
19537         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19538         * modules/stdint (Depends-on): Remove wchar.
19539         (Makefile.am): Substitute HAVE_WCHAR_H.
19540         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19541
19542 2011-02-18  Eric Blake  <eblake@redhat.com>
19543
19544         longlong: skip, rather than fail, on cross-compilation
19545         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19546         when cross-compiling; regression from 2011-02-16.
19547
19548 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19549
19550         * NEWS: Mention 2011-02-08 change to stdlib.
19551
19552 2011-02-17  Bruno Haible  <bruno@clisp.org>
19553
19554         getloadavg: Add comments about platforms.
19555         * m4/getloadavg.m4: Add comment.
19556         * lib/getloadavg.c: Likewise.
19557
19558 2011-02-17  Bruno Haible  <bruno@clisp.org>
19559
19560         getloadavg: Fix link error on Solaris 2.6.
19561         * modules/getloadavg (Link): New section.
19562         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19563         linking test-getloadavg.
19564         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19565         getloadavg.
19566
19567 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19568
19569         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19570         It was 'int', but this doesn't match the IRIX 6.5 manual.
19571         Suggested by Bruno Haible in
19572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19573
19574 2011-02-17  Bruno Haible  <bruno@clisp.org>
19575
19576         havelib: Fix comments.
19577         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19578         change.
19579
19580 2011-02-17  Bruno Haible  <bruno@clisp.org>
19581
19582         havelib: Update config.rpath.
19583         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19584
19585 2011-02-17  Bruno Haible  <bruno@clisp.org>
19586
19587         getloadavg test: Add some plausibility checks.
19588         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19589         is improbable.
19590
19591 2011-02-16  Eric Blake  <eblake@redhat.com>
19592
19593         maintainer-makefile: make syntax-check a no-op from tarballs
19594         * top/maint.mk (no-vc-detected): New rule.
19595         (local-checks-available): Use it to avoid hanging if someone tries
19596         'make syntax-check' from a tarball.  Also append to any non-syntax
19597         checks already defined in cfg.mk.
19598
19599 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19600
19601         longlong: tune, particularly for common case of c99
19602
19603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19604         or running anything if c99, or if unsigned long long int does not
19605         work.  In either case, we know the answer without further tests.
19606         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19607         it at most once, and use its results for both long long int and
19608         unsigned long long int.  This is more likely to be efficient in
19609         the common case where the program wants to check for both long
19610         long int and unsigned long long int.
19611         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19612         since the answer is already known.
19613
19614 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19615
19616         getloadavg: set errno
19617         * lib/getloadavg.c: Set errno when returning -1.  If no other
19618         error number looks appropriate, set it to ENOSYS if the getloadavg
19619         looks like it can't possibly ever work, ENOTSUP otherwise.
19620         Suggested by Bruno Haible in
19621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19622
19623         getloadavg: trim unused parts and speed up 'configure'
19624         * NEWS: Document this.
19625         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19626         always compiled if getloadavg is absent.
19627         Move test code to ...
19628         * tests/test-getloadavg.c: New file, containing previous
19629         contents of test from lib/getloadavg.c.  It also contains
19630         suggestions by Bruno Haible in
19631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19632         * modules/getloadavg-tests: New file.
19633         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19634         Do tests in the same order as they're needed for getloadavg.c.
19635         Omit setgid-related tests that generate symbols KMEM_GROUP,
19636         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19637         Do only the tests that are needed to see whether the system has
19638         getloadavg, moving the other tests into ...
19639         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19640         NLIST_NAME_UNION; nobody should be using it.  Do not define
19641         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19642         relevant, as the user of this module shouldn't care how getloadavg
19643         is implemented.
19644
19645         getloadavg: omit unused var
19646         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19647
19648 2011-02-15  Jim Meyering  <meyering@redhat.com>
19649
19650         doc: update users.txt
19651         * users.txt: Update iwhd's URL.
19652
19653 2011-02-13  Bruno Haible  <bruno@clisp.org>
19654
19655         Consistent macro naming for macros that use GCC __attribute__.
19656         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19657         _ATTRIBUTE_NONNULL_.
19658         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19659         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19660         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19661         ATTRIBUTE_DEPRECATED.
19662         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19663         ATTRIBUTE_NORETURN.
19664         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19665         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19666         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19667         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19668         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19669         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19670         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19671         ATTRIBUTE_SENTINEL.
19672         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19673         ATTRIBUTE_RETURN_CHECK.
19674         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19675         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19676         ATTRIBUTE_NORETURN.
19677         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19678         Reported by Paul Eggert.
19679
19680 2011-02-13  Bruno Haible  <bruno@clisp.org>
19681
19682         Don't interfere with a program's definition of __attribute__.
19683         * lib/argp.h (__attribute__): Remove definition.
19684         (_GL_ATTRIBUTE_FORMAT): New macro.
19685         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19686         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19687         (_GL_ATTRIBUTE_FORMAT): New macro.
19688         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19689         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19690         GCC 3 or newer.
19691         * lib/error.h (__attribute__): Remove definition.
19692         (_GL_ATTRIBUTE_FORMAT): New macro.
19693         (error, error_at_line): Use it.
19694         * lib/hash.h (__attribute__): Remove definition.
19695         (ATTRIBUTE_WUR): Update definition. Define always.
19696         * lib/openat.h (__attribute__): Remove definition.
19697         (ATTRIBUTE_NORETURN): Update definition. Define always.
19698         * lib/sigpipe-die.h (__attribute__): Remove definition.
19699         (ATTRIBUTE_NORETURN): Update definition. Define always.
19700         * lib/vasnprintf.h (__attribute__): Remove definition.
19701         (_GL_ATTRIBUTE_FORMAT): New macro.
19702         (asnprintf, vasnprintf): Use it.
19703         * lib/xalloc.h (__attribute__): Remove definition.
19704         (ATTRIBUTE_NORETURN): Update definition. Define always.
19705         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19706         * lib/xmemdup0.h (__attribute__): Remove definition.
19707         (ATTRIBUTE_NORETURN): Update definition. Define always.
19708         * lib/xprintf.h (__attribute__): Remove definition.
19709         (_GL_ATTRIBUTE_FORMAT): New macro.
19710         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19711         * lib/xstrtol.h (__attribute__): Remove definition.
19712         (ATTRIBUTE_NORETURN): Update definition. Define always.
19713         * lib/xvasprintf.h (__attribute__): Remove definition.
19714         (_GL_ATTRIBUTE_FORMAT): New macro.
19715         (xasprintf, xvasprintf): Use it.
19716         * tests/test-argmatch.c (__attribute__): Remove definition.
19717         (ATTRIBUTE_NORETURN): Update definition. Define always.
19718         * tests/test-exclude.c (__attribute__): Remove definition.
19719         (ATTRIBUTE_NORETURN): Update definition. Define always.
19720         Reported by Paul Eggert.
19721
19722 2011-02-13  Bruno Haible  <bruno@clisp.org>
19723
19724         mbrtowc: Add more tests for native Windows platforms.
19725         * tests/test-mbrtowc-w32-1.sh: New file.
19726         * tests/test-mbrtowc-w32-2.sh: New file.
19727         * tests/test-mbrtowc-w32-3.sh: New file.
19728         * tests/test-mbrtowc-w32-4.sh: New file.
19729         * tests/test-mbrtowc-w32-5.sh: New file.
19730         * tests/test-mbrtowc-w32.c: New file.
19731         * modules/mbrtowc-tests (Files): Add them.
19732         (Makefile.am): Arrange to run these tests.
19733         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19734         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19735
19736 2011-02-13  Bruno Haible  <bruno@clisp.org>
19737
19738         mbrtowc: Work around native Windows bug.
19739         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19740         guess when no suitable locale for testing was found.
19741         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19742
19743 2011-02-13  Bruno Haible  <bruno@clisp.org>
19744
19745         mbsinit: Work around mingw bug.
19746         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19747         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19748         Windows.
19749         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19750
19751 2011-02-13  Bruno Haible  <bruno@clisp.org>
19752
19753         mbsinit: Don't crash for a NULL argument.
19754         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19755         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19756
19757 2011-02-13  Bruno Haible  <bruno@clisp.org>
19758
19759         Don't interfere with a program's definition of __attribute__.
19760         * lib/stdio.in.h (__attribute__): Remove definition.
19761         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19762         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19763         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19764         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19765         * lib/string.in.h (__attribute__): Remove definition.
19766         Reported by Paul Eggert.
19767
19768 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19769
19770         stdlib: don't get in the way of non-GCC __attribute__
19771         See thread starting at
19772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19773         Revert previous stdlib change, installing the following instead:
19774         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19775         to get in the way of a non-GCC compiler that supports __attribute__.
19776         (_GL_ATTRIBUTE_RETURN): New macro.
19777         (_Exit): Use it instead of __attribute__.
19778
19779 2011-02-12  Bruno Haible  <bruno@clisp.org>
19780
19781         quotearg test: Avoid test failure on mingw.
19782         * tests/test-quotearg.sh: Convert the locale identifier from native
19783         Windows syntax to Unix syntax.
19784
19785 2011-02-12  Bruno Haible  <bruno@clisp.org>
19786
19787         setlocale: Prefer gnulib's override over libintl's override.
19788         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19789         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19790         GNULIB_defined_setlocale is set.
19791
19792 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19793
19794         stdlib: support non-GCC __attribute__
19795
19796         Fix a serious and tricky problem encountered when attempting to
19797         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19798         5.5, but it crashed due to memory corruption on Solaris 10 with
19799         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19800         bits that are otherwise zero.  This tagging is optional inside
19801         Emacs but is preferred and is used when __attribute__ ((__aligned
19802         (8))) works, as it does with both recent-enough GCC and with Sun C
19803         5.11.  However, Sun C 5.11 is not GCC and does not #define
19804         __GNUC__ and __GNUC_MINOR__.
19805
19806         When I added the getloadavg module to Emacs, it brought in
19807         stdlib.in.h, which contained this fragment:
19808
19809            #ifndef __attribute__
19810            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19811            #  define __attribute__(Spec)   /* empty */
19812            # endif
19813            #endif
19814
19815         When files that include <stdlib.h> were compiled with Sun C 5.11,
19816         the above code disabled __attribute__ ((__aligned (8))), which
19817         caused variables to not be properly aligned, which eventually led
19818         to the pointer corruption mentioned above.  (This was a bit hard
19819         to diagnose, unfortunately.)
19820
19821         Several "#define __attribute__(X) /* empty */" code snippets need
19822         to be eradicated from Gnulib to work with non-GCC compilers that
19823         support __attribute__.  The Autoconf way to do this is to test for
19824         each kind of attribute that we want support for, and selectively
19825         enable that in source code.
19826
19827         Fix this problem just for stdlib.h, by adding a test for the
19828         __noreturn__ attribute, and change stdlib.in.h to use that test
19829         when needed.  This technique can be easily generalized to the
19830         other *.in.h files and attributes, and a similar technique can be
19831         used for *.h and *.c files.  This patch is enough to solve the
19832         problem for Emacs + getloadavg, and I thought I'd publish it for
19833         feedback before undertaking further, similar fixes in other
19834         modules.
19835
19836         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19837         because it's not needed for stdlib.h.  It merely substitutes the
19838         value directly into stdlib.h.  We may well need to #define it, or
19839         similar symbols, for other modules, but it's nice to also have an
19840         option to not #define it for applications like Emacs that do not
19841         need it.
19842
19843         * lib/stdlib.in.h (__attribute__): Do not #define.
19844         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19845         be defined only if the _Exit module is also used.
19846         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19848         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19849         platforms.
19850         * modules/_Exit (Files): Add m4/attribute.m4.
19851         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19852         * m4/attribute.m4: New file.
19853
19854 2011-02-12  Bruno Haible  <bruno@clisp.org>
19855
19856         wcsrtombs: Work around bug on native Windows.
19857         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19858         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19859         instead of len.
19860         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19861
19862 2011-02-12  Bruno Haible  <bruno@clisp.org>
19863
19864         mbsrtowcs: Work around bug on native Windows.
19865         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19866         against mingw bug.
19867         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19868
19869 2011-02-12  Bruno Haible  <bruno@clisp.org>
19870
19871         Avoid setlocale bugs in tests.
19872         * modules/btowc (Dependencies): Add setlocale.
19873         * modules/c-strcase (Dependencies): Likewise.
19874         * modules/mbmemcasecmp (Dependencies): Likewise.
19875         * modules/mbmemcasecoll (Dependencies): Likewise.
19876         * modules/mbrtowc (Dependencies): Likewise.
19877         * modules/mbscasecmp (Dependencies): Likewise.
19878         * modules/mbscasestr (Dependencies): Likewise.
19879         * modules/mbschr (Dependencies): Likewise.
19880         * modules/mbscspn (Dependencies): Likewise.
19881         * modules/mbsinit (Dependencies): Likewise.
19882         * modules/mbsncasecmp (Dependencies): Likewise.
19883         * modules/mbsnrtowcs (Dependencies): Likewise.
19884         * modules/mbspbrk (Dependencies): Likewise.
19885         * modules/mbspcasecmp (Dependencies): Likewise.
19886         * modules/mbsrchr (Dependencies): Likewise.
19887         * modules/mbsrtowcs (Dependencies): Likewise.
19888         * modules/mbsspn (Dependencies): Likewise.
19889         * modules/mbsstr (Dependencies): Likewise.
19890         * modules/nl_langinfo (Dependencies): Likewise.
19891         * modules/quotearg (Dependencies): Likewise.
19892         * modules/unicase/locale-language (Dependencies): Likewise.
19893         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19894         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19895         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19896         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19897         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19898         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19899         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19900         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19901         * modules/vasnprintf-posix (Dependencies): Likewise.
19902         * modules/wcrtomb (Dependencies): Likewise.
19903         * modules/wcsnrtombs (Dependencies): Likewise.
19904         * modules/wcsrtombs (Dependencies): Likewise.
19905
19906 2011-02-12  Bruno Haible  <bruno@clisp.org>
19907
19908         setlocale: Workaround native Windows bug.
19909         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19910         succeeds but sets LC_CTYPE to "C", report a failure.
19911         * tests/test-setlocale2.sh: New file.
19912         * tests/test-setlocale2.c: New file.
19913         * modules/setlocale-tests (Files): Add the new files.
19914         (Makefile.am): Enable test-setlocale2.sh test.
19915         * doc/posix-functions/setlocale.texi: Mention workaround.
19916
19917 2011-02-11  Bruno Haible  <bruno@clisp.org>
19918
19919         Tests for module 'setlocale'.
19920         * modules/setlocale-tests: New file.
19921         * tests/test-setlocale1.sh: New file.
19922         * tests/test-setlocale1.c: New file.
19923
19924         New module 'setlocale'.
19925         * lib/locale.in.h (setlocale): New declaration.
19926         * lib/setlocale.c: New file, based on
19927         gettext/gettext-runtime/intl/setlocale.c.
19928         * m4/setlocale.m4: New file.
19929         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19930         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19931         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19932         REPLACE_SETLOCALE.
19933         * modules/setlocale: New file.
19934         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19935         * doc/posix-functions/setlocale.texi: Mention the new module.
19936
19937 2011-02-11  Bruno Haible  <bruno@clisp.org>
19938
19939         Prepare for locale dependent tests on mingw.
19940         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19941         because it has the wrong locale encoding.
19942         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19943         French_France.1252 instead of "fr".
19944         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19945         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19946         because it has the wrong locale encoding.
19947         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19948         native Windows, try Turkish_Turkey.65001.
19949         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19950         Chinese_China.54936.
19951
19952         Prepare for locale dependent tests on mingw.
19953         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19954         differently.
19955         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19956         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19957         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19958         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19959
19960 2011-02-11  Eric Blake  <eblake@redhat.com>
19961
19962         strptime: avoid compiler warnings
19963         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19964         compiler warnings about dead code.
19965         Reported by Daniel P. Berrange.
19966
19967 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19968
19969         doc: update users.txt
19970         * users.txt: Add rcs.
19971
19972 2011-02-10  John W. Eaton  <jwe@gnu.org>
19973
19974         doc: update users.txt
19975         * users.txt: Add octave.
19976
19977 2011-02-10  Jim Meyering  <meyering@redhat.com>
19978
19979         doc: update users.txt
19980         * users.txt: Add iwhd.
19981
19982 2011-02-09  Bruno Haible  <bruno@clisp.org>
19983
19984         gnulib-tool: Make copyright notice adjustment more robust.
19985         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19986         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19987         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19988         License".
19989         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19990
19991 2011-02-06  Bruno Haible  <bruno@clisp.org>
19992
19993         New module 'towctrans'.
19994         * modules/towctrans: New file.
19995         * lib/wctype.in.h (towctrans): New declaration.
19996         * lib/towctrans.c: New file.
19997         * lib/towctrans-impl.h: New file.
19998         * m4/towctrans.m4: New file.
19999         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20000         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20001         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20002         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20003         * doc/posix-functions/towctrans.texi: Mention the new module.
20004
20005 2011-02-06  Bruno Haible  <bruno@clisp.org>
20006
20007         New module 'wctrans'.
20008         * modules/wctrans: New file.
20009         * lib/wctype.in.h (wctrans): New declaration.
20010         * lib/wctrans.c: New file.
20011         * lib/wctrans-impl.h: New file.
20012         * m4/wctrans.m4: New file.
20013         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20014         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20015         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20016         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20017         * doc/posix-functions/wctrans.texi: Mention the new module.
20018
20019 2011-02-06  Bruno Haible  <bruno@clisp.org>
20020
20021         New module 'iswctype'.
20022         * modules/iswctype: New file.
20023         * lib/wctype.in.h (iswctype): New declaration.
20024         * lib/iswctype.c: New file.
20025         * lib/iswctype-impl.h: New file.
20026         * m4/iswctype.m4: New file.
20027         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20028         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20029         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20030         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20031         * doc/posix-functions/iswctype.texi: Mention the new module and the
20032         HP-UX 11.00 problem.
20033
20034 2011-02-06  Bruno Haible  <bruno@clisp.org>
20035
20036         New module 'wctype'.
20037         * modules/wctype: Change to represent the wctype() substitute.
20038         * lib/wctype.in.h (wctype): New declaration.
20039         * lib/wctype.c: New file.
20040         * lib/wctype-impl.h: New file.
20041         * m4/wctype.m4: New file.
20042         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20043         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20044         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20045         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20046         * doc/posix-functions/wctype.texi: Mention the new module and the
20047         HP-UX 11.00 problem.
20048
20049 2011-02-06  Bruno Haible  <bruno@clisp.org>
20050
20051         wctype-h: Ensure wctype_t and wctrans_t are defined.
20052         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20053         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20054         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20055         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20056         HAVE_WCTRANS_T.
20057         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20058
20059 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20060
20061         flock: fix license typo
20062
20063         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20064         omitted.
20065
20066 2011-02-08  Bruno Haible  <bruno@clisp.org>
20067
20068         Split large sed scripts, for HP-UX sed.
20069         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20070         to avoid HP-UX limit of 99 commands, in the near future.
20071         * modules/stdlib (Makefile.am): Likewise.
20072         * modules/unistd (Makefile.am): Likewise.
20073         * modules/wchar (Makefile.am): Likewise.
20074         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20075         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20076         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20077
20078 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20079             Bruno Haible  <bruno@clisp.org>
20080
20081         stdlib: improve random_r modularization
20082         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20083         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20084         you also need the random_r module to get this material right.
20085         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20086         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20087         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20088
20089 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20090
20091         stdlib: don't depend on stdint
20092         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20093         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20094         be independent of whether stdint.h is needed.
20095         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20096         here, instead of ...
20097         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20098         struct random_data should be using the random_r module, not just
20099         the stdlib module (which wouldn't make sense: what package needs
20100         just struct random_data without also needing random_r?).
20101         * modules/stdlib (Depends-on): Remove stdint.
20102
20103         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20104         See the thread rooted at
20105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20106         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20107         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20108         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20109         __VMS)); previously it was always included (via fcntl--.h).
20110         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20111         hand; this is good enough for load averages.  Also, do not use
20112         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20113         flags directly if available and don't bother otherwise.  (Packages
20114         that need the extra reliability should use the modules that define
20115         these flags on older platforms that lack them.)
20116         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20117         fcntl-safer.
20118
20119 2011-02-08  Jim Meyering  <meyering@redhat.com>
20120
20121         di-set.h, ino-map.h: add multiple-inclusion guard
20122         Technically, the guard is required only for ino-map.h, due to its
20123         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20124         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20125         * lib/ino-map.h: Likewise.
20126
20127 2011-02-06  Bruno Haible  <bruno@clisp.org>
20128
20129         iswblank: Ensure declaration on glibc systems.
20130         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20131         * modules/iswblank (Dependencies): Add 'extensions'.
20132         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20133
20134 2011-02-06  Bruno Haible  <bruno@clisp.org>
20135
20136         New module 'iswblank'.
20137         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20138         * modules/iswblank: New file.
20139         * modules/wctype-h (Files): Remove lib/iswblank.c.
20140         (Makefile.am): Substitute GNULIB_ISWBLANK.
20141         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20142         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20143         (gl_WCTYPE_H_DEFAULTS): New macro.
20144         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20145         * modules/iswblank-tests: New file.
20146         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20147         * tests/test-wctype-h.c (main): Remove iswblank tests.
20148         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20149         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20150         of 'wctype-h'.
20151         * NEWS: Mention the change.
20152         * modules/mbchar (Depends-on): Add iswblank.
20153
20154 2011-02-08  Bruno Haible  <bruno@clisp.org>
20155
20156         di-set tests: Refactor.
20157         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20158         unnecessary includes.
20159         (ASSERT): Remove macro.
20160         (main): Make C90 compliant by avoiding variable declaration after
20161         statement.
20162         * modules/di-set-tests (Files): Add tests/macros.h.
20163
20164 2011-02-08  Bruno Haible  <bruno@clisp.org>
20165
20166         ino-map tests: Refactor.
20167         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20168         unnecessary includes.
20169         (ASSERT): Remove macro.
20170         (main): Make C90 compliant by avoiding variable declaration after
20171         statement.
20172         * modules/ino-map-tests (Files): Add tests/macros.h.
20173
20174 2011-02-08  Jim Meyering  <meyering@redhat.com>
20175
20176         di-set: add "const" to a cast
20177         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20178         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20179
20180 2011-02-06  Bruno Haible  <bruno@clisp.org>
20181
20182         Rename module 'wctype' to 'wctype-h'.
20183         * modules/wctype-h: Renamed from modules/wctype.
20184         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20185         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20186         (Files, Depends-on, Makefile.am): Update.
20187         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20188         (Files, Makefile.am): Update.
20189         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20190         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20191         * doc/posix-headers/wctype.texi: Update.
20192         * doc/posix-functions/iswalnum.texi: Update.
20193         * doc/posix-functions/iswalpha.texi: Update.
20194         * doc/posix-functions/iswblank.texi: Update.
20195         * doc/posix-functions/iswcntrl.texi: Update.
20196         * doc/posix-functions/iswdigit.texi: Update.
20197         * doc/posix-functions/iswgraph.texi: Update.
20198         * doc/posix-functions/iswlower.texi: Update.
20199         * doc/posix-functions/iswprint.texi: Update.
20200         * doc/posix-functions/iswpunct.texi: Update.
20201         * doc/posix-functions/iswspace.texi: Update.
20202         * doc/posix-functions/iswupper.texi: Update.
20203         * doc/posix-functions/iswxdigit.texi: Update.
20204         * doc/posix-functions/towlower.texi: Update.
20205         * doc/posix-functions/towupper.texi: Update.
20206         * NEWS: Mention the change.
20207         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20208         * modules/mbchar (Dependencies): Likewise.
20209         * modules/mbswidth (Dependencies): Likewise.
20210         * modules/quotearg (Dependencies): Likewise.
20211         * modules/regex (Dependencies): Likewise.
20212         * modules/wcscasecmp (Dependencies): Likewise.
20213         * modules/wcsncasecmp (Dependencies): Likewise.
20214         * modules/wcwidth (Dependencies): Likewise.
20215
20216 2011-02-06  Bruno Haible  <bruno@clisp.org>
20217
20218         New module 'wcswidth'.
20219         * modules/wcswidth: New file.
20220         * lib/wchar.in.h (wcswidth): New declaration.
20221         * lib/wcswidth.c: New file.
20222         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20223         * m4/wcswidth.m4: New file.
20224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20226         REPLACE_WCSWIDTH.
20227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20228         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20229         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20230         * doc/posix-functions/wcswidth.texi: Mention the new module.
20231
20232 2011-02-06  Bruno Haible  <bruno@clisp.org>
20233
20234         New module 'wcstok'.
20235         * modules/wcstok: New file.
20236         * lib/wchar.in.h (wcstok): New declaration.
20237         * lib/wcstok.c: New file.
20238         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20239         * m4/wcstok.m4: New file.
20240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20243         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20244         * doc/posix-functions/wcstok.texi: Mention the new module.
20245
20246 2011-02-06  Bruno Haible  <bruno@clisp.org>
20247
20248         New module 'wcsstr'.
20249         * modules/wcsstr: New file.
20250         * lib/wchar.in.h (wcsstr): New declaration.
20251         * lib/wcsstr.c: New file.
20252         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20253         * m4/wcsstr.m4: New file.
20254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20256         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20257         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20258         * doc/posix-functions/wcsstr.texi: Mention the new module.
20259
20260 2011-02-06  Bruno Haible  <bruno@clisp.org>
20261
20262         New module 'wcspbrk'.
20263         * modules/wcspbrk: New file.
20264         * lib/wchar.in.h (wcspbrk): New declaration.
20265         * lib/wcspbrk.c: New file.
20266         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20267         * m4/wcspbrk.m4: New file.
20268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20270         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20271         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20272         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20273
20274 2011-02-06  Bruno Haible  <bruno@clisp.org>
20275
20276         New module 'wcsspn'.
20277         * modules/wcsspn: New file.
20278         * lib/wchar.in.h (wcsspn): New declaration.
20279         * lib/wcsspn.c: New file.
20280         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20281         * m4/wcsspn.m4: New file.
20282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20285         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20286         * doc/posix-functions/wcsspn.texi: Mention the new module.
20287
20288 2011-02-06  Bruno Haible  <bruno@clisp.org>
20289
20290         New module 'wcscspn'.
20291         * modules/wcscspn: New file.
20292         * lib/wchar.in.h (wcscspn): New declaration.
20293         * lib/wcscspn.c: New file.
20294         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20295         * m4/wcscspn.m4: New file.
20296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20298         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20299         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20300         * doc/posix-functions/wcscspn.texi: Mention the new module.
20301
20302 2011-02-06  Bruno Haible  <bruno@clisp.org>
20303
20304         New module 'wcsrchr'.
20305         * modules/wcsrchr: New file.
20306         * lib/wchar.in.h (wcsrchr): New declaration.
20307         * lib/wcsrchr.c: New file.
20308         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20309         * m4/wcsrchr.m4: New file.
20310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20312         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20313         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20314         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20315
20316 2011-02-06  Bruno Haible  <bruno@clisp.org>
20317
20318         New module 'wcschr'.
20319         * modules/wcschr: New file.
20320         * lib/wchar.in.h (wcschr): New declaration.
20321         * lib/wcschr.c: New file.
20322         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20323         * m4/wcschr.m4: New file.
20324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20326         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20327         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20328         * doc/posix-functions/wcschr.texi: Mention the new module.
20329
20330 2011-02-06  Bruno Haible  <bruno@clisp.org>
20331
20332         New module 'wcsdup'.
20333         * modules/wcsdup: New file.
20334         * lib/wchar.in.h (wcsdup): New declaration.
20335         * lib/wcsdup.c: New file.
20336         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20337         * m4/wcsdup.m4: New file.
20338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20341         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20342         * doc/posix-functions/wcsdup.texi: Mention the new module.
20343
20344 2011-02-06  Bruno Haible  <bruno@clisp.org>
20345
20346         New module 'wcsxfrm'.
20347         * modules/wcsxfrm: New file.
20348         * lib/wchar.in.h (wcsxfrm): New declaration.
20349         * lib/wcsxfrm.c: New file.
20350         * lib/wcsxfrm-impl.h: New file.
20351         * m4/wcsxfrm.m4: New file.
20352         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20353         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20355         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20356         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20357
20358 2011-02-06  Bruno Haible  <bruno@clisp.org>
20359
20360         New module 'wcscoll'.
20361         * modules/wcscoll: New file.
20362         * lib/wchar.in.h (wcscoll): New declaration.
20363         * lib/wcscoll.c: New file.
20364         * lib/wcscoll-impl.h: New file.
20365         * m4/wcscoll.m4: New file.
20366         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20367         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20369         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20370         * doc/posix-functions/wcscoll.texi: Mention the new module.
20371
20372 2011-02-06  Bruno Haible  <bruno@clisp.org>
20373
20374         New module 'wcsncasecmp'.
20375         * modules/wcsncasecmp: New file.
20376         * lib/wchar.in.h (wcsncasecmp): New declaration.
20377         * lib/wcsncasecmp.c: New file.
20378         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20379         * m4/wcsncasecmp.m4: New file.
20380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20383         HAVE_WCSNCASECMP.
20384         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20385         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20386
20387 2011-02-06  Bruno Haible  <bruno@clisp.org>
20388
20389         New module 'wcscasecmp'.
20390         * modules/wcscasecmp: New file.
20391         * lib/wchar.in.h (wcscasecmp): New declaration.
20392         * lib/wcscasecmp.c: New file.
20393         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20394         * m4/wcscasecmp.m4: New file.
20395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20398         HAVE_WCSCASECMP.
20399         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20400         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20401
20402 2011-02-05  Bruno Haible  <bruno@clisp.org>
20403
20404         New module 'wcsncmp'.
20405         * modules/wcsncmp: New file.
20406         * lib/wchar.in.h (wcsncmp): New declaration.
20407         * lib/wcsncmp.c: New file.
20408         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20409         * m4/wcsncmp.m4: New file.
20410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20413         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20414         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20415
20416 2011-02-05  Bruno Haible  <bruno@clisp.org>
20417
20418         New module 'wcscmp'.
20419         * modules/wcscmp: New file.
20420         * lib/wchar.in.h (wcscmp): New declaration.
20421         * lib/wcscmp.c: New file.
20422         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20423         * m4/wcscmp.m4: New file.
20424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20427         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20428         * doc/posix-functions/wcscmp.texi: Mention the new module.
20429
20430 2011-02-05  Bruno Haible  <bruno@clisp.org>
20431
20432         New module 'wcsncat'.
20433         * modules/wcsncat: New file.
20434         * lib/wchar.in.h (wcsncat): New declaration.
20435         * lib/wcsncat.c: New file.
20436         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20437         * m4/wcsncat.m4: New file.
20438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20441         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20442         * doc/posix-functions/wcsncat.texi: Mention the new module.
20443
20444 2011-02-05  Bruno Haible  <bruno@clisp.org>
20445
20446         New module 'wcscat'.
20447         * modules/wcscat: New file.
20448         * lib/wchar.in.h (wcscat): New declaration.
20449         * lib/wcscat.c: New file.
20450         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20451         * m4/wcscat.m4: New file.
20452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20455         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20456         * doc/posix-functions/wcscat.texi: Mention the new module.
20457
20458 2011-02-05  Bruno Haible  <bruno@clisp.org>
20459
20460         New module 'wcpncpy'.
20461         * modules/wcpncpy: New file.
20462         * lib/wchar.in.h (wcpncpy): New declaration.
20463         * lib/wcpncpy.c: New file.
20464         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20465         * m4/wcpncpy.m4: New file.
20466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20468         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20469         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20470         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20471
20472 2011-02-05  Bruno Haible  <bruno@clisp.org>
20473
20474         New module 'wcsncpy'.
20475         * modules/wcsncpy: New file.
20476         * lib/wchar.in.h (wcsncpy): New declaration.
20477         * lib/wcsncpy.c: New file.
20478         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20479         * m4/wcsncpy.m4: New file.
20480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20483         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20484         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20485
20486 2011-02-05  Bruno Haible  <bruno@clisp.org>
20487
20488         New module 'wcpcpy'.
20489         * modules/wcpcpy: New file.
20490         * lib/wchar.in.h (wcpcpy): New declaration.
20491         * lib/wcpcpy.c: New file.
20492         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20493         * m4/wcpcpy.m4: New file.
20494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20496         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20497         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20498         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20499
20500 2011-02-05  Bruno Haible  <bruno@clisp.org>
20501
20502         New module 'wcscpy'.
20503         * modules/wcscpy: New file.
20504         * lib/wchar.in.h (wcscpy): New declaration.
20505         * lib/wcscpy.c: New file.
20506         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20507         * m4/wcscpy.m4: New file.
20508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20511         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20512         * doc/posix-functions/wcscpy.texi: Mention the new module.
20513
20514 2011-02-05  Bruno Haible  <bruno@clisp.org>
20515
20516         New module 'wcsnlen'.
20517         * modules/wcsnlen: New file.
20518         * lib/wchar.in.h (wcsnlen): New declaration.
20519         * lib/wcsnlen.c: New file.
20520         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20521         * m4/wcsnlen.m4: New file.
20522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20525         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20526         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20527
20528 2011-02-05  Bruno Haible  <bruno@clisp.org>
20529
20530         New module 'wcslen'.
20531         * modules/wcslen: New file.
20532         * lib/wchar.in.h (wcslen): New declaration.
20533         * lib/wcslen.c: New file.
20534         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20535         * m4/wcslen.m4: New file.
20536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20539         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20540         * doc/posix-functions/wcslen.texi: Mention the new module.
20541
20542 2011-02-05  Bruno Haible  <bruno@clisp.org>
20543
20544         New module 'wmemset'.
20545         * modules/wmemset: New file.
20546         * lib/wchar.in.h (wmemset): New declaration.
20547         * lib/wmemset.c: New file.
20548         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20549         * m4/wmemset.m4: New file.
20550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20552         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20553         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20554         * doc/posix-functions/wmemset.texi: Mention the new module.
20555
20556 2011-02-05  Bruno Haible  <bruno@clisp.org>
20557
20558         New module 'wmemmove'.
20559         * modules/wmemmove: New file.
20560         * lib/wchar.in.h (wmemmove): New declaration.
20561         * lib/wmemmove.c: New file.
20562         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20563         * m4/wmemmove.m4: New file.
20564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20566         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20567         HAVE_WMEMMOVE.
20568         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20569         * doc/posix-functions/wmemmove.texi: Mention the new module.
20570
20571 2011-02-05  Bruno Haible  <bruno@clisp.org>
20572
20573         New module 'wmemcpy'.
20574         * modules/wmemcpy: New file.
20575         * lib/wchar.in.h (wmemcpy): New declaration.
20576         * lib/wmemcpy.c: New file.
20577         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20578         * m4/wmemcpy.m4: New file.
20579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20581         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20582         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20583         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20584
20585 2011-02-05  Bruno Haible  <bruno@clisp.org>
20586
20587         New module 'wmemcmp'.
20588         * modules/wmemcmp: New file.
20589         * lib/wchar.in.h (wmemcmp): New declaration.
20590         * lib/wmemcmp.c: New file.
20591         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20592         * m4/wmemcmp.m4: New file.
20593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20595         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20596         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20597         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20598
20599 2011-02-07  Jim Meyering  <meyering@redhat.com>
20600
20601         di-set, ino-map: new modules, from coreutils
20602         * lib/di-set.c: New file.
20603         * lib/di-set.h: Likewise.
20604         * lib/ino-map.c: Likewise.
20605         * lib/ino-map.h: Likewise.
20606         * modules/di-set: Likewise.
20607         * modules/di-set-tests: Likewise.
20608         * modules/ino-map: Likewise.
20609         * modules/ino-map-tests: Likewise.
20610         * tests/test-di-set.c: Likewise.
20611         * tests/test-ino-map.c: Likewise.
20612
20613 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20614
20615         getloadavg: merge minor changes from Emacs
20616
20617         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20618         (getloadavg): Use memset, not bzero.
20619
20620         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20621         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20622         clash (bug#86).
20623
20624 2010-11-14  Bruno Haible  <bruno@clisp.org>
20625
20626         Allow multiple gnulib generated replacements to coexist.
20627         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20628         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20629         * lib/langinfo.in.h (nl_item): Likewise.
20630         * lib/math.in.h (_NaN, NAN): Likewise.
20631         * lib/netdb.in.h (struct addrinfo): Likewise.
20632         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20633         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20634         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20635         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20636         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20637         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20638         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20639         pthread_mutexattr_init, pthread_mutexattr_settype,
20640         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20641         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20642         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20643         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20644         * lib/sched.in.h (struct sched_param): Likewise.
20645         * lib/se-selinux.in.h (security_class_t, security_context_t,
20646         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20647         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20648         lsetfilecon, fsetfilecon, security_check_context,
20649         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20650         Likewise.
20651         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20652         Likewise.
20653         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20654         _gl_function_taking_int_returning_void_t, union sigval,
20655         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20656         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20657         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20658         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20659         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20660         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20661         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20662         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20663         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20664         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20665         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20666         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20667         socklen_t, rpl_fd_isset): Likewise.
20668         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20669         * lib/sys_time.in.h (struct timeval): Likewise.
20670         * lib/sys_times.in.h (struct tms): Likewise.
20671         * lib/sys_utsname.in.h (struct utsname):
20672         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20673         * lib/unistd.in.h (getpagesize): Likewise.
20674         * lib/wchar.in.h (mbstate_t): Likewise.
20675         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20676         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20677         towlower, towupper): Likewise.
20678         Reported by Sam Steingold <sds@gnu.org>.
20679
20680 2011-02-05  Eric Blake  <eblake@redhat.com>
20681
20682         unsetenv: work around Haiku issues
20683         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20684         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20685
20686 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20687
20688         libposix: avoid calling error() within libposix
20689         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20690         is defined.
20691
20692 2011-02-05  Eric Blake  <eblake@redhat.com>
20693
20694         strerror_r-posix: port to cygwin
20695         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20696         implementation.
20697         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20698         * tests/test-strerror_r.c (main): Fix test.
20699         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20700         issue.
20701
20702 2011-02-05  Bruno Haible  <bruno@clisp.org>
20703
20704         New module 'wmemchr'.
20705         * modules/wmemchr: New file.
20706         * lib/wchar.in.h (wmemchr): New declaration.
20707         * lib/wmemchr.c: New file.
20708         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20709         * m4/wmemchr.m4: New file.
20710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20712         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20713         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20714         * doc/posix-functions/wmemchr.texi: Mention the new module.
20715
20716 2011-02-04  Eric Blake  <eblake@redhat.com>
20717
20718         fdopendir: detect FreeBSD bug
20719         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20720         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20721
20722 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20723
20724         stdbool: do not define HAVE_STDBOOL_H
20725         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20726         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20727         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20728         imported from the latest Autoconf git.  It was motivated by Emacs,
20729         which uses gnulib but does not need HAVE_STDBOOL_H.
20730
20731 2011-02-04  Bruno Haible  <bruno@clisp.org>
20732
20733         wcsnrtombs: Prepare for new module wwcsnrtombs.
20734         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20735         * lib/wcsnrtombs.c: Include it.
20736         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20737
20738         wcsrtombs: Prepare for new module wwcsrtombs.
20739         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20740         * lib/wcsrtombs.c: Include it.
20741         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20742
20743         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20744         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20745         * lib/mbsnrtowcs.c: Include it.
20746         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20747
20748         mbsrtowcs: Prepare for new module mbsrtowwcs.
20749         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20750         * lib/mbsrtowcs.c: Include it.
20751         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20752
20753 2011-02-04  Bruno Haible  <bruno@clisp.org>
20754
20755         vasnprintf: Reduce use of malloc for small format strings.
20756         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20757         (arguments): Add room for the first 7 arguments.
20758         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20759         (char_directives, u8_directives, u16_directives, u32_directives): Add
20760         room for the first 7 directives.
20761         * lib/printf-parse.c: Include <string.h>.
20762         (PRINTF_PARSE): Change memory handling code so that it uses the first
20763         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20764         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20765         Reported by Pádraig Brady <P@draigbrady.com>.
20766
20767 2011-01-31  Eric Blake  <eblake@redhat.com>
20768
20769         dup2: work around Haiku bug
20770         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20771         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20772         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20773         * tests/test-dup2.c (main): Enhance test.
20774
20775 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20776
20777         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20778         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20779         declared by eglibc 2.11.2.
20780         * lib/stdio.in.h: Likewise.
20781
20782 2011-01-31  Eric Blake  <eblake@redhat.com>
20783
20784         ignore-value: add missing test dependency
20785         * tests/test-ignore-value.c: Revert previous change; stdio.h
20786         provides off_t.
20787         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20788
20789 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20790
20791         mktime: clarify long_int width checking
20792         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20793         the top level, to make it clearer that the assumption about
20794         long_int width is being checked.  See
20795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20796
20797 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20798
20799         ignore-value: Fix self-test.
20800         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20801
20802 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20803
20804         TYPE_MAXIMUM: avoid theoretically undefined behavior
20805         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20806         negative number, which the C Standard says has undefined behavior.
20807         In practice this is not a problem, but might as well do it by the book.
20808         Reported by Rich Felker and Eric Blake; see
20809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20810         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20811         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20813         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20814         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20815         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20816
20817         mktime: #undef mktime before #defining it
20818         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20819
20820         mktime: systematically normalize tm_isdst comparisons
20821         * lib/mktime.c (isdst_differ): New function.
20822         (__mktime_internal): Use it systematically for all isdst comparisons.
20823         This completes the fix for libc BZ #6723, and removes the need for
20824         normalizing tm_isdst.  See
20825         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20826         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20827
20828         mktime: fix some integer overflow issues and sidestep the rest
20829
20830         This was prompted by a bug report by Benjamin Lindner for MinGW
20831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20832         His bug is due to signed integer overflow (0 - INT_MIN), and I
20833         I scanned through mktime.c looking for other integer overflow
20834         problems, fixing all the bugs I found.
20835
20836         Although the C Standard says the resulting code is still not safe
20837         in the presence of integer overflow, in practice it should be good
20838         enough for all real-world two's-complement implementations, except
20839         for debugging environments that deliberately trap on integer
20840         overflow (e.g., gcc -ftrapv).
20841
20842         * lib/mktime.c (WRAPV): New macro.
20843         (SHR): Also check that long_int and time_t shift right in the
20844         usual way, before using the fast-but-unportable method.
20845         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20846         used.  The code already assumed two's complement, so there's
20847         no need to test for alternatives.  All uses removed.
20848         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20849         the C standard.  Problem reported by Rich Felker in
20850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20851         (twos_complement_arithmetic): Also check long_int and time_t.
20852         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20853         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20854         (__mktime_internal): Avoid integer overflow with unary subtraction
20855         in two instances where -1 - X is an adequate replacement for -X,
20856         since the calculations are approximate.
20857
20858 2011-01-29  Eric Blake  <eblake@redhat.com>
20859
20860         mktime: avoid infinite loop
20861         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20862         type; behavior is still undefined but portable to all known targets.
20863         Reported by Rich Felker.
20864
20865 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20866
20867         rename, unlink, same-inode: Relicense.
20868         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20869         * modules/unlink (License): Likewise.
20870         * modules/same-inode (License): Likewise.
20871
20872 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20873
20874         mktime: avoid problems on NetBSD 5 / i386
20875         * lib/mktime.c (long_int): New type.  This works around a problem
20876         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20877         but time_t is 64 bits, and where I expect the existing code is
20878         wrong in some cases.
20879         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20880         (ydhms_diff): Bring back the compile-time check for wide-enough
20881         year and yday.
20882
20883         mktime: fix misspelling in comment
20884         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20885         This merges all recent glibc changes of importance.
20886
20887 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20888
20889         move-if-change: cope with concurrent mv of identical file.
20890         * build-aux/move-if-change (CMPPROG): Accept environment
20891         variable as an override for `cmp'.
20892         (usage): Document CMPPROG.
20893         Adjust comparison to drop stdout.  Cope with failure of mv if
20894         the target file exists and is identical to the source, for
20895         parallel builds.
20896         Report from H.J. Lu against binutils in PR binutils/12283.
20897
20898 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20899
20900         * users.txt: Mention sharutils.
20901
20902 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20903
20904         * users.txt: Mention OATH Toolkit.
20905
20906 2011-01-27  Bruno Haible  <bruno@clisp.org>
20907
20908         Prepare for supporting FreeBSD 10.
20909         * build-aux/config.libpath: Remove handling of freebsd1*.
20910
20911 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20912
20913         Prepare for supporting FreeBSD 10.
20914         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20915         match FreeBSD 10.0.
20916
20917 2011-01-27  Bruno Haible  <bruno@clisp.org>
20918
20919         vma-iter, get-rusage-as: Add OpenBSD support.
20920         * modules/vma-iter (configure.ac): Test for mquery.
20921         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20922         * lib/vma-iter.c: Include <sys/mman.h>.
20923         (vma_iterate): Add an implementation based on mquery().
20924         * lib/resource-ext.h (get_rusage_as): Update comments.
20925         * lib/get-rusage-as.c: Likewise.
20926         * lib/get-rusage-data.c: Likewise.
20927
20928 2011-01-26  Karl Berry  <karl@gnu.org>
20929
20930         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20931         variables to make it easier to override the makeinfo program used.
20932
20933 2011-01-26  Eric Blake  <eblake@redhat.com>
20934
20935         fcntl: work around Haiku F_DUPFD bugs
20936         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20937         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20938         cloexec bit on duplication.
20939         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20940
20941 2011-01-26  Bruno Haible  <bruno@clisp.org>
20942
20943         Enable memory leak tests on AIX.
20944         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20945         * tests/test-fprintf-posix3.c (main): Likewise.
20946
20947 2011-01-26  Bruno Haible  <bruno@clisp.org>
20948
20949         Tests for module 'get-rusage-data'.
20950         * modules/get-rusage-data-tests: New file.
20951         * tests/test-get-rusage-data.c: New file.
20952
20953         New module 'get-rusage-data'.
20954         * lib/resource-ext.h (get_rusage_data): New declaration.
20955         * lib/get-rusage-data.c: New file.
20956         * modules/get-rusage-data: New file.
20957
20958 2011-01-25  Bruno Haible  <bruno@clisp.org>
20959
20960         get-rusage-as: Allow for easier testing.
20961         * lib/resource-ext.h (get_rusage_as): Add comment.
20962         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20963         (main): New function for interactive testing.
20964
20965 2011-01-25  Bruno Haible  <bruno@clisp.org>
20966
20967         vma-iter: Treat Haiku like BeOS.
20968         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20969         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20970
20971 2011-01-25  Eric Blake  <eblake@redhat.com>
20972
20973         c-stack: fix regression on cygwin when libsigsegv is present
20974         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20975
20976 2011-01-24  Bruno Haible  <bruno@clisp.org>
20977
20978         vma-iter: Avoid empty intervals.
20979         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20980         on an empty interval.
20981
20982 2011-01-24  Jim Meyering  <meyering@redhat.com>
20983
20984         u64: remove unnecessary #include
20985         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20986
20987 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20988
20989         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20990         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20991
20992 2011-01-23  Bruno Haible  <bruno@clisp.org>
20993
20994         New module 'vma-iter'.
20995         * lib/vma-iter.h: New file.
20996         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20997         * modules/vma-iter: New file.
20998         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20999         for get_rusage_as_via_iterator.
21000         (vma_iterate_callback): New function.
21001         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21002         * modules/get-rusage-as (Depends-on): Add vma-iter.
21003
21004 2011-01-23  Bruno Haible  <bruno@clisp.org>
21005
21006         uninorm: Tweak includes.
21007         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21008         Reported by Jim Meyering.
21009
21010 2011-01-23  Bruno Haible  <bruno@clisp.org>
21011
21012         get-rusage-as: Improve on NetBSD.
21013         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21014         /proc, like on FreeBSD.
21015
21016 2011-01-23  Jim Meyering  <meyering@redhat.com>
21017
21018         xreadlink.h: remove unnecessary #include
21019         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21020
21021         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21022         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21023
21024 2011-01-23  Bruno Haible  <bruno@clisp.org>
21025
21026         get-rusage-as: Fix bug.
21027         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21028         original limit when aborting the first loop.
21029
21030 2011-01-23  Bruno Haible  <bruno@clisp.org>
21031
21032         wctype: Ensure valid C syntax.
21033         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21034         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21035
21036 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21037
21038         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21040         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21041         as they are needed only for configure's test case.
21042         This removes two unnecessary symbols from config.h.
21043
21044         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21045         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21047         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21048         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21049         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21050         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21051         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21052         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21053         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21054         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21055         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21056         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21057         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21058         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21059         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21060         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21061         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21062
21063 2011-01-21  Eric Blake  <eblake@redhat.com>
21064
21065         maintainer-makefile: work with older git for submodule check
21066         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21067         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21068         Reported by Matthias Bolte.
21069
21070         bootstrap: minor portability fixes
21071         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21072         (usage): Omit leading capital and trailing . on help phrases, per
21073         GNU Coding Standards.
21074         (check_versions, top level): Prefix messages with script name.
21075
21076 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21077
21078         bootstrap: support --no-git option
21079         * build-aux/bootstrap: Add --no-git option, to be used when
21080         --gnulib-srcdir points to the exact desired checkout.
21081
21082 2011-01-21  Eric Blake  <eblake@redhat.com>
21083
21084         strerror_r-posix: work with glibc 2.13
21085         * lib/strerror_r.c (strerror_r): Fix return type.
21086
21087 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21088             Bruno Haible  <bruno@clisp.org>
21089
21090         uN_strstr: New unit tests.
21091         * modules/unistr/u8-strstr-tests: New file.
21092         * modules/unistr/u16-strstr-tests: New file.
21093         * modules/unistr/u32-strstr-tests: New file.
21094         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21095         * tests/unistr/test-u8-strstr.c: New file.
21096         * tests/unistr/test-u16-strstr.c: New file.
21097         * tests/unistr/test-u32-strstr.c: New file.
21098
21099 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21100             Bruno Haible  <bruno@clisp.org>
21101
21102         Make uN_strstr functions O(n) worst-case.
21103         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21104         16-bit and 32-bit unit cases, use the unibyte algorithm from
21105         lib/mbsstr.c.
21106         * lib/unistr/u8-strstr.c: Include <string.h>.
21107         (UNIT_IS_UINT8_T): New macro.
21108         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21109         (U_STRLEN, U_STRNLEN): New macros.
21110         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21111         (U_STRLEN, U_STRNLEN): New macros.
21112         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21113         (configure.ac): Update required libunistring version.
21114         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21115         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21116         malloca.
21117         (configure.ac): Update required libunistring version.
21118         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21119         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21120         malloca.
21121         (configure.ac): Update required libunistring version.
21122
21123 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21124             Bruno Haible  <bruno@clisp.org>
21125
21126         Prepare for faster uN_strstr functions.
21127         * lib/str-kmp.h: Support definable UNITs.
21128         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21129         needle_len argument.
21130         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21131         * lib/mbscasestr.c (mbscasestr): Likewise.
21132
21133 2011-01-21  Pádraig Brady <P@draigBrady.com>
21134
21135         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21136         * tests/test-malloca.c (main): Unset the environment variable
21137         to greatly speed up the test.
21138         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21139         * modules/malloca-tests: Depend on unsetenv.
21140
21141 2011-01-21  Pádraig Brady <P@draigBrady.com>
21142
21143         ignore-value: remove stdint dependency
21144         * lib/ignore-value.h: Remove <stdint.h>
21145         * modules/ignore-value: Remove stdint dependency.
21146
21147 2011-01-21  Jim Meyering  <meyering@redhat.com>
21148
21149         maint.mk: adjust variable name to be consistent with other gl_ vars
21150         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21151         to be lower case.
21152
21153 2011-01-20  Jim Meyering  <meyering@redhat.com>
21154
21155         maint.mk: make "check" depend on public-submodule-commit by default
21156         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21157
21158 2011-01-20  Bruno Haible  <bruno@clisp.org>
21159
21160         mbfile, mbiter: Complete change from 2008-12-21.
21161         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21162         * m4/mbiter.m4 (gl_MBITER): Likewise.
21163
21164 2011-01-20  Jim Meyering  <meyering@redhat.com>
21165
21166         init.sh: insert space between each function name and "()"
21167         * tests/init.sh: Make it a little easier to see that a function's
21168         name is "warn_", and not "warn" when looking at the first part of
21169         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21170
21171 2011-01-20  Jim Meyering  <meyering@redhat.com>
21172
21173         mountlist: clean up code formatting
21174         * lib/mountlist.c (read_file_system_list): Split a long line,
21175         correct bracing style, use NULL in place of "(struct statfs *)0",
21176         don't parenthesize return value, add spaces around "=" and after
21177         ";-in-for-stmt".
21178
21179 2011-01-14  Markus Duft <mduft@gentoo.org>
21180
21181         mountlist: add support for Interix
21182         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21183         Apply statvfs to all entries of /dev/fs.
21184         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21185         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21186
21187 2011-01-20  Jim Meyering  <meyering@redhat.com>
21188
21189         maint.mk: improve the public-submodule-commit rule
21190         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21191         to suppress printing of its commands... unless V=1.
21192         Add git submodule's --quiet option to suppress printing of e.g.,
21193         "Entering gnulib" output.
21194         "cd" into $(srcdir) before running git submodule.
21195
21196 2011-01-20  Bruno Haible  <bruno@clisp.org>
21197
21198         include_next: Fix bug introduced on 2011-01-18.
21199         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21200         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21201         ac_cv_header_... variable if the second argument is not 'check'.
21202         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21203         gl_NEXT_HEADERS_INTERNAL.
21204
21205 2011-01-20  Bruno Haible  <bruno@clisp.org>
21206
21207         Allow the user to avoid the GNULIB_TEST_* macros.
21208         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21209         Suggested by Paul Eggert.
21210
21211 2011-01-14  Jim Meyering  <meyering@redhat.com>
21212
21213         bootstrap: avoid failure when there is no .gitmodules file
21214         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21215         has been assigned to, even when its value is the empty string.
21216         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21217         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21218         Reported by John W. Eaton <jwe@gnu.org>.
21219
21220 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21221
21222         assume <ctype.h>, ..., <time.h> exist
21223         For years gnulib has been assuming the existence of the headers
21224         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21225         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21226         them, since they don't appear to be needed.
21227         * README (Portability guidelines): Document this.
21228         * lib/flock.c: Assume <fcntl.h> exists.
21229         * lib/regex_internal.h: Assume <locale.h> exists.
21230         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21231         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21232         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21233         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21234         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21235         * m4/regex.m4 (gl_REGEX): Likewise.
21236         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21237         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21238         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21239         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21240         * tests/test-argp.c: Likewise.
21241         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21242
21243         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21244         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21245         AA_APPLE_UNIVERSAL_BUILD.  See
21246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21247         * NEWS: Document this.
21248
21249 2011-01-19  Eric Blake  <eblake@redhat.com>
21250
21251         c-stack: assume stack overflow if SA_SIGINFO unsupported
21252         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21253         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21254         sigaction will work.
21255         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21256         behavior match Linux.
21257         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21258
21259         stdbool-tests: accomodate Haiku
21260         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21261
21262         binary-io: fix O_TEXT on Haiku
21263         * modules/binary-io (Depends-on): Add fcntl-h.
21264         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21265         than blindly undefining O_TEXT.
21266         Reported by Scott McCreary.
21267
21268 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21269
21270         include_next: do not check for standard headers like stddef.h
21271
21272         I found this problem when modifying Emacs to use gnulib.
21273         I noticed that it added HAVE_STDDEF_H to config.h, even though
21274         gnulib always assumes <stddef.h> exists as per README and this
21275         symbol is unnecessary.
21276         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21277         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21278         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21279         faster for headers like stddef.h that are known to exist.
21280         (gl_CHECK_NEXT_HEADERS): Use it.
21281         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21282         rather than gl_CHECK_NEXT_HEADERS.
21283         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21284         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21285
21286 2011-01-18  Eric Blake  <eblake@redhat.com>
21287
21288         ansi-c++-opt: skip C++ dependency style if C++ is unused
21289         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21290         tests when we know C++ compilation is not desired.
21291         Reported by Scott McCreary.
21292
21293 2011-01-18  Bruno Haible  <bruno@clisp.org>
21294
21295         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21296         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21297         (main): Perform test also when getrlimit and setrlimit don't exist or
21298         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21299         limiting the address space size using setrlimit, compare the address
21300         space size before and after the the test.
21301         * tests/test-dprintf-posix2.c: Likewise.
21302         * tests/test-fprintf-posix3.sh: Update skip messages.
21303         * tests/test-dprintf-posix2.sh: Likewise.
21304         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21305         * modules/dprintf-posix-tests (Depends-on): Likewise.
21306         Reported by Bruce Korb <bkorb@gnu.org> and
21307         Gary V. Vaughan <gary@gnu.org>.
21308
21309 2011-01-18  Bruno Haible  <bruno@clisp.org>
21310
21311         get-rusage-as: Improvement for Cygwin.
21312         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21313         areas that are merely reserved.
21314
21315 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21316
21317         strftime: remove dependencies on multibyte modules
21318
21319         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21320         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21321         only if __osf__ is defined, and I suspect OSF doesn't need these
21322         other modules.  If my guess is wrong, we'll need to come up with a
21323         variant of strftime that doesn't need the multibyte modules.
21324
21325         I discovered this problem when attempting modify Emacs to use the
21326         strftime module.  With the previous gnulib, this caused Emacs to
21327         need 31 new files, ranging from lib/config.charset to
21328         m4/wint_t.m4.  This was overkill and I expect would be offputting
21329         to the Emacs maintainers.  After this change, only 6 new files are
21330         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21331         stdbool.m4, and tm_gmtoff.m4.
21332
21333         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21334         Suggested by Bruno Haible in
21335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21336         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21337         and do not check for wchar.h.
21338         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21339         (Depends-on): Remove mbrlen, mbsinit, wchar.
21340
21341 2011-01-18  Bruno Haible  <bruno@clisp.org>
21342
21343         Tests for module 'get-rusage-as'.
21344         * modules/get-rusage-as-tests: New file.
21345         * tests/test-get-rusage-as.c: New file.
21346
21347         New module 'get-rusage-as'.
21348         * modules/get-rusage-as: New file.
21349         * lib/resource-ext.h: New file.
21350         * lib/get-rusage-as.c: New file.
21351
21352 2011-01-17  Eric Blake  <eblake@redhat.com>
21353
21354         sigaction: relax license from LGPLv3+ to LGPLv2+
21355         * modules/sigaction (License): Relax to LGPLv2+.
21356
21357 2011-01-14  Bruno Haible  <bruno@clisp.org>
21358
21359         filemode: Make function declarations usable in C++ mode.
21360         * lib/filemode.h: Enclose function declarations in extern "C" block.
21361         Reported by John W. Eaton <jwe@gnu.org>.
21362
21363 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21364
21365         save-cwd: no longer include "xgetcwd.h"
21366         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21367         This avoids a compilation failure in projects that use save-cwd
21368         without also using the xgetcwd module.
21369
21370 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21371
21372         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21373         This is so that a program like Emacs, which needs only dtoastr,
21374         does not have to bother with distributing and compiling ftoastr
21375         and ldtoastr.
21376         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21377         * modules/dtoastr, modules/ldtoastr: New files.
21378         * modules/ftoastr: Now works just for 'float'.
21379         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21380         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21381         dtoastr.c, ldtoastr.c.
21382
21383 2011-01-11  Jim Meyering  <meyering@redhat.com>
21384
21385         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21386         There is no need to work around the lack of the fchdir function,
21387         since gnulib can now provide a replacement when required.
21388         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21389         * modules/save-cwd (Depends-on): Add fchdir.
21390
21391 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21392
21393         openat, save-cwd: avoid xmalloc
21394
21395         This removes a direct (but undocumented) dependency of openat on
21396         xalloc, along with an indirect dependency via save-cwd.  It also
21397         removes a dependency of save-cwd on xgetcwd, and thereby
21398         indirectly on xalloc.  This change causes the openat substitute
21399         to fall back on save_cwd when memory is tight, and for save_cwd to
21400         fail instead of dying when memory is tight, but that's good enough.
21401         Problem and initial idea for fix reported by Bastien Roucaries in
21402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21403
21404         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21405         xalloc.h (for xmalloc).
21406         (openat_proc_name): Use malloc, not xmalloc.
21407         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21408         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21409
21410         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21411         This avoids heap allocation for file names whose lengths are in
21412         the range 512..1023, with the upper bound increasing to at most
21413         4031 depending on the platform's PATH_MAX.  (We do not want
21414         pathmax.h here as it might supply a non-constant PATH_MAX.)
21415         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21416         Perhaps they should be moved to malloca.h?
21417         (OPENAT_BUFFER_SIZE): Use them.
21418
21419 2011-01-10  Bruno Haible  <bruno@clisp.org>
21420
21421         doc: Update users.txt.
21422         * users.txt: Add recutils.
21423
21424 2011-01-09  Karl Berry  <karl@gnu.org>
21425
21426         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21427
21428         * doc/configmake.texi: New file.
21429         * doc/gnulib.texi: Include it.
21430         * modules/configmake: Move documentation from here.
21431
21432 2011-01-09  Bruno Haible  <bruno@clisp.org>
21433
21434         Update to Unicode 6.0.0.
21435         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21436         (get_lbp): Update for Unicode 6.0.0.
21437         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21438         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21439         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21440         U+11001, U+11038..U+11046. Remove U+06DE.
21441         (uc_width): Fix bounds of planes.
21442         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21443         lib/uniwidth/width.c.
21444         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21445         trailing whitespace removed.
21446         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21447         without comments, but with the original copyright notice.
21448         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21449         * lib/unicase/ignorable.h: Likewise.
21450         * lib/unicase/tocasefold.h: Likewise.
21451         * lib/unicase/tolower.h: Likewise.
21452         * lib/unicase/totitle.h: Likewise.
21453         * lib/unicase/toupper.h: Likewise.
21454         * lib/unictype/bidi_of.h: Likewise.
21455         * lib/unictype/blocks.h: Likewise.
21456         * lib/unictype/categ_C.h: Likewise.
21457         * lib/unictype/categ_Cn.h: Likewise.
21458         * lib/unictype/categ_L.h: Likewise.
21459         * lib/unictype/categ_Ll.h: Likewise.
21460         * lib/unictype/categ_Lm.h: Likewise.
21461         * lib/unictype/categ_Lo.h: Likewise.
21462         * lib/unictype/categ_Lu.h: Likewise.
21463         * lib/unictype/categ_M.h: Likewise.
21464         * lib/unictype/categ_Mc.h: Likewise.
21465         * lib/unictype/categ_Me.h: Likewise.
21466         * lib/unictype/categ_Mn.h: Likewise.
21467         * lib/unictype/categ_N.h: Likewise.
21468         * lib/unictype/categ_Nd.h: Likewise.
21469         * lib/unictype/categ_No.h: Likewise.
21470         * lib/unictype/categ_P.h: Likewise.
21471         * lib/unictype/categ_Po.h: Likewise.
21472         * lib/unictype/categ_S.h: Likewise.
21473         * lib/unictype/categ_Sc.h: Likewise.
21474         * lib/unictype/categ_Sk.h: Likewise.
21475         * lib/unictype/categ_Sm.h: Likewise.
21476         * lib/unictype/categ_So.h: Likewise.
21477         * lib/unictype/categ_of.h: Likewise.
21478         * lib/unictype/combining.h: Likewise.
21479         * lib/unictype/ctype_alnum.h: Likewise.
21480         * lib/unictype/ctype_alpha.h: Likewise.
21481         * lib/unictype/ctype_graph.h: Likewise.
21482         * lib/unictype/ctype_lower.h: Likewise.
21483         * lib/unictype/ctype_print.h: Likewise.
21484         * lib/unictype/ctype_punct.h: Likewise.
21485         * lib/unictype/ctype_upper.h: Likewise.
21486         * lib/unictype/decdigit.h: Likewise.
21487         * lib/unictype/digit.h: Likewise.
21488         * lib/unictype/numeric.h: Likewise.
21489         * lib/unictype/pr_alphabetic.h: Likewise.
21490         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21491         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21492         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21493         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21494         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21495         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21496         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21497         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21498         * lib/unictype/pr_case_ignorable.h: Likewise.
21499         * lib/unictype/pr_cased.h: Likewise.
21500         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21501         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21502         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21503         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21504         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21505         * lib/unictype/pr_combining.h: Likewise.
21506         * lib/unictype/pr_composite.h: Likewise.
21507         * lib/unictype/pr_currency_symbol.h: Likewise.
21508         * lib/unictype/pr_decimal_digit.h: Likewise.
21509         * lib/unictype/pr_deprecated.h: Likewise.
21510         * lib/unictype/pr_format_control.h: Likewise.
21511         * lib/unictype/pr_grapheme_base.h: Likewise.
21512         * lib/unictype/pr_grapheme_extend.h: Likewise.
21513         * lib/unictype/pr_grapheme_link.h: Likewise.
21514         * lib/unictype/pr_id_continue.h: Likewise.
21515         * lib/unictype/pr_id_start.h: Likewise.
21516         * lib/unictype/pr_ideographic.h: Likewise.
21517         * lib/unictype/pr_lowercase.h: Likewise.
21518         * lib/unictype/pr_math.h: Likewise.
21519         * lib/unictype/pr_numeric.h: Likewise.
21520         * lib/unictype/pr_other_alphabetic.h: Likewise.
21521         * lib/unictype/pr_other_id_continue.h: Likewise.
21522         * lib/unictype/pr_other_math.h: Likewise.
21523         * lib/unictype/pr_punctuation.h: Likewise.
21524         * lib/unictype/pr_sentence_terminal.h: Likewise.
21525         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21526         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21527         * lib/unictype/pr_unified_ideograph.h: Likewise.
21528         * lib/unictype/pr_uppercase.h: Likewise.
21529         * lib/unictype/pr_xid_continue.h: Likewise.
21530         * lib/unictype/pr_xid_start.h: Likewise.
21531         * lib/unictype/scripts.h: Likewise.
21532         * lib/unictype/scripts_byname.gperf: Likewise.
21533         * lib/unictype/sy_java_ident.h: Likewise.
21534         * lib/unigbrk/gbrkprop.h: Likewise.
21535         * lib/unilbrk/lbrkprop1.h: Likewise.
21536         * lib/unilbrk/lbrkprop2.h: Likewise.
21537         * lib/uninorm/decomposition-table2.h: Likewise.
21538         * lib/uniwbrk/wbrkprop.h: Likewise.
21539         * tests/unicase/test-cased.c: Likewise.
21540         * tests/unicase/test-ignorable.c: Likewise.
21541         * tests/unicase/test-uc_tolower.c: Likewise.
21542         * tests/unicase/test-uc_totitle.c: Likewise.
21543         * tests/unicase/test-uc_toupper.c: Likewise.
21544         * tests/unictype/test-categ_C.c: Likewise.
21545         * tests/unictype/test-categ_Cn.c: Likewise.
21546         * tests/unictype/test-categ_L.c: Likewise.
21547         * tests/unictype/test-categ_Ll.c: Likewise.
21548         * tests/unictype/test-categ_Lm.c: Likewise.
21549         * tests/unictype/test-categ_Lo.c: Likewise.
21550         * tests/unictype/test-categ_Lu.c: Likewise.
21551         * tests/unictype/test-categ_M.c: Likewise.
21552         * tests/unictype/test-categ_Mc.c: Likewise.
21553         * tests/unictype/test-categ_Me.c: Likewise.
21554         * tests/unictype/test-categ_Mn.c: Likewise.
21555         * tests/unictype/test-categ_N.c: Likewise.
21556         * tests/unictype/test-categ_Nd.c: Likewise.
21557         * tests/unictype/test-categ_No.c: Likewise.
21558         * tests/unictype/test-categ_P.c: Likewise.
21559         * tests/unictype/test-categ_Po.c: Likewise.
21560         * tests/unictype/test-categ_S.c: Likewise.
21561         * tests/unictype/test-categ_Sc.c: Likewise.
21562         * tests/unictype/test-categ_Sk.c: Likewise.
21563         * tests/unictype/test-categ_Sm.c: Likewise.
21564         * tests/unictype/test-categ_So.c: Likewise.
21565         * tests/unictype/test-ctype_alnum.c: Likewise.
21566         * tests/unictype/test-ctype_alpha.c: Likewise.
21567         * tests/unictype/test-ctype_graph.c: Likewise.
21568         * tests/unictype/test-ctype_lower.c: Likewise.
21569         * tests/unictype/test-ctype_print.c: Likewise.
21570         * tests/unictype/test-ctype_punct.c: Likewise.
21571         * tests/unictype/test-ctype_upper.c: Likewise.
21572         * tests/unictype/test-decdigit.h: Likewise.
21573         * tests/unictype/test-digit.h: Likewise.
21574         * tests/unictype/test-numeric.h: Likewise.
21575         * tests/unictype/test-pr_alphabetic.c: Likewise.
21576         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21577         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21578         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21579         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21580         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21581         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21582         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21583         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21584         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21585         * tests/unictype/test-pr_cased.c: Likewise.
21586         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21587         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21588         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21589         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21590         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21591         * tests/unictype/test-pr_combining.c: Likewise.
21592         * tests/unictype/test-pr_composite.c: Likewise.
21593         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21594         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21595         * tests/unictype/test-pr_deprecated.c: Likewise.
21596         * tests/unictype/test-pr_format_control.c: Likewise.
21597         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21598         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21599         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21600         * tests/unictype/test-pr_id_continue.c: Likewise.
21601         * tests/unictype/test-pr_id_start.c: Likewise.
21602         * tests/unictype/test-pr_ideographic.c: Likewise.
21603         * tests/unictype/test-pr_lowercase.c: Likewise.
21604         * tests/unictype/test-pr_math.c: Likewise.
21605         * tests/unictype/test-pr_numeric.c: Likewise.
21606         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21607         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21608         * tests/unictype/test-pr_other_math.c: Likewise.
21609         * tests/unictype/test-pr_punctuation.c: Likewise.
21610         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21611         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21612         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21613         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21614         * tests/unictype/test-pr_uppercase.c: Likewise.
21615         * tests/unictype/test-pr_xid_continue.c: Likewise.
21616         * tests/unictype/test-pr_xid_start.c: Likewise.
21617         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21618         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21619         changes.
21620         * lib/unictype/categ_Cc.h: Likewise.
21621         * lib/unictype/categ_Cf.h: Likewise.
21622         * lib/unictype/categ_Co.h: Likewise.
21623         * lib/unictype/categ_Cs.h: Likewise.
21624         * lib/unictype/categ_Lt.h: Likewise.
21625         * lib/unictype/categ_Nl.h: Likewise.
21626         * lib/unictype/categ_Pc.h: Likewise.
21627         * lib/unictype/categ_Pd.h: Likewise.
21628         * lib/unictype/categ_Pe.h: Likewise.
21629         * lib/unictype/categ_Pf.h: Likewise.
21630         * lib/unictype/categ_Pi.h: Likewise.
21631         * lib/unictype/categ_Ps.h: Likewise.
21632         * lib/unictype/categ_Z.h: Likewise.
21633         * lib/unictype/categ_Zl.h: Likewise.
21634         * lib/unictype/categ_Zp.h: Likewise.
21635         * lib/unictype/categ_Zs.h: Likewise.
21636         * lib/unictype/ctype_blank.h: Likewise.
21637         * lib/unictype/ctype_cntrl.h: Likewise.
21638         * lib/unictype/ctype_digit.h: Likewise.
21639         * lib/unictype/ctype_space.h: Likewise.
21640         * lib/unictype/ctype_xdigit.h: Likewise.
21641         * lib/unictype/mirror.h: Likewise.
21642         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21643         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21644         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21645         * lib/unictype/pr_bidi_control.h: Likewise.
21646         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21647         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21648         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21649         * lib/unictype/pr_bidi_pdf.h: Likewise.
21650         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21651         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21652         * lib/unictype/pr_dash.h: Likewise.
21653         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21654         * lib/unictype/pr_diacritic.h: Likewise.
21655         * lib/unictype/pr_extender.h: Likewise.
21656         * lib/unictype/pr_hex_digit.h: Likewise.
21657         * lib/unictype/pr_hyphen.h: Likewise.
21658         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21659         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21660         * lib/unictype/pr_ignorable_control.h: Likewise.
21661         * lib/unictype/pr_iso_control.h: Likewise.
21662         * lib/unictype/pr_join_control.h: Likewise.
21663         * lib/unictype/pr_left_of_pair.h: Likewise.
21664         * lib/unictype/pr_line_separator.h: Likewise.
21665         * lib/unictype/pr_logical_order_exception.h: Likewise.
21666         * lib/unictype/pr_non_break.h: Likewise.
21667         * lib/unictype/pr_not_a_character.h: Likewise.
21668         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21669         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21670         * lib/unictype/pr_other_id_start.h: Likewise.
21671         * lib/unictype/pr_other_lowercase.h: Likewise.
21672         * lib/unictype/pr_other_uppercase.h: Likewise.
21673         * lib/unictype/pr_paired_punctuation.h: Likewise.
21674         * lib/unictype/pr_paragraph_separator.h: Likewise.
21675         * lib/unictype/pr_pattern_syntax.h: Likewise.
21676         * lib/unictype/pr_pattern_white_space.h: Likewise.
21677         * lib/unictype/pr_private_use.h: Likewise.
21678         * lib/unictype/pr_quotation_mark.h: Likewise.
21679         * lib/unictype/pr_radical.h: Likewise.
21680         * lib/unictype/pr_soft_dotted.h: Likewise.
21681         * lib/unictype/pr_space.h: Likewise.
21682         * lib/unictype/pr_titlecase.h: Likewise.
21683         * lib/unictype/pr_variation_selector.h: Likewise.
21684         * lib/unictype/pr_white_space.h: Likewise.
21685         * lib/unictype/pr_zero_width.h: Likewise.
21686         * lib/unictype/sy_c_ident.h: Likewise.
21687         * lib/unictype/sy_c_whitespace.h: Likewise.
21688         * lib/unictype/sy_java_whitespace.h: Likewise.
21689         * lib/uninorm/composition-table.gperf: Likewise.
21690         * lib/uninorm/decomposition-table1.h: Likewise.
21691         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21692         LB8.
21693         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21694         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21695         * modules/unictype/*: Bump version number of expected libunistring
21696         version.
21697
21698 2011-01-09  Bruno Haible  <bruno@clisp.org>
21699
21700         Update to Unicode 5.2.0.
21701         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21702         trailing whitespace removed.
21703
21704 2011-01-09  Bruno Haible  <bruno@clisp.org>
21705
21706         New Unicode character properties, from Unicode 5.2.0.
21707         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21708         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21709         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21710         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21711         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21712         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21713         uc_is_property_cased, uc_is_property_case_ignorable,
21714         uc_is_property_changes_when_lowercased,
21715         uc_is_property_changes_when_uppercased,
21716         uc_is_property_changes_when_titlecased,
21717         uc_is_property_changes_when_casefolded,
21718         uc_is_property_changes_when_casemapped): New declarations.
21719         * lib/unictype/pr_byname.gperf: Add the new properties.
21720         * modules/unictype/property-byname (Depends-on): Depend on the new
21721         properties modules.
21722         * modules/unictype/property-all (Depends-on): Likewise.
21723         * MODULES.html.sh (Unicode string functions): Add
21724         unictype/property-case-ignorable, unictype/property-cased,
21725         unictype/property-changes-when-casefolded,
21726         unictype/property-changes-when-casemapped,
21727         unictype/property-changes-when-lowercased,
21728         unictype/property-changes-when-titlecased,
21729         unictype/property-changes-when-uppercased.
21730
21731         New module 'unictype/property-changes-when-casemapped'.
21732         * modules/unictype/property-changes-when-casemapped: New file.
21733         * lib/unictype/pr_changes_when_casemapped.c: New file.
21734         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21735         generated by gen-uni-tables.
21736         * modules/unictype/property-changes-when-casemapped-tests: New file.
21737         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21738         automatically generated by gen-uni-tables.
21739
21740         New module 'unictype/property-changes-when-casefolded'.
21741         * modules/unictype/property-changes-when-casefolded: New file.
21742         * lib/unictype/pr_changes_when_casefolded.c: New file.
21743         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21744         generated by gen-uni-tables.
21745         * modules/unictype/property-changes-when-casefolded-tests: New file.
21746         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21747         automatically generated by gen-uni-tables.
21748
21749         New module 'unictype/property-changes-when-titlecased'.
21750         * modules/unictype/property-changes-when-titlecased: New file.
21751         * lib/unictype/pr_changes_when_titlecased.c: New file.
21752         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21753         generated by gen-uni-tables.
21754         * modules/unictype/property-changes-when-titlecased-tests: New file.
21755         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21756         automatically generated by gen-uni-tables.
21757
21758         New module 'unictype/property-changes-when-uppercased'.
21759         * modules/unictype/property-changes-when-uppercased: New file.
21760         * lib/unictype/pr_changes_when_uppercased.c: New file.
21761         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21762         generated by gen-uni-tables.
21763         * modules/unictype/property-changes-when-uppercased-tests: New file.
21764         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21765         automatically generated by gen-uni-tables.
21766
21767         New module 'unictype/property-changes-when-lowercased'.
21768         * modules/unictype/property-changes-when-lowercased: New file.
21769         * lib/unictype/pr_changes_when_lowercased.c: New file.
21770         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21771         generated by gen-uni-tables.
21772         * modules/unictype/property-changes-when-lowercased-tests: New file.
21773         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21774         automatically generated by gen-uni-tables.
21775
21776         New module 'unictype/property-case-ignorable'.
21777         * modules/unictype/property-case-ignorable: New file.
21778         * lib/unictype/pr_case_ignorable.c: New file.
21779         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21780         by gen-uni-tables.
21781         * modules/unictype/property-case-ignorable-tests: New file.
21782         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21783         generated by gen-uni-tables.
21784
21785         New module 'unictype/property-cased'.
21786         * modules/unictype/property-cased: New file.
21787         * lib/unictype/pr_cased.c: New file.
21788         * lib/unictype/pr_cased.h: New file, automatically generated by
21789         gen-uni-tables.
21790         * modules/unictype/property-cased-tests: New file.
21791         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21792         gen-uni-tables.
21793
21794 2011-01-09  Bruno Haible  <bruno@clisp.org>
21795
21796         Update to Unicode 5.2.0.
21797         * lib/gen-uni-tables.c (output_predicate, output_category,
21798         output_combclass, output_bidi_category, output_decimal_digit_test,
21799         output_decimal_digit, output_digit_test, output_digit,
21800         output_numeric_test, output_numeric, output_mirror, output_scripts,
21801         output_scripts_byname, output_blocks, output_ident_category): Fix
21802         comment header.
21803         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21804         get_wbp.
21805         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21806         items.
21807         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21808         Changes_When_Lowercased, Changes_When_Uppercased,
21809         Changes_When_Titlecased, Changes_When_Casefolded,
21810         Changes_When_Casemapped.
21811         (is_property_alphabetic, is_property_default_ignorable_code_point):
21812         Update for Unicode 5.2.0.
21813         (is_property_cased, is_property_case_ignorable,
21814         is_property_changes_when_lowercased,
21815         is_property_changes_when_uppercased,
21816         is_property_changes_when_titlecased,
21817         is_property_changes_when_casefolded,
21818         is_property_changes_when_casemapped): New functions.
21819         (output_properties): Output also the properties cased, case_ignorable,
21820         changes_when_lowercased, changes_when_uppercased,
21821         changes_when_titlecased, changes_when_casefolded,
21822         changes_when_casemapped.
21823         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21824         Unicode TR#11 revision 17 -> 19.
21825         (LBP_CP): New enumeration value.
21826         (LBP_*): Adjust values accordingly.
21827         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21828         TR#14 revision 22 -> 24.
21829         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21830         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21831         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21832         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21833         is_WBP_MIDLETTER.
21834         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21835         the code1 and code2 of each composition rule.
21836         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21837         * lib/unicase/ignorable.h: Likewise.
21838         * lib/unicase/tocasefold.h: Likewise.
21839         * lib/unicase/tolower.h: Likewise.
21840         * lib/unicase/totitle.h: Likewise.
21841         * lib/unicase/toupper.h: Likewise.
21842         * lib/unictype/bidi_of.h: Likewise.
21843         * lib/unictype/blocks.h: Likewise.
21844         * lib/unictype/categ_C.h: Likewise.
21845         * lib/unictype/categ_Cf.h: Likewise.
21846         * lib/unictype/categ_Cn.h: Likewise.
21847         * lib/unictype/categ_L.h: Likewise.
21848         * lib/unictype/categ_Ll.h: Likewise.
21849         * lib/unictype/categ_Lm.h: Likewise.
21850         * lib/unictype/categ_Lo.h: Likewise.
21851         * lib/unictype/categ_Lu.h: Likewise.
21852         * lib/unictype/categ_M.h: Likewise.
21853         * lib/unictype/categ_Mc.h: Likewise.
21854         * lib/unictype/categ_Mn.h: Likewise.
21855         * lib/unictype/categ_N.h: Likewise.
21856         * lib/unictype/categ_Nd.h: Likewise.
21857         * lib/unictype/categ_Nl.h: Likewise.
21858         * lib/unictype/categ_No.h: Likewise.
21859         * lib/unictype/categ_P.h: Likewise.
21860         * lib/unictype/categ_Pd.h: Likewise.
21861         * lib/unictype/categ_Po.h: Likewise.
21862         * lib/unictype/categ_S.h: Likewise.
21863         * lib/unictype/categ_Sc.h: Likewise.
21864         * lib/unictype/categ_So.h: Likewise.
21865         * lib/unictype/categ_of.h: Likewise.
21866         * lib/unictype/combining.h: Likewise.
21867         * lib/unictype/ctype_alnum.h: Likewise.
21868         * lib/unictype/ctype_alpha.h: Likewise.
21869         * lib/unictype/ctype_graph.h: Likewise.
21870         * lib/unictype/ctype_lower.h: Likewise.
21871         * lib/unictype/ctype_print.h: Likewise.
21872         * lib/unictype/ctype_punct.h: Likewise.
21873         * lib/unictype/ctype_upper.h: Likewise.
21874         * lib/unictype/decdigit.h: Likewise.
21875         * lib/unictype/digit.h: Likewise.
21876         * lib/unictype/numeric.h: Likewise.
21877         * lib/unictype/pr_alphabetic.h: Likewise.
21878         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21879         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21880         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21881         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21882         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21883         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21884         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21885         * lib/unictype/pr_combining.h: Likewise.
21886         * lib/unictype/pr_composite.h: Likewise.
21887         * lib/unictype/pr_currency_symbol.h: Likewise.
21888         * lib/unictype/pr_dash.h: Likewise.
21889         * lib/unictype/pr_decimal_digit.h: Likewise.
21890         * lib/unictype/pr_deprecated.h: Likewise.
21891         * lib/unictype/pr_diacritic.h: Likewise.
21892         * lib/unictype/pr_extender.h: Likewise.
21893         * lib/unictype/pr_grapheme_base.h: Likewise.
21894         * lib/unictype/pr_grapheme_extend.h: Likewise.
21895         * lib/unictype/pr_grapheme_link.h: Likewise.
21896         * lib/unictype/pr_id_continue.h: Likewise.
21897         * lib/unictype/pr_id_start.h: Likewise.
21898         * lib/unictype/pr_ideographic.h: Likewise.
21899         * lib/unictype/pr_ignorable_control.h: Likewise.
21900         * lib/unictype/pr_logical_order_exception.h: Likewise.
21901         * lib/unictype/pr_lowercase.h: Likewise.
21902         * lib/unictype/pr_numeric.h: Likewise.
21903         * lib/unictype/pr_other_alphabetic.h: Likewise.
21904         * lib/unictype/pr_punctuation.h: Likewise.
21905         * lib/unictype/pr_sentence_terminal.h: Likewise.
21906         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21907         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21908         * lib/unictype/pr_unified_ideograph.h: Likewise.
21909         * lib/unictype/pr_uppercase.h: Likewise.
21910         * lib/unictype/pr_xid_continue.h: Likewise.
21911         * lib/unictype/pr_xid_start.h: Likewise.
21912         * lib/unictype/pr_zero_width.h: Likewise.
21913         * lib/unictype/scripts.h: Likewise.
21914         * lib/unictype/scripts_byname.gperf: Likewise.
21915         * lib/unictype/sy_java_ident.h: Likewise.
21916         * lib/unigbrk/gbrkprop.h: Likewise.
21917         * lib/unilbrk/lbrkprop1.h: Likewise.
21918         * lib/unilbrk/lbrkprop2.h: Likewise.
21919         * lib/unilbrk/lbrktables.h: Likewise.
21920         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21921         LBP_CP. Implement rule LB30.
21922         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21923         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21924         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21925         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21926         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21927         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21928         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21929         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21930         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21931         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21932         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21933         bits instead of 16 bits in the code1 and code2 of each composition
21934         rule.
21935         (uc_composition): Update for Unicode 5.2.0.
21936         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21937         * lib/uninorm/decomposition-table2.h: Likewise.
21938         * lib/uniwbrk/wbrkprop.h: Likewise.
21939         * tests/unicase/test-cased.c: Likewise.
21940         * tests/unicase/test-ignorable.c: Likewise.
21941         * tests/unicase/test-uc_tolower.c: Likewise.
21942         * tests/unicase/test-uc_totitle.c: Likewise.
21943         * tests/unicase/test-uc_toupper.c: Likewise.
21944         * tests/unictype/test-categ_C.c: Likewise.
21945         * tests/unictype/test-categ_Cf.c: Likewise.
21946         * tests/unictype/test-categ_Cn.c: Likewise.
21947         * tests/unictype/test-categ_L.c: Likewise.
21948         * tests/unictype/test-categ_Ll.c: Likewise.
21949         * tests/unictype/test-categ_Lm.c: Likewise.
21950         * tests/unictype/test-categ_Lo.c: Likewise.
21951         * tests/unictype/test-categ_Lu.c: Likewise.
21952         * tests/unictype/test-categ_M.c: Likewise.
21953         * tests/unictype/test-categ_Mc.c: Likewise.
21954         * tests/unictype/test-categ_Mn.c: Likewise.
21955         * tests/unictype/test-categ_N.c: Likewise.
21956         * tests/unictype/test-categ_Nd.c: Likewise.
21957         * tests/unictype/test-categ_Nl.c: Likewise.
21958         * tests/unictype/test-categ_No.c: Likewise.
21959         * tests/unictype/test-categ_P.c: Likewise.
21960         * tests/unictype/test-categ_Pd.c: Likewise.
21961         * tests/unictype/test-categ_Po.c: Likewise.
21962         * tests/unictype/test-categ_S.c: Likewise.
21963         * tests/unictype/test-categ_Sc.c: Likewise.
21964         * tests/unictype/test-categ_So.c: Likewise.
21965         * tests/unictype/test-ctype_alnum.c: Likewise.
21966         * tests/unictype/test-ctype_alpha.c: Likewise.
21967         * tests/unictype/test-ctype_graph.c: Likewise.
21968         * tests/unictype/test-ctype_lower.c: Likewise.
21969         * tests/unictype/test-ctype_print.c: Likewise.
21970         * tests/unictype/test-ctype_punct.c: Likewise.
21971         * tests/unictype/test-ctype_upper.c: Likewise.
21972         * tests/unictype/test-decdigit.h: Likewise.
21973         * tests/unictype/test-digit.h: Likewise.
21974         * tests/unictype/test-numeric.h: Likewise.
21975         * tests/unictype/test-pr_alphabetic.c: Likewise.
21976         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21977         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21978         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21979         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21980         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21981         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21982         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21983         * tests/unictype/test-pr_combining.c: Likewise.
21984         * tests/unictype/test-pr_composite.c: Likewise.
21985         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21986         * tests/unictype/test-pr_dash.c: Likewise.
21987         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21988         * tests/unictype/test-pr_deprecated.c: Likewise.
21989         * tests/unictype/test-pr_diacritic.c: Likewise.
21990         * tests/unictype/test-pr_extender.c: Likewise.
21991         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21992         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21993         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21994         * tests/unictype/test-pr_id_continue.c: Likewise.
21995         * tests/unictype/test-pr_id_start.c: Likewise.
21996         * tests/unictype/test-pr_ideographic.c: Likewise.
21997         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21998         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21999         * tests/unictype/test-pr_lowercase.c: Likewise.
22000         * tests/unictype/test-pr_numeric.c: Likewise.
22001         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22002         * tests/unictype/test-pr_punctuation.c: Likewise.
22003         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22004         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22005         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22006         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22007         * tests/unictype/test-pr_uppercase.c: Likewise.
22008         * tests/unictype/test-pr_xid_continue.c: Likewise.
22009         * tests/unictype/test-pr_xid_start.c: Likewise.
22010         * tests/unictype/test-pr_zero_width.c: Likewise.
22011         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22012         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22013         changed behaviour: line breaking is now disallowed between a letter
22014         or '=' and '('.
22015         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22016         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22017         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22018         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22019         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22020         lib/uniwidth/width.c.
22021         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22022         without comments, but with the original copyright notice.
22023         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22024         changes.
22025         * lib/unictype/categ_Cc.h: Likewise.
22026         * lib/unictype/categ_Co.h: Likewise.
22027         * lib/unictype/categ_Cs.h: Likewise.
22028         * lib/unictype/categ_Lt.h: Likewise.
22029         * lib/unictype/categ_Me.h: Likewise.
22030         * lib/unictype/categ_Pc.h: Likewise.
22031         * lib/unictype/categ_Pe.h: Likewise.
22032         * lib/unictype/categ_Pf.h: Likewise.
22033         * lib/unictype/categ_Pi.h: Likewise.
22034         * lib/unictype/categ_Ps.h: Likewise.
22035         * lib/unictype/categ_Sk.h: Likewise.
22036         * lib/unictype/categ_Sm.h: Likewise.
22037         * lib/unictype/categ_Z.h: Likewise.
22038         * lib/unictype/categ_Zl.h: Likewise.
22039         * lib/unictype/categ_Zp.h: Likewise.
22040         * lib/unictype/categ_Zs.h: Likewise.
22041         * lib/unictype/ctype_blank.h: Likewise.
22042         * lib/unictype/ctype_cntrl.h: Likewise.
22043         * lib/unictype/ctype_digit.h: Likewise.
22044         * lib/unictype/ctype_space.h: Likewise.
22045         * lib/unictype/ctype_xdigit.h: Likewise.
22046         * lib/unictype/mirror.h: Likewise.
22047         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22048         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22049         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22050         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22051         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22052         * lib/unictype/pr_bidi_control.h: Likewise.
22053         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22054         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22055         * lib/unictype/pr_bidi_pdf.h: Likewise.
22056         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22057         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22058         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22059         * lib/unictype/pr_format_control.h: Likewise.
22060         * lib/unictype/pr_hex_digit.h: Likewise.
22061         * lib/unictype/pr_hyphen.h: Likewise.
22062         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22063         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22064         * lib/unictype/pr_iso_control.h: Likewise.
22065         * lib/unictype/pr_join_control.h: Likewise.
22066         * lib/unictype/pr_left_of_pair.h: Likewise.
22067         * lib/unictype/pr_line_separator.h: Likewise.
22068         * lib/unictype/pr_math.h: Likewise.
22069         * lib/unictype/pr_non_break.h: Likewise.
22070         * lib/unictype/pr_not_a_character.h: Likewise.
22071         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22072         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22073         * lib/unictype/pr_other_id_continue.h: Likewise.
22074         * lib/unictype/pr_other_id_start.h: Likewise.
22075         * lib/unictype/pr_other_lowercase.h: Likewise.
22076         * lib/unictype/pr_other_math.h: Likewise.
22077         * lib/unictype/pr_other_uppercase.h: Likewise.
22078         * lib/unictype/pr_paired_punctuation.h: Likewise.
22079         * lib/unictype/pr_paragraph_separator.h: Likewise.
22080         * lib/unictype/pr_pattern_syntax.h: Likewise.
22081         * lib/unictype/pr_pattern_white_space.h: Likewise.
22082         * lib/unictype/pr_private_use.h: Likewise.
22083         * lib/unictype/pr_quotation_mark.h: Likewise.
22084         * lib/unictype/pr_radical.h: Likewise.
22085         * lib/unictype/pr_soft_dotted.h: Likewise.
22086         * lib/unictype/pr_space.h: Likewise.
22087         * lib/unictype/pr_titlecase.h: Likewise.
22088         * lib/unictype/pr_variation_selector.h: Likewise.
22089         * lib/unictype/pr_white_space.h: Likewise.
22090         * lib/unictype/sy_c_ident.h: Likewise.
22091         * lib/unictype/sy_c_whitespace.h: Likewise.
22092         * lib/unictype/sy_java_whitespace.h: Likewise.
22093         * modules/uni*/*: Bump version number of expected libunistring version.
22094         Reported by Simon Josefsson.
22095
22096 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22097
22098         useless-if-before-free: fix typo in --help and make the internal,
22099         automatic version date update process work once again.
22100         --help output contained a NUL character instead of the
22101         backslash-zero that was intended.  Also, the "must lie within
22102         the first 8 lines" line is on line 9, and hence not getting
22103         automatically updated.
22104         * build-aux/useless-if-before-free: Fix the former by adding a
22105         backslash, and the latter by condensing the three lines of what-it-does
22106         to a single line, leaving one line of slack for the future.
22107
22108 2011-01-09  Bruno Haible  <bruno@clisp.org>
22109
22110         uniwidth/width: Fix width of U+1D173..U+1D17A.
22111         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22112         symbolic_width, output_width_property_test): New functions.
22113         (main): Invoke output_nonspacing_property, output_width_property_test.
22114         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22115         U+1D173..U+1D17A.
22116         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22117         1.
22118         * modules/uniwidth/*: Bump version number of expected libunistring
22119         version.
22120         * modules/unilbrk/*: Likewise.
22121
22122 2011-01-08  Bruno Haible  <bruno@clisp.org>
22123
22124         uninorm tests: Preserve copyright of Unicode data file.
22125         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22126         Mention modifications.
22127
22128 2011-01-08  Bruno Haible  <bruno@clisp.org>
22129
22130         gen-uni-tables: Prepare for Unicode 5.2.0.
22131         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22132         (debug_output_lbp, output_lbp): Update.
22133
22134 2011-01-08  Bruno Haible  <bruno@clisp.org>
22135
22136         unilbrk: Clarify gen-uni-tables.c code.
22137         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22138         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22139         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22140
22141 2011-01-07  Bruno Haible  <bruno@clisp.org>
22142
22143         strtod: Restore errno when successfully parsing Infinity or NaN.
22144         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22145         restore the original errno.
22146
22147 2011-01-07  Bruno Haible  <bruno@clisp.org>
22148
22149         remove test: Avoid failure on HP-UX 11.
22150         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22151
22152 2011-01-07  Bruno Haible  <bruno@clisp.org>
22153
22154         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22155         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22156         error code.
22157
22158 2011-01-07  Pádraig Brady <P@draigBrady.com>
22159
22160         ignore-value: fixup comments, and add Eric Blake
22161         as an author since he rewrote the macros.
22162         * lib/ignore-value.h (ignore_value):  State that
22163         we now support aggregates.  Also specify exactly
22164         when the GCC warn_unused_result feature was added.
22165
22166 2011-01-06  Eric Blake  <eblake@redhat.com>
22167
22168         ignore-value: support aggregate types
22169         * lib/ignore-value.h (ignore_value): Provide separate gcc
22170         definition.
22171         * modules/ignore-value-tests: New test module.
22172         * tests/test-ignore-value.c: New test.
22173
22174         maint.mk: improve sc_prohibit_strcmp regex
22175         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22176         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22177         definition of STRNEQ.
22178
22179         signal: work around Haiku issue with SIGBUS
22180         * lib/siglist.h: Add comment.
22181         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22182         strsignal's favoring of SIGSEGV.
22183         * tests/test-signal.c (main): Avoid test failure.
22184         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22185         Reported by Scott McCreary.
22186
22187         maint.mk: add pre-release check to ensure submodule commits are public
22188         * top/maint.mk (public-submodule-commit): New rule.
22189         (submodule-checks): New variable.
22190         (alpha beta stable): Depend on the variable.
22191
22192 2011-01-05  Pádraig Brady <P@draigBrady.com>
22193         and Jim Meyering  <meyering@redhat.com>
22194
22195         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22196         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22197         (ATTRIBUTE_DEPRECATED): Define.
22198         (_ignore_case): New function.
22199         (ignore_value): New macro, to replace the old function.
22200         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22201         * modules/ignore-value (Depends-on): Add stdint.
22202
22203 2011-01-04  Eric Blake  <eblake@redhat.com>
22204
22205         doc: regenerate INSTALL
22206         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22207         @firstparagraphindent support, now that autoconf dropped it.
22208         (INSTALL_PRELUDE): Reinstate old macro.
22209         * doc/install.texi: Resync from autoconf.
22210         * doc/INSTALL: Reflect recent autoconf update.
22211         * doc/INSTALL.ISO: Likewise.
22212         * doc/INSTALL.UTF-8: Likewise.
22213         Reported by Karl Berry.
22214
22215 2011-01-04  Bruce Korb  <address@hidden>
22216
22217         git-version-gen: avoid a sub-shell
22218         * build-aux/git-version-gen: Redirect stderr in `...` via
22219         "exec 2>...", rather than via an added sub-shell.
22220
22221 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22222
22223         git-version-gen: use (...) rather than sh -c '...'
22224         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22225         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22226
22227 2011-01-03  Jim Meyering  <meyering@redhat.com>
22228
22229         git-version-gen: convert leading TABs to spaces
22230         * build-aux/git-version-gen: Expand leading TABs.
22231
22232         git-version-gen: handle failed "git rev-list"
22233         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22234         from git and proceeding as if it had succeeded but printed no SHA1
22235         checksums, suppress the diagnostic and handle the failure.
22236         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22237
22238         git-version-gen: include command name in one more diagnostic
22239         * build-aux/git-version-gen: When the required .tarball-version file
22240         was missing or unreadable, you might see the diagnostic from "cat",
22241         but no trace of the name of the invoking script.  Now, you still see
22242         the diagnostic from cat, but also get one from "git-version-gen: ".
22243         Inspired by a patch from Bruce Korb.
22244
22245         update-copyright: adjust test to match changed code
22246         * tests/test-update-copyright.sh: Change test's expected output
22247         to match new actual output.
22248
22249 2011-01-02  Bruno Haible  <bruno@clisp.org>
22250
22251         getlogin_r: Avoid test failure on HP-UX 11.
22252         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22253         ERANGE when the second argument is zero.
22254         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22255         portability problem.
22256
22257 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22258
22259         * build-aux/update-copyright: doc Simon's changes
22260
22261 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22262
22263         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22264         environment variable.
22265
22266 2011-01-02  Bruno Haible  <bruno@clisp.org>
22267
22268         unigbrk: Avoid gcc warnings.
22269         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22270         unused variable.
22271         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22272         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22273         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22274         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22275         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22276         Change type of first argument to 'const char *'.
22277         (main): Remove unused variable.
22278         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22279         type of first argument to 'const char *'.
22280         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22281         Likewise.
22282         (main): Change type of variable 's'.
22283         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22284         to 'int'.
22285
22286 2011-01-02  Bruno Haible  <bruno@clisp.org>
22287
22288         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22289         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22290         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22291         bug.
22292         * lib/pwrite.c: Undo 2010-12-31 patch.
22293         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22294
22295 2011-01-02  Bruno Haible  <bruno@clisp.org>
22296
22297         pread: Fix test whether it works.
22298         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22299
22300 2011-01-02  Bruno Haible  <bruno@clisp.org>
22301
22302         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22303         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22304         ends in "6". Don't require a specific month name. Try also the locale
22305         names found on HP-UX 11 and Solaris 7.
22306
22307 2011-01-02  Bruno Haible  <bruno@clisp.org>
22308
22309         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22310         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22311         C linkage.
22312         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22313
22314 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22315
22316         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22317         for consistency, since the "cluster" term is not used elsewhere.
22318         * lib/unigbrk.in.h: Update name.
22319         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22320         * lib/unigbrk/u16-grapheme-next.c: Update name.
22321         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22322         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22323         * lib/unigbrk/u32-grapheme-next.c: Update name.
22324         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22325         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22326         * lib/unigbrk/u8-grapheme-next.c: Update name.
22327         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22328         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22329         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22330         Suggested by Bruno Haible.
22331
22332 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22333
22334         Remove module 'u8-grapheme-len' as too redundant with
22335         'u8-grapheme-next'.
22336         * modules/unigbrk/u8-grapheme-len: Delete file.
22337         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22338         * lib/unigbrk.in.h: Remove prototype for deleted function.
22339         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22340         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22341
22342         Remove module 'u16-grapheme-len' as too redundant with
22343         'u16-grapheme-next'.
22344         * modules/unigbrk/u16-grapheme-len: Delete file.
22345         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22346         * lib/unigbrk.in.h: Remove prototype for deleted function.
22347         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22348         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22349
22350         Remove module 'u32-grapheme-len' as too redundant with
22351         'u32-grapheme-next'.
22352         * modules/unigbrk/u32-grapheme-len: Delete file.
22353         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22354         * lib/unigbrk.in.h: Remove prototype for deleted function.
22355         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22356         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22357
22358         Suggested by Bruno Haible.
22359
22360 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22361
22362         * unigbrk.in.h: Fix typo: "ben" => "been".
22363         Reported by Bruno Haible.
22364
22365 2011-01-01  Jim Meyering  <meyering@redhat.com>
22366
22367         maint: update almost all copyright ranges to include 2011
22368         Run the new "make update-copyright" rule.
22369
22370 2011-01-01  Jim Meyering  <meyering@redhat.com>
22371
22372         maint: update-copyright: exempt doc/INSTALL*
22373         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22374         since they are generated.  Suggested by Bruno Haible.
22375
22376 2011-01-01  Jim Meyering  <meyering@redhat.com>
22377
22378         maint: refine the update-copyright rule
22379         * Makefile (update-copyright): Also exclude any file that includes
22380         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22381         code that merely generates the comment.
22382
22383 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22384
22385         New module 'u8-grapheme-len'.
22386         * modules/unigbrk/u8-grapheme-len: New file.
22387         * modules/unigbrk/u8-grapheme-len-tests: New file.
22388         * lib/unigbrk.in.h: Add prototype for new function.
22389         * lib/unigbrk/u8-grapheme-len.c: New file.
22390         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22391
22392         New module 'u16-grapheme-len'.
22393         * modules/unigbrk/u16-grapheme-len: New file.
22394         * modules/unigbrk/u16-grapheme-len-tests: New file.
22395         * lib/unigbrk.in.h: Add prototype for new function.
22396         * lib/unigbrk/u16-grapheme-len.c: New file.
22397         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22398
22399         New module 'u32-grapheme-len'.
22400         * modules/unigbrk/u32-grapheme-len: New file.
22401         * modules/unigbrk/u32-grapheme-len-tests: New file.
22402         * lib/unigbrk.in.h: Add prototype for new function.
22403         * lib/unigbrk/u32-grapheme-len.c: New file.
22404         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22405
22406         New module 'u8-grapheme-next'.
22407         * modules/unigbrk/u8-grapheme-next: New file.
22408         * modules/unigbrk/u8-grapheme-next-tests: New file.
22409         * lib/unigbrk.in.h: Add prototype for new function.
22410         * lib/unigbrk/u8-grapheme-next.c: New file.
22411         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22412
22413         New module 'u16-grapheme-next'.
22414         * modules/unigbrk/u16-grapheme-next: New file.
22415         * modules/unigbrk/u16-grapheme-next-tests: New file.
22416         * lib/unigbrk.in.h: Add prototype for new function.
22417         * lib/unigbrk/u16-grapheme-next.c: New file.
22418         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22419
22420         New module 'u32-grapheme-next'.
22421         * modules/unigbrk/u32-grapheme-next: New file.
22422         * modules/unigbrk/u32-grapheme-next-tests: New file.
22423         * lib/unigbrk.in.h: Add prototype for new function.
22424         * lib/unigbrk/u32-grapheme-next.c: New file.
22425         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22426
22427         New module 'u8-grapheme-prev'.
22428         * modules/unigbrk/u8-grapheme-prev: New file.
22429         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22430         * lib/unigbrk.in.h: Add prototype for new function.
22431         * lib/unigbrk/u8-grapheme-prev.c: New file.
22432         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22433
22434         New module 'u16-grapheme-prev'.
22435         * modules/unigbrk/u16-grapheme-prev: New file.
22436         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22437         * lib/unigbrk.in.h: Add prototype for new function.
22438         * lib/unigbrk/u16-grapheme-prev.c: New file.
22439         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22440
22441         New module 'u32-grapheme-prev'.
22442         * modules/unigbrk/u32-grapheme-prev: New file.
22443         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22444         * lib/unigbrk.in.h: Add prototype for new function.
22445         * lib/unigbrk/u32-grapheme-prev.c: New file.
22446         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22447
22448         New module 'u8-grapheme-breaks'.
22449         * modules/unigbrk/u8-grapheme-breaks: New file.
22450         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22451         * lib/unigbrk.in.h: Add prototype for new function.
22452         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22453         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22454
22455         New module 'u16-grapheme-breaks'.
22456         * modules/unigbrk/u16-grapheme-breaks: New file.
22457         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22458         * lib/unigbrk.in.h: Add prototype for new function.
22459         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22460         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22461
22462         New module 'u32-grapheme-breaks'.
22463         * modules/unigbrk/u32-grapheme-breaks: New file.
22464         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22465         * lib/unigbrk.in.h: Add prototype for new function.
22466         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22467         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22468
22469         New module 'ulc-grapheme-breaks'.
22470         * modules/unigbrk/ulc-grapheme-breaks: New file.
22471         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22472         * m4/locale-ar.m4: New file.
22473         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22474         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22475         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22476
22477 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22478
22479         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22480         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22481         modified how this file was generated before I initially submitted
22482         the module, but failed to regenerate it.  This meant that several
22483         of the level2 entries were wrong.
22484         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22485         Remove the division-by-2 that is folded into the table now that
22486         gbrkprop.h has been regenerated properly.  Now -1 entries are
22487         handled correctly.
22488
22489         New module 'unigbrk/uc-gbrk-prop-tests'.
22490         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22491         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22492         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22493         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22494
22495 2011-01-01  Bruno Haible  <bruno@clisp.org>
22496
22497         Avoid use of hexadecimal escapes.
22498         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22499         instead of hexadecimal escapes.
22500
22501 2011-01-01  Jim Meyering  <meyering@redhat.com>
22502
22503         maint: new rule to update copyright year ranges
22504         * Makefile (update-copyright): New rule.
22505
22506         maint: indent with TABs in Makefile
22507         * Makefile: Expand leading sequences of spaces to TABs
22508
22509         version-etc: update the copyright year it reports
22510         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22511
22512 2010-12-31  Bruno Haible  <bruno@clisp.org>
22513
22514         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22515         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22516         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22517         zero.
22518
22519 2010-12-31  Bruno Haible  <bruno@clisp.org>
22520
22521         pwrite: Work around HP-UX 11.11 bug.
22522         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22523         works and set REPLACE_PWRITE if not.
22524         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22525         function.
22526         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22527
22528 2010-12-31  Bruno Haible  <bruno@clisp.org>
22529
22530         pread: Work around HP-UX 11 bugs.
22531         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22532         and set REPLACE_PREAD if not.
22533         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22534
22535 2010-12-31  Eric Blake  <eblake@redhat.com>
22536
22537         nl_langinfo: fix YESEXPR on Irix 6.5
22538         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22539         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22540         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22541         it.
22542
22543 2010-12-31  Bruno Haible  <bruno@clisp.org>
22544
22545         iconv: Document HP-UX 11 bug.
22546         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22547
22548 2010-12-31  Bruno Haible  <bruno@clisp.org>
22549
22550         ldexpl: Fix link error on HP-UX 11.
22551         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22552         LDEXPL_LIBM, using $ISNANL_LIBM.
22553
22554 2010-12-31  Eric Blake  <eblake@redhat.com>
22555
22556         ftello: avoid compilation failure with SunStudio c89
22557         * lib/ftello.c (ftello): Use lseek, not llseek.
22558
22559         tests: avoid failing coreutils tests on cygwin
22560         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22561         (create_exe_shims_): Return 0 when skipping.
22562
22563 2010-12-31  Bruno Haible  <bruno@clisp.org>
22564
22565         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22566         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22567
22568 2010-12-31  Bruno Haible  <bruno@clisp.org>
22569
22570         waitpid: Fix link error in C++ mode.
22571         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22572
22573 2010-12-31  Bruno Haible  <bruno@clisp.org>
22574
22575         isnan: Use GCC built-ins when possible.
22576         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22577         __builtin_isnan.
22578         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22579         (isnan): Define using GCC built-ins for GCC >= 4.0.
22580
22581 2010-12-31  Bruno Haible  <bruno@clisp.org>
22582
22583         isnand: Fix mistake.
22584         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22585         __builtin_isnand.
22586
22587 2010-12-31  Bruno Haible  <bruno@clisp.org>
22588
22589         open: Avoid C++ error on HP-UX 11.
22590         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22591
22592 2010-12-31  Bruno Haible  <bruno@clisp.org>
22593
22594         time_r: Add missing declarations on HP-UX 11.
22595         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22596         instead of HAVE_LOCALTIME_R.
22597         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22598         HAVE_LOCALTIME_R always.
22599         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22600         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22601         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22602         HAVE_LOCALTIME_R.
22603         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22604         * doc/posix-functions/localtime_r.texi: Likewise.
22605
22606 2010-12-29  Eric Blake  <eblake@redhat.com>
22607
22608         mountlist: tweak previous commit
22609         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22610         Reported by Paul Eggert.
22611
22612         mountlist: fix local drive detection on cygwin
22613         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22614         that works for cygwin.
22615
22616 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22617
22618         ftoastr, snprintf: ftoastr + snprintf module
22619         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22620         since the snprintf module now should be good enough here.
22621         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22622         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22623         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22624         GNULIB_SNPRINTF only for the test directory, and the latter
22625         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22626         seems to suffice by itself.
22627
22628 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22629
22630         alloca: one step towards thread-safety
22631         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22632         need for a static variable.  All callers changed.  This does not
22633         make the alloca replacement thread-safe, but it's one step.
22634
22635         tests: minor indenting change
22636         * tests/init.sh: Sync from coreutils housekeeping patch
22637         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22638         to keep lines within 80 columns.
22639
22640 2010-12-28  Jim Meyering  <meyering@redhat.com>
22641
22642         regex: don't infloop on persistent failing calloc
22643         * lib/regexec.c (build_trtable): Return failure indication upon
22644         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22645         In glibc, this was fixed for version 2.13:
22646         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22647
22648 2010-12-28  Bruno Haible  <bruno@clisp.org>
22649             Paul Eggert <eggert@cs.ucla.edu>
22650
22651         linkat: Make implementation robust against system behaviour variations.
22652         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22653         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22654         way, and to -2 if it needs a generic runtime test.
22655         * lib/linkat.c (solaris_optimized_link_immediate,
22656         solaris_optimized_link_follow): New functions.
22657         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22658         (check_same_link): Use it.
22659
22660 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22661
22662         New module 'unigbrk/base'.
22663         * modules/unigbrk/base: New file.
22664         * lib/unigbrk.in.h: New file.
22665
22666         New module 'unigbrk/uc-gbrk-prop'.
22667         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22668         * modules/unigbrk/uc-gbrk-prop: New file.
22669         * lib/unigbrk/gbrkprop.h: New file.
22670         * lib/unigbrk/uc-gbrk-prop.c: New file.
22671
22672         New module 'unigbrk/uc-is-grapheme-break'.
22673         * modules/unigbrk/uc-is-grapheme-break: New file.
22674         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22675         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22676         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22677         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22678         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22679
22680         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22681
22682 2010-12-27  Bruno Haible  <bruno@clisp.org>
22683
22684         linkat test: Avoid failure on Solaris 11 2010-11.
22685         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22686
22687 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22688
22689         utimens: work around glibc rounding bug on more platforms
22690         * lib/utimens.c (fdutimens): Work around rounding bug even if
22691         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22693
22694 2010-12-27  Bruno Haible  <bruno@clisp.org>
22695
22696         select tests: Improve comments.
22697         * tests/test-select.c (do_select): Add comments.
22698
22699 2010-12-27  Bruno Haible  <bruno@clisp.org>
22700
22701         select tests: Safer way of handling timeout.
22702         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22703         at every invocation.
22704
22705 2010-12-27  Bruno Haible  <bruno@clisp.org>
22706
22707         select tests: Use 'bool' where appropriate.
22708         * tests/test-select.c (connect_to_socket): Change argument type to
22709         'bool'.
22710
22711 2010-12-27  Bruno Haible  <bruno@clisp.org>
22712
22713         select tests: Use existing modules.
22714         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22715         (configure.ac): Don't test for unistd.h.
22716         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22717         declared in <unistd.h>.
22718
22719 2010-12-27  Bruno Haible  <bruno@clisp.org>
22720
22721         mbrtowc: Work around a Solaris 7 bug.
22722         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22723         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22724         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22725         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22726         MBRTOWC_NULL_ARG1_BUG.
22727         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22728         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22729         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22730         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22731
22732 2010-12-27  Jim Meyering  <meyering@redhat.com>
22733
22734         read-file.c: tweak syntax
22735         * lib/read-file.c (fread_file): Remove space after "*" in function
22736         definitions.
22737
22738 2010-12-27  Bruno Haible  <bruno@clisp.org>
22739
22740         times test: Avoid gcc warnings on OSF/1.
22741         * tests/test-times.c (main): Cast printf arguments from clock_t to
22742         'long int'.
22743
22744 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22745
22746         utimens: work around glibc rounding bug on older Linux kernels
22747         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22748         on Linux with a glibc whose utimes might not work, then work
22749         around a longstanding glibc bug involving rounding rather than
22750         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22751         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22752
22753 2010-12-26  Bruno Haible  <bruno@clisp.org>
22754
22755         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22756         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22757         _GL_CXXALIAS_SYS.
22758         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22759
22760 2010-12-26  Bruno Haible  <bruno@clisp.org>
22761
22762         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22763         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22764         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22765         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22766         looking for the declaration.
22767         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22768         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22769         problem.
22770         * doc/posix-functions/inet_pton.texi: Likewise.
22771
22772 2010-12-26  Bruno Haible  <bruno@clisp.org>
22773
22774         arpa_inet: Use the common idioms with C++ support.
22775         * lib/arpa_inet.in.h: Include c++defs.h.
22776         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22777         support.
22778         * modules/arpa_inet (Depends-on): Add c++defs.
22779         (Makefile.am): Substitute the contents of c++defs.h.
22780         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22781         * modules/arpa_inet-c++-tests: New file.
22782         * tests/test-arpa_inet-c++.cc: New file.
22783
22784 2010-12-25  Bruno Haible  <bruno@clisp.org>
22785
22786         Fix more C++ link errors on Solaris 8.
22787         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22788         $(LIB_EACCESS).
22789         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22790         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22791         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22792         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22793         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22794
22795 2010-12-25  Bruno Haible  <bruno@clisp.org>
22796
22797         printf-posix: Fix link error when a non-GCC compiler is used.
22798         * lib/stdio.in.h (printf): When not using GCC, override printf
22799         correctly.
22800         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22801
22802 2010-12-25  Bruno Haible  <bruno@clisp.org>
22803
22804         strerror_r-posix: Update doc.
22805         * doc/posix-functions/strerror_r.texi: Update doc about the return
22806         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22807
22808 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22809
22810         utimens: simplify the logic of the previous change
22811         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22812         This should not affect whether the test succeeds or fails.
22813
22814         utimens: configure better on hosts with NFS clock skew
22815         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22816         uses the clock of the local host.  It might use the clock of the
22817         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22818         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22819
22820 2010-12-25  Bruno Haible  <bruno@clisp.org>
22821
22822         ptsname test: Avoid failure on Solaris.
22823         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22824         open a pseudo-terminal; don't use BSD-style ptys.
22825         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22826
22827 2010-12-25  Bruno Haible  <bruno@clisp.org>
22828
22829         ptsname: Avoid ERANGE failure on some systems.
22830         * lib/ptsname.c (buffer): Increase size.
22831
22832 2010-12-25  Bruno Haible  <bruno@clisp.org>
22833
22834         rename, renameat: Avoid test failures at NFS mounted locations.
22835         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22836         so that subsequent mkdir calls succeed.
22837
22838 2010-12-25  Bruno Haible  <bruno@clisp.org>
22839
22840         iswblank: Fix C++ link error on Solaris 8.
22841         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22842         _GL_FUNCDECL_SYS.
22843
22844 2010-12-25  Bruno Haible  <bruno@clisp.org>
22845
22846         unistd: Fix C++ link error on Solaris 8.
22847         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22848
22849 2010-12-25  Bruno Haible  <bruno@clisp.org>
22850
22851         readlink doc: Mention an old glibc bug.
22852         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22853
22854 2010-12-25  Bruno Haible  <bruno@clisp.org>
22855
22856         fcntl-h: Fix for use of C++ on glibc systems.
22857         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22858         also on glibc systems in C++ mode.
22859         Reported by Gary V. Vaughan <gary@gnu.org>.
22860
22861 2010-12-25  Bruno Haible  <bruno@clisp.org>
22862
22863         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22864         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22865
22866 2010-12-25  Bruno Haible  <bruno@clisp.org>
22867
22868         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22869         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22870         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22871         test whether truncl works according to ISO C 99 with IEC 60559.
22872         * m4/truncl-ieee.m4: New file.
22873         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22874         m4/signbit.m4.
22875         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22876
22877 2010-12-25  Bruno Haible  <bruno@clisp.org>
22878
22879         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22880         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22881         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22882         test whether ceill works according to ISO C 99 with IEC 60559.
22883         * m4/ceill-ieee.m4: New file.
22884         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22885         m4/signbit.m4.
22886         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22887
22888 2010-12-25  Bruno Haible  <bruno@clisp.org>
22889
22890         Ensure all prerequisites of <wchar.h> are included.
22891         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22892         before <wchar.h>.
22893         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22894         gl_MBRLEN_NUL_RETVAL): Likewise.
22895         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22896         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22897         AC_FUNC_MBRTOWC): Likewise.
22898         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22899         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22900         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22901         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22902         Likewise.
22903         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22904         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22905         (gl_WCHAR_H): Improve comments.
22906         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22907
22908 2010-12-25  Bruno Haible  <bruno@clisp.org>
22909
22910         strtok_r: Fix C syntax error in autoconf macro.
22911         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22912         characters in test program.
22913
22914 2010-12-24  Bruno Haible  <bruno@clisp.org>
22915
22916         ceil, trunc, round: Fix gcc warnings.
22917         * lib/ceil.c (MIN): Undefine before redefining.
22918         * lib/trunc.c (MIN): Likewise.
22919         * lib/round.c (MIN): Likewise.
22920         Include <math.h> first.
22921
22922 2010-12-24  Bruno Haible  <bruno@clisp.org>
22923
22924         select tests: Avoid failures on OSF/1 5.1.
22925         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22926         failure of closing the last socket; it may fail with ECONNRESET.
22927
22928 2010-12-24  Eric Blake  <eblake@redhat.com>
22929
22930         stdint: avoid HP-UX 10.20 preprocessor bug
22931         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22932         than #if.
22933         * tests/test-floor2.c (main): Likewise.
22934         Reported by Peter O'Gorman.
22935
22936         pipe: make obsoletion transition easier
22937         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22938         * modules/pipe (Files): Include revived file.
22939         (Include): Drop reference, to mirror getdate's behavior.
22940
22941 2010-12-24  Bruno Haible  <bruno@clisp.org>
22942
22943         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22944         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22945         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22946         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22947
22948 2010-12-24  Bruno Haible  <bruno@clisp.org>
22949
22950         gethostname: Ensure declaration on NonStop Kernel.
22951         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22952         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22953
22954 2010-12-24  Bruno Haible  <bruno@clisp.org>
22955
22956         sys_select: Ensure all necessary types on NonStop Kernel.
22957         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22958         include <sys/time.h>.
22959         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22960         NonStop Kernel.
22961         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22962
22963 2010-12-24  Bruno Haible  <bruno@clisp.org>
22964
22965         sys_select: Remove unneeded include.
22966         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22967         have <sys/select.h>.
22968
22969 2010-12-24  Bruno Haible  <bruno@clisp.org>
22970
22971         gethostname: Provide a fallback for HOST_NAME_MAX.
22972         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22973         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22974         instead.
22975         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22976
22977 2010-12-24  Bruno Haible  <bruno@clisp.org>
22978
22979         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22980         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22981         (SA_RESTART): Likewise.
22982         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22983
22984 2010-12-24  Bruno Haible  <bruno@clisp.org>
22985
22986         signal: Define NSIG.
22987         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22988         * tests/test-signal.c (nsig): New variable.
22989         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22990
22991 2010-12-24  Bruno Haible  <bruno@clisp.org>
22992
22993         rename, renameat: Avoid test failures on OSF/1 5.1.
22994         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22995         alternative error codes.
22996         * tests/test-renameat.c (main): Likewise.
22997
22998 2010-12-24  Bruno Haible  <bruno@clisp.org>
22999
23000         *printf: Detect large precisions bug on Solaris 10/SPARC.
23001         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23002         by Paul Eggert.
23003         * tests/test-snprintf-posix.h (test_function): Add this test code here
23004         too.
23005         * tests/test-sprintf-posix.h (test_function): Likewise.
23006         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23007         * tests/test-vasprintf-posix.c (test_function): Likewise.
23008         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23009         around by gnulib.
23010         * doc/posix-functions/printf.texi: Likewise.
23011         * doc/posix-functions/snprintf.texi: Likewise.
23012         * doc/posix-functions/sprintf.texi: Likewise.
23013         * doc/posix-functions/vfprintf.texi: Likewise.
23014         * doc/posix-functions/vprintf.texi: Likewise.
23015         * doc/posix-functions/vsnprintf.texi: Likewise.
23016         * doc/posix-functions/vsprintf.texi: Likewise.
23017         * doc/posix-functions/dprintf.texi: Undo last commit.
23018         * doc/posix-functions/vdprintf.texi: Likewise.
23019
23020 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23021
23022         tests: port test-fdutimensat.c to Solaris 8
23023         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23024         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23025         On Solaris 8, it fails with errno == ENOSYS, because there is no
23026         futimens (so it can't use the fd), and there is no lutimens (so it
23027         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23028
23029         vsnprintf: make more consistent with snprintf; doc fixes
23030
23031         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23032         the byte count return problem was promoted from the snprintf-posix
23033         to the snprintf module.
23034         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23035         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23036         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23037         * tests/test-snprintf.c (main): Check the byte count returned.
23038         * tests/test-vsnprintf.c (main): Likewise.
23039
23040 2010-12-23  Eric Blake  <eblake@redhat.com>
23041
23042         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23043         * modules/sigpipe (License): Relax license.
23044
23045 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23046
23047         doc: document Solaris printf bug with large float precisions
23048         * doc/posix-functions/dprintf.texi (dprintf):
23049         * doc/posix-functions/fprintf.texi (fprintf):
23050         * doc/posix-functions/printf.texi (printf):
23051         * doc/posix-functions/snprintf.texi (snprintf):
23052         * doc/posix-functions/sprintf.texi (sprintf):
23053         * doc/posix-functions/vdprintf.texi (vdprintf):
23054         * doc/posix-functions/vfprintf.texi (vfprintf):
23055         * doc/posix-functions/vprintf.texi (vprintf):
23056         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23057         * doc/posix-functions/vsprintf.texi (vsprintf):
23058         Mention that these functions mishandle large floating point
23059         precisions on Solaris 10.  The same bug is also present in Solaris
23060         8, and I assume earlier.  This causes "cd gnulib-tests; make
23061         check" to fail on Solaris 8 (and I assume, later) when building
23062         the latest coreutils, in test-vasprintf-posix's call to
23063         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23064         the wide flavors (e.g., wprintf) so this patch just updates the
23065         documentation for the narrow ones.
23066
23067         test-posixtm.c: add two tests
23068         * tests/test-posixtm.c: Add two tests, to highlight the
23069         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23070         around this bug; this is merely to document it.
23071
23072 2010-12-22  Bruno Haible  <bruno@clisp.org>
23073
23074         getlogin_r: Work around portability problem on OSF/1.
23075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23076         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23077         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23078         test for a truncated result.
23079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23080         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23081         * modules/getlogin_r (Depends-on): Add memchr.
23082         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23083
23084 2010-12-22  Bruno Haible  <bruno@clisp.org>
23085
23086         ptsname: Avoid test failure on OSF/1 5.1.
23087         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23088         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23089         (same_slave): New function.
23090         (main): Use it to compare ptsname's result with the expected file name.
23091
23092 2010-12-22  Bruno Haible  <bruno@clisp.org>
23093
23094         Port extended stdio modules to HP NonStop Kernel.
23095         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23096         macros.
23097         * lib/fbufmode.c: Update comments.
23098         * lib/fflush.c: Likewise.
23099         * lib/fpurge.c: Likewise.
23100         * lib/freadable.c: Likewise.
23101         * lib/freadahead.c: Likewise.
23102         * lib/freading.c: Likewise.
23103         * lib/freadptr.c: Likewise.
23104         * lib/freadseek.c: Likewise.
23105         * lib/fseeko.c: Likewise.
23106         * lib/fseterr.c: Likewise.
23107         * lib/fwritable.c: Likewise.
23108         * lib/fwriting.c: Likewise.
23109         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23110
23111 2010-12-22  Bruno Haible  <bruno@clisp.org>
23112
23113         ttyname_r: Work around bug on OSF/1 5.1.
23114         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23115         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23116         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23117         present.
23118         * lib/ttyname_r.c (ttyname_r): Update comments.
23119
23120 2010-12-22  Bruno Haible  <bruno@clisp.org>
23121
23122         round: Implement result sign according to IEEE 754.
23123         * lib/round.c (MIN, MINUS_ZERO): New macros.
23124         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23125         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23126         * tests/test-round-ieee.c (main): Likewise.
23127         * tests/test-roundl-ieee.c (main): Likewise.
23128
23129         trunc: Implement result sign according to IEEE 754.
23130         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23131         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23132         * tests/test-trunc2.c: Include minus-zero.h.
23133         (MINUS_ZERO): New macro.
23134         (trunc_reference): Keep in sync with lib/trunc.c.
23135         * tests/test-truncf2.c: Include minus-zero.h.
23136         (MINUS_ZERO): New macro.
23137         (truncf_reference): Keep in sync with lib/trunc.c.
23138         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23139         * tests/test-trunc-ieee.c (main): Likewise.
23140         * tests/test-truncl-ieee.c (main): Likewise.
23141
23142         ceil: Implement result sign according to IEEE 754.
23143         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23144         (FUNC): Return -0.0 for -1 < x < 0.
23145         * tests/test-ceil2.c: Include minus-zero.h.
23146         (MINUS_ZERO): New macro.
23147         (ceil_reference): Keep in sync with lib/ceil.c.
23148         * tests/test-ceilf2.c: Include minus-zero.h.
23149         (MINUS_ZERO): New macro.
23150         (ceilf_reference): Keep in sync with lib/ceil.c.
23151         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23152         * tests/test-ceil-ieee.c (main): Likewise.
23153         * tests/test-ceill-ieee.c (main): Likewise.
23154
23155         floor: Implement result sign according to IEEE 754.
23156         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23157         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23158         * tests/test-floorf2.c (floorf_reference): Likewise.
23159         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23160         * tests/test-floor-ieee.c (main): Likewise.
23161         * tests/test-floorl-ieee.c (main): Likewise.
23162
23163 2010-12-22  Bruno Haible  <bruno@clisp.org>
23164
23165         getaddrinfo: Update doc.
23166         * doc/posix-functions/gai_strerror.texi: Return type is also different
23167         on AIX and HP-UX.
23168
23169 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23170
23171         getaddrinfo, inet_ntop: Update doc for Solaris.
23172         * doc/posix-functions/gai_strerror.texi: Return type is also an
23173         issue on Solaris 9 and earlier.
23174         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23175         on Solaris 10 and earlier.
23176
23177 2010-12-21  Bruno Haible  <bruno@clisp.org>
23178
23179         New module 'roundl-ieee'.
23180         * modules/roundl-ieee: New file.
23181         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23182         test whether roundl works according to ISO C 99 with IEC 60559.
23183         * m4/roundl-ieee.m4: New file.
23184         * modules/roundl-ieee-tests: New file.
23185         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23186         * tests/test-roundl.c (main): Remove signbit tests.
23187         * modules/roundl-tests (Depends-on): Remove signbit.
23188         * doc/posix-functions/roundl.texi: Mention the new module.
23189
23190 2010-12-21  Bruno Haible  <bruno@clisp.org>
23191
23192         New module 'truncl-ieee'.
23193         * modules/truncl-ieee: New file.
23194         * modules/truncl-ieee-tests: New file.
23195         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23196         * tests/test-truncl.c (main): Remove signbit tests.
23197         * modules/truncl-tests (Depends-on): Remove signbit.
23198         * doc/posix-functions/truncl.texi: Mention the new module.
23199
23200 2010-12-21  Bruno Haible  <bruno@clisp.org>
23201
23202         New module 'ceill-ieee'.
23203         * modules/ceill-ieee: New file.
23204         * modules/ceill-ieee-tests: New file.
23205         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23206         * tests/test-ceill.c (main): Remove signbit tests.
23207         * modules/ceill-tests (Depends-on): Remove signbit.
23208         * doc/posix-functions/ceill.texi: Mention the new module.
23209
23210 2010-12-21  Bruno Haible  <bruno@clisp.org>
23211
23212         New module 'floorl-ieee'.
23213         * modules/floorl-ieee: New file.
23214         * modules/floorl-ieee-tests: New file.
23215         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23216         * tests/test-floorl.c (main): Remove signbit tests.
23217         * modules/floorl-tests (Depends-on): Remove signbit.
23218         * doc/posix-functions/floorl.texi: Mention the new module.
23219
23220 2010-12-21  Bruno Haible  <bruno@clisp.org>
23221
23222         New module 'round-ieee'.
23223         * modules/round-ieee: New file.
23224         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23225         whether round works according to ISO C 99 with IEC 60559.
23226         * m4/round-ieee.m4: New file.
23227         * modules/round-ieee-tests: New file.
23228         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23229         * tests/test-round1.c (main): Remove signbit tests.
23230         * modules/round-tests (Depends-on): Remove 'signbit'.
23231         * doc/posix-functions/round.texi: Mention the new module.
23232
23233 2010-12-21  Bruno Haible  <bruno@clisp.org>
23234
23235         New module 'trunc-ieee'.
23236         * modules/trunc-ieee: New file.
23237         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23238         whether trunc works according to ISO C 99 with IEC 60559.
23239         * m4/trunc-ieee.m4: New file.
23240         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23242         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23243         * modules/trunc-ieee-tests: New file.
23244         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23245         * tests/test-trunc1.c (main): Remove signbit tests.
23246         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23247         * doc/posix-functions/trunc.texi: Mention the new module.
23248
23249 2010-12-21  Bruno Haible  <bruno@clisp.org>
23250
23251         New module 'ceil-ieee'.
23252         * modules/ceil-ieee: New file.
23253         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23254         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23255         ISO C 99 with IEC 60559.
23256         * m4/ceil-ieee.m4: New file.
23257         * modules/ceil (Files): Add lib/ceil.c.
23258         (Depends-on): Add 'float'.
23259         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23260         * lib/math.in.h (ceil): New declaration.
23261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23262         REPLACE_CEIL.
23263         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23264         * modules/ceil-ieee-tests: New file.
23265         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23266         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23267         * doc/posix-functions/ceil.texi: Mention the new module.
23268
23269 2010-12-21  Bruno Haible  <bruno@clisp.org>
23270
23271         New module 'floor-ieee'.
23272         * modules/floor-ieee: New file.
23273         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23274         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23275         ISO C 99 with IEC 60559.
23276         * m4/floor-ieee.m4: New file.
23277         * modules/floor (Files): Add lib/floor.c.
23278         (Depends-on): Add 'float'.
23279         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23280         * lib/math.in.h (floor): New declaration.
23281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23282         REPLACE_FLOOR.
23283         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23284         * modules/floor-ieee-tests: New file.
23285         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23286         * tests/test-math-c++.cc: Check the signature of 'floor'.
23287         * doc/posix-functions/floor.texi: Mention the new module.
23288
23289 2010-12-21  Bruno Haible  <bruno@clisp.org>
23290
23291         New module 'roundf-ieee'.
23292         * modules/roundf-ieee: New file.
23293         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23294         test whether roundf works according to ISO C 99 with IEC 60559.
23295         * m4/roundf-ieee.m4: New file.
23296         * modules/roundf-ieee-tests: New file.
23297         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23298         * tests/test-roundf1.c (main): Remove signbit tests.
23299         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23300         * doc/posix-functions/roundf.texi: Mention the new module.
23301
23302 2010-12-21  Bruno Haible  <bruno@clisp.org>
23303
23304         New module 'truncf-ieee'.
23305         * modules/truncf-ieee: New file.
23306         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23307         test whether truncf works according to ISO C 99 with IEC 60559.
23308         * m4/truncf-ieee.m4: New file.
23309         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23311         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23312         * modules/truncf-ieee-tests: New file.
23313         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23314         * tests/test-truncf1.c (main): Remove signbit tests.
23315         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23316         * doc/posix-functions/truncf.texi: Mention the new module.
23317
23318 2010-12-21  Bruno Haible  <bruno@clisp.org>
23319
23320         New module 'ceilf-ieee'.
23321         * modules/ceilf-ieee: New file.
23322         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23323         test whether ceilf works according to ISO C 99 with IEC 60559.
23324         * m4/ceilf-ieee.m4: New file.
23325         * modules/ceilf-ieee-tests: New file.
23326         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23327         * tests/test-ceilf1.c (main): Remove signbit tests.
23328         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23329         * doc/posix-functions/ceilf.texi: Mention the new module.
23330
23331 2010-12-21  Bruno Haible  <bruno@clisp.org>
23332
23333         New module 'floorf-ieee'.
23334         * modules/floorf-ieee: New file.
23335         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23336         test whether floorf works according to ISO C 99 with IEC 60559.
23337         * m4/floorf-ieee.m4: New file.
23338         * modules/floorf-ieee-tests: New file.
23339         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23340         * tests/test-floorf1.c (main): Remove signbit tests.
23341         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23342         * doc/posix-functions/floorf.texi: Mention the new module.
23343
23344 2010-12-21  Bruno Haible  <bruno@clisp.org>
23345
23346         Support for minus zero in autoconf macros.
23347         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23348         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23349         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23350         * tests/minus-zero.h: Update comments.
23351
23352 2010-12-21  Bruno Haible  <bruno@clisp.org>
23353
23354         Tests for module 'ceil'.
23355         * modules/ceil-tests: New file.
23356         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23357         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23358
23359 2010-12-21  Bruno Haible  <bruno@clisp.org>
23360
23361         Tests for module 'floor'.
23362         * modules/floor-tests: New file.
23363         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23364         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23365
23366 2010-12-21  Bruno Haible  <bruno@clisp.org>
23367
23368         math: Fix indentation.
23369         * lib/math.in.h (floorf): Fix indentation.
23370
23371 2010-12-21  Bruno Haible  <bruno@clisp.org>
23372
23373         Fix cross-compilation guesses on Solaris.
23374         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23375         not match "solaris2.10".
23376         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23377         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23378         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23379
23380 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23381
23382         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23383         This fixes a problem observed with the latest coreutils snapshot
23384         that caused a test to fail on Solaris 8.  src/csplit.c's call
23385         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23386         earlier, instead of returning the number of bytes that would have
23387         been generated; this causes csplit to incorrectly report memory
23388         exhaustion.
23389         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23390         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23391         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23392         comments to match.
23393         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23394         Fix typo in matching older versions of Solaris: "solaris2.10"
23395         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23396         only for guessing while cross-compiling.
23397         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23398
23399 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23400
23401         ftoastr: fix comment again
23402         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23404         Also, simplify example a bit by using flags = 0.
23405
23406 2010-12-20  Bruno Haible  <bruno@clisp.org>
23407
23408         round*, trunc*: Update documentation regarding glibc.
23409         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23410         * doc/posix-functions/round.texi: Likewise.
23411         * doc/posix-functions/roundl.texi: Likewise.
23412         * doc/posix-functions/truncf.texi: Likewise.
23413         * doc/posix-functions/trunc.texi: Likewise.
23414         * doc/posix-functions/truncl.texi: Likewise.
23415
23416 2010-12-20  Bruno Haible  <bruno@clisp.org>
23417
23418         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23419         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23420         * doc/posix-functions/round.texi: Likewise.
23421         * doc/posix-functions/roundl.texi: Likewise.
23422
23423 2010-12-20  Bruno Haible  <bruno@clisp.org>
23424
23425         ttyname_r: Add missing declaration on HP-UX 11.
23426         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23427         HAVE_TTYNAME_R.
23428         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23429         declared. Set HAVE_TTYNAME_R always.
23430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23431         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23432         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23433         HAVE_TTYNAME_R.
23434         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23435
23436 2010-12-20  Bruno Haible  <bruno@clisp.org>
23437
23438         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23439         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23440         * doc/posix-functions/getlogin_r.texi: Likewise.
23441         * tests/test-getlogin.c: Include <errno.h>.
23442         (main): Avoid test failure on HP-UX 11.11.
23443         * tests/test-getlogin_r.c (main): Likewise.
23444
23445 2010-12-20  Bruno Haible  <bruno@clisp.org>
23446
23447         getlogin_r: Add missing declaration on HP-UX 11.
23448         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23449         declared also when it exists as a function.
23450         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23451
23452 2010-12-20  Bruno Haible  <bruno@clisp.org>
23453
23454         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23455         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23456         through wcrtomb.
23457
23458 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23459
23460         ftoastr: fix comment
23461         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23462         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23463
23464 2010-12-19  Bruno Haible  <bruno@clisp.org>
23465
23466         isnan: Ensure it is a macro.
23467         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23468         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23469         Solaris.
23470
23471 2010-12-19  Bruno Haible  <bruno@clisp.org>
23472
23473         ldexpl test: Fix link error on OSF/1 5.1.
23474         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23475
23476 2010-12-19  Bruno Haible  <bruno@clisp.org>
23477
23478         wctype: Make it work in C++ mode on OSF/1 5.1.
23479         * lib/wctype.in.h (iswblank): Declare but not define here.
23480         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23481         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23482         * modules/wctype (Files): Add lib/iswblank.c.
23483
23484 2010-12-19  Bruno Haible  <bruno@clisp.org>
23485
23486         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23487         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23488         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23489
23490 2010-12-19  Bruno Haible  <bruno@clisp.org>
23491
23492         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23494         _POSIX_PII_SOCKET.
23495         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23496         * doc/posix-functions/recvfrom.texi: Likewise.
23497         * doc/posix-functions/send.texi: Likewise.
23498         * doc/posix-functions/sendto.texi: Likewise.
23499
23500 2010-12-19  Bruno Haible  <bruno@clisp.org>
23501
23502         tcgetsid: Add missing declaration on OSF/1 5.1.
23503         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23504         HAVE_TCGETSID.
23505         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23506         Don't set HAVE_TCGETSID.
23507         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23508         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23509         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23510         HAVE_TCGETSID.
23511         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23512
23513 2010-12-19  Bruno Haible  <bruno@clisp.org>
23514
23515         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23516         * lib/stdio.in.h: During the include_next statement, let recursive
23517         includes of this file include only the system header file.
23518
23519 2010-12-19  Bruno Haible  <bruno@clisp.org>
23520
23521         iconv_open: Fix regression from 2010-12-04.
23522         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23523         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23524
23525 2010-12-19  Bruno Haible  <bruno@clisp.org>
23526
23527         stdbool test: Avoid a gcc warning.
23528         * tests/test-stdbool.c (main): Fail if e1 is false.
23529         Reported by Jim Meyering.
23530
23531 2010-12-19  Jim Meyering  <meyering@redhat.com>
23532
23533         setenv: restore to working order
23534         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23535         mistakenly removed.
23536         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23537         HAVE_SETENV.
23538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23539         HAVE_SETENV.
23540
23541 2010-12-19  Bruno Haible  <bruno@clisp.org>
23542
23543         Document some different function declarations on OSF/1 5.1.
23544         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23545         * doc/posix-functions/inet_ntop.texi: Likewise.
23546         * doc/posix-functions/gethostname.texi: Likewise.
23547         * lib/unistd.in.h (gethostname): Update comment.
23548
23549 2010-12-19  Bruno Haible  <bruno@clisp.org>
23550
23551         doc: Mention vasprintf-posix module.
23552         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23553         the 'vasprintf-posix' module.
23554         * doc/glibc-functions/vasprintf.texi: Likewise.
23555
23556 2010-12-19  Bruno Haible  <bruno@clisp.org>
23557
23558         unsetenv: Add missing declaration on OSF/1 5.1.
23559         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23560         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23561         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23563         not HAVE_UNSETENV.
23564         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23565         HAVE_UNSETENV.
23566         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23567
23568 2010-12-19  Bruno Haible  <bruno@clisp.org>
23569
23570         setenv: Add missing declaration on OSF/1 5.1.
23571         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23572         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23573         declared. Don't set HAVE_SETENV.
23574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23575         not HAVE_SETENV.
23576         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23577         HAVE_SETENV.
23578         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23579
23580 2010-12-19  Bruno Haible  <bruno@clisp.org>
23581
23582         nl_langinfo tests: Avoid gcc warning.
23583         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23584
23585 2010-12-19  Bruno Haible  <bruno@clisp.org>
23586
23587         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23588         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23589         _GL_CXXALIAS_SYS.
23590
23591 2010-12-19  Bruno Haible  <bruno@clisp.org>
23592
23593         stdbool: Relax test.
23594         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23595         address to 'bool' work in static initializer, for compilers other than
23596         GCC.
23597
23598 2010-12-19  Bruno Haible  <bruno@clisp.org>
23599
23600         ftello: Add missing declaration on OSF/1 5.1.
23601         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23602         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23604         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23605         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23606
23607 2010-12-19  Bruno Haible  <bruno@clisp.org>
23608
23609         fseeko: Add missing declaration on OSF/1 5.1.
23610         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23611         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23613         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23614         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23615
23616 2010-12-19  Bruno Haible  <bruno@clisp.org>
23617
23618         fchdir: Add missing declaration on OSF/1 5.1.
23619         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23622         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23623         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23624
23625 2010-12-19  Bruno Haible  <bruno@clisp.org>
23626
23627         relocatable-prog-wrapper: Separate from relocatable-prog.
23628         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23629         uninstall-relocwrapper rule here.
23630         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23631         Reported by Ian Beckwith <ianb@erislabs.net>.
23632
23633 2010-12-19  Bruno Haible  <bruno@clisp.org>
23634
23635         unistr/u8-mbsnlen: Add missing dependency.
23636         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23637         Reported by Ian Beckwith <ianb@erislabs.net>.
23638
23639 2010-12-19  Bruno Haible  <bruno@clisp.org>
23640
23641         iconv: Make it possible again to use this module without 'iconv-h'.
23642         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23643         if it is not defined.
23644         Reported by Ian Beckwith <ianb@erislabs.net>.
23645
23646 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23647
23648         acl: port to Solaris 8 when copying from tmpfs to ufs
23649         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23650         error number.  Problem observed on Solaris 8 with latest
23651         coreutils, with "mv A B", where A is on a tmpfs file system and B
23652         is on a ufs file system.  This caused coreutils' mv/part-symlink
23653         test to fail.
23654
23655         tests: set fail=0 at start
23656         * tests/init.sh (setup_): Move fail=0 initialization here ...
23657         (mktempd_): ... from here, so that tests can rely on fail being
23658         set to 0 initially.  This fixes a problem in coreutils; see:
23659         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23660
23661 2010-12-18  Bruno Haible  <bruno@clisp.org>
23662
23663         memmem-simple: Stylistic changes.
23664         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23665         Fix preprocessor directive indentation.
23666
23667 2010-12-15  Pádraig Brady <P@draigBrady.com>
23668
23669         memmem, memmem-simple: reorganize and expand empty needle check
23670         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23671         functional checks to memmem-simple so that one has a fully functional
23672         memmem by using just this module.
23673         Restrict the performance only check to the memmem module.
23674         Also expand the empty needle check to ensure the correct
23675         pointer is returned, not just a non NULL pointer.
23676         * doc/glibc-functions/memmem.texi: Rearrange the portability
23677         documentation to correlate with the rearranged checks.
23678         Clarify exactly how the memmem and memmem-simple modules
23679         relate to each other.
23680
23681 2010-12-15  Pádraig Brady <P@draigBrady.com>
23682             Bruno Haible  <bruno@clisp.org>
23683
23684         Improve cross-compilation guesses for uClibc.
23685         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23686         that uClibc does not have the glibc bug.
23687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23688         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23689
23690 2010-12-14  Eric Blake  <eblake@redhat.com>
23691
23692         configmake: provide fallbacks for oldest supported autotools
23693         * m4/configmake.m4: New file.
23694         * modules/configmake (Files): Ship it.
23695         (configure.ac): Use it to guarantee fallbacks.
23696
23697 2010-12-13  Pádraig Brady <P@draigBrady.com>
23698
23699         read-file: Improve handling of large files
23700         * lib/read-file.c (fread_file): Minimize realloc()s
23701         for regular files, and better manage sizes around SIZE_MAX.
23702
23703 2010-12-13  Eric Blake  <eblake@redhat.com>
23704
23705         cloexec, fcntl: relax license
23706         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23707         consent from all contributors.
23708         * modules/fcntl (License): Likewise.
23709
23710 2010-12-10  Bruno Haible  <bruno@clisp.org>
23711
23712         Tests for module 'pipe-posix'.
23713         * modules/pipe-posix-tests: New file.
23714         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23715
23716 2010-12-10  Bruno Haible  <bruno@clisp.org>
23717
23718         pipe-posix: Make it work in C++ mode.
23719         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23720         (pipe): Use common idiom, not a macro definition.
23721         * lib/pipe.c: New file.
23722         * m4/pipe.m4: New file.
23723         * modules/pipe-posix (Description): Enhance.
23724         (Files): Add lib/pipe.c, m4/pipe.m4.
23725         (configure.ac): Invoke gl_FUNC_PIPE.
23726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23727         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23728         * tests/test-unistd-c++.cc: Check the signature of pipe.
23729
23730 2010-12-10  Bruno Haible  <bruno@clisp.org>
23731
23732         Rename module 'pipe' to 'spawn-pipe'.
23733         * modules/spawn-pipe: New file, renamed from modules/pipe.
23734         (Files, configure.ac, Makefile.am): Update.
23735         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23736         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23737         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23738         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23739         "spawn-pipe.h" instead of "pipe.h".
23740         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23741         to gl_SPAWN_PIPE.
23742         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23743         (Files, Makefile.am): Update.
23744         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23745         Update.
23746         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23747         Include "spawn-pipe.h" instead of "pipe.h".
23748         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23749         * lib/javacomp.c: Likewise.
23750         * lib/javaversion.c: Likewise.
23751         * lib/pipe-filter-gi.c: Likewise.
23752         * lib/pipe-filter-ii.c: Likewise.
23753         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23754         * modules/javacomp (Depends-on): Likewise.
23755         * modules/javaversion (Depends-on): Likewise.
23756         * modules/pipe-filter-gi (Depends-on): Likewise.
23757         * modules/pipe-filter-ii (Depends-on): Likewise.
23758         * MODULES.html.sh (Executing programs): Update.
23759         * NEWS: Mention the change.
23760
23761 2010-12-10  Eric Blake  <eblake@redhat.com>
23762
23763         pipe-posix: new module
23764         * modules/pipe-posix: New file.
23765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23766         (gl_UNISTD_H): Check for declaration.
23767         * modules/unistd (Makefile.am): Substitute it.
23768         * lib/unistd.in.h (pipe): Provide it for mingw.
23769         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23770         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23771
23772 2010-12-07  Bruno Haible  <bruno@clisp.org>
23773
23774         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23775         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23776         u8_strcmp_gnu.
23777         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23778
23779 2010-12-06  Bruno Haible  <bruno@clisp.org>
23780
23781         Update internal documentation.
23782         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23783
23784 2010-12-04  Bruno Haible  <bruno@clisp.org>
23785
23786         Put more information about failed tests into the test return codes.
23787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23788         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23789         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23790         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23791         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23792         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23793         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23794         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23795         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23797         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23798         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23799         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23800         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23801         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23802         returns a bit mask.
23803         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23804         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23805         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23806         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23807         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23808         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23809         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23811         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23812         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23813         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23814         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23815         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23816         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23817         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23818         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23819         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23820         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23821         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23822         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23823         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23824         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23825         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23826         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23827         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23828         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23829         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23830         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23831         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23832         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23833         gl_PRINTF_PRECISION): Likewise.
23834         * m4/regex.m4 (gl_REGEX): Likewise.
23835         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23836         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23837         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23838         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23839         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23841         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23842         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23843         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23844         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23845         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23846         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23847         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23848         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23849         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23850         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23851         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23852         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23854         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23855         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23856         enumerated value.
23857         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23858
23859 2010-12-04  Bruno Haible  <bruno@clisp.org>
23860
23861         Update for Solaris 11 2010-11.
23862         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23863         Express, released in November 2010.
23864
23865 2010-12-04  Bruno Haible  <bruno@clisp.org>
23866
23867         nproc: Relax license.
23868         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23869         and Paul Eggert.
23870         Requested by Ludovic Courtès <ludo@gnu.org>.
23871
23872 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23873
23874         utimecmp: fine-grained src to nearby coarse-grained dest
23875
23876         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23877         and the source is on a file system with higher-resolution time
23878         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23879         not work, and the time stamps are close together, the algorithm to
23880         determine the exact resolution from the read-back mtime was buggy:
23881         it had a "!=" where it should have had an "==".  This bug has been
23882         in the code ever since it was introduced to gnulib.
23883         Problem reported by Dan Jacobson in
23884         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23885
23886 2010-11-30  Bruno Haible  <bruno@clisp.org>
23887
23888         strerror_r-posix: Fix autoconf test.
23889         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23890
23891 2010-11-28  Bruno Haible  <bruno@clisp.org>
23892             Paul Eggert  <eggert@cs.ucla.edu>
23893
23894         Tests for module 'getdomainname'.
23895         * modules/getdomainname-tests: New file.
23896         * tests/test-getdomainname.c: New file, based on
23897         tests/test-gethostname.c.
23898
23899 2010-11-28  Bruno Haible  <bruno@clisp.org>
23900             Paul Eggert  <eggert@cs.ucla.edu>
23901
23902         getdomainname: Use the system function when possible.
23903         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23904         (getdomainname): Replace if needed. Provide the declaration if it is
23905         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23906         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23907         (getdomainname): When the system has getdomainname, call the system
23908         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23909         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23910         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23911         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23912         the function if its second argument is of type 'int' or if it is found
23913         in libnsl.
23914         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23915         <sys/systeminfo.h> and sysinfo().
23916         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23918         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23919         HAVE_GETDOMAINNAME.
23920         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23921         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23922         * doc/glibc-functions/getdomainname.texi: Document the problems with
23923         the getdomainname declaration.
23924
23925 2010-11-28  Bruno Haible  <bruno@clisp.org>
23926
23927         sys_socket: Ensure ss_family field on AIX.
23928         * lib/sys_socket.in.h (ss_family): New macro definition.
23929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23930         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23931         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23932         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23933         * modules/sys_socket (Makefile.am): Substitute
23934         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23935         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23936
23937 2010-11-27  Bruno Haible  <bruno@clisp.org>
23938
23939         readline: Improve configure output.
23940         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23941         "checking for readline..." result understandable.
23942
23943 2010-11-27  Bruno Haible  <bruno@clisp.org>
23944
23945         *printf-posix: Detect a bug on Solaris 10/x86.
23946         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23947         for floating-point output.
23948         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23949         directive.
23950         * tests/test-snprintf-posix.h (test_function): Likewise.
23951         * tests/test-sprintf-posix.h (test_function): Likewise.
23952         * tests/test-vasprintf-posix.c (test_function): Likewise.
23953         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23954         * doc/posix-functions/printf.texi: Likewise.
23955         * doc/posix-functions/snprintf.texi: Likewise.
23956         * doc/posix-functions/sprintf.texi: Likewise.
23957         * doc/posix-functions/vfprintf.texi: Likewise.
23958         * doc/posix-functions/vprintf.texi: Likewise.
23959         * doc/posix-functions/vsnprintf.texi: Likewise.
23960         * doc/posix-functions/vsprintf.texi: Likewise.
23961         * doc/glibc-functions/obstack_printf.texi: Likewise.
23962         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23963
23964 2010-11-27  Bruno Haible  <bruno@clisp.org>
23965
23966         Fix link error when module libunistring-optional is in use.
23967         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23968         * modules/striconveha-tests (Makefile.am): Likewise.
23969
23970 2010-11-27  Bruno Haible  <bruno@clisp.org>
23971
23972         regex: Mention link dependencies.
23973         * modules/regex (Link): New section.
23974         * modules/rpmatch (Link): Likewise.
23975         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23976
23977 2010-11-27  Bruno Haible  <bruno@clisp.org>
23978
23979         ftoastr: Fix compilation error on Solaris.
23980         * lib/ftoastr.c: Include <config.h>.
23981
23982 2010-11-27  Bruno Haible  <bruno@clisp.org>
23983
23984         getloadavg: Update documentation.
23985         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23986
23987 2010-11-27  Bruno Haible  <bruno@clisp.org>
23988
23989         sys_socket: Fix test whether the functions are declared.
23990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23991         not <sys/select.h>.
23992
23993 2010-11-27  Bruno Haible  <bruno@clisp.org>
23994
23995         getpass: Make sure to get system declaration on some platforms.
23996         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23997         gl_USE_SYSTEM_EXTENSIONS.
23998         * modules/getpass (Depends-on): Add extensions.
23999
24000 2010-11-26  Bruno Haible  <bruno@clisp.org>
24001
24002         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24003         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24004         'iconv' module is present.
24005         (ICONV_CONST): New macro.
24006         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24007         ICONV_CONST.
24008         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24009         set ICONV_CONST.
24010         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24011         here.
24012         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24013         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24014         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24015         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24016         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24017         present.
24018
24019 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24020
24021         ftoastr: comment fix
24022         * lib/ftoastr.c: "little" -> "little or no" in comment
24023
24024 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24025
24026         stdint: port to GCC 4.3 + OSX + Octave
24027         On this platform, stdint.h is buggy and defines int64_t to long
24028         long int.  The replacement defined it to long int, causing
24029         problems with C++ style name mangling.  Instead, trust the system
24030         definition if INT64_MAX is defined, and likewise for the unsigned
24031         variant.   Problem reported by Jarno Rajahalme in
24032         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24033         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24034         and don't mess with int64_t and INT64_MAX in this case.
24035         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24036
24037 2010-11-24  Bruno Haible  <bruno@clisp.org>
24038
24039         doc: Corrections regarding MacOS X 10.4 and 10.5.
24040         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24041         MacOS X.
24042         Reported by Simon Josefsson.
24043
24044 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24045
24046         Uninstall ".bin" files installed by relocwrapper.
24047         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24048         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24049         unless it is already there.
24050
24051 2010-11-21  Bruno Haible  <bruno@clisp.org>
24052
24053         Update for NetBSD 5.0.
24054         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24055         NetBSD; the test fails on NetBSD 5.0.
24056         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24057         about NetBSD.
24058
24059 2010-11-21  Bruno Haible  <bruno@clisp.org>
24060
24061         Update for HP-UX 11.23 and HP-UX 11.31.
24062         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24063         HP-UX.
24064
24065 2010-11-21  Bruno Haible  <bruno@clisp.org>
24066
24067         Update for MacOS X 10.5.
24068         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24069         MacOS X; the test fails on MacOS X 10.5.8.
24070         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24071         about MacOS X.
24072
24073 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24074
24075         bootstrap: add bootstrap_sync option.
24076         See discussion at
24077         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24078         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24079         * build-aux/bootstrap: Accept --bootstrap-sync to update
24080         bootstrap if it is not identical to the local gnulib's
24081         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24082         enable this by default.  Accept --no-bootstrap-sync to disable
24083         it.
24084
24085 2010-11-20  Bruno Haible  <bruno@clisp.org>
24086
24087         Ensure that <features.h> is included before __GLIBC__ is tested.
24088         * lib/printf-parse.h: Include <features.h>.
24089         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24090         Reported by Mike Frysinger <vapier@gentoo.org>.
24091
24092         Ensure that <features.h> is included before __GLIBC__ is tested.
24093         * lib/wchar.in.h: Include <features.h>.
24094         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24095         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24096         Reported by Mike Frysinger <vapier@gentoo.org>.
24097
24098         Ensure that <features.h> is included before __GLIBC__ is tested.
24099         * lib/arpa_inet.in.h: Include <features.h>.
24100         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24101         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24102         Reported by Mike Frysinger <vapier@gentoo.org>.
24103
24104         Ensure that <features.h> is included before __GLIBC__ is tested.
24105         * build-aux/link-warning.h: Include <features.h>.
24106         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24107         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24108         Reported by Mike Frysinger <vapier@gentoo.org>.
24109
24110         Ensure that <features.h> is included before __GLIBC__ is tested.
24111         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24112         Reported by Mike Frysinger <vapier@gentoo.org>.
24113
24114 2010-11-20  Bruno Haible  <bruno@clisp.org>
24115
24116         memmem: Fix autoconf test.
24117         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24118
24119 2010-11-20  Bruno Haible  <bruno@clisp.org>
24120
24121         Port to uClibc.
24122         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24123         * lib/fcntl.in.h: Likewise.
24124         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24125         * lib/mbrtowc.c (mbrtowc): Likewise.
24126         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24127         * lib/strerror_r.c: Likewise.
24128         * lib/unistr/u8-strnlen.c: Likewise.
24129         * lib/vasnprintf.c (decimal_point_char): Likewise.
24130         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24131         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24132         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24133         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24134         * tests/test-sigaction.c (handler, main): Likewise.
24135         * lib/freading.h: Treat uClibc like a non-glibc platform.
24136         * lib/freading.c: Likewise.
24137         * lib/gettext.h: Likewise.
24138         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24139         Likewise.
24140         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24141         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24142         * lib/propername.c (proper_name_utf8): Likewise.
24143         * lib/spawn.in.h: Likewise.
24144         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24145         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24146         mem_cd_iconveh_internal): Likewise.
24147         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24148         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24149         strstr, strcasestr): Likewise.
24150         * lib/unicodeio.c (unicode_to_mb): Likewise.
24151         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24152         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24153         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24154         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24155         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24156         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24157         * lib/unistr/u8-stpncpy.c: Likewise.
24158         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24159         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24161         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24162         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24164         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24167         Likewise.
24168         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24169         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24170         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24171         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24172         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24173         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24174         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24175         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24176         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24177         * tests/test-striconveha.c (main): Likewise.
24178         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24179         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24180         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24181         * doc/posix-functions/getline.texi: Likewise.
24182         Reported by Mike Frysinger <vapier@gentoo.org>.
24183
24184 2010-11-20  Bruno Haible  <bruno@clisp.org>
24185
24186         nproc: Fix condition.
24187         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24188         HAVE_PTHREAD_AFFINITY_NP.
24189
24190 2010-11-20  Bruno Haible  <bruno@clisp.org>
24191
24192         Fix a comment.
24193         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24194
24195 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24196
24197         ftoastr: don't assume snprintf
24198         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24199         Implement a subset of snprintf here, by using sprintf safely.
24200         * modules/ftoastr (Depends-on): Remove snprintf.
24201
24202 2010-11-19  Jim Meyering  <meyering@redhat.com>
24203
24204         test-rename.h: fix compilation failure
24205         * tests/test-rename.h (test_rename): Add omitted "}".
24206
24207 2010-11-17  Jim Meyering  <meyering@redhat.com>
24208
24209         maint.mk: add a URL discussing the no-@acronym policy
24210         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24211
24212 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24213
24214         ftoastr: depend on snprintf, improve comments
24215         * lib/ftoastr.c: Also mention Loitsch's draft.
24216         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24217         needed in the current implementation, but it might simplify
24218         speeding up the code later.
24219         * modules/ftoastr: Depend on snprintf; this improves portability.
24220         Suggested by Bruno Haible in the same email.
24221
24222         ftoastr: port to hosts lacking strtof and strtold
24223         Problem reported by Bruno Haible in
24224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24225         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24226         environment and strtold (and presumably strtof) are not available.
24227         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24228         (configure.ac): Require gl_C99_STRTOLD.
24229
24230 2010-11-18  Bruno Haible  <bruno@clisp.org>
24231
24232         c-strtold: Avoid link error on AIX 7.
24233         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24234         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24235         (gl_C_STRTOLD): Test whether strtold_l exists.
24236         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24237
24238 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         intprops: new macro INT_BITS_STRLEN_BOUND
24241         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24242         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24243         not exposed.  Also, it uses a slightly tighter bound than before;
24244         though this makes no practical difference, we might as well be as
24245         tight as we easily can.
24246
24247         ftoastr: new module, for lossless conversion of floats to short strings
24248         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24249         * modules/ftoastr: New files.
24250
24251 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24252
24253         bootstrap: port to Solaris sed
24254         * build-aux/bootstrap (get_version): Port to Solaris sed.
24255         See Ralf Wildenhues's note in
24256         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24257
24258 2010-11-14  Jim Meyering  <meyering@redhat.com>
24259
24260         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24261         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24262         and move definition closer to sole use.
24263
24264 2010-11-13  Jim Meyering  <meyering@redhat.com>
24265
24266         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24267         Now we require at least autoconf-2.59, which means the work-around
24268         is no longer needed.
24269         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24270         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24272         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24273         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24274
24275 2010-11-13  Bruno Haible  <bruno@clisp.org>
24276
24277         rename, renameat: Avoid test failures at NFS mounted locations.
24278         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24279         functions.
24280         (test_rename): Use assert_nonexistent.
24281         * tests/test-rename.c: Include <dirent.h>.
24282         * tests/test-renameat.c: Likewise.
24283         Reported by Gary V. Vaughan <gary@gnu.org>.
24284
24285         rename, renameat: Document Linux bug with NFS
24286         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24287         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24288         * doc/posix-functions/renameat.texi: Likewise.
24289         Suggested by Eric Blake.
24290
24291 2010-11-13  Bruno Haible  <bruno@clisp.org>
24292
24293         rename test: Add comments.
24294         * tests/test-rename.h (test_rename): Add structure and comments.
24295
24296 2010-11-13  Eric Blake  <eblake@redhat.com>
24297
24298         maintainer-makefile: cover a few more files
24299         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24300         scripts generated within C files, for libvirt.
24301
24302 2010-11-13  Bruno Haible  <bruno@clisp.org>
24303
24304         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24305         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24306         character, return the number of bytes that belong together, not always
24307         1.
24308         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24309         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24310         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24311         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24312         number of bytes of an invalid character.
24313         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24314         (main): Invoke it.
24315         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24316         results.
24317         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24318         malformed byte sequences.
24319         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24320         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24321         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24322         Reported by Ben Pfaff and Paolo Bonzini.
24323
24324 2010-11-13  Bruno Haible  <bruno@clisp.org>
24325
24326         openat: Work around glibc bug with fchownat() and empty file names.
24327         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24328         (gl_FUNC_FCHOWNAT): Invoke it.
24329         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24330         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24331         Reported by Gary V. Vaughan <gary@gnu.org>.
24332
24333 2010-11-13  Bruno Haible  <bruno@clisp.org>
24334
24335         openat: Ensure autoconf macro ordering.
24336         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24337         gl_USE_SYSTEM_EXTENSIONS.
24338         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24339
24340 2010-11-13  Bruno Haible  <bruno@clisp.org>
24341
24342         Update comments.
24343         * lib/unistr/u8-check.c: Update file name in comments.
24344         * lib/unistr/u8-mblen.c: Likewise.
24345         * lib/unistr/u8-prev.c: Likewise.
24346         * lib/unistr/u8-strmblen.c: Likewise.
24347         * lib/unistr/u8-strmbtouc.c: Likewise.
24348
24349 2010-11-13  Jim Meyering  <meyering@redhat.com>
24350
24351         tests: avoid test failure on Solaris 10 due to lack of PATH export
24352         * tests/test-update-copyright.sh: Don't forget to export PATH.
24353
24354         init.sh: ensure that IFS is defined, just in case...
24355         * tests/init.sh (setup_): Ensure that IFS is defined,
24356         so that saving and restoring it works as expected.  This
24357         appears to be useful at least for an old version of dash
24358         from a long time ago (RH 6).  See here for details:
24359         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24360
24361         maint.mk: tighten "test a == b" check
24362         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24363         test to files that contain something like #!/bin/sh.
24364         Without this, coreutils would get two false positives in
24365         the comments of C source files.
24366
24367 2010-11-12  Eric Blake  <eblake@redhat.com>
24368
24369         bootstrap: fix typo in previous attempt
24370         * build-aux/bootstrap (buildreq): Correct the grouping.
24371         Reported by Paul Eggert.
24372
24373         maintainer-makefile: prohibit test x == x
24374         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24375         Based on a report by Matthias Bolte.
24376
24377         bootstrap: allow FreeBSD gzip
24378         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24379         which has no '.' and goes to stderr.
24380         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24381         Reported by Matthias Bolte.
24382
24383         maintainer-makefile: check for i18n setup
24384         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24385         will likely work.
24386
24387 2010-11-12  Bruno Haible  <bruno@clisp.org>
24388
24389         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24390         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24391         * lib/nanosleep.c (nanosleep): Likewise.
24392
24393 2010-11-11  Bruno Haible  <bruno@clisp.org>
24394
24395         fcntl-h: Fix for use of C++ on glibc systems.
24396         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24397         also on glibc systems in C++ mode.
24398         Reported by Gary V. Vaughan <gary@gnu.org>.
24399
24400 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24401
24402         mknod: avoid false failure with dash
24403         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24404
24405 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24406
24407         unlink: Fix "is it should" typo in diagnostic.
24408         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24410
24411 2010-11-11  Bruno Haible  <bruno@clisp.org>
24412
24413         Tests for module 'strerror_r-posix'.
24414         * modules/strerror_r-posix-tests: New file.
24415         * tests/test-strerror_r.c: New file.
24416         * tests/test-string-c++.cc: Check the signature of strerror_r.
24417
24418         New module 'strerror_r-posix'.
24419         * lib/string.in.h (strerror_r): New declaration.
24420         * lib/strerror_r.c: New file.
24421         * m4/strerror_r.m4: New file.
24422         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24423         of strerror_r.
24424         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24425         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24426         * modules/strerror_r-posix: New file.
24427         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24428         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24429         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24430         portability problems.
24431
24432 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24433
24434         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24435         line is also considered for output. Quoted function name in shell
24436         command, so temporary files for functions like MyClass::operator()
24437         are removed correctly without errors.
24438
24439 2010-11-09  Bruno Haible  <bruno@clisp.org>
24440
24441         * doc/posix-functions/strerror.texi: List more failing platforms.
24442
24443         * doc/posix-functions/strerror.texi: Add a comment.
24444
24445 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24446
24447         fdopendir: fix bug on MacOS X when low on file descriptors
24448
24449         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24450         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24451         All callers changed.
24452         (fdopendir): Invoke save_cwd at the top level, not after using
24453         multiple dup() calls to use up file descriptors.  Then retry
24454         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24455         less than the maximum number of open file descriptors, because
24456         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24457         on Mac OS X 10.6.4 for tar 1.24
24458         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24459         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24460         and for tar 1.25
24461         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24462
24463 2010-11-07  Bruno Haible  <bruno@clisp.org>
24464
24465         vasnprintf: Support I flag on glibc systems.
24466         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24467         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24468         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24469         snprintf function.
24470         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24471         glibc systems.
24472         * tests/test-vasnprintf-posix3.c: New file.
24473         * modules/vasnprintf-posix-tests (Files): Add it.
24474         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24475
24476 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24477
24478         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24479         * MODULES.html.sh: For compiler warnings, use name
24480         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24481
24482 2010-11-05  Eric Blake  <eblake@redhat.com>
24483
24484         ceil, floor: avoid spurious failure with icc
24485         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24486         [denormals-as-zero] when optimizing without -mieee-fp option.
24487         * tests/test-floorf2.c (floorf_reference): Likewise.
24488         * tests/test-ceilf1.c (dummy): New function.
24489         (main): Use it to outsmart icc's optimization.
24490         * tests/test-floorf1.c (dummy, main): Likewise.
24491
24492         tests: require working signbit
24493         * modules/ceilf-tests (Depends-on): Add signbit.
24494         * modules/ceill-tests (Depends-on): Likewise.
24495         * modules/floorf-tests (Depends-on): Likewise.
24496         * modules/floorl-tests (Depends-on): Likewise.
24497         * modules/round-tests (Depends-on): Likewise.
24498         * modules/roundf-tests (Depends-on): Likewise.
24499         * modules/roundl-tests (Depends-on): Likewise.
24500         * modules/trunc-tests (Depends-on): Likewise.
24501         * modules/truncf-tests (Depends-on): Likewise.
24502         * modules/truncl-tests (Depends-on): Likewise.
24503
24504         strtod: work around icc bug
24505         * lib/strtod.c (minus_zero): Define to working value.
24506         (strtod): Use it to avoid icc bug.
24507
24508         copysign: enhance tests
24509         * modules/copysign-tests (Files): Add minus-zero.h.
24510         * tests/test-copysign.c (main): Also test zeros.
24511
24512 2010-11-04  Eric Blake  <eblake@redhat.com>
24513
24514         ceil, floor, round, trunc: enhance tests of -0
24515         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24516         * tests/test-ceill.c (main): Likewise.
24517         * tests/test-floorf1.c (main): Likewise.
24518         * tests/test-floorl.c (main): Likewise.
24519         * tests/test-round1.c (main): Likewise.
24520         * tests/test-roundf1.c (main): Likewise.
24521         * tests/test-roundl.c (main): Likewise.
24522         * tests/test-trunc1.c (main): Likewise.
24523         * tests/test-truncf1.c (main): Likewise.
24524         * tests/test-truncl.c (main): Likewise.
24525
24526 2010-11-04  Eric Blake  <eblake@redhat.com>
24527
24528         frexp, tests: work around ICC bug with -zero
24529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24530         works with more compilers.
24531         * tests/minus-zero.h: New file.
24532         * modules/ceilf-tests (Files): Include it.
24533         * modules/ceill-tests (Files): Likewise.
24534         * modules/floorf-tests (Files): Likewise.
24535         * modules/floorl-tests (Files): Likewise.
24536         * modules/frexp-nolibm-tests (Files): Likewise.
24537         * modules/frexp-tests (Files): Likewise.
24538         * modules/frexpl-nolibm-tests (Files): Likewise.
24539         * modules/frexpl-tests (Files): Likewise.
24540         * modules/isnan-tests (Files): Likewise.
24541         * modules/isnand-nolibm-tests (Files): Likewise.
24542         * modules/isnand-tests (Files): Likewise.
24543         * modules/isnanf-nolibm-tests (Files): Likewise.
24544         * modules/isnanf-tests (Files): Likewise.
24545         * modules/isnanl-nolibm-tests (Files): Likewise.
24546         * modules/isnanl-tests (Files): Likewise.
24547         * modules/round-tests (Files): Likewise.
24548         * modules/roundf-tests (Files): Likewise.
24549         * modules/roundl-tests (Files): Likewise.
24550         * modules/ldexpl-tests (Files): Likewise.
24551         * modules/signbit-tests (Files): Likewise.
24552         * modules/snprintf-posix-tests (Files): Likewise.
24553         * modules/sprintf-posix-tests (Files): Likewise.
24554         * modules/strtod-tests (Files): Likewise.
24555         * modules/trunc-tests (Files): Likewise.
24556         * modules/truncf-tests (Files): Likewise.
24557         * modules/truncl-tests (Files): Likewise.
24558         * modules/vsnprintf-posix-tests (Files): Likewise.
24559         * modules/vsprintf-posix-tests (Files): Likewise.
24560         * modules/vasnprintf-posix-tests (Files): Likewise.
24561         * modules/vasprintf-posix-tests (Files): Likewise.
24562         * tests/test-ceilf1.c (main): Use it.
24563         * tests/test-ceill.c (main): Likewise.
24564         * tests/test-floorf1.c (main): Likewise.
24565         * tests/test-floorl.c (main): Likewise.
24566         * tests/test-frexp.c (main): Likewise.
24567         * tests/test-frexpl.c (main): Likewise.
24568         * tests/test-isnan.c (main): Likewise.
24569         * tests/test-isnand.h (main): Likewise.
24570         * tests/test-isnanf.h (main): Likewise.
24571         * tests/test-isnanl.h (main): Likewise.
24572         * tests/test-ldexpl.c (main): Likewise.
24573         * tests/test-round.c (main): Likewise.
24574         * tests/test-roundf.c (main): Likewise.
24575         * tests/test-roundl.c (main): Likewise.
24576         * tests/test-signbit.c (test_signbitf, test_signbitd)
24577         (test_signbitl): Likewise.
24578         * tests/test-snprintf-posix.h (test_function): Likewise.
24579         * tests/test-sprintf-posix.h (test_function): Likewise.
24580         * tests/test-strtod.c (main): Likewise.
24581         * tests/test-trunc1.c (main): Likewise.
24582         * tests/test-truncf1.c (main): Likewise.
24583         * tests/test-truncl.c (main): Likewise.
24584
24585         isnanl: work around icc bug
24586         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24587
24588 2010-11-03  Eric Blake  <eblake@redhat.com>
24589
24590         tests: fix compiler warnings
24591         * tests/test-getopt.h (test_getopt): Fix condition.
24592         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24593         * tests/test-pipe2.c (main): Likewise.
24594         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24595
24596         utimens: fix broken m4 test
24597         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24598
24599 2010-10-28  Bruno Haible  <bruno@clisp.org>
24600
24601         posix_spawn*, getdtablesize: Relax license.
24602         * modules/posix_spawn (License): Change to LGPLv2+.
24603         * modules/posix_spawnp (License): Likewise.
24604         * modules/posix_spawn-internal (License): Likewise.
24605         * modules/posix_spawnattr_init (License): Likewise.
24606         * modules/posix_spawnattr_getflags (License): Likewise.
24607         * modules/posix_spawnattr_setflags (License): Likewise.
24608         * modules/posix_spawnattr_getpgroup (License): Likewise.
24609         * modules/posix_spawnattr_setpgroup (License): Likewise.
24610         * modules/posix_spawnattr_getschedparam (License): Likewise.
24611         * modules/posix_spawnattr_setschedparam (License): Likewise.
24612         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24613         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24614         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24615         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24616         * modules/posix_spawnattr_getsigmask (License): Likewise.
24617         * modules/posix_spawnattr_setsigmask (License): Likewise.
24618         * modules/posix_spawnattr_destroy (License): Likewise.
24619         * modules/posix_spawn_file_actions_init (License): Likewise.
24620         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24621         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24622         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24623         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24624         * modules/getdtablesize (License): Likewise.
24625         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24626
24627 2010-10-26  Bruno Haible  <bruno@clisp.org>
24628
24629         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24630         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24631         Cygwin and mingw.
24632         Suggested by Eric Blake.
24633
24634 2010-10-26  Bruno Haible  <bruno@clisp.org>
24635
24636         stdio: Work around compilation error due to renameat() on Solaris 10.
24637         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24638         * lib/renameat.c: Don't include <unistd.h> here.
24639         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24640         Reported by Paul Eggert and Eric Blake.
24641
24642 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24643
24644         renameat: port to Solaris 10, which declares renameat in unistd.h
24645
24646         * lib/renameat.c: Include unistd.h before stdio.h, because
24647         Solaris 10 declares renameat in unistd.h.  Problem encountered
24648         when building GNU tar 1.24 on Solaris 10.
24649
24650 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24651
24652         fdopendir: fix C89 compilation
24653         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24654         compilers.
24655
24656 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24657
24658         inttostr: simplify by removing unnecessary redundancy
24659         * lib/anytostr.c: Don't include verify.h.
24660         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24661         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24662         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24663         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24664         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24665         Likewise.
24666         * modules/inttostr (Depends-on): Remove 'verify'.
24667
24668 2010-10-23  Bruno Haible  <bruno@clisp.org>
24669
24670         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24671         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24672         Reported by Eric Blake.
24673
24674 2010-10-23  Bruno Haible  <bruno@clisp.org>
24675
24676         Tests: Fix LOCALE_JA on MirBSD 10.
24677         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24678         to an UTF-8 locale.
24679         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24680         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24681         Reported by Eric Blake.
24682
24683 2010-10-21  Bruno Haible  <bruno@clisp.org>
24684
24685         nl_langinfo test: Avoid test failure on NetBSD 5.
24686         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24687         Reported by Eric Blake.
24688
24689 2010-10-21  Eric Blake  <eblake@redhat.com>
24690
24691         c-stack: work around libsigsegv 2.8 bug
24692         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24693         overflow on at least PowerPC64.
24694
24695 2010-10-17  Bruno Haible  <bruno@clisp.org>
24696
24697         userspec: Drop redundant file.
24698         * modules/userspec (Files): Remove lib/inttostr.h.
24699
24700 2010-10-17  Bruno Haible  <bruno@clisp.org>
24701
24702         nl_langinfo tests: Silence some warnings.
24703         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24704         Reported by Jim Meyering.
24705
24706 2010-10-17  Bruno Haible  <bruno@clisp.org>
24707
24708         Make use of GCC's attribute __alloc_size__.
24709         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24710         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24711         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24712         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24713         __alloc_size__.
24714         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24715         Suggested by Jim Meyering.
24716
24717 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24718
24719         bootstrap: anchor .gitignore entries.
24720         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24721         with...
24722         (insert_vc_ignore): ... this new function, which prepends `/' to
24723         all .gitignore entries before passing them to
24724         insert_sorted_if_absent.
24725
24726 2010-10-16  Bruno Haible  <bruno@clisp.org>
24727
24728         nextafter: Fix configure check.
24729         * modules/nextafter (configure.ac): Correct expected prototype.
24730
24731 2010-10-16  Bruno Haible  <bruno@clisp.org>
24732
24733         termios: Update documentation.
24734         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24735
24736 2010-10-16  Bruno Haible  <bruno@clisp.org>
24737
24738         tests: Make them compile with TinyCC.
24739         * tests/test-strstr.c (main): Remove parentheses around array
24740         initializer.
24741
24742 2010-10-15  Eric Blake  <eblake@redhat.com>
24743
24744         ignore-value: make header idempotent
24745         * lib/ignore-value.h: Add double-inclusion guards.
24746         Reported by Stefan Berger.
24747
24748 2010-10-15  Jim Meyering  <meyering@redhat.com>
24749
24750         GNUmakefile: handle "stable" target, not "major"
24751         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24752         lists in maint.mk and announce-gen.  Without this, "make stable"
24753         would fail to ensure that $(VERSION) is up to date.
24754
24755 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24756
24757         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24758         & co.
24759
24760 2010-10-14  Bruno Haible  <bruno@clisp.org>
24761
24762         vasnprintf: Don't set errno to 0.
24763         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24764         block that sets it to 0.
24765         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24766
24767 2010-10-14  Bruno Haible  <bruno@clisp.org>
24768
24769         socketlib: Fix.
24770         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24771         gl_PREREQ_SYS_H_WINSOCK2.
24772         Reported by Ian Beckwith <ianb@erislabs.net>.
24773
24774 2010-10-13  Jim Meyering  <meyering@redhat.com>
24775
24776         test-select-stdin.c: avoid warn_unused_result warnings
24777         * tests/test-select-stdin.c: Include "macros.h".
24778         ASSERT that read and fflush succeed.
24779
24780 2010-10-13  Jim Meyering  <meyering@redhat.com>
24781
24782         git-version-gen: do require git-VC'd files in cwd
24783         * build-aux/git-version-gen: Reject a git version string
24784         if there are no commits associated with the current directory.
24785         This avoids an unlikely false-positive (unrelated dir whose parent
24786         repository also contains a tag matching v*), as pointed out
24787         by Giuseppe Scrivano in
24788         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24789
24790 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24791
24792         argv-iter: omit nonconforming declaration
24793         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24794         enum arg_iter_err declaration, which doesn't conform to C99.
24795         Solaris 10 cc warns about this.
24796
24797 2010-10-13  Eric Blake  <eblake@redhat.com>
24798
24799         termios: fix compilation on mingw
24800         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24801         (gl_TERMIOS_H): Adjust it on mingw.
24802         * modules/termios (Makefile.am): Substitute new key.
24803         * lib/termios.in.h (includes): Make include_next conditional.
24804         * doc/posix-headers/termios.texi (termios.h): Update
24805         documentation.
24806         Reported by Daniel P. Berrange.
24807
24808 2010-10-13  Jim Meyering  <meyering@redhat.com>
24809
24810         git-version-gen: don't require that .git/ be in the current dir
24811         * build-aux/git-version-gen: Adjust this script so that it works
24812         when run from any working directory beneath the top-level .git/-
24813         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24814         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24815
24816         test-select: avoid warn_unused_result warnings
24817         * tests/test-select.c: Include "macros.h".
24818         ASSERT that each call to read, write, and pipe succeeds.
24819         While not technically required, also check each "close".
24820         * modules/select-tests (Files): Add tests/macros.h.
24821
24822         test-symlinkat: remove declaration of unused local
24823         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24824
24825         test-inttostr: avoid shadowing warnings
24826         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24827         and use malloc rather than the stack for the same reason as
24828         mentioned in the comment justifying the other allocation.
24829
24830 2010-10-11  Bruno Haible  <bruno@clisp.org>
24831
24832         stdlib: Allow multiple gnulib generated replacements to coexist.
24833         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24834         Reported by Sam Steingold <sds@gnu.org>.
24835
24836 2010-10-11  Jim Meyering  <meyering@redhat.com>
24837
24838         fix a documentation typo
24839         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24840
24841 2010-10-11  Eric Blake  <eblake@redhat.com>
24842
24843         futimens: work around Solaris 11 bug
24844         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24845         * tests/test-futimens.h (test_futimens): Enhance, rather than
24846         weaken test.
24847         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24848
24849 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24850
24851         Indentation.
24852         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24853         higher-level operators more to the left.
24854
24855 2010-10-11  Jim Meyering  <meyering@redhat.com>
24856
24857         test-futimens: avoid unwarranted test failure on Solaris 5.11
24858         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24859         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24860         because it tries to dereference the NULL name argument.
24861
24862 2010-10-11  Bruno Haible  <bruno@clisp.org>
24863
24864         Indentation.
24865         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24866         indentation.
24867
24868 2010-10-11  Jim Meyering  <meyering@redhat.com>
24869
24870         spawn.in.h: make indentation consistent with parentheses
24871         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24872         Make indentation consistent with parentheses.
24873
24874 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24875
24876         Fix mismatched parens in previous commit
24877         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24878         parens.
24879
24880 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24881
24882         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24883
24884         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24885         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24886         * lib/malloca.c: Include "verify.h".
24887         (verify1): Remove, replacing with a verify call.
24888         * lib/relocwrapper.c (verify1): Likewise.
24889         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24890         Likewise.
24891         * modules/malloca (Depends-on): Add 'verify'.
24892         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24893         * modules/vasnprintf (Depends-on): Add 'verify'.
24894         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24895         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24896         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24897         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24898         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24899         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24900         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24901
24902         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24903
24904         Formerly the style was sometimes 2*X - 1, because the C standard
24905         was wrongly thought to disallow ?: in integral constant expressions.
24906         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24907         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24908         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24909         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24910         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24911         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24912         verify that time_t cannot be floating.
24913
24914 2010-10-08  Eric Blake  <eblake@redhat.com>
24915
24916         time: enforce recent POSIX ruling that time_t is integral
24917         * lib/time.in.h (__time_t_must_be_integral): Detect any
24918         problematic systems, allowing the rest of gnulib to assume POSIX.
24919
24920 2010-10-08  Jim Meyering  <meyering@redhat.com>
24921
24922         fdopendir: fix a bug on systems lacking openat and /proc support
24923         OpenBSD 4.7 is one such system.  The most noticeable effect was
24924         failure of any application making nontrivial use of fts: rm, du,
24925         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24926           ./rm: traversal failed: `a': Bad file descriptor
24927         Debugging that, you see that even though FD 6 was closed just
24928         prior to the opendir call in fd_clone_opendir, its resulting
24929         dir->dd_fd was 8, rather than the expected value of 6:
24930
24931         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24932         93                close (fd);
24933         (gdb) n
24934         94                dir = fd_clone_opendir (dupfd);
24935         (gdb) n
24936         95                saved_errno = errno;
24937         (gdb) p dir->dd_fd
24938         $11 = 8
24939
24940         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24941         The problem is that on OpenBSD, fd_clone_opendir has to resort
24942         to using the old-style save/restore CWD mechanism, due to its
24943         lack of openat/proc support, and *that* would steal the FD (6)
24944         that opendir was supposed to use.
24945
24946         The fix is to squirrel away the desired FD so that save_cwd uses a
24947         different one, and then free the dest FD right before calling opendir.
24948         That guarantees opendir will use the required file descriptor.
24949
24950         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24951
24952 2010-10-08  Bruno Haible  <bruno@clisp.org>
24953
24954         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24955         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24956
24957 2010-10-08  Bruno Haible  <bruno@clisp.org>
24958
24959         nanosleep: Make replacement POSIX compliant.
24960         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24961         is out of range.
24962         Reported by Jim Meyering.
24963
24964 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24965
24966         bootstrap: add hook for altering gnulib.mk, for Bison
24967         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24968         the Bison bootstrapping process can rewrite file names and variables
24969         in this file before later parts of 'bootstrap' use the file.
24970         Bison wants to include lib/gnulib.mk from the top-level makefile,
24971         so it needs the file names in this file to be relative to the top
24972         level, not relative to lib; plus it needs variable names to be
24973         rewritten.
24974         (slurp): Use the new function.
24975
24976         bootstrap: reformat for readability
24977         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24978
24979 2010-10-08  Eric Blake  <eblake@redhat.com>
24980
24981         docs: update cygwin progress
24982         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24983         1.7.7.
24984         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24985         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24986         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24987         * doc/posix-functions/carg.texi (carg): Likewise.
24988         * doc/posix-functions/cargf.texi (cargf): Likewise.
24989         * doc/posix-functions/casin.texi (casin): Likewise.
24990         * doc/posix-functions/casinf.texi (casinf): Likewise.
24991         * doc/posix-functions/casinh.texi (casinh): Likewise.
24992         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24993         * doc/posix-functions/catan.texi (catan): Likewise.
24994         * doc/posix-functions/catanf.texi (catanf): Likewise.
24995         * doc/posix-functions/catanh.texi (catanh): Likewise.
24996         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24997         * doc/posix-functions/ccos.texi (ccos): Likewise.
24998         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24999         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25000         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25001         * doc/posix-functions/cexp.texi (cexp): Likewise.
25002         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25003         * doc/posix-functions/cimag.texi (cimag): Likewise.
25004         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25005         * doc/posix-functions/clog.texi (clog): Likewise.
25006         * doc/posix-functions/clogf.texi (clogf): Likewise.
25007         * doc/posix-functions/conj.texi (conj): Likewise.
25008         * doc/posix-functions/conjf.texi (conjf): Likewise.
25009         * doc/posix-functions/cpow.texi (cpow): Likewise.
25010         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25011         * doc/posix-functions/cproj.texi (cproj): Likewise.
25012         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25013         * doc/posix-functions/creal.texi (creal): Likewise.
25014         * doc/posix-functions/crealf.texi (crealf): Likewise.
25015         * doc/posix-functions/csin.texi (csin): Likewise.
25016         * doc/posix-functions/csinf.texi (csinf): Likewise.
25017         * doc/posix-functions/csinh.texi (csinh): Likewise.
25018         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25019         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25020         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25021         * doc/posix-functions/ctan.texi (ctan): Likewise.
25022         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25023         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25024         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25025         * doc/posix-headers/complex.texi (complex.h): Likewise.
25026
25027 2010-10-07  Jim Meyering  <meyering@redhat.com>
25028
25029         parse-datetime: avoid compilation failure on OpenBSD 4.7
25030         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25031         This works around a compilation failure on OpenBSD 4.7:
25032         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25033
25034 2010-10-07  Eric Blake  <eblake@redhat.com>
25035
25036         docs: update cygwin progress
25037         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25038         1.7.6.
25039         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25040         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25041         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25042         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25043         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25044         Likewise.
25045         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25046         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25047         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25048         Likewise.
25049         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25050         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25051         Likewise.
25052         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25053         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25054         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25055         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25056         Likewise.
25057         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25058         Likewise.
25059         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25060
25061         docs: update parse-datetime history
25062         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25063         documentation of this function's history and alternatives.
25064
25065         cygwin: use more robust version check
25066         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25067         exclude an eventual cygwin 1.9.1.
25068         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25070         (gl_FUNC_STRCASESTR): Likewise.
25071         Reported by Bruno Haible.
25072
25073 2010-10-06  Bruno Haible  <bruno@clisp.org>
25074
25075         string, sys_select: Avoid #including large headers unless necessary.
25076         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25077         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25078         OSF/1, BeOS, Haiku.
25079         Reported by Jim Meyering.
25080
25081 2010-10-05  Eric Blake  <eblake@redhat.com>
25082
25083         memmem, strstr, strcasestr: fix bug with long periodic needle
25084         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25085         periodic needle having false positive.
25086         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25087         and cygwin 1.7.7.
25088         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25090         (gl_FUNC_STRCASESTR): Likewise.
25091         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25092         * tests/test-memmem.c (main): Expose the bug.
25093         * tests/test-strcasestr.c (main): Likewise.
25094         * tests/test-strstr.c (main): Likewise.
25095         * tests/test-c-strcasestr.c (main): Likewise.
25096         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25097         * doc/posix-functions/strstr.texi (strstr): Likewise.
25098         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25099         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25100
25101 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25102
25103         parse-datetime: do some more renaming
25104         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25105         parse_datetime, not get_date.  Mention the renaming.
25106         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25107         in comments.
25108         * m4/bison.m4: Likewise.
25109
25110 2010-10-05  Eric Blake  <eblake@redhat.com>
25111
25112         parse-datetime: better name than get_date
25113         * NEWS: Reword the deprecation notice.
25114         * modules/get_date: Rename to modules/parse-datetime.
25115         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25116         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25117         * lib/get_date.y: Rename to lib/parse-datetime.y.
25118         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25119         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25120         * doc/getdate.texi: Provide fallback wrapper.
25121         * lib/getdate.h: Move guts, and wrap...
25122         * lib/parse-datetime.h: ...new file.
25123         * lib/parse-datetime.y (get_date): Rename...
25124         (parse_datetime): ...to this.
25125         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25126         (gl_PARSE_DATETIME): ...to this.
25127         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25128         documentation.
25129         * modules/getdate (Files): Provide fallback docs and header.
25130         (Notice, Depends-on): Update references.
25131         * tests/test-parse-datetime.c: Likewise.
25132         * DEPENDENCIES: Likewise.
25133         * MODULES.html.sh (Date and time <time.h>): Likewise.
25134         * doc/parse-datetime.texi (Date input formats)
25135         (Authors of parse_datetime): Likewise.
25136         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25137         (Include): Likewise.
25138         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25139         * gnulib-tool: Likewise.
25140         * m4/bison.m4 (gl_BISON): Likewise.
25141         Suggested by Bruno Haible.
25142
25143 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25144
25145         more ports to Solaris tr, which needs [] around ranges
25146         * gnulib-tool: Solaris tr needs [] around ranges.
25147         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25148         * tests/test-pipe-filter-gi1.c (main): Likewise.
25149         * tests/test-pipe-filter-ii1.c (main): Likewise.
25150
25151 2010-10-05  Eric Blake  <eblake@redhat.com>
25152
25153         bootstrap: fix Solaris regression
25154         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25155         around ranges.
25156         Reported by Pádraig Brady.
25157
25158         bootstrap: work with pkg-config
25159         * build-aux/bootstrap (check_versions): Also transliterate - in
25160         prerequisite name.
25161         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25162         prerequisites that were already found, to avoid confusion.
25163         Reported by Justin Clift.
25164
25165         faccessat: remove unused wrappers
25166         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25167         presence of these wrappers dragged in -lgen on Solaris.
25168         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25169
25170 2010-10-05  Jim Meyering  <meyering@redhat.com>
25171
25172         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25173         * Makefile (sc_pragma_columns): New syntax-check rule.
25174
25175 2010-10-04  Bruno Haible  <bruno@clisp.org>
25176
25177         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25178         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25179         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25180         Reported by Bruce Korb and Eric Blake.
25181
25182 2010-10-04  Bruno Haible  <bruno@clisp.org>
25183
25184         threadlib: Make option --with-libpth-prefix work.
25185         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25186         use $LIBPTH, not just -lpth.
25187
25188 2010-10-04  Bruno Haible  <bruno@clisp.org>
25189
25190         Avoid line length limitation from HP NonStop system header files.
25191         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25192         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25193         * lib/ctype.in.h: Likewise.
25194         * lib/dirent.in.h: Likewise.
25195         * lib/errno.in.h: Likewise.
25196         * lib/fcntl.in.h: Likewise.
25197         * lib/float.in.h: Likewise.
25198         * lib/getopt.in.h: Likewise.
25199         * lib/iconv.in.h: Likewise.
25200         * lib/inttypes.in.h: Likewise.
25201         * lib/langinfo.in.h: Likewise.
25202         * lib/locale.in.h: Likewise.
25203         * lib/math.in.h: Likewise.
25204         * lib/netdb.in.h: Likewise.
25205         * lib/netinet_in.in.h: Likewise.
25206         * lib/poll.in.h: Likewise.
25207         * lib/pthread.in.h: Likewise.
25208         * lib/pty.in.h: Likewise.
25209         * lib/sched.in.h: Likewise.
25210         * lib/se-selinux.in.h: Likewise.
25211         * lib/search.in.h: Likewise.
25212         * lib/signal.in.h: Likewise.
25213         * lib/spawn.in.h: Likewise.
25214         * lib/stdarg.in.h: Likewise.
25215         * lib/stddef.in.h: Likewise.
25216         * lib/stdint.in.h: Likewise.
25217         * lib/stdio.in.h: Likewise.
25218         * lib/stdlib.in.h: Likewise.
25219         * lib/string.in.h: Likewise.
25220         * lib/strings.in.h: Likewise.
25221         * lib/sys_file.in.h: Likewise.
25222         * lib/sys_ioctl.in.h: Likewise.
25223         * lib/sys_select.in.h: Likewise.
25224         * lib/sys_socket.in.h: Likewise.
25225         * lib/sys_stat.in.h: Likewise.
25226         * lib/sys_time.in.h: Likewise.
25227         * lib/sys_times.in.h: Likewise.
25228         * lib/sys_utsname.in.h: Likewise.
25229         * lib/sys_wait.in.h: Likewise.
25230         * lib/sysexits.in.h: Likewise.
25231         * lib/termios.in.h: Likewise.
25232         * lib/time.in.h: Likewise.
25233         * lib/unistd.in.h: Likewise.
25234         * lib/wchar.in.h: Likewise.
25235         * lib/wctype.in.h: Likewise.
25236         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25237         * modules/ctype (Makefile.am): Likewise.
25238         * modules/dirent (Makefile.am): Likewise.
25239         * modules/errno (Makefile.am): Likewise.
25240         * modules/fcntl-h (Makefile.am): Likewise.
25241         * modules/float (Makefile.am): Likewise.
25242         * modules/getopt-posix (Makefile.am): Likewise.
25243         * modules/iconv-h (Makefile.am): Likewise.
25244         * modules/inttypes (Makefile.am): Likewise.
25245         * modules/langinfo (Makefile.am): Likewise.
25246         * modules/locale (Makefile.am): Likewise.
25247         * modules/math (Makefile.am): Likewise.
25248         * modules/netdb (Makefile.am): Likewise.
25249         * modules/netinet_in (Makefile.am): Likewise.
25250         * modules/poll-h (Makefile.am): Likewise.
25251         * modules/pthread (Makefile.am): Likewise.
25252         * modules/pty (Makefile.am): Likewise.
25253         * modules/sched (Makefile.am): Likewise.
25254         * modules/search (Makefile.am): Likewise.
25255         * modules/selinux-h (Makefile.am): Likewise.
25256         * modules/signal (Makefile.am): Likewise.
25257         * modules/spawn (Makefile.am): Likewise.
25258         * modules/stdarg (Makefile.am): Likewise.
25259         * modules/stddef (Makefile.am): Likewise.
25260         * modules/stdint (Makefile.am): Likewise.
25261         * modules/stdio (Makefile.am): Likewise.
25262         * modules/stdlib (Makefile.am): Likewise.
25263         * modules/string (Makefile.am): Likewise.
25264         * modules/strings (Makefile.am): Likewise.
25265         * modules/sys_file (Makefile.am): Likewise.
25266         * modules/sys_ioctl (Makefile.am): Likewise.
25267         * modules/sys_select (Makefile.am): Likewise.
25268         * modules/sys_socket (Makefile.am): Likewise.
25269         * modules/sys_stat (Makefile.am): Likewise.
25270         * modules/sys_time (Makefile.am): Likewise.
25271         * modules/sys_times (Makefile.am): Likewise.
25272         * modules/sys_utsname (Makefile.am): Likewise.
25273         * modules/sys_wait (Makefile.am): Likewise.
25274         * modules/sysexits (Makefile.am): Likewise.
25275         * modules/termios (Makefile.am): Likewise.
25276         * modules/time (Makefile.am): Likewise.
25277         * modules/unistd (Makefile.am): Likewise.
25278         * modules/wchar (Makefile.am): Likewise.
25279         * modules/wctype (Makefile.am): Likewise.
25280
25281 2010-10-04  Bruno Haible  <bruno@clisp.org>
25282
25283         read-file tests: Avoid a test failure on NonStop Kernel.
25284         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25285         a regular file.
25286         Reported by Joachim Schmitz <schmitz@hp.com>.
25287
25288 2010-10-03  Bruno Haible  <bruno@clisp.org>
25289
25290         gnulib-tool: Fixes for --create-testdir with --libtool.
25291         * gnulib-tool (func_get_automake_snippet): Don't augment
25292         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25293         an executable.
25294         (func_create_testdir): Handle module 'alloca' like func_import.
25295         Reported by Bruce Korb <bruce.korb@gmail.com>.
25296
25297 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25298
25299         Avoid some lines longer than 80 characters.
25300         * lib/stdint.in.h: Break long comment lines.
25301         * lib/math.in.h: Likewise.
25302         (_GL_NUM_UINT_WORDS): New macro, for readability.
25303         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25304         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25305         * lib/stdlib.in.h: Likewise.
25306         * lib/spawn.in.h: Likewise.
25307         * lib/sys_socket.in.h: Update an URL.
25308         * lib/sys_stat.in.h: Break long line.
25309
25310 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25311
25312         Improve pmccabe2html.
25313         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25314         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25315         when the sources change. Remove the line in the HTML about "Used
25316         ranges" (which implied that there might be other unused ranges),
25317         rename "Resume" to "Summary" (easier to understand for more users).
25318         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25319         styles, and some unnecessary blank lines.
25320
25321 2010-10-03  Bruno Haible  <bruno@clisp.org>
25322             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25323
25324         acl: Add support for ACLs on NonStop Kernel.
25325         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25326         Check whether the function aclsort() exists.
25327         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25328         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25329         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25330         (acl_nontrivial [HAVE_ACLSORT]: New function.
25331         (file_has_acl): Implement for NonStop Kernel.
25332         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25333         (qset_acl): Implement for NonStop Kernel.
25334         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25335         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25336         (main): Implement for NonStop Kernel.
25337         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25338         Kernel. Handle this flavor.
25339         * tests/test-set-mode-acl.sh: Likewise.
25340         * tests/test-copy-acl.sh: Likewise.
25341         * tests/test-copy-file.sh: Likewise.
25342
25343 2010-10-03  Bruno Haible  <bruno@clisp.org>
25344
25345         Info about ACLs on NonStop Kernel.
25346         * doc/acl-resources.txt: Add info about NonStop Kernel.
25347         References by Joachim Schmitz <schmitz@hp.com>.
25348
25349 2010-10-02  Bruno Haible  <bruno@clisp.org>
25350
25351         Define missing EDQUOT on NonStop Kernel.
25352         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25353         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25354         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25355         missing.
25356         * doc/posix-headers/errno.texi: Mention the NSK bug.
25357         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25358         Reported by Joachim Schmitz <schmitz@hp.com>.
25359
25360 2010-10-02  Bruno Haible  <bruno@clisp.org>
25361
25362         Update doc for POSIX:2008.
25363         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25364         Update URL of POSIX specification.
25365
25366 2010-10-02  Bruno Haible  <bruno@clisp.org>
25367
25368         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25369         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25370         from gnulib, not from Automake.
25371
25372 2010-10-02  Bruno Haible  <bruno@clisp.org>
25373
25374         New module 'system-posix'.
25375         * modules/system-posix: New file.
25376         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25377         module is present.
25378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25379         GNULIB_SYSTEM_POSIX.
25380         * modules/stdlib (Depends-on): Remove sys_wait.
25381         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25382         * doc/posix-functions/system.texi: Mention the new module.
25383         * doc/posix-headers/stdlib.texi: Likewise.
25384         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25385         define test_sys_wait_macros to a no-op.
25386         Reported by Sam Steingold <sds@gnu.org>.
25387
25388 2010-09-30  Bruno Haible  <bruno@clisp.org>
25389
25390         More renaming from 'getdate' to 'get_date'.
25391         * doc/get_date.texi: Renamed from doc/getdate.texi.
25392         * modules/get_date (Files): Update.
25393         * MODULES.html.sh (Date and time <time.h>): Update.
25394         * DEPENDENCIES: Update.
25395         * gnulib-tool: Update comment.
25396         * m4/bison.m4 (gl_BISON): Likewise.
25397         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25398
25399 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25400
25401         bootstrap: support ACLOCAL_FLAGS during aclocal
25402         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25403         can add additional -I dir for third-party .m4 files.
25404
25405 2010-09-30  Eric Blake  <eblake@redhat.com>
25406
25407         bootstrap: use glibtoolize on MacOS
25408         * build-aux/bootstrap (check_versions): Convert libtool into
25409         libtoolize.
25410         (tool search): Move libtool check earlier, and look for
25411         glibtoolize for MacOS.
25412         (gnulib_tool_options): Auto-add --libtool when appropriate.
25413         Reported by Justin Clift.
25414
25415         poll: fix typo that broke test on MacOS
25416         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25417         Reported by Justin Clift.
25418
25419         getdate: rename to get_date
25420         Note: getdate.h is not renamed, to minimize client impact.
25421         * modules/getdate: Mark obsolete.  Move old contents...
25422         * modules/get_date: ...to new module name.
25423         * modules/getdate-tests: Move...
25424         * modules/get_date-tests: ...here.
25425         * m4/getdate.m4: Move...
25426         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25427         * lib/getdate.y: Move...
25428         * lib/get_date.y: ...here.
25429         * tests/test-getdate.c: Move...
25430         * tests/test-get_date.c: ...here.
25431         * doc/posix-functions/getdate.texi (getdate): Update name.
25432         * NEWS: Mention the change.
25433
25434 2010-09-29  Bruno Haible  <bruno@clisp.org>
25435
25436         Separate the module 'waitpid' from the module 'sys_wait'.
25437         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25438         present.
25439         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25440         gl_MODULE_INDICATOR_FOR_TESTS.
25441         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25442         * modules/sys_wait (Depends-on): Remove waitpid.
25443         (Makefile.am): Substitute GNULIB_WAITPID.
25444         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25445         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25446         signature only if the 'waitpid' module is present.
25447         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25448         * NEWS: Mention the change.
25449         * modules/grantpt (Depends-on): Add waitpid.
25450         * modules/wait-process (Depends-on): Likewise.
25451
25452 2010-09-29  Bruno Haible  <bruno@clisp.org>
25453
25454         More tests for module 'sys_wait'.
25455         * modules/sys_wait-c++-tests: New file.
25456         * tests/test-sys_wait-c++.cc: New file.
25457         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25458         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25459
25460 2010-09-29  Bruno Haible  <bruno@clisp.org>
25461
25462         New module 'waitpid'.
25463         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25464         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25465         Don't include <process.h>.
25466         (waitpid): Declare only, using modern idiom.
25467         * m4/waitpid.m4: New file.
25468         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25469         * modules/waitpid: New file.
25470         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25471         (Makefile.am): Update.
25472         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25473
25474 2010-09-28  Bruno Haible  <bruno@clisp.org>
25475
25476         poll: Assume ANSI C.
25477         * lib/poll.c (poll): Use an ANSI C declaration.
25478
25479 2010-09-28  Bruno Haible  <bruno@clisp.org>
25480
25481         poll-h: Create poll.h on all platforms.
25482         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25483         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25484         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25485         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25486         (gl_REPLACE_POLL_H): Don't set POLL_H.
25487         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25488         * modules/poll-h (Depends-on): Add include_next.
25489         (Makefile.am): Create poll.h unconditionally. Substitute also
25490         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25491
25492 2010-09-28  Bruno Haible  <bruno@clisp.org>
25493
25494         Tests for module 'poll-h'.
25495         * modules/poll-h-c++-tests: New file.
25496         * tests/test-poll-h-c++.cc: New file.
25497
25498         Tests for module 'poll-h'.
25499         * modules/poll-h-tests: New file.
25500         * tests/test-poll-h.c: New file.
25501
25502 2010-09-28  Bruno Haible  <bruno@clisp.org>
25503
25504         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25505         * modules/poll-h (Depends-on): Add 'extensions'.
25506
25507 2010-09-28  Bruno Haible  <bruno@clisp.org>
25508
25509         New module 'poll-h'.
25510         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25511         (poll): Use modern idiom.
25512         * modules/poll-h: New file.
25513         * modules/poll (Files): Remove lib/poll.in.h.
25514         (Depends-on): Add poll-h.
25515         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25516         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25517         * m4/poll_h.m4: New file.
25518         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25519         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25520         and invoke gl_REPLACE_POLL_H.
25521         * lib/poll.c: Use common idiom.
25522         * tests/test-poll.c: Likewise.
25523         * doc/posix-headers/poll.texi: Mention the poll-h module.
25524         Suggested by Eric Blake.
25525
25526 2010-09-26  Bruno Haible  <bruno@clisp.org>
25527
25528         sys_wait: Implement WSTOPSIG.
25529         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25530         Reported by Simon Josefsson.
25531
25532 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25533
25534         stdlib, sys_wait: Avoid compilation error on mingw.
25535         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25536
25537 2010-09-26  Bruno Haible  <bruno@clisp.org>
25538
25539         stdlib tests: Avoid code duplication.
25540         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25541         * modules/sys_wait-tests (Files): Likewise.
25542         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25543         * tests/test-stdlib.c: Include test-sys_wait.h.
25544         (main): Invoke test_sys_wait_macros.
25545         * tests/test-sys_wait.c: Include test-sys_wait.h.
25546         (main): Invoke test_sys_wait_macros.
25547
25548 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25549
25550         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25551         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25552         sure Windows sockets are working before calling getaddrinfo.
25553         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25554         * doc/gnulib.texi (Windows sockets): Fix typo.
25555
25556 2010-09-25  Bruno Haible  <bruno@clisp.org>
25557
25558         Tests for module 'regex-quote'.
25559         * modules/regex-quote-tests: New file.
25560         * tests/test-regex-quote.c: New file.
25561
25562         New module 'regex-quote'.
25563         * lib/regex-quote.h: New file.
25564         * lib/regex-quote.c: New file.
25565         * modules/regex-quote: New file.
25566         Suggested by Reuben Thomas <rrt@sc3d.org>.
25567
25568 2010-09-24  Bruno Haible  <bruno@clisp.org>
25569
25570         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25571         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25572
25573 2010-09-23  Bruno Haible  <bruno@clisp.org>
25574
25575         setenv: Relax license.
25576         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25577         Blake.
25578         Requested by Eric Blake.
25579
25580 2010-09-22  Bruno Haible  <bruno@clisp.org>
25581
25582         termios: Relax license.
25583         * modules/termios (License): Change to LGPLv2+.
25584         Requested by Eric Blake.
25585
25586 2010-09-22  Bruno Haible  <bruno@clisp.org>
25587
25588         threadlib: Allow the package to change the default to 'no'.
25589         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25590         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25591         Reported by Paul Eggert.
25592
25593 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25594             Bruno Haible  <bruno@clisp.org>
25595
25596         Fix endless loop in mbmemcasecoll.
25597         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25598         byte.
25599         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25600
25601 2010-09-22  Bruno Haible  <bruno@clisp.org>
25602
25603         Tests for module 'memcoll'.
25604         * modules/memcoll-tests: New file.
25605         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25606
25607         memcoll, xmemcoll: Clarify size vs. length.
25608         * modules/memcoll.c (memcoll0): Clarify specification.
25609         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25610         passed to collate_error.
25611
25612 2010-09-22  Bruno Haible  <bruno@clisp.org>
25613
25614         Tests for module 'memcasecmp'.
25615         * modules/memcasecmp-tests: New file.
25616         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25617
25618 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25619
25620         * lib/pthread.in.h: Add split double-inclusion guard, and include
25621         system <pthread.h> if there is one.  Use @@-style as in other
25622         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25623         pthread.h doesn't.
25624         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25625         (pthread_mutexattr_settype, pthread_mutex_trylock):
25626         New static inline functions, if there's no system <pthread.h>.
25627         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25628         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25629         Approximate with mutexes if the system lacks spinlocks, as in
25630         MacOS.
25631         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25632         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25633         @@-style.  Check for spinlocks separately.
25634         (gl_PTHREAD_DEFAULTS): New macro.
25635         * modules/pthread: Redo to use a more typical style for in.h files.
25636
25637 2010-09-21  Eric Blake  <eblake@redhat.com>
25638
25639         net_if: enhance tests
25640         * tests/test-net_if.c (main): Move signature checks earlier.
25641         Print failures to stderr.
25642         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25643         Document the bug that we do not yet fix.
25644
25645 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25646
25647         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25648         about gnulib, not GSS.
25649
25650 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25651
25652         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25653         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25654         for Emacs.
25655         * build-aux/pmccabe2html: Make Makefile.am example code more
25656         cut-and-paste friendly.
25657
25658 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25659
25660         * tests/test-net_if.c: New file.
25661         * modules/net_if-tests: New file.
25662
25663 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25664
25665         pthread: add pthread_spin_destroy
25666         * lib/pthread.in.h (pthread_spin_destroy): New function.
25667
25668 2010-09-19  Bruno Haible  <bruno@clisp.org>
25669
25670         gnulib-tool: Fix --help output.
25671         * gnulib-tool (func_usage): Fix help message.
25672         Reported by Reuben Thomas <rrt@sc3d.org>.
25673
25674 2010-09-18  Jim Meyering  <meyering@redhat.com>
25675
25676         maint.mk: avoid unexpanded \n in two diagnostics
25677         * top/maint.mk (sc_prohibit_always_true_header_tests):
25678         Don't use a literal \n in a halt=... assignment.  It would not be
25679         expanded, and the two \n bytes would appear in the diagnostic output
25680         rather than the desired newline.  Use halt=$$(printf ... instead.
25681         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25682
25683 2010-09-18  Bruno Haible  <bruno@clisp.org>
25684
25685         netinet_in: Doc tweak.
25686         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25687         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25688
25689 2010-09-18  Jim Meyering  <meyering@redhat.com>
25690
25691         init.sh: correct an outdated comment
25692         * tests/init.sh (create_exe_shims_):  s/function/alias/
25693
25694         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25695         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25696         a file named "*.exe" is removed between the glob expansion and the
25697         processing of that oddly named file.
25698
25699 2010-09-17  Eric Blake  <eblake@redhat.com>
25700
25701         mirbsd: add some more support
25702         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25703         in BSD family.
25704         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25705         devices as OpenBSD.
25706         * m4/host-os.m4 (mirbsd): Add MirBSD.
25707
25708         tests: fix unportable assumption on sys/wait.h
25709         * tests/test-sys_wait.c (main): Relax test.
25710         * tests/test-stdlib.c (main): Likewise.
25711
25712         init.sh: accomodate directory with no .exes
25713         * tests/init.sh: Accomodate directory containing only scripts.
25714
25715         tests: avoid compiler warning
25716         * tests/test-stdlib.c (main): Use the variable.
25717
25718         fdutimens, fdutimensat: update signature, again
25719         * lib/utimens.h (gl_futimens): Delete, and move signature...
25720         (fdutimens): ...here.
25721         (fdutimensat): Rearrange signature.
25722         (lutimensat): Rename variable for clarity.
25723         * lib/fdutimensat.c (fdutimensat): Update signature.
25724         * lib/utimens.c (fdutimens): Likewise.
25725         (gl_futimens): Delete.
25726         (utimens, lutimens): Update callers.
25727         * lib/futimens.c (futimens): Likewise.
25728         * tests/test-fdutimensat.c: Likewise.
25729         * tests/test-utimens.c: Likewise.
25730         * tests/test-futimens.h: Update comment.
25731         * NEWS: Mention this.
25732         Suggested by Paul Eggert.
25733
25734 2010-09-17  Bruno Haible  <bruno@clisp.org>
25735
25736         Take over the maintenance of some older macros from Autoconf.
25737         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25738         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25739         GNU Autoconf.
25740         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25741         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25742
25743 2010-09-17  Eric Blake  <eblake@redhat.com>
25744
25745         fdutimensat: drop atflag validation
25746         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25747         with valid fd, to close a race scenario where futimens is
25748         unsupported and FILE was replaced by a symlink.
25749         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25750         accordingly.
25751         Suggested by Paul Eggert.
25752
25753 2010-09-16  Bruno Haible  <bruno@clisp.org>
25754
25755         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25756         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25757
25758 2010-09-16  Bruno Haible  <bruno@clisp.org>
25759
25760         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25761         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25762         login_tty exists.
25763         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25764
25765 2010-09-16  Bruno Haible  <bruno@clisp.org>
25766
25767         login_tty: Make the replacement code work on BSD systems.
25768         * lib/login_tty.c: Include <sys/ioctl.h>.
25769         (login_tty): Use ioctl TIOCSCTTY when available.
25770         * modules/login_tty (Depends-on): Add sys_ioctl.
25771         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25772
25773 2010-09-16  Bruno Haible  <bruno@clisp.org>
25774
25775         login_tty: Stricter unit test.
25776         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25777         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25778         and tcgetsid() after login_tty.
25779         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25780
25781 2010-09-16  Bruno Haible  <bruno@clisp.org>
25782
25783         New module 'tcgetsid'.
25784         * lib/tcgetsid.c: New file.
25785         * m4/tcgetsid.m4: New file.
25786         * modules/tcgetsid: New file.
25787         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25788         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25789         GNULIB_TCGETSID, HAVE_TCGETSID.
25790         * lib/termios.in.h: Include <sys/types.h>.
25791         (tcgetsid): New declaration.
25792         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25793         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25794         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25795         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25796
25797 2010-09-16  Bruno Haible  <bruno@clisp.org>
25798
25799         Tests for module 'termios'.
25800         * modules/termios-c++-tests: New file.
25801         * modules/termios-tests: New file.
25802         * tests/test-termios-c++.cc: New file.
25803         * tests/test-termios.c: New file.
25804
25805         New module 'termios'.
25806         * modules/termios: New file.
25807         * lib/termios.in.h: New file.
25808         * m4/termios_h.m4: New file.
25809         * doc/posix-headers/termios.texi: Mention the new module.
25810
25811 2010-09-16  Eric Blake  <eblake@redhat.com>
25812
25813         fdutimensat: add an atflag parameter
25814         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25815         * lib/utimens.h (fdutimensat): Update prototype.
25816         * tests/test-fdutimensat.c: Adjust test to match.
25817         * NEWS: Document the change.
25818         Suggested by Paul Eggert.
25819
25820 2010-09-16  Bruno Haible  <bruno@clisp.org>
25821
25822         Fix typos in comments.
25823         * lib/striconveh.h: Fix typo in comment.
25824         * lib/login_tty.c (login_tty): Likewise.
25825
25826 2010-09-15  Bruno Haible  <bruno@clisp.org>
25827
25828         stdlib: clarify MirBSD WEXITSTATUS bug
25829         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25830         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25831
25832 2010-09-15  Eric Blake  <eblake@redhat.com>
25833
25834         stdlib: work around MirBSD WEXITSTATUS bug
25835         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25836         * modules/stdlib (Depends-on): Add sys_wait.
25837         * tests/test-sys_wait.c (main): Enhance test.
25838         * tests/test-stdlib.c (main): Likewise.
25839         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25840
25841         docs: mention MacOS issue with WEXITSTATUS(constant)
25842         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25843         issue.
25844         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25845
25846         strnlen: add tests
25847         * modules/strnlen-tests: New file.
25848         * tests/test-strnlen.c: Likewise.
25849
25850 2010-09-14  Bruno Haible  <bruno@clisp.org>
25851
25852         unistr/base: Avoid link errors when module 'libunistring' is also used.
25853         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25854         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25855         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25856         Declare also when HAVE_LIBUNISTRING is set.
25857         Reported by Pádraig Brady <P@draigbrady.com>.
25858
25859 2010-09-14  Eric Blake  <eblake@redhat.com>
25860
25861         test-rawmemchr: make more robust
25862         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25863         (Depends-on, configure.ac): Add needed prerequisites to use it.
25864         * modules/memchr-tests (Files, Depends-on, configure.ac):
25865         Likewise, to avoid implicit reliance on memchr module prereqs.
25866         * tests/test-memchr.c (main): Ensure proper masking.
25867         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25868         reads.
25869
25870         memchr: detect glibc Alpha bug
25871         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25872         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25873         Alpha.
25874         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25875         * tests/test-memchr.c (main): Enhance test.
25876         Reported by Nelson H. F. Beebe.
25877
25878 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25879
25880         fts, getcwd, glob: audit for dirfd returning -1
25881         * lib/fts.c (opendir): Remove #define; no longer used.
25882         (opendirat): New arg PDIR_FD.  All callers changed.
25883         (fts_build, _opendir2): Use new opendirat to avoid the need for
25884         dirfd, or for checking whether dirfd returns a negative value.
25885         Don't use opendir; always use openat followed by fdopendir.
25886         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25887         it.
25888         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25889         returns -1 here.
25890         * modules/fts (Depends-on): Remove dirfd.
25891         * modules/getcwd (Depends-on): Likewise.
25892
25893 2010-09-13  Eric Blake  <eblake@redhat.com>
25894
25895         float: fix broken MirBSD header
25896         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25897         * doc/posix-headers/float.texi (float.h): Document it.
25898
25899 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25900
25901         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25902         * lib/fts.c (opendirat): New arg extra_flags.
25903         (__opendir2): Use it to avoid following symlinks when opening
25904         a directory, if symlinks are not supposed to be followed.  See
25905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25906
25907         fdopendir: preserve argument fd before returning
25908         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25909         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25910         (fdopendir): Use them, arranging for FD to be open to the same
25911         directory that it was when it started.  (It might be temporarily
25912         closed while fdopendir is running, so this not thread- or
25913         signal-safe.)  Be careful to do the right thing even when file
25914         descriptors are scarce and dup fails with errno == EMFILE.  See
25915         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25916
25917 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25918
25919         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25920         * NEWS: Document change.
25921         * m4/regex.m4: Disable test for regoff_t size.
25922
25923 2010-09-13  Jim Meyering  <meyering@redhat.com>
25924
25925         fts: don't operate on an invalid file descriptor after failed dup
25926         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25927         negative file descriptor.
25928
25929 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25930
25931         savedir: add streamsavedir, deprecate fdsavedir
25932         * NEWS: Mention deprecation of fdsavedir.
25933         * lib/savedir.c (streamsavedir): New extern function, whose name
25934         ends in "savedir" to be consistent with the others.  This differs
25935         from savedirstream in that it doesn't close its argument.  The
25936         next version of GNU tar will use this instead of fdsavedir, to
25937         avoid some race conditions and conserve file descriptors.
25938         (savedirstream): Reimplement as a wrapper around streamsavedir.
25939         (fdsavedir): Add a comment deprecating this function.  As far as
25940         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25941         * lib/savedir.h (streamsavedir): New decl.
25942         (fdsavedir): Add a comment deprecating this.
25943
25944 2010-09-10  Bruno Haible  <bruno@clisp.org>
25945
25946         langinfo: Fix last commit.
25947         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25948         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25950
25951 2010-09-10  Bruno Haible  <bruno@clisp.org>
25952
25953         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25954         * lib/progreloc.c (O_EXEC): Define fallback.
25955
25956 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25957
25958         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25959         * NEWS: Document recent changes to fcntl-h.
25960         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25961         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25962         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25963         Similarly for O_SEARCH; this last was already true, but not documented.
25964         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25965         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25966         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25967         Likewise.
25968         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25969         is zero, not whether it is defined.
25970         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25971         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25972         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25973
25974 2010-09-10  Bruno Haible  <bruno@clisp.org>
25975
25976         langinfo, nl_langinfo: Fix for IRIX 5.3.
25977         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25978         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25979         HAVE_LANGINFO_YESEXPR.
25980         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25981         HAVE_LANGINFO_YESEXPR.
25982         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25983         HAVE_LANGINFO_T_FMT_AMPM is 0.
25984         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25985         HAVE_LANGINFO_YESEXPR is 0.
25986         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25987         NOEXPR.
25988         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25989         * doc/posix-functions/nl_langinfo.texi: Likewise.
25990         Reported by Eric Blake.
25991
25992 2010-09-10  Bruno Haible  <bruno@clisp.org>
25993
25994         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25995         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25996         on FreeBSD 8.0 and OpenBSD 4.6.
25997         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25998         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25999         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26000         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26001         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26002         ac_includes_default.
26003         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26004
26005 2010-09-09  Eric Blake  <eblake@redhat.com>
26006
26007         strsignal: work around NetBSD bug
26008         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26009         * lib/string.in.h (includes): Likewise.
26010         * doc/posix-functions/strsignal.texi (strsignal): Document the
26011         bug.
26012         Reported by Nelson H. F. Beebe.
26013
26014         gnulib-tool: work with NetBSD /bin/sh
26015         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26016         (func_get_description, func_get_comment, func_get_status)
26017         (func_get_notice, func_get_applicability, func_get_filelist)
26018         (func_get_dependencies, func_get_autoconf_early_snippet)
26019         (func_get_autoconf_snippet, func_get_automake_snippet)
26020         (func_get_include_directive, func_get_link_directive)
26021         (func_get_license, func_get_maintainer, func_import): Avoid
26022         shell syntax errors from parsing syntax extensions.
26023
26024 2010-09-09  Bruno Haible  <bruno@clisp.org>
26025
26026         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26027         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26028         a reliable way to determine whether the 'alias' command works.
26029
26030 2010-09-08  Jim Meyering  <meyering@redhat.com>
26031
26032         init.sh: penalize a set-x-impaired shell; don't disqualify it
26033         * tests/init.sh: Too many shells corrupt application stderr when
26034         you set -x, so we can't afford to disqualify them, since at least
26035         on Irix-6.5, that would disqualify all bourne shells.
26036         Instead, use a two-pass approach.
26037         On the first pass, try to find a shell that meets the stricter
26038         condition that set -x does not corrupt stderr.
26039         If no shell meets the stricter condition, retest each candidate
26040         shell, but without that extra condition.  Finally, when
26041         VERBOSE=yes is requested and set -x might cause trouble, simply
26042         issue a warning and refrain from enabling debug output.
26043
26044 2010-09-08  Eric Blake  <eblake@redhat.com>
26045
26046         unsetenv: fix OpenBSD bug
26047         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26048         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26049         documentation.
26050         Reported by Jim Meyering.
26051
26052         strtod: work around IRIX 6.5 bug
26053         * lib/strtod.c (strtod): Reparse number on shorter string if
26054         exponent parse was invalid.
26055         * tests/test-strtod.c (main): Add check for "0x1p 2".
26056         Reported by Tom G. Christensen.
26057
26058         getopt: optimize previous patch
26059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26060         empty variable.  Speed up awk script.
26061         Reported by Paolo Bonzini.
26062
26063 2010-09-08  Jim Meyering  <meyering@redhat.com>
26064
26065         test.sh: disqualify shells for which set -x corrupts stderr
26066         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26067         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26068         appear in stderr output.  For example, this command:
26069             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26070         prints "P=1" on those two systems:
26071
26072 2010-09-08  Bruno Haible  <bruno@clisp.org>
26073
26074         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26075         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26076         commands, because some shells ignore redirections when there is an
26077         error in the command lookup.
26078         Reported by Eric Blake.
26079
26080 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26081
26082         * lib/regex.h: Fix a mention of `regex_compile' (should be
26083         `re_compile_pattern').
26084         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26085         (re_set_registers): Correct name of parameter in comment.
26086
26087         * doc/regex.texi: Add documentation for missing syntax flags.
26088         Remove commented-out documentation of defunct syntax option
26089         RE_NO_EMPTY_ALTS.
26090         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26091         Add documentation of re_set_registers.
26092         Document trick to re-use a pattern buffer by setting fastmap manually.
26093         Update documentation of struct re_pattern_buffer per public members.
26094         Uncomment documentation of equivalence class operators and
26095         collating symbol operators, since they are now implemented,
26096         Explain leftmost-longest matching in relation to alternatives.
26097         Tidy documentation of substring matching.
26098         Remove POSIX documentation, which is done better in
26099         glibc, and refer the reader there. Keep BSD API documentation, as
26100         that is not readily available elsewhere.
26101
26102 2010-09-07  Eric Blake  <eblake@redhat.com>
26103
26104         getopt: handle POSIXLY_CORRECT set but not exported
26105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26106         export state of POSIXLY_CORRECT, due to bash set -o posix.
26107         Reported by Dustin J. Mitchell.
26108
26109 2010-09-05  Bruno Haible  <bruno@clisp.org>
26110
26111         gnulib-tool: Highlight the changed options.
26112         * gnulib-tool (func_usage): Display the --import, --add-import,
26113         --remove-import explanations in bold font.
26114
26115 2010-09-06  Karl Berry  <karl@gnu.org>
26116
26117         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26118
26119 2010-09-05  Bruno Haible  <bruno@clisp.org>
26120
26121         uniwidth/width: Update comment.
26122         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26123         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26124
26125 2010-09-05  Bruno Haible  <bruno@clisp.org>
26126
26127         isinf, isnan: Relax license.
26128         * modules/isinf (License): Change from GPL to LGPL, with consent from
26129         Ben Pfaff.
26130         * modules/isnan (License): Likewise.
26131         Requested by Ludovic Courtès.
26132
26133 2010-09-04  Bruno Haible  <bruno@clisp.org>
26134
26135         gnulib-tool: Help migration from --import to --add-import or --update.
26136         * gnulib-tool: Emit a verbose error message when --import is used
26137         without any module name.
26138
26139 2010-09-04  Bruno Haible  <bruno@clisp.org>
26140
26141         Update doc about gnulib-tool.
26142         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26143         'gnulib-tool --update' in more detail.
26144         Reported by Eric Blake.
26145
26146 2010-09-04  Bruno Haible  <bruno@clisp.org>
26147
26148         gnulib-tool: Change --import. New options --add/remove-import.
26149         * gnulib-tool: New options --add-import, --remove-import.
26150         (func_usage): Document them.
26151         (have_associative): Define always.
26152         (func_import): In import mode, don't merge the specified settings with
26153         the cached settings. Implement remove-import mode.
26154         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26155         Explain when to use them versus --import.
26156         (Simple update): Use --add-import instead of --import.
26157         * NEWS: Mention the change.
26158
26159 2010-09-04  Bruno Haible  <bruno@clisp.org>
26160
26161         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26162         separate gnulib.mk.
26163
26164 2010-09-04  Bruno Haible  <bruno@clisp.org>
26165
26166         gnulib-tool: Don't talk about CVS any more.
26167         * gnulib-tool (func_usage, func_import): Write "version control"
26168         instead of CVS.
26169
26170 2010-09-04  Jim Meyering  <meyering@redhat.com>
26171
26172         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26173         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26174         false positives (whose names may be ill-chosen) when searching
26175         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26176         would cause a false-positive.
26177
26178         avoid coreutils "make distcheck" failure
26179         Coreutils tests with an absolute build directory name that contains
26180         a space.  Not quoting this directory name caused a failure.
26181         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26182         * tests/test-vc-list-files-cvs.sh: Likewise.
26183
26184 2010-09-04  Bruno Haible  <bruno@clisp.org>
26185
26186         gnulib-tool: Avoid error when run in a package without Makefile.am.
26187         * gnulib-tool: When collecting the m4dirs in a package that does not
26188         have a Makefile.am, eliminate those directories that contain no
26189         gnulib-cache.m4. Fix expression that counts these directories.
26190
26191 2010-09-04  Bruno Haible  <bruno@clisp.org>
26192
26193         update-copyright test: Improve output when perl is missing or too old.
26194         * tests/test-update-copyright.sh: Move test of Perl version down after
26195         the test whether Perl exists. Provide an explanation relating Perl's
26196         error message to Automake's SKIP: message.
26197
26198 2010-09-04  Bruno Haible  <bruno@clisp.org>
26199
26200         Don't augment PATH in TESTS_ENVIRONMENT.
26201         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26202         set abs_aux_dir instead of augmenting PATH.
26203         * modules/vc-list-files-tests (Makefile.am): Likewise.
26204         * tests/test-update-copyright.sh: Augment PATH here.
26205         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26206         path_prepend_.
26207         * tests/test-vc-list-files-git.sh: Likewise.
26208
26209 2010-09-04  Jim Meyering  <meyering@redhat.com>
26210
26211         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26212         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26213
26214 2010-09-04  Bruno Haible  <bruno@clisp.org>
26215
26216         strdup: Fix compilation error in C++ mode.
26217         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26218         the macro.
26219
26220 2010-09-04  Bruno Haible  <bruno@clisp.org>
26221
26222         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26223         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26224         macro into a function.
26225         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26226
26227 2010-09-04  Bruno Haible  <bruno@clisp.org>
26228
26229         Set PATH_SEPARATOR the same way autoconf does.
26230         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26231         the value of PATH_SEPARATOR the same way autoconf-generated configure
26232         scripts do.
26233         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26234         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26235
26236 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26237
26238         Set PATH_SEPARATOR the same way autoconf does.
26239         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26240         the same way autoconf-generated configure scripts do.
26241         * posix-modules: Likewise.
26242
26243 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26244
26245         hash: fix safe_hasher const typo
26246         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26247         const; otherwise, there is a type error later.
26248
26249 2010-09-02  Jim Meyering  <meyering@redhat.com>
26250
26251         test-update-copyright.sh: require perl 5.8.0
26252         * tests/test-update-copyright.sh: Require 5.8.0,
26253         which Tom G. Christensen has confirmed is adequate,
26254         while 5.6.1 is not.
26255
26256 2010-09-02  Eric Blake  <eblake@redhat.com>
26257
26258         tests: init.sh improvements for re-exec'ing with zsh
26259         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26260         -vx through shell re-exec.
26261         Reported by Tom G. Christensen.
26262
26263         wctype: fix typo in previous commit
26264         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26265         Reported by Ludovic Courtès.
26266
26267 2010-09-02  Jim Meyering  <meyering@redhat.com>
26268
26269         test-update-copyright.sh: skip test if Perl is too old
26270         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26271         Reported by Tom G. Christensen.
26272
26273 2010-09-02  Bruno Haible  <bruno@clisp.org>
26274
26275         wctype: Avoid compilation error on IRIX 6.5.30.
26276         * lib/wctype.in.h (iswblank): Declare with a replacement if
26277         REPLACE_ISWBLANK is set.
26278         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26279         declared. Set REPLACE_ISWBLANK.
26280         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26281         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26282         * doc/posix-headers/wctype.texi: Likewise.
26283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26284
26285 2010-09-01  Bruno Haible  <bruno@clisp.org>
26286
26287         New module 'socketlib'.
26288         * modules/socketlib: New file.
26289         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26290         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26291         * modules/sockets (Depends-on): Add socketlib.
26292         Suggested by Sam Steingold <sds@gnu.org>.
26293
26294 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26295
26296         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26297
26298         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26299         when one needs search access to a directory but not read access.
26300         On systems where it is available, it works in some cases where
26301         O_RDONLY does not, namely on directories that are searchable but
26302         not readable, and which need only to be searchable.  If O_SEARCH
26303         is not available, fall back to the traditional method of using
26304         O_RDONLY.
26305
26306         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26307         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26308         when opening a directory that needs only to be searchable.
26309         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26310         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26311         * lib/openat-proc.c (openat_proc_name): Likewise.
26312         * lib/openat.c (openat_needs_fchdir): Likewise.
26313         * lib/save-cwd.c (save_cwd): Likewise.
26314         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26315
26316 2010-08-28  Bruno Haible  <bruno@clisp.org>
26317
26318         New module 'host-cpu-c-abi'.
26319         * modules/host-cpu-c-abi: New file.
26320         * m4/host-cpu-c-abi.m4: New file, based on part of
26321         clisp/src/m4/general.m4.
26322         Requested by Sam Steingold <sds@gnu.org>.
26323
26324 2010-08-31  Eric Blake  <eblake@redhat.com>
26325         and Jim Meyering  <meyering@redhat.com>
26326
26327         hash: factor, and guard against misbehaving hasher function
26328         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26329         of table->hasher's return value.  Also protect against a hash value
26330         so large that adding it to table->bucket results in a NULL pointer.
26331         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26332         Use it in place of open-coded check-and-abort.
26333
26334 2010-08-30  Bruno Haible  <bruno@clisp.org>
26335
26336         hash: silence spurious clang warning
26337         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26338         Reported by Eric Blake.
26339
26340 2010-08-30  Eric Blake  <eblake@redhat.com>
26341
26342         strstr, memmem, strcasestr: avoid leaked shell message
26343         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26344         FreeBSD.
26345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26346         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26347
26348         tests: silence clang warning
26349         * tests/test-malloca.c (do_allocation): Avoid dead store.
26350
26351 2010-08-29  Bruno Haible  <bruno@clisp.org>
26352
26353         gettext: Fix recent mistake.
26354         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26355
26356 2010-08-29  Bruno Haible  <bruno@clisp.org>
26357
26358         selinux-h: Offer a --without-selinux option.
26359         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26360         --without-selinux was specified, skip all tests and define
26361         HAVE_SELINUX_SELINUX_H to 0.
26362         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26363         set LIB_SELINUX to empty.
26364         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26365         gl_LIBSELINUX. If --without-selinux was specified, replace
26366         selinux/context.h.
26367         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26368
26369 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26370             Bruno Haible  <bruno@clisp.org>
26371
26372         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26373         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26374         of HAVE_REALLOC.
26375         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26376         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26377         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26378         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26379
26380 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26381             Bruno Haible  <bruno@clisp.org>
26382
26383         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26384         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26385         HAVE_CALLOC.
26386         * lib/xmalloc.c: Update accordingly.
26387         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26388         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26389         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26390
26391 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26392             Bruno Haible  <bruno@clisp.org>
26393
26394         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26395         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26396         HAVE_MALLOC.
26397         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26398         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26399         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26400
26401 2010-08-29  Bruno Haible  <bruno@clisp.org>
26402
26403         Update modules list.
26404         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26405         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26406         (String handling <string.h>): Add astrxfrm.
26407         (File system functions): Add readlinkat.
26408
26409 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26410
26411         Tests for module 'realloc-gnu'.
26412         * modules/realloc-gnu-tests: New file.
26413         * tests/test-realloc-gnu.c: New file.
26414
26415         Tests for module 'calloc-gnu'.
26416         * modules/calloc-gnu-tests: New file.
26417         * tests/test-calloc-gnu.c: New file.
26418
26419         Tests for module 'malloc-gnu'.
26420         * modules/malloc-gnu-tests: New file.
26421         * tests/test-malloc-gnu.c: New file.
26422
26423 2010-08-28  Bruno Haible  <bruno@clisp.org>
26424
26425         Rename module 'realloc' -> 'realloc-gnu'.
26426         * modules/realloc-gnu: New file, copied from modules/realloc.
26427         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26428         obsolete.
26429         * modules/mgetgroups (Depends-on): Update.
26430         * doc/posix-functions/realloc.texi: Update.
26431         * NEWS: Mention the change.
26432
26433         Rename module 'calloc' -> 'calloc-gnu'.
26434         * modules/calloc-gnu: New file, copied from modules/calloc.
26435         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26436         obsolete.
26437         * doc/posix-functions/calloc.texi: Update.
26438         * NEWS: Mention the change.
26439
26440         Rename module 'malloc' -> 'malloc-gnu'.
26441         * modules/malloc-gnu: New file, copied from modules/malloc.
26442         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26443         obsolete.
26444         * modules/argp (Depends-on): Update.
26445         * modules/regex (Depends-on): Update.
26446         * doc/posix-functions/malloc.texi: Update.
26447         * NEWS: Mention the change.
26448
26449 2010-08-28  Eric Blake  <eblake@redhat.com>
26450
26451         pread, pwrite: add missing dependency
26452         * modules/pread (Depends-on): Add extensions.
26453         * modules/pwrite (Depends-on): Likewise.
26454
26455 2010-08-28  Bruno Haible  <bruno@clisp.org>
26456
26457         unistr/u*-strchr: Fix tests dependencies.
26458         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26459         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26460         Reported by Ian Beckwith <ianb@erislabs.net>.
26461
26462 2010-08-28  Bruno Haible  <bruno@clisp.org>
26463
26464         read-file: Don't occupy too much unused memory.
26465         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26466
26467 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26468             Eric Blake  <eblake@redhat.com>
26469             Bruno Haible  <bruno@clisp.org>
26470
26471         read-file: Avoid memory reallocations with regular files.
26472         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26473         (fread_file): With regular files, use the remaining length as the
26474         initial buffer size.  Check against overflow.
26475         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26476         sys_stat.
26477
26478 2010-08-28  Bruno Haible  <bruno@clisp.org>
26479
26480         ftello: Relax license.
26481         * modules/ftello (License): Relax to LGPLv2+.
26482         Reported by Eric Blake.
26483
26484 2010-08-28  Bruno Haible  <bruno@clisp.org>
26485
26486         Avoid relocwrapper link errors due to gnulib replacement functions.
26487         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26488         function.
26489         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26490
26491 2010-08-28  Bruno Haible  <bruno@clisp.org>
26492
26493         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26494         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26495         defined.
26496         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26497         Suggested by Eric Blake.
26498
26499 2010-08-28  Bruno Haible  <bruno@clisp.org>
26500
26501         sys_socket, netdb: Ensure socklen_t gets defined.
26502         * modules/sys_socket (Depends-on): Add socklen.
26503         * modules/netdb (Depends-on): Likewise.
26504         * modules/getaddrinfo (Depends-on): Remove socklen.
26505         * modules/getsockopt (Depends-on): Likewise.
26506         * modules/setsockopt (Depends-on): Likewise.
26507         * tests/test-sys_socket.c: Check that socklen_t is defined.
26508         * tests/test-netdb.c: Likewise.
26509         * m4/socklen.m4: Update comments.
26510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26511
26512 2010-08-27  Eric Blake  <eblake@redhat.com>
26513
26514         login_tty: add missing dependency
26515         * modules/login_tty (Depends-on): Add pty.
26516
26517 2010-08-26  Eric Blake  <eblake@redhat.com>
26518
26519         lib-symbol-versions: fix m4 quoting
26520         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26521         format for AC_LINK_IFELSE.
26522
26523         glob: fix compile test
26524         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26525
26526         btowc: fix missing file
26527         * modules/btowc (Files): Also ship locale-fr.m4.
26528
26529         lseek: fix link test
26530         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26531         AC_LINK_IFELSE.
26532
26533         include_next: silence autoconf 2.68 warning
26534         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26535         AC_COMPILE_IFELSE as special.
26536         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26537         autoconf < 2.68.
26538
26539         acl: fix compilation test
26540         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26541         AC_COMPILE_IFELSE.
26542
26543 2010-08-26  Bruno Haible  <bruno@clisp.org>
26544
26545         Modernize AC_TRY_RUN invocations.
26546         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26547         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26548         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26549         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26550         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26551         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26552         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26553         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26554         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26555         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26556         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26557         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26558         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26559         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26561         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26562         gl_MBRLEN_NUL_RETVAL): Likewise.
26563         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26564         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26565         Likewise.
26566         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26567         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26568         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26569         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26570         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26571         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26572         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26573         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26574         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26575         Likewise.
26576         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26577         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26578         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26579         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26580         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26581         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26582         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26583         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26584         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26586
26587 2010-08-26  Bruno Haible  <bruno@clisp.org>
26588
26589         Modernize AC_TRY_LINK invocations.
26590         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26591         AC_TRY_LINK.
26592         * m4/argp.m4 (gl_ARGP): Likewise.
26593         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26594         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26595         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26596         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26597         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26598         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26599         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26600         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26601         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26602         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26603         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26604         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26605         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26606         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26607         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26608         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26609         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26610         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26611         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26612         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26613         Likewise.
26614         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26615         Likewise.
26616         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26617         Likewise.
26618         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26620         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26621         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26622         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26623         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26624         * m4/servent.m4 (gl_SERVENT): Likewise.
26625         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26626         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26627         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26628         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26629         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26630         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26631         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26632         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26633         * modules/tsearch-tests (configure.ac): Likewise.
26634
26635 2010-08-26  Bruno Haible  <bruno@clisp.org>
26636
26637         Modernize AC_TRY_COMPILE invocations.
26638         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26639         AC_TRY_COMPILE.
26640         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26641         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26642         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26643         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26644         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26645         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26646         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26647         * m4/lock.m4 (gl_LOCK): Likewise.
26648         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26649         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26650         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26651         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26652         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26653         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26654         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26655         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26656         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26657         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26658         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26659         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26660         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26661         extraneous semicolon.
26662
26663 2010-08-26  Jim Meyering  <meyering@redhat.com>
26664
26665         stat-time: relax license LGPL
26666         * modules/stat-time (License): Change from GPL to LGPL,
26667         with consent from all contributors, for use in libguile.
26668         Requested by Ludovic Courtès.
26669
26670 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26671
26672         poll: return immediately on POLLHUP.
26673         * lib/poll.c (poll): Always set timeout before wait_timeout is
26674         computed.
26675
26676 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26677
26678         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26679         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26680         rmdir ("dir/.//"), unlinkat.
26681
26682 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26683
26684         stdbool: avoid spurious failure with modern xlc
26685         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26686
26687 2010-08-24  Bruno Haible  <bruno@clisp.org>
26688
26689         getloadavg: simplify code
26690         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26691         gl_have_func. Update comments.
26692
26693 2010-08-24  Eric Blake  <eblake@redhat.com>
26694
26695         getloadavg: don't define SVR4 on cygwin
26696         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26697         only define SVR4 when -lkvm is required.
26698         Reported by Yaakov Selkowitz.
26699
26700 2010-08-24  Bruno Haible  <bruno@clisp.org>
26701
26702         priv-set: fix comment
26703         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26704
26705 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26706
26707         priv-set: fix comments
26708         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26709         to match code, as suggested by David Bartley in:
26710         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26711
26712 2010-08-23  Eric Blake  <eblake@redhat.com>
26713
26714         stdbool: avoid rejecting clang
26715         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26716         * tests/test-stdbool.c: Enable more tests if using the system
26717         <stdbool.h> instead of the gnulib replacement.
26718         (main): Move xlc bug test to a runtime test for all compilers.
26719         Reported by Anders Kaseorg.
26720
26721         argz: fix shell quoting issue
26722         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26723         Reported by Charles Wilson.
26724
26725 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26726             Erik Faye-Lund <kusmabite@gmail.com>
26727
26728         poll, select: handle ERROR_BROKEN_PIPE.
26729         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26730         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26731         * lib/select.c (win32_compute_revents): Do not mark a pipe
26732         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26733
26734 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26735
26736         fts: allow compilation with C++
26737         * lib/fts_.h: Specify extern "C" linkage with C++.
26738
26739 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26740
26741         Fix gnulib-tool sed script de-commentation for AIX sed.
26742         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26743         sed.
26744
26745 2010-08-17  Eric Blake  <eblake@redhat.com>
26746
26747         test-stddef: test for (some) offsetof bugs
26748         * tests/test-stddef.c: Enhance test to ensure correct type of
26749         offsetof.
26750         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26751         that we are not fixing at this time.
26752
26753 2010-08-15  Bruno Haible  <bruno@clisp.org>
26754
26755         stpncpy: Allow stpncpy to be defined as a macro.
26756         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26757         if it's already correctly declared.
26758         * lib/string.in.h (stpncpy): Undefine before redefining.
26759         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26760
26761 2010-08-14  Bruno Haible  <bruno@clisp.org>
26762
26763         Rename module 'memxfrm' to 'amemxfrm'.
26764         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26765         (amemxfrm): Renamed from memxfrm.
26766         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26767         (amemxfrm): Renamed from memxfrm.
26768         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26769         * NEWS: Mention the change.
26770         * MODULES.html.sh (String handling <string.h>): Update.
26771         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26772         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26773         * lib/unicase/u16-casexfrm.c: Likewise.
26774         * lib/unicase/u32-casexfrm.c: Likewise.
26775         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26776         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26777         * lib/uninorm/u16-normxfrm.c: Likewise.
26778         * lib/uninorm/u32-normxfrm.c: Likewise.
26779         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26780         memxfrm.
26781         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26782         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26783         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26784         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26785         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26786         Suggested by Paul Eggert.
26787
26788 2010-08-14  Bruno Haible  <bruno@clisp.org>
26789
26790         Tests for module 'astrxfrm'.
26791         * modules/astrxfrm-tests: New file.
26792         * tests/test-astrxfrm.c: New file.
26793
26794         New module 'astrxfrm'.
26795         * lib/astrxfrm.h: New file.
26796         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26797         * modules/astrxfrm: New file.
26798
26799 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26800
26801         regex: Tweak doc.
26802         * doc/regex.texi (Overview): Don't mention regex.c.
26803         (GNU Regular Expression Compiling): Likewise.
26804         (Match-end-of-line Operator): Mention 'not_eol'.
26805
26806 2010-08-14  Brian Gough  <bjg@gnu.org>
26807             Bruno Haible  <bruno@clisp.org>
26808
26809         git-merge-changelog: add doc relating to use with bzr and hg.
26810         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26811
26812 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26813
26814         pthread: fix pthread.h creation for srcdir != builddir
26815         * modules/pthread (Makefile.am): Fix the rule to work also in a
26816         non-srcdir build.
26817
26818 2010-08-13  Karl Berry  <karl@gnu.org>
26819
26820         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26821         * doc/posix-*/*: force line break before @url of POSIX
26822         specifications.
26823         Suggested by Werner Lemberg.
26824
26825 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26826
26827         strtod: fix const diagnostic
26828         * lib/strtod.c (strtod): Don't assign const char * to char *,
26829         as this elicits a warning from GCC when warnings are enabled.
26830
26831 2010-08-10  Pádraig Brady <P@draigbrady.com>
26832         and Eric Blake  <eblake@redhat.com>
26833
26834         copy-acl: ignore ENOTSUP on HP-UX
26835         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26836         so that it is available for HP-UX.
26837         * lib/copy-acl.c (qcopy_acl): Use it.
26838         Reported by Patrick M. Callahan.
26839
26840 2010-08-10  Eric Blake  <eblake@redhat.com>
26841
26842         open, chown: relax license
26843         * modules/open (License): Change to LGPLv2+, with consent by all
26844         authors, for use in augeas.
26845         * modules/chown (License): Likewise.
26846         * modules/lchown (Likewise): Likewise.
26847         Requested by Adam Stokes.
26848
26849 2010-08-09  Karl Berry  <karl@gnu.org>
26850
26851         * build-aux/ar-lib: new file, import from Automake.
26852         * config/srclist.txt: autocheck for updates.
26853
26854 2010-08-09  Eric Blake  <eblake@redhat.com>
26855
26856         readlinkat: adjust client modules
26857         * modules/areadlinkat (Depends-on): Use readlinkat, not
26858         symlinkat.
26859         * modules/areadlinkat-with-size (Depends-on): Likewise.
26860
26861         mknod: be more vocal about danger of running tests as root
26862         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26863         root, since that is just asking for problems.
26864         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26865
26866         readlinkat: split into its own module
26867         * modules/symlinkat: Split readlinkat...
26868         * modules/readlinkat: ...into separate module.
26869         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26870         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26871         * lib/symlinkat.c (readlinkat): Move...
26872         * lib/readlinkat.c: ...into new file.
26873         * modules/symlinkat-tests: Split readlinkat test...
26874         * modules/readlinkat-tests: ...into separate module.
26875         * tests/test-symlinkat.c: Split...
26876         * tests/test-readlinkat.c: ...into new file.
26877         * NEWS: Document the split.
26878         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26879         * lib/unistd.in.h (readlinkat): Likewise.
26880         Suggested by Bruno Haible.
26881
26882 2010-08-08  Bruno Haible  <bruno@clisp.org>
26883
26884         memxfrm: Speed up.
26885         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26886         that usually only one call to strxfrm is necessary for each string
26887         part.
26888         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26889
26890 2010-08-07  Karl Berry  <karl@gnu.org>
26891
26892         * doc/posix-headers/limits.texi,
26893         * doc/posix-functions/malloc.texi,
26894         * doc/posix-functions/strsignal.texi: missing @item.
26895         * doc/ld-version-script.texi: spurious leading i.
26896         * doc/regex.texi (Interval Operators): no commas inside @var.
26897
26898 2010-08-01  Bruno Haible  <bruno@clisp.org>
26899
26900         Integrate the regex documentation.
26901         * doc/gnulib.texi: Define 'cn' index.
26902         (Regular expressions): New a chapter that includes regex.texi and
26903         regexprops-generic.texi.
26904         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26905         syntax.
26906
26907         Whitespace cleanup.
26908         * doc/regex.texi: Remove trailing spaces.
26909
26910         Add regex documentation.
26911         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26912         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26913         Written by Kathy A. Hargreaves and Karl Berry.
26914
26915 2010-08-01  Bruno Haible  <bruno@clisp.org>
26916
26917         link: Update documentation.
26918         * doc/posix-functions/link.texi: Update regarding Solaris.
26919
26920 2010-07-31  Bruno Haible  <bruno@clisp.org>
26921
26922         Update modules list.
26923         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26924         (String handling <string.h>): Add memcmp2, memxfrm.
26925         (Container data structures): Add xlist, xsublist, xoset.
26926         (Core language properties): Add alignof, unused-parameter.
26927         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26928         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26929         (Unibyte characters <ctype.h>): New section.
26930         (String handling <string.h>): New section.
26931         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26932         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26933         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26934         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26935         tan, tanh, tanl, y0, y1, yn.
26936         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26937         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26938         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26939         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26940         unlockpt, vdprintf, vdprintf-posix.
26941         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26942         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26943         xconcat-filename.
26944         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26945         getdtablesize, pipe2, pipe2-safer.
26946         (Security): New section.
26947         (Networking functions): Add accept4.
26948         (Signal handling): Add sigpipe.
26949         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26950         mbmemcasecoll.
26951         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26952         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26953         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26954         pipe-filter-ii.
26955         (Misc): Add argp-version-etc, login_tty, parse-duration.
26956
26957 2010-07-31  Bruno Haible  <bruno@clisp.org>
26958
26959         Improve doc in MODULES.html.
26960         * modules/linkat (Description): Add the word "function".
26961         * modules/mkfifo (Description): Likewise.
26962         * modules/mknod (Description): Likewise.
26963         * modules/remove (Description): Likewise.
26964         * modules/renameat (Description): Likewise.
26965         * modules/stat (Description): Likewise.
26966         * modules/symlink (Description): Likewise.
26967         * modules/unlink (Description): Likewise.
26968
26969 2010-07-31  Bruno Haible  <bruno@clisp.org>
26970
26971         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26972         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26973         option --enable/disable-c++ instead of --enable/disable-cxx.
26974         * NEWS: Mention the change.
26975
26976 2010-07-31  Bruno Haible  <bruno@clisp.org>
26977
26978         readlink, areadlink: Relax test a bit.
26979         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26980         alternative to ENOTDIR.
26981         * tests/test-areadlink.h (test_areadlink): Likewise.
26982         Reported by Rainer Tammer.
26983
26984 2010-07-31  Bruno Haible  <bruno@clisp.org>
26985
26986         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26987         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26988         character, perform the search using U_STRCHR.
26989         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26990         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26991         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26992         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26993         Suggested by Paolo Bonzini.
26994
26995 2010-07-31  Bruno Haible  <bruno@clisp.org>
26996
26997         unistr/u*-strstr: Fix dependencies.
26998         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26999         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27000         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27001
27002 2010-07-31  Bruno Haible  <bruno@clisp.org>
27003
27004         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27005         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27006         the beginning of the loop.
27007         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27008         cases in 'switch' statement.
27009
27010         unistr/u8-strchr: Fix several bugs.
27011         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27012         the string. When not found, return NULL, not a pointer near the end.
27013
27014         More tests for unistr/u8-strchr.
27015         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27016         that the function does not read past the first occurrence of the byte
27017         being searched.
27018         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27019         * tests/unistr/test-u16-strchr.c (main): New function.
27020         * tests/unistr/test-u32-strchr.c (main): New function.
27021
27022 2010-07-31  Bruno Haible  <bruno@clisp.org>
27023
27024         posix-modules: Ignore backup files of documentation files.
27025         * posix-modules: grep only through files named *.texi.
27026
27027 2010-07-31  Bruno Haible  <bruno@clisp.org>
27028
27029         symlinkat: Fix documentation.
27030         * doc/posix-functions/readlinkat.texi: Fix module name.
27031
27032 2010-07-31  Bruno Haible  <bruno@clisp.org>
27033
27034         fchownat: Replace also when chown has the trailing slash bug.
27035         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27036         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27037         introduced on 2010-04-10.
27038         Reported by Rainer Tammer.
27039
27040 2010-07-31  Bruno Haible  <bruno@clisp.org>
27041
27042         linkat: Work around AIX 7.1 bug.
27043         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27044         whether linkat handles trailing slash correctly. If not, replace linkat
27045         and define LINKAT_TRAILING_SLASH_BUG.
27046         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27047         check whether (fd1,file1) points to a directory if file1 or file2 ends
27048         in a slash. Code taken from lib/link.c.
27049         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27050         Reported by Rainer Tammer.
27051
27052 2010-07-31  Bruno Haible  <bruno@clisp.org>
27053
27054         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27055         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27056         This disables an xlc optimization that was causing wrong test results.
27057         Reported by Rainer Tammer.
27058
27059 2010-07-31  Bruno Haible  <bruno@clisp.org>
27060
27061         iconv: Work around AIX 6.1..7.1 bug.
27062         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27063         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27064         cross-compiling, guess no on all versions of AIX.
27065         Reported by Rainer Tammer.
27066
27067 2010-07-31  Bruno Haible  <bruno@clisp.org>
27068
27069         readlink: Relax test a bit.
27070         * tests/test-readlink.h (test_readlink): Allow different errno value
27071         when readlink is called with a file name that ends in / and refers to
27072         a file.
27073         Suggested by Eric Blake.
27074         Reported by Rainer Tammer.
27075
27076 2010-07-31  Bruno Haible  <bruno@clisp.org>
27077
27078         copysign: Does not require -lm on glibc systems.
27079         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27080         gl_COMMON_DOUBLE_MATHFUNC.
27081         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27082
27083 2010-07-31  Bruno Haible  <bruno@clisp.org>
27084
27085         duplocale: Work around AIX 7.1 bug.
27086         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27087         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27088         * lib/duplocale.c (rpl_duplocale): Update comment.
27089         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27090         Reported by Rainer Tammer.
27091
27092 2010-07-30  Bruno Haible  <bruno@clisp.org>
27093
27094         dirfd: Avoid link error on AIX 7.1.
27095         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27096         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27097         exist, set REPLACE_DIRFD.
27098         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27099         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27100         * doc/posix-functions/dirfd.texi: Update.
27101         Reported by Rainer Tammer.
27102
27103 2010-07-30  Eric Blake  <eblake@redhat.com>
27104
27105         strtod: next round of AIX fixes
27106         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27107         exponent.
27108         * tests/test-strtod.c (main): Enhance tests.
27109         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27110         Reported by Rainer Tammer.
27111
27112         futimens: fix configure check
27113         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27114         Reported by Bruno Haible.
27115
27116 2010-07-30  Bruno Haible  <bruno@clisp.org>
27117
27118         getline: Update regarding AIX.
27119         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27120         Reported by Rainer Tammer.
27121
27122 2010-07-30  Bruno Haible  <bruno@clisp.org>
27123
27124         wcwidth: Drop replacement on AIX 7.
27125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27126         AIX 7.
27127         Reported by Rainer Tammer.
27128
27129 2010-07-30  Bruno Haible  <bruno@clisp.org>
27130
27131         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27132         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27133         a 'char *'.
27134         Reported by Rainer Tammer.
27135
27136 2010-07-30  Bruno Haible  <bruno@clisp.org>
27137
27138         unlink: Update regarding AIX.
27139         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27140         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27141         Reported by Rainer Tammer.
27142
27143 2010-07-30  Bruno Haible  <bruno@clisp.org>
27144
27145         symlink: Update regarding AIX.
27146         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27147         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27148         Reported by Rainer Tammer.
27149
27150 2010-07-30  Bruno Haible  <bruno@clisp.org>
27151
27152         strndup: Update regarding AIX.
27153         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27154         AIX 7.
27155         Reported by Rainer Tammer.
27156
27157 2010-07-30  Bruno Haible  <bruno@clisp.org>
27158
27159         stat: Update regarding AIX.
27160         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27161         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27162         Reported by Rainer Tammer.
27163
27164 2010-07-30  Bruno Haible  <bruno@clisp.org>
27165
27166         truncl: Fix autoconf test.
27167         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27168         whether truncl works.
27169         Reported by Rainer Tammer.
27170
27171 2010-07-30  Bruno Haible  <bruno@clisp.org>
27172
27173         round: Update regarding AIX.
27174         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27175         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27176         Reported by Rainer Tammer.
27177
27178 2010-07-30  Bruno Haible  <bruno@clisp.org>
27179
27180         rename: Update regarding AIX.
27181         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27182         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27183         Reported by Rainer Tammer.
27184
27185 2010-07-30  Bruno Haible  <bruno@clisp.org>
27186
27187         printf.m4: Update regarding AIX.
27188         * m4/printf.m4: Update comments regarding AIX.
27189         Reported by Rainer Tammer.
27190
27191 2010-07-30  Bruno Haible  <bruno@clisp.org>
27192
27193         iconv: Update regarding AIX.
27194         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27195         AIX 7.
27196         Reported by Rainer Tammer.
27197
27198 2010-07-30  Bruno Haible  <bruno@clisp.org>
27199
27200         getopt: Update regarding AIX.
27201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27202         no on AIX.
27203         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27204         Reported by Rainer Tammer.
27205
27206 2010-07-30  Bruno Haible  <bruno@clisp.org>
27207
27208         ldexpl; Update regarding AIX.
27209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_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         frexpl: Update regarding AIX.
27216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27217         on AIX 7.
27218         Reported by Rainer Tammer.
27219
27220 2010-07-30  Bruno Haible  <bruno@clisp.org>
27221
27222         open, fopen: Update regarding AIX.
27223         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27224         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27225         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27226         * doc/posix-functions/fopen.texi: Likewise.
27227         Reported by Rainer Tammer.
27228
27229 2010-07-30  Bruno Haible  <bruno@clisp.org>
27230
27231         chown: Update doc regarding AIX.
27232         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27233         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27234         Reported by Rainer Tammer.
27235
27236 2010-07-30  Eric Blake  <eblake@redhat.com>
27237
27238         strtod: fix bug in replacement function on AIX
27239         * lib/strtod.c (strtod): Special case broken "0x" parse in
27240         underlying strtod.
27241         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27242         * doc/posix-functions/strtod.texi (strtod): Likewise.
27243         Reported by Rainer Tammer.
27244
27245 2010-07-30  Bruno Haible  <bruno@clisp.org>
27246
27247         mbrlen: Fix cross-compilation guess for AIX.
27248         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27249         guess. Leftover from 2008-12-22.
27250
27251 2010-07-30  Bruno Haible  <bruno@clisp.org>
27252
27253         mbrtowc: Fix cross-compilation guess for AIX.
27254         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27255         guess. Leftover from 2008-12-21.
27256
27257 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27258
27259         init.sh: work around trap limitation of some shells
27260         * tests/init.sh (setup_): Move exit trap outside of shell function.
27261
27262 2010-07-29  Eric Blake  <eblake@redhat.com>
27263
27264         strtod: aid debugging
27265         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27266         understanding why strtod is rejected.
27267
27268 2010-07-28  Bruno Haible  <bruno@clisp.org>
27269
27270         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27271         * lib/unistr/u8-chr.c: Include <string.h>.
27272         * tests/unistr/test-u8-chr.c: Likewise.
27273         * tests/unistr/test-u16-chr.c: Likewise.
27274         * tests/unistr/test-u32-chr.c: Likewise.
27275         * tests/unistr/test-u8-strchr.c: Likewise.
27276         * tests/unistr/test-u16-strchr.c: Likewise.
27277         * tests/unistr/test-u32-strchr.c: Likewise.
27278         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27279         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27280         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27281         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27282
27283 2010-07-28  Bruno Haible  <bruno@clisp.org>
27284
27285         Use spaces for indentation, not tabs.
27286         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27287
27288 2010-07-27  Bruno Haible  <bruno@clisp.org>
27289
27290         mbspcasecmp: Fix function specification.
27291         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27292         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27293         Reported by Eric Blake <eblake@redhat.com>.
27294
27295 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27296
27297         timespec: use cast and not conditional, as truncation isn't possible
27298         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27299         instead of a conditional.  Comment about the situation in more detail.
27300         This undoes most of the 2009-10-29 patch.
27301
27302 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27303
27304         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27305         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27306         * lib/unistr/u8-strchr.c: Likewise.
27307         * modules/unistr/u8-chr: Depend on memchr.
27308
27309         unistr/u*-strchr: add tests
27310         * modules/unistr/u8-strchr-tests: New file.
27311         * modules/unistr/u16-strchr-tests: New file.
27312         * modules/unistr/u32-strchr-tests: New file.
27313         * tests/unistr/test-strchr.h: New file.
27314         * tests/unistr/test-u8-strchr.c: New file.
27315         * tests/unistr/test-u16-strchr.c: New file.
27316         * tests/unistr/test-u32-strchr.c: New file.
27317
27318         unistr/u*-chr: test multibyte sequences more
27319         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27320         test vector.
27321         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27322         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27323         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27324
27325         unistr/u*-chr: test multibyte sequences
27326         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27327
27328         unistr/u*-chr: prepare for multibyte tests
27329         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27330         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27331         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27332         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27333         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27334         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27335
27336 2010-07-18  Bruno Haible  <bruno@clisp.org>
27337
27338         unistr/u8-strchr: Optimize non-ASCII argument case.
27339         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27340         because the first byte often matches anyway.
27341         Reported by Pádraig Brady <P@draigbrady.com>.
27342
27343 2010-07-15  Karl Berry  <karl@gnu.org>
27344
27345         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27346
27347 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27348
27349         getcwd: on Solaris, work better if ancestors are inaccessible
27350         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27351         buffer and size, try again with a large buffer.  This works better
27352         on Solaris, since its getcwd succeeds even if the path to the root
27353         is inaccessible, and this is helpful in common cases such as .zfs
27354         hidden directories.  Problem reported by J Chapman Flack in
27355         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27356         Use system getcwd if it's declared, not merely if it's partly
27357         working; use the partly-working test only to avoid needless effort
27358         if the system getcwd fails.
27359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27360         comment that was already obsolete and is now even more obsolete.
27361         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27362         now might call strdup.
27363
27364 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27365
27366         pthread: Add enough so that coreutils/src/sort.c compiles.
27367         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27368         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27369         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27370         Include <sys/types.h>, in case it defines pthread_t.
27371         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27372         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27373         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27374         (pthread_rwlockattr_t, pthread_spinlock_t):
27375         New typedefs, if HAVE_PTHREAD_T is not defined.
27376         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27377         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27378         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27379         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27380         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27381         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27382         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27383         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27384         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27385         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27386         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27387         New macros.
27388         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27389         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27390         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27391         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27392         (pthread_spin_unlock): New dummy functions.
27393         (pthread_create): Return EAGAIN; don't set errno.
27394         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27395         require AC_C_INLINE.
27396         * modules/pthread (Depends-on): Add sched, time.
27397         (pthread.h): Use AM_V_GEN.
27398
27399 2010-07-13  Bruno Haible  <bruno@clisp.org>
27400
27401         striconveh: Don't malloc memory if the result buffer is sufficient.
27402         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27403         buffer if its size is sufficient.
27404         Reported by Ludovic Courtès <ludo@gnu.org>.
27405
27406 2010-07-13  Bruno Haible  <bruno@clisp.org>
27407
27408         strtod: Add safety check.
27409         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27410
27411 2010-07-12  Bruno Haible  <bruno@clisp.org>
27412
27413         Unify tests that set gl_cv_func_ldexpl_no_libm.
27414         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27415         gl_FUNC_LDEXPL.
27416         (gl_FUNC_LDEXPL): Invoke it.
27417         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27418
27419 2010-07-12  Bruno Haible  <bruno@clisp.org>
27420
27421         Unify tests that set gl_cv_func_ldexp_no_libm.
27422         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27423         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27424         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27425         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27426         * modules/strtod (Files): Add m4/ldexp.m4.
27427
27428 2010-07-12  Bruno Haible  <bruno@clisp.org>
27429
27430         Unify tests that set gl_cv_func_frexpl_no_libm.
27431         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27432         gl_FUNC_FREXPL_NO_LIBM.
27433         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27434         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27435
27436 2010-07-12  Bruno Haible  <bruno@clisp.org>
27437
27438         Unify tests that set gl_cv_func_frexp_no_libm.
27439         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27440         gl_FUNC_FREXP_NO_LIBM.
27441         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27442         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27443
27444 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27445
27446         memcoll: clarify sizes versus lengths, document better, and tweak perf
27447         * lib/memcoll.c (strcoll_loop, memcoll0):
27448         Improve quality of descriptive comments.  Name variables
27449         consistently as to whether they are lengths (which do not include
27450         terminating null) versus sizes (which do).
27451         * lib/xmemcoll.c (xmemcoll0): Likewise.
27452         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27453         returned when s1size == 0; this is easier to compile and saves
27454         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27455
27456 2010-07-12  Bruno Haible  <bruno@clisp.org>
27457
27458         Tests for module '_Exit'.
27459         * modules/_Exit-tests: New file.
27460         * tests/test-_Exit.sh: New file.
27461         * tests/test-_Exit.c: New file.
27462
27463         New module '_Exit'.
27464         * lib/stdlib.in.h (__attribute__): New macro.
27465         (_Exit): New declaration.
27466         * lib/_Exit.c: New file.
27467         * m4/_Exit.m4: New file.
27468         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27469         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27470         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27471         * modules/_Exit: New file.
27472         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27473         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27474
27475 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27476
27477         strtod: make it more-accurate typically, and don't require libm
27478         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27479         Include limits.h.  Don't include string.h.
27480         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27481         (locale_isspace): New function, so that no casts are needed to
27482         check whether *s is a space.
27483         (ldexp): Provide an unused dummy if not available.
27484         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27485         (strtod): Use them.  This implementation prefers to use the
27486         underlying strtod if available, falling back on our own code
27487         only to fix known bugs.  This is more likely to produce an
27488         accurate result.  Also, it avoids the use of libm functions.
27489         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27490         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27491         was absent, but it caused a test failure with coreutils.
27492         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27493         with libm.
27494         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27495         * modules/strtod-tests (Makefile.am): Likewise.
27496
27497 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27498             Bruno Haible  <bruno@clisp.org>
27499
27500         unistr/u8-strchr: Optimize ASCII argument case.
27501         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27502
27503 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27504
27505         (x)memcoll: minor tweaks
27506         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27507         is after the type that it qualifies.
27508         (memcoll0): Likewise.
27509         * lib/memcoll.h (memcoll0): Likewise.
27510         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27511         * lib/xmemcoll.h (xmemcoll0): Likewise.
27512         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27513         differs from memcoll in that the NUL byte is part of the argument.
27514         Omit the abort-checks, as performance is a real issue here.  Plus,
27515         the checks were wrong anyway (an off-by-one error).  Omit local
27516         variable 'diff', as it's a bit clearer that way.
27517         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27518         no longer needed.
27519
27520 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27521
27522         (x)memcoll: speedup when input is known to be NUL delimited
27523         * lib/memcoll.c: Include stdlib.
27524         (memcoll0): New function.
27525         (strcoll_loop): New function, refactored for use in both memcoll
27526         and memcoll0.
27527         * lib/memcoll.h (memcoll0): Add prototype.
27528         * lib/xmemcoll.c (xmemcoll0): New function.
27529         (collate_error): New function, refactored for use in both xmemcoll
27530         and xmemcoll0.
27531         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27532         * m4/memcoll.m4: add inline invocation.
27533
27534 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27535
27536         * build-aux/bootstrap: Remove any local translations
27537         from the translation project synchronization directory,
27538         so that local only translations are not distributed.
27539
27540 2010-07-04  Bruno Haible  <bruno@clisp.org>
27541
27542         fsusage: Clarify which code applies to which platforms.
27543         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27544         platform.
27545         * lib/fsusage.c (get_fs_usage): Likewise.
27546
27547 2010-07-04  Bruno Haible  <bruno@clisp.org>
27548
27549         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27550         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27551         Reported by Martin Lambers <marlam@marlam.de>.
27552
27553 2010-07-04  Jim Meyering  <meyering@redhat.com>
27554
27555         hash: once again explicitly disallow insertion of NULL
27556         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27557         inserting a NULL pointer cannot work with these functions.
27558         Add a comment with details.
27559         This reverts part of the 2010-07-01 commit, 5bef1a35
27560         "hash: extend module to deal with non-pointer keys".
27561
27562 2010-07-01  Bruno Haible  <bruno@clisp.org>
27563
27564         stdbool: Update doc.
27565         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27566         Info from Christian Weisgerber <naddy@mips.inka.de>.
27567
27568 2010-07-01  Jim Meyering  <meyering@redhat.com>
27569
27570         hash: extend module to deal with non-pointer keys
27571         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27572         but that allows insertion of non-pointer entries.
27573         Do not disallow an ENTRY value of NULL.
27574         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27575         * lib/hash.h (hash_insert0): Declare.
27576
27577 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27578
27579         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27580         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27581         not present (i.e. with autoconf 2.59 and when using gettextize, not
27582         gnulib), require AC_GNU_SOURCE instead.
27583
27584 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27585
27586         idpriv-drop: Fix tests.
27587         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27588         not to the test-idpriv-droptemp program.
27589
27590 2010-06-29  Bruno Haible  <bruno@clisp.org>
27591
27592         string: Fix syntax error with g++ 2.96.
27593         * lib/string.in.h (__pure__): Remove definition.
27594         (_GL_ATTRIBUTE_PURE): New macro.
27595         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27596         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27597         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27598
27599 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27600
27601         unitypes: Fix bug introduced on 2010-05-18.
27602         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27603
27604 2010-06-22  Eric Blake  <eblake@redhat.com>
27605
27606         memmem: slight optimization
27607         * lib/str-two-way.h (critical_factorization): Update comments.
27608         Reduce work during factorization phase.
27609         Reported by Carlos Bueno <carlos@bueno.org>.
27610
27611 2010-06-21  Bruno Haible  <bruno@clisp.org>
27612
27613         Fix HAVE_CALLOC_POSIX misnomer.
27614         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27615         !HAVE_CALLOC_POSIX.
27616         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27617         HAVE_CALLOC_POSIX.
27618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27619         instead of HAVE_CALLOC_POSIX.
27620         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27621         HAVE_CALLOC_POSIX.
27622
27623         Use modern idiom for calloc() replacement.
27624         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27625         AC_FUNC_CALLOC.
27626         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27627         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27628         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27629         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27630         (gl_REPLACE_CALLOC): New macro.
27631
27632 2010-06-21  Bruno Haible  <bruno@clisp.org>
27633
27634         Fix HAVE_REALLOC_POSIX misnomer.
27635         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27636         !HAVE_REALLOC_POSIX.
27637         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27638         HAVE_REALLOC_POSIX.
27639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27640         instead of HAVE_REALLOC_POSIX.
27641         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27642         HAVE_REALLOC_POSIX.
27643
27644         Use modern idiom for realloc() replacement.
27645         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27646         AC_FUNC_REALLOC.
27647         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27648         Autoconf's AC_FUNC_REALLOC.
27649         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27650         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27651         (gl_REPLACE_REALLOC): New macro.
27652         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27653
27654 2010-06-21  Bruno Haible  <bruno@clisp.org>
27655
27656         Fix HAVE_MALLOC_POSIX misnomer.
27657         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27658         !HAVE_MALLOC_POSIX.
27659         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27660         HAVE_MALLOC_POSIX.
27661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27662         instead of HAVE_MALLOC_POSIX.
27663         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27664         HAVE_MALLOC_POSIX.
27665
27666         Use modern idiom for malloc() replacement.
27667         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27668         AC_FUNC_MALLOC.
27669         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27670         Autoconf's AC_FUNC_MALLOC.
27671         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27672         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27673         (gl_REPLACE_MALLOC): New macro.
27674         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27675
27676 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27677
27678         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27679         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27680         This macro takes 3 arguments, not 4.
27681
27682 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27683
27684         ipv6: fix detection under mingw
27685         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27686         in6_addr.
27687
27688 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27689
27690         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27691         that strtod() works when cross-compiling to a glibc version known
27692         to work.
27693
27694 2010-06-15  Bruno Haible  <bruno@clisp.org>
27695
27696         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27697
27698 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27699
27700         select: Correct timeout.
27701         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27702
27703 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27704
27705         git-version-gen: init shell var to avoid env var influence
27706         * build-aux/git-version-gen (v): Init shell var to empty.
27707
27708 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27709
27710         priv-set: Don't assume that priv.h exists merely because getppriv does.
27711         See Jan Andersen's bug report about AIX 5L in
27712         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27713         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27714         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27715         * lib/priv-set.h: Likewise.
27716         * tests/test-priv-set.c: Likewise.
27717
27718 2010-06-13  Bruno Haible  <bruno@clisp.org>
27719
27720         relocatable: Make it easier to test whether to install wrappers.
27721         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27722         RELOCATABLE_VIA_WRAPPER.
27723
27724 2010-06-13  Bruno Haible  <bruno@clisp.org>
27725
27726         gnulib-tool: Display specified modules and dependencies differently.
27727         * gnulib-tool (func_show_module_list): New function.
27728         (func_import, func_create_testdir): Invoke it.
27729         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27730
27731 2010-06-13  Bruno Haible  <bruno@clisp.org>
27732
27733         gnulib-tool: Align code of func_import and func_create_testdir.
27734         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27735         specified_modules.
27736
27737 2010-06-12  Jim Meyering  <meyering@redhat.com>
27738
27739         test-inttostr: avoid spurious failure on Solaris 9
27740         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27741         to accept "%ju".  Reported by Bruno Haible.
27742
27743 2010-06-11  Jim Meyering  <meyering@redhat.com>
27744
27745         test-sys_socket: mark variables as used more readably
27746         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27747         as "used" explicitly via (void) statement casts.  This is more
27748         readable than using them in an artificial return expression.
27749         Suggestion from Bruno Haible.
27750
27751 2010-06-11  Bruno Haible  <bruno@clisp.org>
27752
27753         Avoid some more warnings from "gcc -Wwrite-strings".
27754         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27755         to 'const char *'.
27756         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27757         * tests/test-c-strcasestr.c (main): Likewise.
27758         * tests/test-mbscasestr1.c (main): Likewise.
27759         * tests/test-mbscasestr2.c (main): Likewise.
27760         * tests/test-memmem.c (main): Likewise.
27761         * tests/test-strstr.c (main): Likewise.
27762         * tests/test-strcasestr.c (main): Likewise.
27763
27764 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27765
27766         init.sh: change framework_failure_ to fail with status 99, not 1
27767         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27768         automake's parallel-tests rule that this is an unexpected failure,
27769         even if the test is listed in XFAIL_TESTS.
27770
27771 2010-06-11  Jim Meyering  <meyering@redhat.com>
27772
27773         test-inttostr: avoid warnings about 4-6KB literal strings
27774         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27775         Include "macros.h", for its definition of ASSERT.
27776         (CK): s/assert/ASSERT/
27777         * modules/inttostr-tests (Files): Add macros.h.
27778
27779         init.sh: don't use $ME_ or skip_ before they are defined
27780         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27781         their first uses.  Also hoist their companions: warn_, fail_,
27782         framework_failure_, $stderr_fileno.  Prompted by a patch from
27783         Stefano Lattarini.
27784
27785         test-sys_socket: avoid set-but-not-used warnings from gcc
27786         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27787         avoid warning about set-but-not-used variables.
27788
27789         test-xvasprintf: avoid 'const' discard warnings
27790         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27791         "const" when assigning from literal strings.
27792         (test_xasprintf): Add "void" in function argument list to placate
27793         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27794
27795         tests: avoid compilation warnings in argmatch and exclude tests...
27796         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27797         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27798         Since it always exits, declare with the "noreturn" attribute.
27799         * tests/test-argmatch.c: Likewise.
27800
27801         tests: avoid 'const' discard warnings in mbsstr tests
27802         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27803         * tests/test-mbsstr2.c (main): Likewise.
27804
27805         test-verify: avoid warning from gcc's -Wmissing-declarations
27806         * tests/test-verify.c (function): Declare to be static.
27807
27808         test-inttostr.c: include <string.h> for use of strcmp
27809         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27810
27811         test-linkat: avoid failed assertion on "other" architectures
27812         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27813         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27814         sparc: https://bugs.launchpad.net/bugs/591968
27815
27816 2010-06-11  Jim Meyering  <meyering@redhat.com>
27817
27818         printf.m4: avoid autoconf's "Expanded Before Required" warning
27819         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27820         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27821         autoconf warning.
27822
27823 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27824
27825         Replacement header templates are now named with ".in", not "_".
27826         * doc/gnulib-intro.texi: Correct.
27827
27828 2010-06-10  Jim Meyering  <meyering@redhat.com>
27829
27830         inttostr-tests: depend on snprintf, not snprintf-posix
27831         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27832         snprintf-posix, to avoid this aclocal failure:
27833           missing file gnulib-tests/vasnprintf.c
27834           configure.ac:45: error: expected source file, required through \
27835           AC_LIBSOURCES, not found
27836
27837 2010-06-10  Jim Meyering  <meyering@redhat.com>
27838
27839         inttostr: add a new function, inttostr, and tests
27840         The namesake function was not available.  The existence of the
27841         template file, inttostr.c makes its addition nontrivial.
27842         * lib/anytostr.c: Rename from inttostr.c.
27843         (anytostr): Rename from inttostr.
27844         * lib/inttostr.c: New file.
27845         * modules/inttostr (Files): Add anytostr.c.
27846         (Makefile.am): Set lib_SOURCES instead of ...
27847         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27848         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27849         * lib/offtostr.c: Likewise.
27850         * lib/uinttostr.c: Likewise.
27851         * lib/umaxtostr.c: Likewise.
27852         * modules/inttostr-tests: New file.
27853         * tests/test-inttostr.c: New file.  Test these functions.
27854
27855 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27856             Bruno Haible  <bruno@clisp.org>
27857
27858         Add "Extending Gnulib" chapter to manual.
27859         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27860         chapter.
27861         (Extending Gnulib): New chapter.
27862         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27863         chapter.
27864
27865 2010-06-09  Bruno Haible  <bruno@clisp.org>
27866
27867         Avoid relocwrapper link errors due to gnulib replacement functions.
27868         * lib/areadlink.c: Use the system's malloc, realloc functions.
27869         (areadlink): Set errno to ENOMEM explicitly.
27870         * modules/areadlink (Depends-on): Remove malloc-posix.
27871         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27872
27873 2010-06-09  Bruno Haible  <bruno@clisp.org>
27874
27875         Avoid relocwrapper link errors due to gnulib replacement functions.
27876         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27877         * lib/malloca.c: Likewise.
27878         * lib/relocatable.c: Likewise.
27879         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27880         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27881         * lib/setenv.c: Use the system's malloc, realloc functions.
27882         * lib/strerror.c: Use the system's sprintf function.
27883         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27884
27885 2010-06-04  Bruno Haible  <bruno@clisp.org>
27886
27887         Prefer documented low-level autoconf macro names.
27888         * m4/lib-link.m4: Use m4_translit instead of translit.
27889         * m4/environ.m4: Likewise.
27890         * m4/mathfunc.m4: Likewise.
27891         * m4/onceonly.m4: Likewise.
27892         * m4/stdint.m4: Likewise.
27893         Suggested by Eric Blake.
27894
27895 2010-06-04  Martin Lambers  <marlam@marlam.de>
27896             Bruno Haible  <bruno@clisp.org>
27897
27898         havelib: Allow library names with '+' characters.
27899         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27900         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27901
27902 2010-06-09  Bruno Haible  <bruno@clisp.org>
27903
27904         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27905         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27906         realloc failed.
27907
27908 2010-06-08  Peter Simons  <simons@cryp.to>
27909
27910         maint.mk: make the news-check rule more configurable
27911         * top/maint.mk (news-check-lines-spec): New variable.
27912         (news-check): Use "sed -n 1,10p" in place of "head".
27913
27914 2010-06-07  Jim Meyering  <meyering@redhat.com>
27915
27916         do-release-commit-and-tag: fix typo in --help
27917         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27918
27919         regex: avoid new dead-code warning with gcc-4.6.0
27920         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27921         if-block containing a while-loop.  It's been unused for at least
27922         5 years.
27923
27924 2010-06-05  Bruno Haible  <bruno@clisp.org>
27925
27926         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27927         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27928
27929 2010-06-04  Bruno Haible  <bruno@clisp.org>
27930
27931         Update to GNU gettext 0.18.1.
27932         * modules/gettext (configure.ac): Require gettext infrastructure from
27933         version 0.18.1.
27934
27935 2010-06-03  Bruno Haible  <bruno@clisp.org>
27936
27937         Don't use AC_LIBOBJ with file names in subdirectories.
27938         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27939         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27940         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27941         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27942         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27943         gl_LIBUNISTRING_LIBSOURCE.
27944         (Makefile.am): Augment lib_SOURCES here, conditionally.
27945         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27946
27947 2010-06-03  Bruno Haible  <bruno@clisp.org>
27948
27949         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27950         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27951         expansion does not end with a newline.
27952         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27953         unnecessary newline.
27954
27955 2010-06-03  Bruno Haible  <bruno@clisp.org>
27956
27957         Reduce dependencies.
27958         * tests/test-quotearg.h: New file, extracted from
27959         tests/test-quotearg.c.
27960         * tests/test-quotearg-simple.c: New file, extracted from
27961         tests/test-quotearg.c.
27962         * tests/test-quotearg.c: Don't include <ctype.h>.
27963         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27964         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27965         use_quote_double_quotes, use_quotearg_colon): Moved to
27966         tests/test-quotearg.h.
27967         (results_g, flag_results, custom_quotes, custom_results): Moved
27968         to tests/test-quotearg-simple.c.
27969         (main): Moved the part that does not depend on gettext to
27970         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27971         performed.
27972         * modules/quotearg-simple: New file.
27973         * modules/quotearg-simple-tests: New file.
27974         * modules/quotearg (Depends-on): Add quotearg-simple.
27975         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27976         (Files): Add tests/test-quotearg.h.
27977         Reported by Paolo Bonzini.
27978
27979 2010-06-03  Bruno Haible  <bruno@clisp.org>
27980
27981         Reduce dependencies.
27982         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27983
27984 2010-06-03  Bruno Haible  <bruno@clisp.org>
27985
27986         time: Undefine more broken macros.
27987         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27988         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27989         Reported by Eric Blake.
27990
27991 2010-06-03  Bruno Haible  <bruno@clisp.org>
27992
27993         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27994         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27995         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27996         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27997         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27998         Reported by Ludovic Courtès <ludo@gnu.org>.
27999
28000 2010-06-02  Eric Blake  <eblake@redhat.com>
28001
28002         time: work with mingw + pthreads-win32 library
28003         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28004         if timespec is defined only in pthread.h.
28005         * modules/time (Makefile.am): Substitute it.
28006         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28007         <pthread.h>, when needed.
28008         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28009         from the library.
28010
28011 2010-05-31  Bruno Haible  <bruno@clisp.org>
28012
28013         Avoid expanding two macros in the wrong order.
28014         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28015         gl_LIBUNISTRING if it is defined.
28016         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28017         autoconf >= 2.64.
28018         Reported by Ludovic Courtès <ludo@gnu.org>.
28019
28020 2010-05-27  Jim Meyering  <meyering@redhat.com>
28021
28022         maint.mk: also prohibit "#undef" of always-defined symbols
28023         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28024         Allow more than one space before the symbol name.
28025         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28026         the regexp uses alternation.
28027
28028 2010-05-26  Eric Blake  <eblake@redhat.com>
28029
28030         maint.mk: avoid echo -e
28031         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28032         Convert all uses of echo -* to printf.
28033         Reported by Matthias Bolte.
28034
28035 2010-05-25  Bruno Haible  <bruno@clisp.org>
28036
28037         Update to GNU gettext 0.18, part 2.
28038         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28039         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28040
28041 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28042
28043         Add missing include in test-pwrite.c.
28044         * tests/test-pwrite.c: Include string.h, for strcmp.
28045
28046 2010-05-24  Bruno Haible  <bruno@clisp.org>
28047
28048         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28049
28050 2010-05-24  Bruno Haible  <bruno@clisp.org>
28051
28052         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28053         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28054         iconveh_error argument.
28055         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28056         U_STRCONV_TO_LOCALE.
28057         * lib/unistr/u16-strcoll.c: Likewise.
28058         * lib/unistr/u32-strcoll.c: Likewise.
28059         * modules/unistr/u8-strcoll (Depends-on): Add
28060         uniconv/u8-strconv-to-enc, localcharset. Remove
28061         uniconv/u8-strconv-to-locale.
28062         (configure.ac): Bump version number.
28063         * modules/unistr/u16-strcoll (Depends-on): Add
28064         uniconv/u16-strconv-to-enc, localcharset. Remove
28065         uniconv/u16-strconv-to-locale.
28066         (configure.ac): Bump version number.
28067         * modules/unistr/u32-strcoll (Depends-on): Add
28068         uniconv/u32-strconv-to-enc, localcharset. Remove
28069         uniconv/u32-strconv-to-locale.
28070         (configure.ac): Bump version number.
28071
28072 2010-05-24  Bruno Haible  <bruno@clisp.org>
28073
28074         Avoid a test failure on NetBSD 5.0.
28075         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28076         an iconv() bug.
28077
28078 2010-05-24  Bruno Haible  <bruno@clisp.org>
28079
28080         Adjust #include directive style.
28081         * modules/regex (Includes): Recommend to write <regex.h>.
28082
28083 2010-05-24  Bruno Haible  <bruno@clisp.org>
28084
28085         regex: Don't require alloca.
28086         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28087         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28088         only inside if (0).
28089
28090 2010-05-23  Jim Meyering  <meyering@redhat.com>
28091
28092         test-renameat.c: include <sys/stat.h>
28093         * tests/test-renameat.c: Include <sys/stat.h>; required for
28094         definition of S_IS* macros.
28095
28096 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28097
28098         Update maintainer documentation for 'relocatable-prog' module.
28099         * doc/relocatable-maint.texi: Update.
28100         Comments by Bruno Haible.
28101
28102 2010-05-23  Bruno Haible  <bruno@clisp.org>
28103
28104         git-merge-changelog: Enable --split-merged-entry by default.
28105         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28106         (usage): Don't mention this option any more.
28107         Reported by Ralf Wildenhues.
28108
28109 2010-05-23  Jim Meyering  <meyering@redhat.com>
28110
28111         test-pwrite: do not leave behind a test file named "out"
28112         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28113         The trivial-looking use of init.sh is really necessary.
28114         It ensures that the temporary file, "out", is created in
28115         a temporary directory, and removed upon termination.
28116         * tests/test-pwrite.sh: Re-add file.
28117         * modules/pwrite-tests: Reference it.
28118
28119 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28120
28121         Fix output redirection buglet in init.sh.
28122         * tests/init.sh: Fix redirection of stderr.
28123
28124 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28125
28126         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28127
28128 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28129
28130         * modules/valgrind-tests: New file.
28131         * m4/valgrind-tests.m4: New file.
28132         * doc/valgrind-tests.texi: New file.
28133         * doc/gnulib.texi (Running self-tests under valgrind): New
28134         section.
28135
28136 2010-05-19  Bruno Haible  <bruno@clisp.org>
28137
28138         Clean up dead code in recent commit.
28139         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28140         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28141         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28142         Suggested by Paolo Bonzini.
28143
28144 2010-05-19  Bruno Haible  <bruno@clisp.org>
28145
28146         Avoid valgrind error reports from libunistring.
28147         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28148         * modules/libunistring (Files): Add it.
28149         * modules/libunistring-optional (Files): Likewise.
28150
28151 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28152             Bruno Haible  <bruno@clisp.org>
28153
28154         New module 'libunistring-optional'.
28155         * modules/libunistring-optional: New file.
28156         * m4/libunistring-base.m4: New file.
28157         * m4/libunistring-optional.m4: New file.
28158         * lib/unicase.in.h: Renamed from lib/unicase.h.
28159         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28160         * lib/unictype.in.h: Renamed from lib/unictype.h.
28161         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28162         * lib/uniname.in.h: Renamed from lib/uniname.h.
28163         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28164         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28165         * lib/unistr.in.h: Renamed from lib/unistr.h.
28166         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28167         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28168         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28169         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28170         gl_LIBUNISTRING. If the library was found, determine the installed
28171         version and set LIBUNISTRING_VERSION.
28172         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28173         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28174         handle a configuration option --with-included-libunistring.
28175         * modules/libunistring (Files): Add m4/absolute-header.m4.
28176         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28177         Add m4/libunistring-base.m4.
28178         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28179         (Makefile.am): Build unicase.h from unicase.in.h.
28180         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28181         Add m4/libunistring-base.m4.
28182         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28183         (Makefile.am): Build uniconv.h from uniconv.in.h.
28184         * modules/unictype/base (Files): Use unictype.in.h instead of
28185         unictype.h. Add m4/libunistring-base.m4.
28186         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28187         (Makefile.am): Build unictype.h from unictype.in.h.
28188         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28189         Add m4/libunistring-base.m4.
28190         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28191         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28192         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28193         Add m4/libunistring-base.m4.
28194         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28195         (Makefile.am): Build uniname.h from uniname.in.h.
28196         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28197         Add m4/libunistring-base.m4.
28198         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28199         (Makefile.am): Build uninorm.h from uninorm.in.h.
28200         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28201         unistdio.h. Add m4/libunistring-base.m4.
28202         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28203         (Makefile.am): Build unistdio.h from unistdio.in.h.
28204         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28205         Add m4/libunistring-base.m4.
28206         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28207         (Makefile.am): Build unistr.h from unistr.in.h.
28208         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28209         Add m4/libunistring-base.m4.
28210         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28211         (Makefile.am): Build unitypes.h from unitypes.in.h.
28212         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28213         Add m4/libunistring-base.m4.
28214         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28215         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28216         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28217         uniwidth.h. Add m4/libunistring-base.m4.
28218         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28219         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28220         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28221         instead of augmenting lib_SOURCES.
28222         * modules/unicase/empty-suffix-context: Likewise.
28223         * modules/unicase/locale-language: Likewise.
28224         * modules/unicase/tolower: Likewise.
28225         * modules/unicase/totitle: Likewise.
28226         * modules/unicase/toupper: Likewise.
28227         * modules/unicase/u8-casecmp: Likewise.
28228         * modules/unicase/u8-casecoll: Likewise.
28229         * modules/unicase/u8-casefold: Likewise.
28230         * modules/unicase/u8-casexfrm: Likewise.
28231         * modules/unicase/u8-ct-casefold: Likewise.
28232         * modules/unicase/u8-ct-tolower: Likewise.
28233         * modules/unicase/u8-ct-totitle: Likewise.
28234         * modules/unicase/u8-ct-toupper: Likewise.
28235         * modules/unicase/u8-is-cased: Likewise.
28236         * modules/unicase/u8-is-casefolded: Likewise.
28237         * modules/unicase/u8-is-lowercase: Likewise.
28238         * modules/unicase/u8-is-titlecase: Likewise.
28239         * modules/unicase/u8-is-uppercase: Likewise.
28240         * modules/unicase/u8-prefix-context: Likewise.
28241         * modules/unicase/u8-suffix-context: Likewise.
28242         * modules/unicase/u8-tolower: Likewise.
28243         * modules/unicase/u8-totitle: Likewise.
28244         * modules/unicase/u8-toupper: Likewise.
28245         * modules/unicase/u16-casecmp: Likewise.
28246         * modules/unicase/u16-casecoll: Likewise.
28247         * modules/unicase/u16-casefold: Likewise.
28248         * modules/unicase/u16-casexfrm: Likewise.
28249         * modules/unicase/u16-ct-casefold: Likewise.
28250         * modules/unicase/u16-ct-tolower: Likewise.
28251         * modules/unicase/u16-ct-totitle: Likewise.
28252         * modules/unicase/u16-ct-toupper: Likewise.
28253         * modules/unicase/u16-is-cased: Likewise.
28254         * modules/unicase/u16-is-casefolded: Likewise.
28255         * modules/unicase/u16-is-lowercase: Likewise.
28256         * modules/unicase/u16-is-titlecase: Likewise.
28257         * modules/unicase/u16-is-uppercase: Likewise.
28258         * modules/unicase/u16-prefix-context: Likewise.
28259         * modules/unicase/u16-suffix-context: Likewise.
28260         * modules/unicase/u16-tolower: Likewise.
28261         * modules/unicase/u16-totitle: Likewise.
28262         * modules/unicase/u16-toupper: Likewise.
28263         * modules/unicase/u32-casecmp: Likewise.
28264         * modules/unicase/u32-casecoll: Likewise.
28265         * modules/unicase/u32-casefold: Likewise.
28266         * modules/unicase/u32-casexfrm: Likewise.
28267         * modules/unicase/u32-ct-casefold: Likewise.
28268         * modules/unicase/u32-ct-tolower: Likewise.
28269         * modules/unicase/u32-ct-totitle: Likewise.
28270         * modules/unicase/u32-ct-toupper: Likewise.
28271         * modules/unicase/u32-is-cased: Likewise.
28272         * modules/unicase/u32-is-casefolded: Likewise.
28273         * modules/unicase/u32-is-lowercase: Likewise.
28274         * modules/unicase/u32-is-titlecase: Likewise.
28275         * modules/unicase/u32-is-uppercase: Likewise.
28276         * modules/unicase/u32-prefix-context: Likewise.
28277         * modules/unicase/u32-suffix-context: Likewise.
28278         * modules/unicase/u32-tolower: Likewise.
28279         * modules/unicase/u32-totitle: Likewise.
28280         * modules/unicase/u32-toupper: Likewise.
28281         * modules/unicase/ulc-casecmp: Likewise.
28282         * modules/unicase/ulc-casecoll: Likewise.
28283         * modules/unicase/ulc-casexfrm: Likewise.
28284         * modules/uniconv/u8-conv-from-enc: Likewise.
28285         * modules/uniconv/u8-conv-to-enc: Likewise.
28286         * modules/uniconv/u8-strconv-from-enc: Likewise.
28287         * modules/uniconv/u8-strconv-from-locale: Likewise.
28288         * modules/uniconv/u8-strconv-to-enc: Likewise.
28289         * modules/uniconv/u8-strconv-to-locale: Likewise.
28290         * modules/uniconv/u16-conv-from-enc: Likewise.
28291         * modules/uniconv/u16-conv-to-enc: Likewise.
28292         * modules/uniconv/u16-strconv-from-enc: Likewise.
28293         * modules/uniconv/u16-strconv-from-locale: Likewise.
28294         * modules/uniconv/u16-strconv-to-enc: Likewise.
28295         * modules/uniconv/u16-strconv-to-locale: Likewise.
28296         * modules/uniconv/u32-conv-from-enc: Likewise.
28297         * modules/uniconv/u32-conv-to-enc: Likewise.
28298         * modules/uniconv/u32-strconv-from-enc: Likewise.
28299         * modules/uniconv/u32-strconv-from-locale: Likewise.
28300         * modules/uniconv/u32-strconv-to-enc: Likewise.
28301         * modules/uniconv/u32-strconv-to-locale: Likewise.
28302         * modules/unictype/bidicategory-byname: Likewise.
28303         * modules/unictype/bidicategory-name: Likewise.
28304         * modules/unictype/bidicategory-of: Likewise.
28305         * modules/unictype/bidicategory-test: Likewise.
28306         * modules/unictype/block-list: Likewise.
28307         * modules/unictype/block-test: Likewise.
28308         * modules/unictype/category-C: Likewise.
28309         * modules/unictype/category-Cc: Likewise.
28310         * modules/unictype/category-Cf: Likewise.
28311         * modules/unictype/category-Cn: Likewise.
28312         * modules/unictype/category-Co: Likewise.
28313         * modules/unictype/category-Cs: Likewise.
28314         * modules/unictype/category-L: Likewise.
28315         * modules/unictype/category-Ll: Likewise.
28316         * modules/unictype/category-Lm: Likewise.
28317         * modules/unictype/category-Lo: Likewise.
28318         * modules/unictype/category-Lt: Likewise.
28319         * modules/unictype/category-Lu: Likewise.
28320         * modules/unictype/category-M: Likewise.
28321         * modules/unictype/category-Mc: Likewise.
28322         * modules/unictype/category-Me: Likewise.
28323         * modules/unictype/category-Mn: Likewise.
28324         * modules/unictype/category-N: Likewise.
28325         * modules/unictype/category-Nd: Likewise.
28326         * modules/unictype/category-Nl: Likewise.
28327         * modules/unictype/category-No: Likewise.
28328         * modules/unictype/category-P: Likewise.
28329         * modules/unictype/category-Pc: Likewise.
28330         * modules/unictype/category-Pd: Likewise.
28331         * modules/unictype/category-Pe: Likewise.
28332         * modules/unictype/category-Pf: Likewise.
28333         * modules/unictype/category-Pi: Likewise.
28334         * modules/unictype/category-Po: Likewise.
28335         * modules/unictype/category-Ps: Likewise.
28336         * modules/unictype/category-S: Likewise.
28337         * modules/unictype/category-Sc: Likewise.
28338         * modules/unictype/category-Sk: Likewise.
28339         * modules/unictype/category-Sm: Likewise.
28340         * modules/unictype/category-So: Likewise.
28341         * modules/unictype/category-Z: Likewise.
28342         * modules/unictype/category-Zl: Likewise.
28343         * modules/unictype/category-Zp: Likewise.
28344         * modules/unictype/category-Zs: Likewise.
28345         * modules/unictype/category-and: Likewise.
28346         * modules/unictype/category-and-not: Likewise.
28347         * modules/unictype/category-byname: Likewise.
28348         * modules/unictype/category-name: Likewise.
28349         * modules/unictype/category-none: Likewise.
28350         * modules/unictype/category-of: Likewise.
28351         * modules/unictype/category-or: Likewise.
28352         * modules/unictype/category-test: Likewise.
28353         * modules/unictype/combining-class: Likewise.
28354         * modules/unictype/ctype-alnum: Likewise.
28355         * modules/unictype/ctype-alpha: Likewise.
28356         * modules/unictype/ctype-blank: Likewise.
28357         * modules/unictype/ctype-cntrl: Likewise.
28358         * modules/unictype/ctype-digit: Likewise.
28359         * modules/unictype/ctype-graph: Likewise.
28360         * modules/unictype/ctype-lower: Likewise.
28361         * modules/unictype/ctype-print: Likewise.
28362         * modules/unictype/ctype-punct: Likewise.
28363         * modules/unictype/ctype-space: Likewise.
28364         * modules/unictype/ctype-upper: Likewise.
28365         * modules/unictype/ctype-xdigit: Likewise.
28366         * modules/unictype/decimal-digit: Likewise.
28367         * modules/unictype/digit: Likewise.
28368         * modules/unictype/mirror: Likewise.
28369         * modules/unictype/numeric: Likewise.
28370         * modules/unictype/property-alphabetic: Likewise.
28371         * modules/unictype/property-ascii-hex-digit: Likewise.
28372         * modules/unictype/property-bidi-arabic-digit: Likewise.
28373         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28374         * modules/unictype/property-bidi-block-separator: Likewise.
28375         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28376         * modules/unictype/property-bidi-common-separator: Likewise.
28377         * modules/unictype/property-bidi-control: Likewise.
28378         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28379         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28380         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28381         * modules/unictype/property-bidi-european-digit: Likewise.
28382         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28383         * modules/unictype/property-bidi-left-to-right: Likewise.
28384         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28385         * modules/unictype/property-bidi-other-neutral: Likewise.
28386         * modules/unictype/property-bidi-pdf: Likewise.
28387         * modules/unictype/property-bidi-segment-separator: Likewise.
28388         * modules/unictype/property-bidi-whitespace: Likewise.
28389         * modules/unictype/property-byname: Likewise.
28390         * modules/unictype/property-combining: Likewise.
28391         * modules/unictype/property-composite: Likewise.
28392         * modules/unictype/property-currency-symbol: Likewise.
28393         * modules/unictype/property-dash: Likewise.
28394         * modules/unictype/property-decimal-digit: Likewise.
28395         * modules/unictype/property-default-ignorable-code-point: Likewise.
28396         * modules/unictype/property-deprecated: Likewise.
28397         * modules/unictype/property-diacritic: Likewise.
28398         * modules/unictype/property-extender: Likewise.
28399         * modules/unictype/property-format-control: Likewise.
28400         * modules/unictype/property-grapheme-base: Likewise.
28401         * modules/unictype/property-grapheme-extend: Likewise.
28402         * modules/unictype/property-grapheme-link: Likewise.
28403         * modules/unictype/property-hex-digit: Likewise.
28404         * modules/unictype/property-hyphen: Likewise.
28405         * modules/unictype/property-id-continue: Likewise.
28406         * modules/unictype/property-id-start: Likewise.
28407         * modules/unictype/property-ideographic: Likewise.
28408         * modules/unictype/property-ids-binary-operator: Likewise.
28409         * modules/unictype/property-ids-trinary-operator: Likewise.
28410         * modules/unictype/property-ignorable-control: Likewise.
28411         * modules/unictype/property-iso-control: Likewise.
28412         * modules/unictype/property-join-control: Likewise.
28413         * modules/unictype/property-left-of-pair: Likewise.
28414         * modules/unictype/property-line-separator: Likewise.
28415         * modules/unictype/property-logical-order-exception: Likewise.
28416         * modules/unictype/property-lowercase: Likewise.
28417         * modules/unictype/property-math: Likewise.
28418         * modules/unictype/property-non-break: Likewise.
28419         * modules/unictype/property-not-a-character: Likewise.
28420         * modules/unictype/property-numeric: Likewise.
28421         * modules/unictype/property-other-alphabetic: Likewise.
28422         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28423         * modules/unictype/property-other-grapheme-extend: Likewise.
28424         * modules/unictype/property-other-id-continue: Likewise.
28425         * modules/unictype/property-other-id-start: Likewise.
28426         * modules/unictype/property-other-lowercase: Likewise.
28427         * modules/unictype/property-other-math: Likewise.
28428         * modules/unictype/property-other-uppercase: Likewise.
28429         * modules/unictype/property-paired-punctuation: Likewise.
28430         * modules/unictype/property-paragraph-separator: Likewise.
28431         * modules/unictype/property-pattern-syntax: Likewise.
28432         * modules/unictype/property-pattern-white-space: Likewise.
28433         * modules/unictype/property-private-use: Likewise.
28434         * modules/unictype/property-punctuation: Likewise.
28435         * modules/unictype/property-quotation-mark: Likewise.
28436         * modules/unictype/property-radical: Likewise.
28437         * modules/unictype/property-sentence-terminal: Likewise.
28438         * modules/unictype/property-soft-dotted: Likewise.
28439         * modules/unictype/property-space: Likewise.
28440         * modules/unictype/property-terminal-punctuation: Likewise.
28441         * modules/unictype/property-test: Likewise.
28442         * modules/unictype/property-titlecase: Likewise.
28443         * modules/unictype/property-unassigned-code-value: Likewise.
28444         * modules/unictype/property-unified-ideograph: Likewise.
28445         * modules/unictype/property-uppercase: Likewise.
28446         * modules/unictype/property-variation-selector: Likewise.
28447         * modules/unictype/property-white-space: Likewise.
28448         * modules/unictype/property-xid-continue: Likewise.
28449         * modules/unictype/property-xid-start: Likewise.
28450         * modules/unictype/property-zero-width: Likewise.
28451         * modules/unictype/scripts: Likewise.
28452         * modules/unictype/syntax-c-ident: Likewise.
28453         * modules/unictype/syntax-c-whitespace: Likewise.
28454         * modules/unictype/syntax-java-ident: Likewise.
28455         * modules/unictype/syntax-java-whitespace: Likewise.
28456         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28457         * modules/unilbrk/u8-width-linebreaks: Likewise.
28458         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28459         * modules/unilbrk/u16-width-linebreaks: Likewise.
28460         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28461         * modules/unilbrk/u32-width-linebreaks: Likewise.
28462         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28463         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28464         * modules/uniname/uniname: Likewise.
28465         * modules/uninorm/canonical-decomposition: Likewise.
28466         * modules/uninorm/composition: Likewise.
28467         * modules/uninorm/decomposing-form: Likewise.
28468         * modules/uninorm/decomposition: Likewise.
28469         * modules/uninorm/filter: Likewise.
28470         * modules/uninorm/nfc: Likewise.
28471         * modules/uninorm/nfd: Likewise.
28472         * modules/uninorm/nfkc: Likewise.
28473         * modules/uninorm/nfkd: Likewise.
28474         * modules/uninorm/u8-normalize: Likewise.
28475         * modules/uninorm/u8-normcmp: Likewise.
28476         * modules/uninorm/u8-normcoll: Likewise.
28477         * modules/uninorm/u8-normxfrm: Likewise.
28478         * modules/uninorm/u16-normalize: Likewise.
28479         * modules/uninorm/u16-normcmp: Likewise.
28480         * modules/uninorm/u16-normcoll: Likewise.
28481         * modules/uninorm/u16-normxfrm: Likewise.
28482         * modules/uninorm/u32-normalize: Likewise.
28483         * modules/uninorm/u32-normcmp: Likewise.
28484         * modules/uninorm/u32-normcoll: Likewise.
28485         * modules/uninorm/u32-normxfrm: Likewise.
28486         * modules/unistdio/u8-asnprintf: Likewise.
28487         * modules/unistdio/u8-asprintf: Likewise.
28488         * modules/unistdio/u8-snprintf: Likewise.
28489         * modules/unistdio/u8-sprintf: Likewise.
28490         * modules/unistdio/u8-u8-asnprintf: Likewise.
28491         * modules/unistdio/u8-u8-asprintf: Likewise.
28492         * modules/unistdio/u8-u8-snprintf: Likewise.
28493         * modules/unistdio/u8-u8-sprintf: Likewise.
28494         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28495         * modules/unistdio/u8-u8-vasprintf: Likewise.
28496         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28497         * modules/unistdio/u8-u8-vsprintf: Likewise.
28498         * modules/unistdio/u8-vasnprintf: Likewise.
28499         * modules/unistdio/u8-vasprintf: Likewise.
28500         * modules/unistdio/u8-vsnprintf: Likewise.
28501         * modules/unistdio/u8-vsprintf: Likewise.
28502         * modules/unistdio/u16-asnprintf: Likewise.
28503         * modules/unistdio/u16-asprintf: Likewise.
28504         * modules/unistdio/u16-snprintf: Likewise.
28505         * modules/unistdio/u16-sprintf: Likewise.
28506         * modules/unistdio/u16-u16-asnprintf: Likewise.
28507         * modules/unistdio/u16-u16-asprintf: Likewise.
28508         * modules/unistdio/u16-u16-snprintf: Likewise.
28509         * modules/unistdio/u16-u16-sprintf: Likewise.
28510         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28511         * modules/unistdio/u16-u16-vasprintf: Likewise.
28512         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28513         * modules/unistdio/u16-u16-vsprintf: Likewise.
28514         * modules/unistdio/u16-vasnprintf: Likewise.
28515         * modules/unistdio/u16-vasprintf: Likewise.
28516         * modules/unistdio/u16-vsnprintf: Likewise.
28517         * modules/unistdio/u16-vsprintf: Likewise.
28518         * modules/unistdio/u32-asnprintf: Likewise.
28519         * modules/unistdio/u32-asprintf: Likewise.
28520         * modules/unistdio/u32-snprintf: Likewise.
28521         * modules/unistdio/u32-sprintf: Likewise.
28522         * modules/unistdio/u32-u32-asnprintf: Likewise.
28523         * modules/unistdio/u32-u32-asprintf: Likewise.
28524         * modules/unistdio/u32-u32-snprintf: Likewise.
28525         * modules/unistdio/u32-u32-sprintf: Likewise.
28526         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28527         * modules/unistdio/u32-u32-vasprintf: Likewise.
28528         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28529         * modules/unistdio/u32-u32-vsprintf: Likewise.
28530         * modules/unistdio/u32-vasnprintf: Likewise.
28531         * modules/unistdio/u32-vasprintf: Likewise.
28532         * modules/unistdio/u32-vsnprintf: Likewise.
28533         * modules/unistdio/u32-vsprintf: Likewise.
28534         * modules/unistdio/ulc-asnprintf: Likewise.
28535         * modules/unistdio/ulc-asprintf: Likewise.
28536         * modules/unistdio/ulc-fprintf: Likewise.
28537         * modules/unistdio/ulc-snprintf: Likewise.
28538         * modules/unistdio/ulc-sprintf: Likewise.
28539         * modules/unistdio/ulc-vasnprintf: Likewise.
28540         * modules/unistdio/ulc-vasprintf: Likewise.
28541         * modules/unistdio/ulc-vfprintf: Likewise.
28542         * modules/unistdio/ulc-vsnprintf: Likewise.
28543         * modules/unistdio/ulc-vsprintf: Likewise.
28544         * modules/unistr/u8-check: Likewise.
28545         * modules/unistr/u8-chr: Likewise.
28546         * modules/unistr/u8-cmp: Likewise.
28547         * modules/unistr/u8-cmp2: Likewise.
28548         * modules/unistr/u8-cpy: Likewise.
28549         * modules/unistr/u8-cpy-alloc: Likewise.
28550         * modules/unistr/u8-endswith: Likewise.
28551         * modules/unistr/u8-mblen: Likewise.
28552         * modules/unistr/u8-mbsnlen: Likewise.
28553         * modules/unistr/u8-mbtouc: Likewise.
28554         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28555         * modules/unistr/u8-mbtoucr: Likewise.
28556         * modules/unistr/u8-move: Likewise.
28557         * modules/unistr/u8-next: Likewise.
28558         * modules/unistr/u8-prev: Likewise.
28559         * modules/unistr/u8-set: Likewise.
28560         * modules/unistr/u8-startswith: Likewise.
28561         * modules/unistr/u8-stpcpy: Likewise.
28562         * modules/unistr/u8-stpncpy: Likewise.
28563         * modules/unistr/u8-strcat: Likewise.
28564         * modules/unistr/u8-strchr: Likewise.
28565         * modules/unistr/u8-strcmp: Likewise.
28566         * modules/unistr/u8-strcoll: Likewise.
28567         * modules/unistr/u8-strcpy: Likewise.
28568         * modules/unistr/u8-strcspn: Likewise.
28569         * modules/unistr/u8-strdup: Likewise.
28570         * modules/unistr/u8-strlen: Likewise.
28571         * modules/unistr/u8-strmblen: Likewise.
28572         * modules/unistr/u8-strmbtouc: Likewise.
28573         * modules/unistr/u8-strncat: Likewise.
28574         * modules/unistr/u8-strncmp: Likewise.
28575         * modules/unistr/u8-strncpy: Likewise.
28576         * modules/unistr/u8-strnlen: Likewise.
28577         * modules/unistr/u8-strpbrk: Likewise.
28578         * modules/unistr/u8-strrchr: Likewise.
28579         * modules/unistr/u8-strspn: Likewise.
28580         * modules/unistr/u8-strstr: Likewise.
28581         * modules/unistr/u8-strtok: Likewise.
28582         * modules/unistr/u8-to-u16: Likewise.
28583         * modules/unistr/u8-to-u32: Likewise.
28584         * modules/unistr/u8-uctomb: Likewise.
28585         * modules/unistr/u16-check: Likewise.
28586         * modules/unistr/u16-chr: Likewise.
28587         * modules/unistr/u16-cmp: Likewise.
28588         * modules/unistr/u16-cmp2: Likewise.
28589         * modules/unistr/u16-cpy: Likewise.
28590         * modules/unistr/u16-cpy-alloc: Likewise.
28591         * modules/unistr/u16-endswith: Likewise.
28592         * modules/unistr/u16-mblen: Likewise.
28593         * modules/unistr/u16-mbsnlen: Likewise.
28594         * modules/unistr/u16-mbtouc: Likewise.
28595         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28596         * modules/unistr/u16-mbtoucr: Likewise.
28597         * modules/unistr/u16-move: Likewise.
28598         * modules/unistr/u16-next: Likewise.
28599         * modules/unistr/u16-prev: Likewise.
28600         * modules/unistr/u16-set: Likewise.
28601         * modules/unistr/u16-startswith: Likewise.
28602         * modules/unistr/u16-stpcpy: Likewise.
28603         * modules/unistr/u16-stpncpy: Likewise.
28604         * modules/unistr/u16-strcat: Likewise.
28605         * modules/unistr/u16-strchr: Likewise.
28606         * modules/unistr/u16-strcmp: Likewise.
28607         * modules/unistr/u16-strcoll: Likewise.
28608         * modules/unistr/u16-strcpy: Likewise.
28609         * modules/unistr/u16-strcspn: Likewise.
28610         * modules/unistr/u16-strdup: Likewise.
28611         * modules/unistr/u16-strlen: Likewise.
28612         * modules/unistr/u16-strmblen: Likewise.
28613         * modules/unistr/u16-strmbtouc: Likewise.
28614         * modules/unistr/u16-strncat: Likewise.
28615         * modules/unistr/u16-strncmp: Likewise.
28616         * modules/unistr/u16-strncpy: Likewise.
28617         * modules/unistr/u16-strnlen: Likewise.
28618         * modules/unistr/u16-strpbrk: Likewise.
28619         * modules/unistr/u16-strrchr: Likewise.
28620         * modules/unistr/u16-strspn: Likewise.
28621         * modules/unistr/u16-strstr: Likewise.
28622         * modules/unistr/u16-strtok: Likewise.
28623         * modules/unistr/u16-to-u32: Likewise.
28624         * modules/unistr/u16-to-u8: Likewise.
28625         * modules/unistr/u16-uctomb: Likewise.
28626         * modules/unistr/u32-check: Likewise.
28627         * modules/unistr/u32-chr: Likewise.
28628         * modules/unistr/u32-cmp: Likewise.
28629         * modules/unistr/u32-cmp2: Likewise.
28630         * modules/unistr/u32-cpy: Likewise.
28631         * modules/unistr/u32-cpy-alloc: Likewise.
28632         * modules/unistr/u32-endswith: Likewise.
28633         * modules/unistr/u32-mblen: Likewise.
28634         * modules/unistr/u32-mbsnlen: Likewise.
28635         * modules/unistr/u32-mbtouc: Likewise.
28636         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28637         * modules/unistr/u32-mbtoucr: Likewise.
28638         * modules/unistr/u32-move: Likewise.
28639         * modules/unistr/u32-next: Likewise.
28640         * modules/unistr/u32-prev: Likewise.
28641         * modules/unistr/u32-set: Likewise.
28642         * modules/unistr/u32-startswith: Likewise.
28643         * modules/unistr/u32-stpcpy: Likewise.
28644         * modules/unistr/u32-stpncpy: Likewise.
28645         * modules/unistr/u32-strcat: Likewise.
28646         * modules/unistr/u32-strchr: Likewise.
28647         * modules/unistr/u32-strcmp: Likewise.
28648         * modules/unistr/u32-strcoll: Likewise.
28649         * modules/unistr/u32-strcpy: Likewise.
28650         * modules/unistr/u32-strcspn: Likewise.
28651         * modules/unistr/u32-strdup: Likewise.
28652         * modules/unistr/u32-strlen: Likewise.
28653         * modules/unistr/u32-strmblen: Likewise.
28654         * modules/unistr/u32-strmbtouc: Likewise.
28655         * modules/unistr/u32-strncat: Likewise.
28656         * modules/unistr/u32-strncmp: Likewise.
28657         * modules/unistr/u32-strncpy: Likewise.
28658         * modules/unistr/u32-strnlen: Likewise.
28659         * modules/unistr/u32-strpbrk: Likewise.
28660         * modules/unistr/u32-strrchr: Likewise.
28661         * modules/unistr/u32-strspn: Likewise.
28662         * modules/unistr/u32-strstr: Likewise.
28663         * modules/unistr/u32-strtok: Likewise.
28664         * modules/unistr/u32-to-u16: Likewise.
28665         * modules/unistr/u32-to-u8: Likewise.
28666         * modules/unistr/u32-uctomb: Likewise.
28667         * modules/uniwbrk/u8-wordbreaks: Likewise.
28668         * modules/uniwbrk/u16-wordbreaks: Likewise.
28669         * modules/uniwbrk/u32-wordbreaks: Likewise.
28670         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28671         * modules/uniwbrk/wordbreak-property: Likewise.
28672         * modules/uniwidth/u8-strwidth: Likewise.
28673         * modules/uniwidth/u8-width: Likewise.
28674         * modules/uniwidth/u16-strwidth: Likewise.
28675         * modules/uniwidth/u16-width: Likewise.
28676         * modules/uniwidth/u32-strwidth: Likewise.
28677         * modules/uniwidth/u32-width: Likewise.
28678         * modules/uniwidth/width: Likewise.
28679         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28680         with $(LIBUNISTRING).
28681         * modules/unicase/ignorable-tests: Likewise.
28682         * modules/unicase/locale-language-tests: Likewise.
28683         * modules/unicase/tolower-tests: Likewise.
28684         * modules/unicase/totitle-tests: Likewise.
28685         * modules/unicase/toupper-tests: Likewise.
28686         * modules/unicase/u8-casecmp-tests: Likewise.
28687         * modules/unicase/u8-casecoll-tests: Likewise.
28688         * modules/unicase/u8-casefold-tests: Likewise.
28689         * modules/unicase/u8-is-cased-tests: Likewise.
28690         * modules/unicase/u8-is-casefolded-tests: Likewise.
28691         * modules/unicase/u8-is-lowercase-tests: Likewise.
28692         * modules/unicase/u8-is-titlecase-tests: Likewise.
28693         * modules/unicase/u8-is-uppercase-tests: Likewise.
28694         * modules/unicase/u8-tolower-tests: Likewise.
28695         * modules/unicase/u8-totitle-tests: Likewise.
28696         * modules/unicase/u8-toupper-tests: Likewise.
28697         * modules/unicase/u16-casecmp-tests: Likewise.
28698         * modules/unicase/u16-casecoll-tests: Likewise.
28699         * modules/unicase/u16-casefold-tests: Likewise.
28700         * modules/unicase/u16-is-cased-tests: Likewise.
28701         * modules/unicase/u16-is-casefolded-tests: Likewise.
28702         * modules/unicase/u16-is-lowercase-tests: Likewise.
28703         * modules/unicase/u16-is-titlecase-tests: Likewise.
28704         * modules/unicase/u16-is-uppercase-tests: Likewise.
28705         * modules/unicase/u16-tolower-tests: Likewise.
28706         * modules/unicase/u16-totitle-tests: Likewise.
28707         * modules/unicase/u16-toupper-tests: Likewise.
28708         * modules/unicase/u32-casecmp-tests: Likewise.
28709         * modules/unicase/u32-casecoll-tests: Likewise.
28710         * modules/unicase/u32-casefold-tests: Likewise.
28711         * modules/unicase/u32-is-cased-tests: Likewise.
28712         * modules/unicase/u32-is-casefolded-tests: Likewise.
28713         * modules/unicase/u32-is-lowercase-tests: Likewise.
28714         * modules/unicase/u32-is-titlecase-tests: Likewise.
28715         * modules/unicase/u32-is-uppercase-tests: Likewise.
28716         * modules/unicase/u32-tolower-tests: Likewise.
28717         * modules/unicase/u32-totitle-tests: Likewise.
28718         * modules/unicase/u32-toupper-tests: Likewise.
28719         * modules/unicase/ulc-casecmp-tests: Likewise.
28720         * modules/unicase/ulc-casecoll-tests: Likewise.
28721         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28722         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28723         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28724         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28725         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28726         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28727         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28728         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28729         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28730         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28731         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28732         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28733         * modules/unictype/bidicategory-byname-tests: Likewise.
28734         * modules/unictype/bidicategory-name-tests: Likewise.
28735         * modules/unictype/bidicategory-of-tests: Likewise.
28736         * modules/unictype/bidicategory-test-tests: Likewise.
28737         * modules/unictype/block-list-tests: Likewise.
28738         * modules/unictype/block-of-tests: Likewise.
28739         * modules/unictype/block-test-tests: Likewise.
28740         * modules/unictype/category-C-tests: Likewise.
28741         * modules/unictype/category-Cc-tests: Likewise.
28742         * modules/unictype/category-Cf-tests: Likewise.
28743         * modules/unictype/category-Cn-tests: Likewise.
28744         * modules/unictype/category-Co-tests: Likewise.
28745         * modules/unictype/category-Cs-tests: Likewise.
28746         * modules/unictype/category-L-tests: Likewise.
28747         * modules/unictype/category-Ll-tests: Likewise.
28748         * modules/unictype/category-Lm-tests: Likewise.
28749         * modules/unictype/category-Lo-tests: Likewise.
28750         * modules/unictype/category-Lt-tests: Likewise.
28751         * modules/unictype/category-Lu-tests: Likewise.
28752         * modules/unictype/category-M-tests: Likewise.
28753         * modules/unictype/category-Mc-tests: Likewise.
28754         * modules/unictype/category-Me-tests: Likewise.
28755         * modules/unictype/category-Mn-tests: Likewise.
28756         * modules/unictype/category-N-tests: Likewise.
28757         * modules/unictype/category-Nd-tests: Likewise.
28758         * modules/unictype/category-Nl-tests: Likewise.
28759         * modules/unictype/category-No-tests: Likewise.
28760         * modules/unictype/category-P-tests: Likewise.
28761         * modules/unictype/category-Pc-tests: Likewise.
28762         * modules/unictype/category-Pd-tests: Likewise.
28763         * modules/unictype/category-Pe-tests: Likewise.
28764         * modules/unictype/category-Pf-tests: Likewise.
28765         * modules/unictype/category-Pi-tests: Likewise.
28766         * modules/unictype/category-Po-tests: Likewise.
28767         * modules/unictype/category-Ps-tests: Likewise.
28768         * modules/unictype/category-S-tests: Likewise.
28769         * modules/unictype/category-Sc-tests: Likewise.
28770         * modules/unictype/category-Sk-tests: Likewise.
28771         * modules/unictype/category-Sm-tests: Likewise.
28772         * modules/unictype/category-So-tests: Likewise.
28773         * modules/unictype/category-Z-tests: Likewise.
28774         * modules/unictype/category-Zl-tests: Likewise.
28775         * modules/unictype/category-Zp-tests: Likewise.
28776         * modules/unictype/category-Zs-tests: Likewise.
28777         * modules/unictype/category-and-not-tests: Likewise.
28778         * modules/unictype/category-and-tests: Likewise.
28779         * modules/unictype/category-byname-tests: Likewise.
28780         * modules/unictype/category-name-tests: Likewise.
28781         * modules/unictype/category-none-tests: Likewise.
28782         * modules/unictype/category-of-tests: Likewise.
28783         * modules/unictype/category-or-tests: Likewise.
28784         * modules/unictype/category-test-withtable-tests: Likewise.
28785         * modules/unictype/combining-class-tests: Likewise.
28786         * modules/unictype/ctype-alnum-tests: Likewise.
28787         * modules/unictype/ctype-alpha-tests: Likewise.
28788         * modules/unictype/ctype-blank-tests: Likewise.
28789         * modules/unictype/ctype-cntrl-tests: Likewise.
28790         * modules/unictype/ctype-digit-tests: Likewise.
28791         * modules/unictype/ctype-graph-tests: Likewise.
28792         * modules/unictype/ctype-lower-tests: Likewise.
28793         * modules/unictype/ctype-print-tests: Likewise.
28794         * modules/unictype/ctype-punct-tests: Likewise.
28795         * modules/unictype/ctype-space-tests: Likewise.
28796         * modules/unictype/ctype-upper-tests: Likewise.
28797         * modules/unictype/ctype-xdigit-tests: Likewise.
28798         * modules/unictype/decimal-digit-tests: Likewise.
28799         * modules/unictype/digit-tests: Likewise.
28800         * modules/unictype/mirror-tests: Likewise.
28801         * modules/unictype/numeric-tests: Likewise.
28802         * modules/unictype/property-alphabetic-tests: Likewise.
28803         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28804         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28805         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28806         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28807         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28808         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28809         * modules/unictype/property-bidi-control-tests: Likewise.
28810         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28811         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28812         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28813         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28814         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28815         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28816         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28817         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28818         * modules/unictype/property-bidi-pdf-tests: Likewise.
28819         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28820         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28821         * modules/unictype/property-byname-tests: Likewise.
28822         * modules/unictype/property-combining-tests: Likewise.
28823         * modules/unictype/property-composite-tests: Likewise.
28824         * modules/unictype/property-currency-symbol-tests: Likewise.
28825         * modules/unictype/property-dash-tests: Likewise.
28826         * modules/unictype/property-decimal-digit-tests: Likewise.
28827         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28828         * modules/unictype/property-deprecated-tests: Likewise.
28829         * modules/unictype/property-diacritic-tests: Likewise.
28830         * modules/unictype/property-extender-tests: Likewise.
28831         * modules/unictype/property-format-control-tests: Likewise.
28832         * modules/unictype/property-grapheme-base-tests: Likewise.
28833         * modules/unictype/property-grapheme-extend-tests: Likewise.
28834         * modules/unictype/property-grapheme-link-tests: Likewise.
28835         * modules/unictype/property-hex-digit-tests: Likewise.
28836         * modules/unictype/property-hyphen-tests: Likewise.
28837         * modules/unictype/property-id-continue-tests: Likewise.
28838         * modules/unictype/property-id-start-tests: Likewise.
28839         * modules/unictype/property-ideographic-tests: Likewise.
28840         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28841         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28842         * modules/unictype/property-ignorable-control-tests: Likewise.
28843         * modules/unictype/property-iso-control-tests: Likewise.
28844         * modules/unictype/property-join-control-tests: Likewise.
28845         * modules/unictype/property-left-of-pair-tests: Likewise.
28846         * modules/unictype/property-line-separator-tests: Likewise.
28847         * modules/unictype/property-logical-order-exception-tests: Likewise.
28848         * modules/unictype/property-lowercase-tests: Likewise.
28849         * modules/unictype/property-math-tests: Likewise.
28850         * modules/unictype/property-non-break-tests: Likewise.
28851         * modules/unictype/property-not-a-character-tests: Likewise.
28852         * modules/unictype/property-numeric-tests: Likewise.
28853         * modules/unictype/property-other-alphabetic-tests: Likewise.
28854         * modules/unictype/property-other-default-ignorable-code-point-tests:
28855         Likewise.
28856         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28857         * modules/unictype/property-other-id-continue-tests: Likewise.
28858         * modules/unictype/property-other-id-start-tests: Likewise.
28859         * modules/unictype/property-other-lowercase-tests: Likewise.
28860         * modules/unictype/property-other-math-tests: Likewise.
28861         * modules/unictype/property-other-uppercase-tests: Likewise.
28862         * modules/unictype/property-paired-punctuation-tests: Likewise.
28863         * modules/unictype/property-paragraph-separator-tests: Likewise.
28864         * modules/unictype/property-pattern-syntax-tests: Likewise.
28865         * modules/unictype/property-pattern-white-space-tests: Likewise.
28866         * modules/unictype/property-private-use-tests: Likewise.
28867         * modules/unictype/property-punctuation-tests: Likewise.
28868         * modules/unictype/property-quotation-mark-tests: Likewise.
28869         * modules/unictype/property-radical-tests: Likewise.
28870         * modules/unictype/property-sentence-terminal-tests: Likewise.
28871         * modules/unictype/property-soft-dotted-tests: Likewise.
28872         * modules/unictype/property-space-tests: Likewise.
28873         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28874         * modules/unictype/property-test-tests: Likewise.
28875         * modules/unictype/property-titlecase-tests: Likewise.
28876         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28877         * modules/unictype/property-unified-ideograph-tests: Likewise.
28878         * modules/unictype/property-uppercase-tests: Likewise.
28879         * modules/unictype/property-variation-selector-tests: Likewise.
28880         * modules/unictype/property-white-space-tests: Likewise.
28881         * modules/unictype/property-xid-continue-tests: Likewise.
28882         * modules/unictype/property-xid-start-tests: Likewise.
28883         * modules/unictype/property-zero-width-tests: Likewise.
28884         * modules/unictype/scripts-tests: Likewise.
28885         * modules/unictype/syntax-c-ident-tests: Likewise.
28886         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28887         * modules/unictype/syntax-java-ident-tests: Likewise.
28888         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28889         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28890         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28891         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28892         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28893         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28894         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28895         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28896         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28897         * modules/uniname/uniname-tests: Likewise.
28898         * modules/uninorm/canonical-decomposition-tests: Likewise.
28899         * modules/uninorm/compat-decomposition-tests: Likewise.
28900         * modules/uninorm/composition-tests: Likewise.
28901         * modules/uninorm/decomposing-form-tests: Likewise.
28902         * modules/uninorm/decomposition-tests: Likewise.
28903         * modules/uninorm/filter-tests: Likewise.
28904         * modules/uninorm/nfc-tests: Likewise.
28905         * modules/uninorm/nfd-tests: Likewise.
28906         * modules/uninorm/nfkc-tests: Likewise.
28907         * modules/uninorm/nfkd-tests: Likewise.
28908         * modules/uninorm/u8-normcmp-tests: Likewise.
28909         * modules/uninorm/u8-normcoll-tests: Likewise.
28910         * modules/uninorm/u16-normcmp-tests: Likewise.
28911         * modules/uninorm/u16-normcoll-tests: Likewise.
28912         * modules/uninorm/u32-normcmp-tests: Likewise.
28913         * modules/uninorm/u32-normcoll-tests: Likewise.
28914         * modules/unistdio/u8-asnprintf-tests: Likewise.
28915         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28916         * modules/unistdio/u8-vasprintf-tests: Likewise.
28917         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28918         * modules/unistdio/u8-vsprintf-tests: Likewise.
28919         * modules/unistdio/u16-asnprintf-tests: Likewise.
28920         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28921         * modules/unistdio/u16-vasprintf-tests: Likewise.
28922         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28923         * modules/unistdio/u16-vsprintf-tests: Likewise.
28924         * modules/unistdio/u32-asnprintf-tests: Likewise.
28925         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28926         * modules/unistdio/u32-vasprintf-tests: Likewise.
28927         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28928         * modules/unistdio/u32-vsprintf-tests: Likewise.
28929         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28930         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28931         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28932         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28933         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28934         * modules/unistr/u8-check-tests: Likewise.
28935         * modules/unistr/u8-chr-tests: Likewise.
28936         * modules/unistr/u8-cmp-tests: Likewise.
28937         * modules/unistr/u8-cmp2-tests: Likewise.
28938         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28939         * modules/unistr/u8-cpy-tests: Likewise.
28940         * modules/unistr/u8-mblen-tests: Likewise.
28941         * modules/unistr/u8-mbsnlen-tests: Likewise.
28942         * modules/unistr/u8-mbtouc-tests: Likewise.
28943         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28944         * modules/unistr/u8-mbtoucr-tests: Likewise.
28945         * modules/unistr/u8-move-tests: Likewise.
28946         * modules/unistr/u8-next-tests: Likewise.
28947         * modules/unistr/u8-prev-tests: Likewise.
28948         * modules/unistr/u8-set-tests: Likewise.
28949         * modules/unistr/u8-stpcpy-tests: Likewise.
28950         * modules/unistr/u8-stpncpy-tests: Likewise.
28951         * modules/unistr/u8-strcat-tests: Likewise.
28952         * modules/unistr/u8-strcmp-tests: Likewise.
28953         * modules/unistr/u8-strcoll-tests: Likewise.
28954         * modules/unistr/u8-strcpy-tests: Likewise.
28955         * modules/unistr/u8-strdup-tests: Likewise.
28956         * modules/unistr/u8-strlen-tests: Likewise.
28957         * modules/unistr/u8-strmblen-tests: Likewise.
28958         * modules/unistr/u8-strmbtouc-tests: Likewise.
28959         * modules/unistr/u8-strncat-tests: Likewise.
28960         * modules/unistr/u8-strncmp-tests: Likewise.
28961         * modules/unistr/u8-strncpy-tests: Likewise.
28962         * modules/unistr/u8-strnlen-tests: Likewise.
28963         * modules/unistr/u8-to-u16-tests: Likewise.
28964         * modules/unistr/u8-to-u32-tests: Likewise.
28965         * modules/unistr/u8-uctomb-tests: Likewise.
28966         * modules/unistr/u16-check-tests: Likewise.
28967         * modules/unistr/u16-chr-tests: Likewise.
28968         * modules/unistr/u16-cmp-tests: Likewise.
28969         * modules/unistr/u16-cmp2-tests: Likewise.
28970         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28971         * modules/unistr/u16-cpy-tests: Likewise.
28972         * modules/unistr/u16-mblen-tests: Likewise.
28973         * modules/unistr/u16-mbsnlen-tests: Likewise.
28974         * modules/unistr/u16-mbtouc-tests: Likewise.
28975         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28976         * modules/unistr/u16-mbtoucr-tests: Likewise.
28977         * modules/unistr/u16-move-tests: Likewise.
28978         * modules/unistr/u16-next-tests: Likewise.
28979         * modules/unistr/u16-prev-tests: Likewise.
28980         * modules/unistr/u16-set-tests: Likewise.
28981         * modules/unistr/u16-stpcpy-tests: Likewise.
28982         * modules/unistr/u16-stpncpy-tests: Likewise.
28983         * modules/unistr/u16-strcat-tests: Likewise.
28984         * modules/unistr/u16-strcmp-tests: Likewise.
28985         * modules/unistr/u16-strcoll-tests: Likewise.
28986         * modules/unistr/u16-strcpy-tests: Likewise.
28987         * modules/unistr/u16-strdup-tests: Likewise.
28988         * modules/unistr/u16-strlen-tests: Likewise.
28989         * modules/unistr/u16-strmblen-tests: Likewise.
28990         * modules/unistr/u16-strmbtouc-tests: Likewise.
28991         * modules/unistr/u16-strncat-tests: Likewise.
28992         * modules/unistr/u16-strncmp-tests: Likewise.
28993         * modules/unistr/u16-strncpy-tests: Likewise.
28994         * modules/unistr/u16-strnlen-tests: Likewise.
28995         * modules/unistr/u16-to-u32-tests: Likewise.
28996         * modules/unistr/u16-to-u8-tests: Likewise.
28997         * modules/unistr/u16-uctomb-tests: Likewise.
28998         * modules/unistr/u32-check-tests: Likewise.
28999         * modules/unistr/u32-chr-tests: Likewise.
29000         * modules/unistr/u32-cmp-tests: Likewise.
29001         * modules/unistr/u32-cmp2-tests: Likewise.
29002         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29003         * modules/unistr/u32-cpy-tests: Likewise.
29004         * modules/unistr/u32-mblen-tests: Likewise.
29005         * modules/unistr/u32-mbsnlen-tests: Likewise.
29006         * modules/unistr/u32-mbtouc-tests: Likewise.
29007         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29008         * modules/unistr/u32-mbtoucr-tests: Likewise.
29009         * modules/unistr/u32-move-tests: Likewise.
29010         * modules/unistr/u32-next-tests: Likewise.
29011         * modules/unistr/u32-prev-tests: Likewise.
29012         * modules/unistr/u32-set-tests: Likewise.
29013         * modules/unistr/u32-stpcpy-tests: Likewise.
29014         * modules/unistr/u32-stpncpy-tests: Likewise.
29015         * modules/unistr/u32-strcat-tests: Likewise.
29016         * modules/unistr/u32-strcmp-tests: Likewise.
29017         * modules/unistr/u32-strcoll-tests: Likewise.
29018         * modules/unistr/u32-strcpy-tests: Likewise.
29019         * modules/unistr/u32-strdup-tests: Likewise.
29020         * modules/unistr/u32-strlen-tests: Likewise.
29021         * modules/unistr/u32-strmblen-tests: Likewise.
29022         * modules/unistr/u32-strmbtouc-tests: Likewise.
29023         * modules/unistr/u32-strncat-tests: Likewise.
29024         * modules/unistr/u32-strncmp-tests: Likewise.
29025         * modules/unistr/u32-strncpy-tests: Likewise.
29026         * modules/unistr/u32-strnlen-tests: Likewise.
29027         * modules/unistr/u32-to-u16-tests: Likewise.
29028         * modules/unistr/u32-to-u8-tests: Likewise.
29029         * modules/unistr/u32-uctomb-tests: Likewise.
29030         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29031         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29032         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29033         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29034         * modules/uniwidth/u8-strwidth-tests: Likewise.
29035         * modules/uniwidth/u8-width-tests: Likewise.
29036         * modules/uniwidth/u16-strwidth-tests: Likewise.
29037         * modules/uniwidth/u16-width-tests: Likewise.
29038         * modules/uniwidth/u32-strwidth-tests: Likewise.
29039         * modules/uniwidth/u32-width-tests: Likewise.
29040         * modules/uniwidth/width-tests: Likewise.
29041
29042 2010-05-18  Richard Jones  <rjones@redhat.com>
29043
29044         doc: users.txt: list hivex
29045         * users.txt: Add hivex.
29046
29047 2010-05-18  Richard Jones  <rjones@redhat.com>
29048
29049         doc: users.txt: list febootstrap
29050         * users.txt: Add febootstrap.
29051
29052 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29053
29054         bootstrap: fix an error when gnulib is not used as a git submodule
29055         * build-aux/bootstrap (gnulib_path): If its length is zero then
29056         assign "gnulib" to it.
29057         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29058
29059 2010-05-16  Bruno Haible  <bruno@clisp.org>
29060
29061         Avoid autoconf warnings about AM_ICONV.
29062         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29063         2.64.
29064
29065 2010-05-16  Bruno Haible  <bruno@clisp.org>
29066
29067         absolute-header: Make the macro usable in more situations.
29068         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29069         from gl_ABSOLUTE_HEADER.
29070         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29071
29072 2010-05-16  James Youngman  <jay@gnu.org>
29073
29074         doc: update users.txt
29075         * users.txt: Add CSSC.
29076
29077 2010-05-16  Jim Meyering  <meyering@redhat.com>
29078
29079         init.sh: fix an error in the previous change; add more comments
29080         * tests/init.sh: Compare exit code in loop against 9, not 2.
29081         Patch by Bruno Haible.
29082         Make the two tests more similar by adding an empty "then" clause.
29083         Add comments.
29084
29085         init.sh: avoid unnecessary shell re-exec
29086         * tests/init.sh: Improve the re-exec-required check to first test the
29087         current shell.  If it passes the test, do not search for a shell that
29088         does pass, and do not re-exec.  This test is particularly contorted to
29089         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29090         of $(...) evokes a syntax error and causes immediate shell exit with
29091         status 2.  Bruno Haible reported that the re-exec made it impossible
29092         to single-step through any init.sh-using script.
29093
29094 2010-05-16  Bruno Haible  <bruno@clisp.org>
29095
29096         Fix collision between gnulib's and libintl's printf replacements.
29097         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29098         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29099         (printf): When using GNU C, map the __printf__ function to rpl_printf
29100         via __asm__. When not using GNU C, define rpl_printf instead of
29101         __printf__.
29102         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29103         commit.
29104         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29105         commit.
29106         * m4/asm-underscore.m4: New file.
29107         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29108         * modules/stdio (Files): Add m4/asm-underscore.m4.
29109         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29110         Reported by Ben Pfaff.
29111
29112 2010-05-16  Bruno Haible  <bruno@clisp.org>
29113
29114         verify: Avoid skipping the test on openSUSE 11.0.
29115         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29116
29117 2010-05-13  Bruno Haible  <bruno@clisp.org>
29118
29119         Avoid useless warnings from G++.
29120         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29121         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29122         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29123
29124 2010-05-11  Jim Meyering  <meyering@redhat.com>
29125
29126         maint.mk: tweak preceding change
29127         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29128         regexps tighter by anchoring at EOL, and make the new group "shy"
29129         for slightly decreased overhead.
29130
29131 2010-05-11  Eric Blake  <eblake@redhat.com>
29132
29133         maint.mk: gnulib doesn't guarantee NSIG
29134         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29135
29136 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29137
29138         test-pwrite.c: Remove unused variable declaration.
29139         * tests/test-pwrite.c (main): Remove read_buf declaration.
29140
29141         Remove useless test-pwrite.sh file.
29142         * tests/test-pwrite.sh: Delete file.
29143         * modules/pwrite-tests: Remove references.
29144         Reported by Bruno Haible.
29145
29146 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29147
29148         init.sh: fix a typo
29149         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29150
29151 2010-05-10  Jim Meyering  <meyering@redhat.com>
29152
29153         maint.mk: avoid using a temporary file in the always-defined-macros check
29154         * top/maint.mk (.re-defmac): Remove rule.
29155         (gl_trap_): Remove definition.
29156         (sc_prohibit_always-defined_macros): Rewrite not to create and
29157         depend on a temporary file.  Instead, depend on GNU grep's ability
29158         to read a list of regular expressions from stdin when given "-f -".
29159
29160 2010-05-09  Bruno Haible  <bruno@clisp.org>
29161
29162         Update to GNU gettext 0.18, part 1.
29163         * m4/gettext.m4: Update to GNU gettext 0.18.
29164         * m4/intl.m4: Likewise.
29165         * m4/po.m4: Likewise.
29166         * modules/gettext (Files): Add m4/fcntl-o.m4.
29167         (configure.ac): Require gettext infrastructure from version 0.18.
29168
29169 2010-05-09  Jim Meyering  <meyering@redhat.com>
29170
29171         init.sh: enable MALLOC_PERTURB_
29172         * tests/init.sh: Enable glibc's malloc-perturbing option.
29173
29174         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29175         With my recent change in init.sh from the two-line form:
29176             -#   : ${srcdir=.}
29177             -#   . "$srcdir/init.sh"; path_prepend_ .
29178             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29179         I noticed that using the one-line form would cause this test
29180         to fail with a false-positive, or to stop working altogether,
29181         depending on whether help-version changed or all the tests did.
29182         * top/maint.mk (_hv_regex): Remove this definition.
29183         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29184         (_hv_regex_strong): Use a stronger regex to check for conformance.
29185         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29186         Give a separate diagnostic for lack of conforming use.
29187
29188         maint.mk: prohibit definition of symbols defined by gnulib
29189         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29190         definition of symbols defined by gnulib.
29191
29192 2010-05-09  Bruno Haible  <bruno@clisp.org>
29193
29194         acl: Avoid test failure on Cygwin-hosted mingw.
29195         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29196
29197 2010-05-09  Bruno Haible  <bruno@clisp.org>
29198
29199         error: Use system's fcntl function.
29200         * lib/error.c (fcntl): Undefine.
29201
29202 2010-05-09  Jim Meyering  <meyering@redhat.com>
29203
29204         verify: adjust formatting to be more consistent
29205         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29206         argument-list '('s, and after one comma.
29207
29208 2010-05-09  Bruno Haible  <bruno@clisp.org>
29209
29210         error: More reliable output on mingw.
29211         * lib/error.c: Include <windows.h>.
29212         (is_open): New function.
29213         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29214         defined.
29215
29216 2010-05-09  Bruno Haible  <bruno@clisp.org>
29217
29218         vasnprintf: Fix syntax errors in libintl build on mingw.
29219         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29220         pad_ourselves and prec_ourselves after use.
29221
29222 2010-05-08  Bruno Haible  <bruno@clisp.org>
29223
29224         * lib/config.charset: Update comments for Cygwin 1.7.
29225         * lib/localcharset.c: Likewise.
29226
29227 2010-05-07  Jim Meyering  <meyering@redhat.com>
29228
29229         init.sh: improve comments
29230         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29231         . "${srcdir=.}/init.sh"; path_prepend_ .
29232         Add a note about path_prepend_ and the alternative of using
29233         TESTS_ENVIRONMENT.
29234
29235 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29236
29237         exclude: Unescape hashed patterns in wildcard mode.
29238         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29239         to the hash list.
29240         * tests/test-exclude8.sh: New test case.
29241         * modules/exclude-tests: Add new test.
29242
29243 2010-05-05  Eric Blake  <eblake@redhat.com>
29244
29245         verify: automate tests
29246         * modules/verify-tests: New module.
29247         * tests/test-verify.sh: New file.
29248         * tests/test-verify.c: Guard each negative test with a unique id.
29249         Also avoid warning about unused left hand of comma expressions.
29250
29251 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29252
29253         Further improvements to verify.h, suggested by Eric Blake.
29254         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29255         the GL_* versions, to avoid collision with OpenGL.
29256         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29257         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29258         than testing merely whether it's defined.
29259
29260         Modify verify.h to pacify gcc -Wredundant_decls.
29261         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29262         These use the prefix "GL_" since they're likely to be useful elsewhere.
29263         We may need to break them out into a different .h file.
29264         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29265         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29266         of verify_function__.
29267
29268 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29269
29270         Tests for module pwrite.
29271         * modules/pwrite-tests: New file.
29272         * tests/test-pwrite.sh: New file.
29273         * tests/test-pwrite.c: New file.
29274
29275         New module pwrite.
29276         * lib/unistd.in.h (pwrite): New declaration.
29277         * lib/pwrite.c: New file, from glibc with modifications.
29278         * m4/pwrite.m4: New file.
29279         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29280         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29281         REPLACE_PWRITE.
29282         * modules/pwrite: New file.
29283         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29284         REPLACE_PWRITE.
29285         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29286         * doc/posix-functions/pwrite.texi: Mention the new module.
29287
29288 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29289
29290         pread: Update documentation.
29291         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29292
29293 2010-05-04  Eric Blake  <eblake@redhat.com>
29294
29295         docs: update cygwin progress
29296         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29297         this bug.
29298         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29299         Added in cygwin 1.7.2.
29300         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29301         Likewise.
29302         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29303         Likewise.
29304         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29305         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29306         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29307         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29308         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29309         Mention nproc module.
29310         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29311         bug in cygwin 1.7.5 addition.
29312         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29313         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29314         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29315         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29316         1.7.5.
29317         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29318         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29319         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29320         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29321         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29322         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29323         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29324         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29325         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29326         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29327         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29328         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29329         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29330         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29331         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29332         Likewise.
29333         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29334         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29335         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29336         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29337         Likewise.
29338         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29339         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29340         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29341         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29342         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29343         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29344         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29345         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29346         Likewise.
29347         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29348         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29349         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29350         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29351         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29352         Likewise.
29353         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29354         Likewise.
29355         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29356         Likewise.
29357         * doc/glibc-functions/xdrrec_endofrecord.texi
29358         (xdrrec_endofrecord): Likewise.
29359         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29360         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29361         Likewise.
29362         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29363         Likewise.
29364
29365 2010-05-04  Jim Meyering  <meyering@redhat.com>
29366
29367         gendocs.sh: make its "-s FILE" option more useful
29368         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29369         $PACKAGE to reflect the probably-different basename of "FILE".
29370
29371 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29372
29373         bootstrap: don't ignore download_po_files failure
29374         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29375         failure.
29376
29377 2010-05-03  Jim Meyering  <meyering@redhat.com>
29378
29379         maint.mk: allow to pass options to gendocs.sh
29380         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29381         (gendocs_options_): New overridable variable.
29382
29383         gnu-web-doc-update: don't ignore configure or build failure
29384         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29385
29386         announce-gen: backslash-escape '@'s in --help output
29387         * build-aux/announce-gen: Fix syntax errors.
29388
29389         maint.mk, announce-gen: allow project-specific announcement mail headers
29390         * top/maint.mk (translation_project_): Define default.
29391         (announcement_Cc_, announcement_mail_headers_): Likewise.
29392         (announcement): Invoke announce-gen with new --mail-headers option.
29393         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29394
29395         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29396         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29397         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29398         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29399         line in the "err2" output file when running "make check" in verbose
29400         mode (i.e., with set -x enabled).
29401
29402 2010-05-03  Bruno Haible  <bruno@clisp.org>
29403
29404         wctob: Fix for weird platforms.
29405         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29406         argument value.
29407
29408 2010-05-03  Jim Meyering  <meyering@redhat.com>
29409
29410         maint.mk: prohibit unwarranted use of <strings.h>
29411         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29412         strings.h in a file that does not also use strcasecmp, strncasecmp,
29413         ffs or ffsll.
29414
29415         maint.mk: remove obsolete comments
29416         * top/maint.mk: Remove stale, commented-out rules.
29417
29418 2010-05-02  Bruno Haible  <bruno@clisp.org>
29419
29420         wcwidth: Declare also when it's aliased.
29421         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29422         macro.
29423
29424 2010-05-02  Bruno Haible  <bruno@clisp.org>
29425
29426         Fix regression from 2010-04-25.
29427         * gnulib-tool (func_modules_transitive_closure): Check the status of
29428         all modules, not only of the tests that are of the form foo-tests where
29429         foo is a module.
29430
29431 2010-05-02  Bruno Haible  <bruno@clisp.org>
29432
29433         wctob: Work around nasty Cygwin 1.7.2 bug.
29434         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29435         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29436
29437 2010-05-01  Bruno Haible  <bruno@clisp.org>
29438
29439         fpurge: Sharper test.
29440         * tests/test-fpurge.c (main): Add one more ftell check.
29441         * modules/fpurge-tests (Depends-on): Add ftell.
29442         Suggested by Eric Blake.
29443
29444 2010-05-01  Bruno Haible  <bruno@clisp.org>
29445
29446         ftello: Another test.
29447         * tests/test-ftello3.c: New file.
29448         * modules/ftello-tests (Files): Add it.
29449         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29450         MOSTLYCLEANFILES.
29451
29452         ftell: Another test.
29453         * tests/test-ftell3.c: New file.
29454         * modules/ftell-tests (Files): Add it.
29455         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29456         MOSTLYCLEANFILES.
29457
29458 2010-05-01  Bruno Haible  <bruno@clisp.org>
29459
29460         ftell, ftello: Work around Solaris bug.
29461         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29462         * lib/ftello.c: Include stdio-impl.h.
29463         (ftello): On Solaris, when _IOWRT is set, compute the result without
29464         looking at _IOREAD.
29465         * modules/ftello (Files): Add lib/stdio-impl.h.
29466         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29467         * doc/posix-functions/ftello.texi: Likewise.
29468         Reported by Eric Blake.
29469
29470 2010-05-01  Bruno Haible  <bruno@clisp.org>
29471
29472         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29473         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29474         the _IOWRT flag is also set.
29475
29476 2010-05-01  Bruno Haible  <bruno@clisp.org>
29477
29478         Fix doc about a HP-UX stdio bug.
29479         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29480         * doc/posix-functions/ftello.texi: Likewise.
29481
29482 2010-05-01  Bruno Haible  <bruno@clisp.org>
29483
29484         lseek test: Fix failure on Solaris.
29485         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29486         output.
29487
29488 2010-04-30  Jim Meyering  <meyering@redhat.com>
29489
29490         bootstrap: don't ignore failure to generate po*/Makevars
29491         * build-aux/bootstrap (with_gettext): Don't ignore failure
29492         to create po/Makevars or runtime-po/Makevars.
29493
29494 2010-04-29  Eric Blake  <eblake@redhat.com>
29495
29496         headers: relax license to LGPLv2+
29497         * modules/fcntl-h (License): Relax license.
29498         * modules/getopt-posix (License): Likewise.
29499         * modules/locale (License): Likewise.
29500         * modules/math (License): Likewise.
29501         * modules/pty (License): Likewise.
29502         * modules/sched (License): Likewise.
29503         * modules/search (License): Likewise.
29504         * modules/spawn (License): Likewise.
29505         * modules/stdarg (License): Likewise.
29506         * modules/sysexits (License): Likewise.
29507
29508 2010-04-29  Jim Meyering  <meyering@redhat.com>
29509
29510         inttypes: relax license to LGPLv2+
29511         * modules/inttypes (License): Relax license.
29512
29513 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29514
29515         * top/maint.mk (indent): Run twice to produce idempotent results.
29516
29517 2010-04-28  Bruno Haible  <bruno@clisp.org>
29518
29519         getdate: Generate getdate.c in the source directory.
29520         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29521         MOSTLYCLEANFILES.
29522         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29523
29524 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29525
29526         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29527         is not declared as a const *; avoid warnings in that case.
29528
29529 2010-04-28  Eric Blake  <eblake@redhat.com>
29530
29531         canonicalize-lgpl: avoid compiler warning
29532         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29533         declaration' / 'extraneous semicolon' warning with some compilers.
29534         Reported by Andreas Gruenbacher.
29535
29536 2010-04-28  Jim Meyering  <meyering@redhat.com>
29537
29538         init.sh: ensure a more reliable exit status when exiting via trap
29539         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29540         Inspired by patches from Dmitry V. Levin.
29541         Also trap on signal 3 (SIGQUIT).
29542
29543 2010-04-27  Bruno Haible  <bruno@clisp.org>
29544
29545         Update doc about utimes().
29546         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29547         'utimens' module.
29548         Reported by Andreas Gruenbacher <agruen@suse.de>.
29549
29550 2010-04-27  Eric Blake  <eblake@redhat.com>
29551
29552         full-read, full-write: relax license
29553         * modules/full-read (License): Drop to LGPLv2+.
29554         * modules/full-write (License): Likewise.
29555         * modules/safe-read (License): Likewise.
29556         * modules/safe-write (License): Likewise.
29557
29558         pthread: mention library for linking
29559         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29560
29561 2010-04-27  Jim Meyering  <meyering@redhat.com>
29562
29563         maint.mk: fix a bug introduced in last change
29564         * top/maint.mk (gl_assured_headers_): Now that all names are on
29565         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29566         is not anchored to end of word, it should be adequate.
29567
29568         maint.mk: avoid side-effect in latest syntax-check
29569         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29570         to run commands via $(shell...), and hence to incur cost only when
29571         the new rule is actually run.
29572
29573         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29574         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29575         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29576         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29577         (gl_assured_headers_, az_, AZ_): Define.
29578         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29579
29580 2010-04-26  Jim Meyering  <jim@meyering.net>
29581             Bruno Haible  <bruno@clisp.org>
29582
29583         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29584         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29585         Prompted by an exchange with Gilles Espinasse.
29586
29587 2010-04-26  Jim Meyering  <meyering@redhat.com>
29588
29589         git-version-gen: aesthetic tweak
29590         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29591         so that the command remains on a single line.
29592
29593 2010-04-26  Eric Blake  <eblake@redhat.com>
29594
29595         git-version-gen: allow use on EBCDIC hosts
29596         * build-aux/git-version-gen (dirty): Use literal rather than tying
29597         ourselves to ascii.
29598         Reported by Steve Goetze.
29599
29600 2010-04-25  Bruno Haible  <bruno@clisp.org>
29601
29602         netdb: Add support for GNULIB_POSIXCHECK.
29603         * lib/netdb.in.h: Include warn-on-use.h.
29604         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29605         functions are used when GNULIB_POSIXCHECK is defined and the
29606         getaddrinfo module is not in use.
29607         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29608         freeaddrinfo, gai_strerror, getnameinfo are declared.
29609         * modules/netdb (Depends-on): Add warn-on-use.
29610         (Makefile.am): Include warn-on-use.h in netdb.h.
29611
29612 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29613
29614         build: avoid "make check" failure without .git/ directory
29615         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29616         there is no .git/ directory.
29617
29618 2010-04-25  Bruno Haible  <bruno@clisp.org>
29619
29620         ptsname: Fix misuse of ttyname_r.
29621         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29622         of errno.
29623
29624 2010-04-25  Bruno Haible  <bruno@clisp.org>
29625
29626         ttyname_r: Make it work on Solaris 10.
29627         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29628         if the system function has the POSIX declaration. Test whether the
29629         function fails if the buffer is less than 128 bytes large.
29630         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29631         system's ttyname_r function. Provide a reasonably large buffer.
29632         * modules/ttyname_r (Depends-on): Add extensions.
29633         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29634
29635 2010-04-25  Bruno Haible  <bruno@clisp.org>
29636
29637         Use the 'extensions' module for some more functions on Solaris.
29638         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29639         module.
29640         * doc/posix-functions/ctime_r.texi: Likewise.
29641         * doc/posix-functions/getgrgid_r.texi: Likewise.
29642         * doc/posix-functions/getgrnam_r.texi: Likewise.
29643         * doc/posix-functions/getpwnam_r.texi: Likewise.
29644         * doc/posix-functions/getpwuid_r.texi: Likewise.
29645         * doc/posix-functions/readdir_r.texi: Likewise.
29646         * doc/posix-functions/sigwait.texi: Likewise.
29647         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29648         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29649
29650 2010-04-25  Bruno Haible  <bruno@clisp.org>
29651
29652         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29653         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29654         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29655         * lib/ttyname_r.c: Include <limits.h>.
29656         (ttyname_r): Define using the system's ttyname_r function, if it exists
29657         and not on Solaris.
29658         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29659         set.
29660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29661         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29662         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29663         Reported by Simon Josefsson.
29664
29665 2010-04-25  Bruno Haible  <bruno@clisp.org>
29666
29667         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29668         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29669         * doc/posix-functions/ctime_r.texi: Likewise.
29670         * doc/posix-functions/getgrgid_r.texi: Likewise.
29671         * doc/posix-functions/getgrnam_r.texi: Likewise.
29672         * doc/posix-functions/getlogin_r.texi: Likewise.
29673         * doc/posix-functions/getpwnam_r.texi: Likewise.
29674         * doc/posix-functions/getpwuid_r.texi: Likewise.
29675         * doc/posix-functions/readdir_r.texi: Likewise.
29676         * doc/posix-functions/sigwait.texi: Likewise.
29677         * doc/posix-functions/ttyname_r.texi: Likewise.
29678         Reported by Simon Josefsson.
29679
29680 2010-04-25  Bruno Haible  <bruno@clisp.org>
29681
29682         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29683         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29684         also to --create-testdir.
29685         (func_acceptable): Don't consider the status of *-tests modules here.
29686         (func_modules_transitive_closure): Consider it here, before including a
29687         test module.
29688         (func_import, func_create_testdir): Set inc_all_direct_tests,
29689         inc_all_indirect_tests.
29690         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29691         --create-testdir and --create-megatestdir.
29692
29693 2010-04-25  Bruno Haible  <bruno@clisp.org>
29694
29695         gnulib-tool: Add --without-*-tests options.
29696         * gnulib-tool (func_usage): Document the --without-*-tests options.
29697         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29698         excl_unportable_tests): New variables.
29699         Fail if they are specified with --import or --update.
29700         (func_acceptable): Respect the excl_*_tests variables.
29701         (func_import): Set the excl_*_tests variables to empty.
29702
29703 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29704             Bruno Haible  <bruno@clisp.org>
29705
29706         Work around a MacOS X 10.4 bug with openpty.
29707         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29708         * tests/test-openpty.c (main): Close the master side explicitly.
29709
29710 2010-04-25  Bruno Haible  <bruno@clisp.org>
29711
29712         strnlen: Fix a C++ test error on MacOS X and Solaris.
29713         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29714         the function is not declared.
29715         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29716         Simon Josefsson.
29717
29718 2010-04-24  Bruno Haible  <bruno@clisp.org>
29719
29720         Avoid a gcc warning.
29721         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29722         of correct type for %08lx directive.
29723         Reported by Eric Blake.
29724
29725 2010-04-24  Bruno Haible  <bruno@clisp.org>
29726
29727         vasnprintf: Correct errno value in case of out-of-memory.
29728         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29729         or sprintf. Use the errno value from SNPRINTF or sprintf.
29730         Reported by Ian Beckwith <ianb@erislabs.net>.
29731
29732 2010-04-24  Bruno Haible  <bruno@clisp.org>
29733
29734         ansi-c++-opt: Find correct compiler when cross-compiling.
29735         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29736         AC_CHECK_PROGS.
29737         Reported by Simon Josefsson.
29738
29739 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29740
29741         vc-list-files: Add support for subversion
29742         * build-aux/vc-list-files: Use "svn list" to generate the list of
29743         files controlled by subversion.
29744
29745 2010-04-23  Jim Meyering  <meyering@redhat.com>
29746
29747         vc-list-files tests: convert to use init.sh
29748         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29749         path_prepend_.
29750         Use Exit, not exit.
29751         Use skip_ rather than open coding it.
29752         Remove trap set-up and compare definitions.
29753         * tests/test-vc-list-files-git.sh: Likewise.
29754         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29755
29756 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29757
29758         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29759         backup files.
29760
29761 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29762
29763         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29764
29765 2010-04-20  Eric Blake  <eblake@redhat.com>
29766
29767         tests: be robust to ignored SIGPIPE
29768         * tests/test-select-in.sh: Consume all output.
29769         * tests/test-lseek.sh: Check correct exit status, while avoiding
29770         EPIPE.
29771
29772 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29773             Bruno Haible  <bruno@clisp.org>
29774
29775         visibility: Don't use -fvisibility if it leads to a warning.
29776         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29777         yes, don't pretend that visibility works if it leads to a warning.
29778         Reported by Mike Gran <spk121@yahoo.com>.
29779
29780 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29781
29782         * build-aux/bootstrap: Use "git -h" for testing for supported options
29783         instead of "git --help".  The short-form option only shows a summary,
29784         and doesn't layout the full man page.  Grep for the full option name
29785         in the summary, too.
29786
29787 2010-04-19  Bruno Haible  <bruno@clisp.org>
29788
29789         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29790         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29791         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29792         mention of RELOCATABLE_STRIP.
29793         Reported by Sylvain Beucler <beuc@beuc.net>.
29794
29795 2010-04-19  Bruno Haible  <bruno@clisp.org>
29796
29797         * lib/diffseq.h: Fix typo in comment.
29798         Reported by Eric Blake.
29799
29800 2010-04-19  Bruno Haible  <bruno@clisp.org>
29801
29802         ioctl: Move autoconf macro to a .m4 file.
29803         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29804         * modules/ioctl (Files): Add it.
29805         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29806         Reported by Ian Beckwith <ianb@erislabs.net>.
29807
29808 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29809             Bruno Haible  <bruno@clisp.org>
29810
29811         diffseq: Accommodate use-case with abstract arrays.
29812         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29813         is not defined.
29814         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29815         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29816
29817 2010-04-18  Bruno Haible  <bruno@clisp.org>
29818
29819         * doc/posix-headers/stdbool.texi: More precise wording.
29820
29821 2010-04-17  Jim Meyering  <meyering@redhat.com>
29822
29823         maint.mk: use gnu-style indentation in an embedded perl script
29824         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29825         Rename variable: s/two/last_two_bytes/
29826
29827 2010-04-16  Eric Blake  <eblake@redhat.com>
29828
29829         test-stdbool: skip test that fails with Solaris CC
29830         * tests/test-stdbool.c (f): Skip test that causes compilation
29831         error under buggy C++ compiler.
29832         * lib/stdbool.in.h: Document the limitation.
29833         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29834
29835         setenv: allow compilation with C++
29836         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29837         register keyword.
29838
29839         stdint: allow test to pass with C++
29840         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29841
29842         getopt: allow compilation with C++
29843         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29844         struct.
29845         * lib/getopt.c (_getopt_internal_r): Use correct type.
29846         Reported by Dagobert Michelson, via Joel E. Denny.
29847
29848 2010-04-16  Bruno Haible  <bruno@clisp.org>
29849
29850         Override netdb.h always.
29851         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29853         Reported by Ludovic Courtès <ludo@gnu.org>.
29854
29855 2010-04-15  Bruno Haible  <bruno@clisp.org>
29856
29857         openpty: Fix mistake from 2010-03-21.
29858         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29859         Reported by Simon Josefsson.
29860
29861 2010-04-15  Eric Blake  <eblake@redhat.com>
29862
29863         test-forkpty: fix expected signature
29864         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29865         Reported by Simon Josefsson.
29866
29867 2010-04-15  Jim Meyering  <meyering@redhat.com>
29868
29869         maint.mk: texinfo_suffix_re_: correct the default regexp
29870         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29871
29872         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29873         make it configurable via texinfo_suffix_re_.
29874
29875 2010-04-14  Eric Blake  <eblake@redhat.com>
29876
29877         strtok_r: relax license to LGPLv2+
29878         * modules/strtok_r (License): Relax license.
29879         Reported by Matthias Bolte.
29880
29881 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29882
29883         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29884         version 1.4.4 by default instead of requiring the libgcrypt
29885         version used during build.  This makes it possible to use the
29886         application with older but still binary compatible libgcrypt
29887         versions.
29888
29889 2010-04-13  Eric Blake  <eblake@redhat.com>
29890
29891         getopt-gnu: match recent glibc fixes and posix ruling
29892         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29893         '+' handling, when requesting extensions.
29894         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29895         'W;' handling.
29896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29897         * doc/posix-functions/getopt.texi (getopt): Document this.
29898         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29899         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29900         Likewise.
29901
29902         getopt: merge bug fixes from glibc
29903         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29904         diagnostics.  Honor '+:' correctly.  Reject ';'.
29905
29906         getopt-posix: detect MacOS bug
29907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29908         optind when missing a required argument.
29909         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29910         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29911         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29912         Likewise.
29913
29914         getopt-posix: avoid spurious failure on Solaris
29915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29916         an indicator that setting optind=1 is sufficient for reset.
29917
29918         getopt-posix: avoid spurious failure on FreeBSD
29919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29920         in POSIX mode, since the m4 test uses it.
29921
29922         gnulib-tool: silence warning on BSD sh
29923         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29924
29925 2010-04-13  Jim Meyering  <meyering@redhat.com>
29926
29927         doc: users.txt: GNU patch now uses gnulib
29928         * users.txt: Add patch.
29929
29930 2010-04-12  Jim Meyering  <meyering@redhat.com>
29931
29932         maint.mk: generate more concise timing data for syntax-check rules
29933         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29934         " done" from each line that reports a syntax-check test duration.
29935
29936 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29937
29938         git-version-gen: use "git update-index..." rather than "git status"
29939         * build-aux/git-version-gen: Use git update-index --refresh, not
29940         "git status".  With some versions of git, "git status" would fail
29941         to update the index and result in an unwarranted "-dirty" suffix.
29942
29943 2010-04-11  Jim Meyering  <meyering@redhat.com>
29944
29945         openat: correct formatting (no semantic change)
29946         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29947         Suggested by Bruno Haible.
29948
29949 2010-04-11  Bruno Haible  <bruno@clisp.org>
29950
29951         Stricter declaration checking in testdirs.
29952         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29953         If for_tests is true, augment AM_CPPFLAGS to define
29954         GNULIB_STRICT_CHECKING.
29955         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29956         GNULIB_STRICT_CHECKING is defined, verify that the function is
29957         declared.
29958
29959 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29960             Bruno Haible  <bruno@clisp.org>
29961
29962         libunistring: Improve configure output.
29963         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29964         Don't say "consider installing GNU libunistring" when checking again
29965         with libiconv.
29966
29967 2010-04-11  Bruno Haible  <bruno@clisp.org>
29968
29969         libunistring: Correct value of $LTLIBUNISTRING.
29970         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29971         correct the value of $LTLIBUNISTRING.
29972
29973 2010-04-11  Bruno Haible  <bruno@clisp.org>
29974
29975         havelib: Add static libraries to LIBS in the right order.
29976         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29977         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29978
29979 2010-04-11  Bruno Haible  <bruno@clisp.org>
29980
29981         libunistring: Detect libunistring also when it depends on libiconv.
29982         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29983         the second AC_LIB_HAVE_LINKFLAGS invocation.
29984
29985 2010-04-11  James Youngman  <jay@gnu.org>
29986
29987         close-stream: declare local scalars to be "const"
29988         * lib/close-stream.c (close_stream): Make boolean variables const
29989         to document the fact that we set but do not change them.
29990
29991 2010-04-11  Bruno Haible  <bruno@clisp.org>
29992
29993         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29994
29995 2010-04-11  Jim Meyering  <meyering@redhat.com>
29996
29997         maint.mk: don't include dist-check.mk
29998         * top/maint.mk: Remove bogus include directive.
29999
30000         maint.mk: improve empty-line-at-EOF check
30001         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30002         solution, rather than tail+Perl-based one.  The latter would read
30003         a few kilobytes from the end of each file, and did not handle empty
30004         files properly.
30005
30006         maint.mk: print the elapsed time for each syntax-check rule
30007         * top/maint.mk (sc_m_rules_): Save start time in a file.
30008         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30009         (local-check): Interpose the .z rules
30010
30011 2010-04-11  Jim Meyering  <meyering@redhat.com>
30012
30013         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30014         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30015         empty file with one that ends in an empty line.
30016
30017 2010-04-10  Bruno Haible  <bruno@clisp.org>
30018
30019         mkdir: Make it work on mingw64.
30020         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30021         * lib/mkdir.c: Update comment.
30022         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30023
30024 2010-04-10  Bruno Haible  <bruno@clisp.org>
30025
30026         Don't override improved macro from newer autoconf.
30027         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30028         autoconf >= 2.62.
30029         Reported by Joel E. Denny <jdenny@clemson.edu>.
30030
30031 2010-04-10  Jim Meyering  <meyering@redhat.com>
30032
30033         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30034         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30035
30036         maint.mk: correct a diagnostic
30037         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30038         in diagnostic; now use $prohibit.
30039
30040 2010-04-10  Bruno Haible  <address@hidden>
30041
30042         fchownat: Fix a C++ test error on Solaris 8.
30043         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30044         the function does not exist.
30045
30046 2010-04-10  Bruno Haible  <bruno@clisp.org>
30047
30048         vasnprintf: Add more tests.
30049         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30050         (test_function): Test converting an invalid wide string.
30051
30052         vasnprintf: Correct handling of unconvertible wide string arguments.
30053         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30054         VASNPRINTF.
30055         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30056         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30057         smaller than the expected maximum need for the directive. Set errno to
30058         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30059         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30060         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30061         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30062         * modules/vasnprintf (Files): Add m4/printf.m4.
30063         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30064
30065 2010-04-10  Bruno Haible  <bruno@clisp.org>
30066
30067         vasnprintf: Fix crash in %ls directive.
30068         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30069         string is passed as argument to %ls, with no precision and no width.
30070         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30071
30072 2010-04-10  Bruno Haible  <bruno@clisp.org>
30073
30074         vasnprintf: Fix multiple test failures on mingw.
30075         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30076         _snprintf, or snwprintf, not _snwprintf.
30077
30078 2010-04-10  Bruno Haible  <bruno@clisp.org>
30079
30080         write: Fix a C++ test error on mingw.
30081         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30082
30083 2010-04-10  Bruno Haible  <bruno@clisp.org>
30084
30085         vasnprintf test: Reduce code duplication.
30086         * tests/test-vasnprintf.c (test_function): New function, extracted from
30087         test_vasnprintf.
30088         (test_vasnprintf, test_asnprintf): Invoke it.
30089
30090 2010-04-10  Bruno Haible  <bruno@clisp.org>
30091
30092         strnlen: Fix warning in C++ mode on MacOS X.
30093         * lib/string.in.h (strnlen): Use the modern idiom.
30094         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30095         defining strnlen as a macro already in <config.h>.
30096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30097         REPLACE_STRNLEN.
30098         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30099         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30100
30101 2010-04-08  James Youngman  <jay@gnu.org>
30102
30103         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30104         the example.
30105
30106 2010-04-09  Jim Meyering  <meyering@redhat.com>
30107
30108         maint.mk: print better diagnostic when there is no $(_hv_file)
30109         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30110         announce that when $(_hv_file) (aka help-version) does not exist.
30111
30112         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30113         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30114         not try to interpret its random input bytes.  Jarno Rajahalme reported
30115         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30116         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30117         (mktempd_): Likewise, just in case.
30118
30119         ftruncate: add two years to projected module removal date: 2012
30120         * m4/ftruncate.m4: Adjust comments.
30121
30122         ftruncate: mark module as obsolete; even MinGW provides it, now
30123         * modules/ftruncate (Status): Obsolete.
30124         (Notice): Say that.
30125         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30127
30128 2010-04-08  Bruno Haible  <bruno@clisp.org>
30129
30130         Fix side effects from tests-related modules.
30131         * modules/dprintf-posix (Comment): New section.
30132         * modules/fprintf-posix (Comment): Likewise.
30133         * modules/obstack-printf-posix (Comment): Likewise.
30134         * modules/printf-posix (Comment): Likewise.
30135         * modules/snprintf-posix (Comment): Likewise.
30136         * modules/sprintf-posix (Comment): Likewise.
30137         * modules/vasnprintf-posix (Comment): Likewise.
30138         * modules/vasprintf-posix (Comment): Likewise.
30139         * modules/vdprintf-posix (Comment): Likewise.
30140         * modules/vfprintf-posix (Comment): Likewise.
30141         * modules/vprintf-posix (Comment): Likewise.
30142         * modules/vsnprintf-posix (Comment): Likewise.
30143         * modules/vsprintf-posix (Comment): Likewise.
30144         * modules/xprintf-posix (Comment): Likewise.
30145         * modules/xvasprintf-posix (Comment): Likewise.
30146         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30147         * modules/floorf-tests (Depends-on): Likewise.
30148         * modules/round-tests (Depends-on): Likewise.
30149         * modules/roundf-tests (Depends-on): Likewise.
30150         * modules/trunc-tests (Depends-on): Likewise.
30151         * modules/truncf-tests (Depends-on): Likewise.
30152         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30153         'fprintf-posix' module is not present.
30154         * tests/test-floorf2.c (check): Likewise.
30155         * tests/test-trunc2.c (check): Likewise.
30156         * tests/test-truncf2.c (check): Likewise.
30157         * tests/test-round2.c (equal): Likewise.
30158         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30159
30160 2010-04-07  Karl Berry  <karl@gnu.org>
30161
30162         * config/srclist.txt,
30163         * config/srclistvars.sh,
30164         * config/srclist-update: doc fixes.
30165
30166 2010-04-07  Jim Meyering  <meyering@redhat.com>
30167
30168         maint.mk: add a PATH crosschecking syntax-check rule
30169         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30170         Useful if you use a test like the one in help-version (coreutils,
30171         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30172         printed by prog --version.
30173
30174 2010-04-06  Bruno Haible  <bruno@clisp.org>
30175
30176         Fix link error on mingw.
30177         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30178         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30179
30180 2010-04-06  Bruno Haible  <bruno@clisp.org>
30181
30182         Assume rmdir exists.
30183         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30184
30185 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30186
30187         doc: update users.txt
30188         * users.txt: Add gcal.
30189
30190 2010-04-06  Jim Meyering  <meyering@redhat.com>
30191
30192         init.sh: simply unset TMPDIR rather than risking env -i
30193         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30194         although it probably works fine on all Unix-based systems, some
30195         systems (Cygwin?) cannot tolerate a totally cleared environment.
30196         Suggestion from Eric Blake.
30197
30198 2010-04-06  Jim Meyering  <meyering@redhat.com>
30199
30200         init.sh: portability fix: use env's POSIX-specified -i option not -u
30201         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30202         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30203
30204 2010-04-05  Bruno Haible  <bruno@clisp.org>
30205
30206         btowc: Work around Cygwin 1.7.2 bug.
30207         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30208         does not map NUL to 0.
30209         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30210
30211 2010-04-05  Bruno Haible  <bruno@clisp.org>
30212
30213         Make the multithread modules work on Cygwin 1.7.2.
30214         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30215         imported symbols can be declared weak, so that it returns "no" on
30216         Cygwin 1.7.2.
30217
30218 2010-04-05  Bruno Haible  <bruno@clisp.org>
30219
30220         Use the module 'strncat'.
30221         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30222
30223         Tests for module 'strncat'.
30224         * modules/strncat-tests: New file.
30225         * tests/test-strncat.c: New file.
30226
30227         New module 'strncat'.
30228         * lib/string.in.h (strncat): New declaration.
30229         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30230         * m4/strncat.m4: New file, based on m4/memchr.m4.
30231         * modules/strncat: New file.
30232         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30233         is declared.
30234         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30235         REPLACE_STRNCAT.
30236         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30237         REPLACE_STRNCAT.
30238         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30239         module.
30240         * tests/test-string-c++.cc: Check signature of strncat.
30241
30242 2010-04-05  Jim Meyering  <meyering@redhat.com>
30243
30244         xstrtoumax-tests: convert to use init.sh
30245         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30246         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30247         Use Exit, not exit.
30248         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30249
30250         xstrtoimax-tests: convert to use init.sh
30251         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30252         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30253         Use Exit, not exit.
30254         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30255
30256 2010-04-05  Bruno Haible  <bruno@clisp.org>
30257
30258         sys_socket: Avoid #define replacements in C++ mode.
30259         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30260         warning to the function if possible, rather than #defining the symbol
30261         to a dysfunctional alias.
30262
30263 2010-04-05  Bruno Haible  <bruno@clisp.org>
30264
30265         fseeko: Fix C++ test error on mingw.
30266         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30267         gl_FUNC_FSEEKO.
30268         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30269         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30270         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30271         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30272
30273 2010-04-05  Bruno Haible  <bruno@clisp.org>
30274
30275         duplocale: Improve test output.
30276         * tests/test-duplocale.c (main): Print reason for skipped test.
30277
30278 2010-04-05  Bruno Haible  <bruno@clisp.org>
30279
30280         Assume rmdir exists.
30281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30282         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30283
30284 2010-04-05  Bruno Haible  <bruno@clisp.org>
30285
30286         Fix link error on Solaris 8 with cc.
30287         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30288
30289 2010-04-05  Bruno Haible  <bruno@clisp.org>
30290
30291         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30292         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30293
30294 2010-04-05  Bruno Haible  <bruno@clisp.org>
30295
30296         vasprintf: Update documentation.
30297         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30298
30299 2010-04-05  Bruno Haible  <bruno@clisp.org>
30300
30301         ptsname: Improve test.
30302         * tests/test-ptsname.c (main): Also try the various master names of BSD
30303         systems.
30304
30305 2010-04-05  Bruno Haible  <bruno@clisp.org>
30306
30307         memchr: Avoid a possible C++ test error.
30308         * lib/string.in.h (memchr): Provide declaration if function is missing.
30309         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30310         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30312         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30313
30314 2010-04-05  Bruno Haible  <bruno@clisp.org>
30315
30316         strtok_r: Improve idiom.
30317         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30318         AC_LIBOBJ is used.
30319
30320 2010-04-05  Bruno Haible  <bruno@clisp.org>
30321
30322         strdup: Improve idiom.
30323         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30324         AC_LIBOBJ is used.
30325         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30326         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30327         when AC_LIBOBJ is used.
30328
30329 2010-04-05  Bruno Haible  <bruno@clisp.org>
30330
30331         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30332         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30333         don't set REPLACE_MBSINIT to 1.
30334         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30335         don't set REPLACE_MBRTOWC to 1.
30336         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30337         exist, don't set REPLACE_MBSRTOWCS to 1.
30338         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30339         exist, don't set REPLACE_MBSNRTOWCS to 1.
30340         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30341         don't set REPLACE_WCRTOMB to 1.
30342         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30343         exist, don't set REPLACE_WCSRTOMBS to 1.
30344         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30345         exist, don't set REPLACE_WCSNRTOMBS to 1.
30346
30347 2010-04-05  Bruno Haible  <bruno@clisp.org>
30348
30349         ldexpl: Improve idiom.
30350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30351         make sure to set HAVE_DECL_LDEXPL to 0.
30352
30353 2010-04-05  Jim Meyering  <meyering@redhat.com>
30354
30355         xstrtol-tests: convert to use init.sh
30356         * modules/xstrtol-tests (Files): Add tests/init.sh.
30357         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30358         Use Exit, not exit.
30359         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30360
30361         atexit-tests: convert to use init.sh
30362         * modules/atexit-tests (Files): Add tests/init.sh.
30363         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30364         Use Exit, not exit.
30365         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30366
30367         init.sh: fix typo
30368         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30369
30370         init.sh: make it easier for a test script to write to the tty, ...
30371         when using automake's parallel-tests mode.
30372         * tests/init.sh (stderr_fileno_): Define overridable variable.
30373         (warn_): New function, to use it.
30374         (fail_, skip_, framework_failure_): Use warn_.
30375
30376 2010-04-04  Bruno Haible  <bruno@clisp.org>
30377
30378         btowc: Avoid warning.
30379         * lib/btowc.c: Include <stdlib.h>.
30380         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30381
30382 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30383             Bruno Haible  <bruno@clisp.org>
30384
30385         wchar: Port to NetBSD 1.5.
30386         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30387         * lib/wctype.in.h (WEOF): Likewise.
30388
30389 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30390             Bruno Haible  <bruno@clisp.org>
30391
30392         Port extended stdio to NetBSD 1.5.
30393         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30394         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30395         older.
30396
30397 2010-04-04  Bruno Haible  <bruno@clisp.org>
30398
30399         string: Remove unused substitution.
30400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30401         HAVE_DECL_STRERROR.
30402         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30403
30404 2010-04-04  Bruno Haible  <bruno@clisp.org>
30405
30406         strtod: Avoid a possible C++ test error.
30407         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30408         set REPLACE_STRTOD.
30409
30410 2010-04-04  Bruno Haible  <bruno@clisp.org>
30411
30412         strerror: Update documentation.
30413         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30414
30415 2010-04-04  Bruno Haible  <bruno@clisp.org>
30416
30417         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30418         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30419         _GL_CXXALIAS_SYS_CAST.
30420
30421 2010-04-04  Bruno Haible  <bruno@clisp.org>
30422
30423         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30424         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30425         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30426         REPLACE_FREXPL to 1.
30427         * doc/posix-functions/frexpl.texi: Update documentation.
30428
30429 2010-04-04  Bruno Haible  <bruno@clisp.org>
30430
30431         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30432         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30433
30434 2010-04-04  Bruno Haible  <bruno@clisp.org>
30435
30436         Implement nanosleep for native Windows.
30437         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30438
30439 2010-04-04  Bruno Haible  <bruno@clisp.org>
30440
30441         math: Fix some C++ test errors on Solaris 8.
30442         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30443
30444 2010-04-04  Bruno Haible  <bruno@clisp.org>
30445
30446         math: Fix some C++ test errors on Cygwin.
30447         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30448         truncl): Provide declaration if the system does not have it.
30449         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30450         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30451         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30452         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30453         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30454         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30455         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30456         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30457         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30458         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30459         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30460         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30461         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30462         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30463         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30464         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30466         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30467         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30468         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30469         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30470         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30471
30472 2010-04-04  Bruno Haible  <bruno@clisp.org>
30473
30474         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30475         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30476         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30477         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30478         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30479         * m4/isinf.m4 (gl_ISINF): Likewise.
30480         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30481
30482 2010-04-04  Bruno Haible  <bruno@clisp.org>
30483
30484         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30485         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30486
30487 2010-04-04  Bruno Haible  <bruno@clisp.org>
30488
30489         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30490         * modules/tmpfile (configure.ac): Update.
30491
30492         tmpfile: Fix C++ test error on mingw.
30493         * lib/stdio.in.h (tmpfile): New declaration.
30494         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30495         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30496         * modules/tmpfile (Depends-on): Add stdio.
30497         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30498         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30499         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30500         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30501         REPLACE_TMPFILE.
30502         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30503
30504 2010-04-04  Bruno Haible  <bruno@clisp.org>
30505
30506         ioctl: Fix C++ test error on mingw.
30507         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30508         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30509         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30510
30511 2010-04-03  Bruno Haible  <bruno@clisp.org>
30512
30513         wcwidth: Fix C++ test error on mingw.
30514         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30516         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30517
30518 2010-04-03  Bruno Haible  <bruno@clisp.org>
30519
30520         nanosleep: Fix C++ test error on mingw.
30521         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30522         * lib/time.in.h (nanosleep): Use modern idiom.
30523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30524         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30525         REPLACE_NANOSLEEP to 1.
30526         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30527         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30528
30529 2010-04-03  Bruno Haible  <bruno@clisp.org>
30530
30531         strptime: Fix C++ test error on mingw.
30532         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30533         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30534         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30535         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30536         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30537         not REPLACE_STRPTIME.
30538         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30539         REPLACE_STRPTIME.
30540
30541 2010-04-03  Bruno Haible  <bruno@clisp.org>
30542
30543         timegm: Fix C++ test error on mingw.
30544         * lib/time.in.h (timegm): Use modern idiom.
30545         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30546         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30547         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30548         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30549
30550 2010-04-03  Bruno Haible  <bruno@clisp.org>
30551
30552         timegm: Assume declaration if function exists.
30553         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30554         if it exists. Don't clobber ac_cv_func_timegm.
30555
30556 2010-04-03  Bruno Haible  <bruno@clisp.org>
30557
30558         time_r: Fix C++ test error on mingw.
30559         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30560         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30561         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30562         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30563         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30564
30565 2010-04-03  Bruno Haible  <bruno@clisp.org>
30566
30567         time_r: Minor updates.
30568         * modules/time_r (Description): Mention the provided functions.
30569         * lib/time_r.c: Don't include <string.h>.
30570         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30571         * doc/posix-functions/localtime_r.texi: Likewise.
30572
30573 2010-04-03  Bruno Haible  <bruno@clisp.org>
30574
30575         time: Fix regression introduced on 2010-03-08.
30576         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30577         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30578
30579 2010-04-03  Jim Meyering  <meyering@redhat.com>
30580
30581         maint.mk: don't silently disable project-specific syntax-check rules
30582         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30583         that they need to convert their project-specific syntax-check rules
30584         to use the new _sc_search_regexp.
30585
30586 2010-04-03  Bruno Haible  <bruno@clisp.org>
30587
30588         fchdir: Fix regression introduced on 2010-03-08.
30589         * lib/unistd.in.h (fchdir): Fix declaration.
30590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30592         REPLACE_FCHDIR.
30593         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30594         REPLACE_FCHDIR.
30595
30596 2010-04-03  Bruno Haible  <bruno@clisp.org>
30597
30598         getpagesize: Fix C++ test error on mingw.
30599         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30600         system does not declare the function.
30601         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30602         declared.
30603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30604         HAVE_DECL_GETPAGESIZE.
30605         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30606
30607 2010-04-03  Bruno Haible  <bruno@clisp.org>
30608
30609         stdio: Make C++ tests work on mingw.
30610         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30611         does not declare the function.
30612
30613 2010-04-03  Bruno Haible  <bruno@clisp.org>
30614
30615         ftello: Fix C++ test error on mingw.
30616         * lib/stdio.in.h (ftello): Use modern idiom.
30617         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30618         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30619         is missing and that it needs to be replaced.
30620         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30622         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30623
30624 2010-04-03  Bruno Haible  <bruno@clisp.org>
30625
30626         fseeko: Fix C++ test error on mingw.
30627         * lib/stdio.in.h (fseeko): Use modern idiom.
30628         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30629         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30630         is missing and that it needs to be replaced.
30631         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30633         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30634
30635 2010-04-03  Bruno Haible  <bruno@clisp.org>
30636
30637         mkstemp: Fix C++ test error on mingw.
30638         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30639         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30640         function is missing and that it needs to be replaced.
30641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30642         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30643
30644 2010-04-03  Bruno Haible  <bruno@clisp.org>
30645
30646         stpncpy: Fix C++ test error on mingw.
30647         * lib/string.in.h (stpncpy): Use modern idiom.
30648         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30649         function is missing and that it needs to be replaced.
30650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30651         REPLACE_STPNCPY.
30652         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30653
30654 2010-04-03  Bruno Haible  <bruno@clisp.org>
30655
30656         sys_stat: Fix C++ test error on mingw.
30657         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30658         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30659
30660 2010-04-03  Bruno Haible  <bruno@clisp.org>
30661
30662         pty: Update doc.
30663         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30664
30665 2010-04-03  Bruno Haible  <bruno@clisp.org>
30666
30667         unistd: Fix C++ test error on mingw.
30668         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30669
30670 2010-04-03  Bruno Haible  <bruno@clisp.org>
30671
30672         Update doc regarding mingw.
30673         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30674         * doc/glibc-functions/login_tty.texi: Likewise.
30675         * doc/glibc-functions/forkpty.texi: Likewise.
30676
30677 2010-04-03  Bruno Haible  <bruno@clisp.org>
30678
30679         stdlib: Avoid compilation failure of c-strtold on mingw.
30680         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30681
30682 2010-04-03  Bruno Haible  <bruno@clisp.org>
30683
30684         locale: Make C++ tests work on Cygwin and mingw.
30685         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30686         cannot provide the function.
30687         Reported by Simon Josefsson.
30688
30689 2010-04-03  Bruno Haible  <bruno@clisp.org>
30690
30691         localename: Port to MacOS X 10.6.
30692         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30693         memory layout of the locales in MacOS X 10.6 as well.
30694         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30695
30696 2010-04-02  Bruno Haible  <bruno@clisp.org>
30697
30698         gnulib-tool: Ensure that long-running tests are executed last.
30699         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30700         running tests after the one for the other tests.
30701
30702 2010-04-02  Bruno Haible  <bruno@clisp.org>
30703
30704         gnulib-tool: Ensure the tests in the main directory are executed first.
30705         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30706         start with the current directory.
30707
30708 2010-04-02  Bruno Haible  <bruno@clisp.org>
30709
30710         Tests for module 'havelib', moved here from GNU gettext.
30711         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30712         modifications.
30713         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30714         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30715         with modifications.
30716         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30717         modifications.
30718         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30719         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30720         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30721         with modifications.
30722         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30723         with modifications.
30724         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30725         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30726         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30727         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30728         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30729         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30730         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30731         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30732         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30733         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30734         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30735         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30736         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30737         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30738         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30739         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30740         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30741         with modifications.
30742         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30743         with modifications.
30744         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30745         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30746         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30747         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30748         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30749         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30750         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30751         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30752         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30753         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30754         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30755         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30756         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30757         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30758         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30759         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30760         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30761         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30762         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30763         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30764         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30765         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30766         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30767         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30768         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30769         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30770         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30771         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30772         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30773         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30774         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30775         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30776         * tests/havelib/rpathx/rpathx.c: New file, from
30777         gettext/autoconf-lib-link.
30778         * tests/havelib/rpathx/Makefile.am: New file, from
30779         gettext/autoconf-lib-link.
30780         * tests/havelib/rpathx/configure.ac: New file, from
30781         gettext/autoconf-lib-link with modifications.
30782         * tests/havelib/rpathy/rpathy.c: New file, from
30783         gettext/autoconf-lib-link.
30784         * tests/havelib/rpathy/Makefile.am: New file, from
30785         gettext/autoconf-lib-link.
30786         * tests/havelib/rpathy/configure.ac: New file, from
30787         gettext/autoconf-lib-link with modifications.
30788         * tests/havelib/rpathz/rpathz.c: New file, from
30789         gettext/autoconf-lib-link.
30790         * tests/havelib/rpathz/Makefile.am: New file, from
30791         gettext/autoconf-lib-link.
30792         * tests/havelib/rpathz/configure.ac: New file, from
30793         gettext/autoconf-lib-link with modifications.
30794         * tests/havelib/rpathlx/usex.c: New file, from
30795         gettext/autoconf-lib-link.
30796         * tests/havelib/rpathlx/Makefile.am: New file, from
30797         gettext/autoconf-lib-link.
30798         * tests/havelib/rpathlx/configure.ac: New file, from
30799         gettext/autoconf-lib-link with modifications.
30800         * tests/havelib/rpathly/usey.c: New file, from
30801         gettext/autoconf-lib-link.
30802         * tests/havelib/rpathly/Makefile.am: New file, from
30803         gettext/autoconf-lib-link.
30804         * tests/havelib/rpathly/configure.ac: New file, from
30805         gettext/autoconf-lib-link with modifications.
30806         * tests/havelib/rpathlz/usez.c: New file, from
30807         gettext/autoconf-lib-link.
30808         * tests/havelib/rpathlz/Makefile.am: New file, from
30809         gettext/autoconf-lib-link.
30810         * tests/havelib/rpathlz/configure.ac: New file, from
30811         gettext/autoconf-lib-link with modifications.
30812         * tests/havelib/rpathlyx/usey.c: New file, from
30813         gettext/autoconf-lib-link.
30814         * tests/havelib/rpathlyx/Makefile.am: New file, from
30815         gettext/autoconf-lib-link.
30816         * tests/havelib/rpathlyx/configure.ac: New file, from
30817         gettext/autoconf-lib-link with modifications.
30818         * tests/havelib/rpathlzyx/usez.c: New file, from
30819         gettext/autoconf-lib-link.
30820         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30821         gettext/autoconf-lib-link.
30822         * tests/havelib/rpathlzyx/configure.ac: New file, from
30823         gettext/autoconf-lib-link with modifications.
30824         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30825         with modifications.
30826
30827 2010-04-02  Bruno Haible  <bruno@clisp.org>
30828
30829         gnulib-tool: Create distributed built sources also for the tests.
30830         * gnulib-tool (func_create_testdir): Also generate distributed built
30831         sources in the tests directory.
30832
30833 2010-04-02  Bruno Haible  <bruno@clisp.org>
30834
30835         gnulib-tool: Obey user's environment variables.
30836         * gnulib-tool (func_create_testdir): When creating built sources,
30837         respect the environment variables for autoconf, automake, etc. given by
30838         the user.
30839
30840 2010-04-02  Bruno Haible  <bruno@clisp.org>
30841
30842         gnulib-tool: Provide the value of --m4-base to modules.
30843         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30844         of gl_m4_base.
30845
30846 2010-04-02  Eric Blake  <eblake@redhat.com>
30847
30848         maint.mk: fix some fallout
30849         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30850         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30851
30852 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30853
30854         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30855         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30856         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30857         (sc_cast_of_x_alloc_return_value): Likewise.
30858         (sc_cast_of_alloca_return_value): Likewise.
30859         (sc_space_tab): Likewise.
30860         (sc_prohibit_atoi_atof): Likewise.
30861         (sc_prohibit_magic_number_exit): Likewise.
30862         (sc_error_exit_success): Likewise.
30863         (sc_file_system): Likewise.
30864         (sc_prohibit_have_config_h): Likewise.
30865         (sc_require_config_h): Likewise.
30866         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30867         (sc_obsolete_symbols): Likewise.
30868         (sc_changelog): Likewise.
30869         (sc_program_name): Likewise.
30870         (sc_the_the): Likewise.
30871         (sc_trailing_blank): Likewise.
30872         (sc_two_space_separator_in_usage): Likewise.
30873         (sc_useless_cpp_parens): Likewise.
30874         (sc_GPL_version): Likewise.
30875         (sc_GFDL_version): Likewise.
30876         (sc_texinfo_acronym): Likewise.
30877         (sc_prohibit_cvs_keyword): Likewise.
30878         (sc_prohibit_stat_st_blocks): Likewise.
30879         (sc_prohibit_S_IS_definition): Likewise.
30880         (sc_redundant_const): Likewise.
30881         (sc_makefile_TAB_only_indentation): Likewise.
30882         (sc_m4_quote_check): Likewise.
30883         (sc_makefile_path_separator_check): Likewise.
30884         (sc_copyright_check): Likewise.
30885         (sc_Wundef_boolean): Likewise.
30886         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30887
30888         maint.mk: match 0 or more whitespace-before-function-call '('
30889         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30890         that have zero or two-and-more spaces between the function name
30891         and the open parenthesis.
30892         (sc_error_message_warn_fatal): Likewise.
30893         (sc_error_message_uppercase): Likewise.
30894         (sc_error_message_period): Likewise.
30895
30896 2010-03-31  Eric Blake  <eblake@redhat.com>
30897
30898         maint.mk: check for [ as well as test
30899         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30900         Based on a libvirt report by Matthias Bolte.
30901
30902         gnumakefile: don't squelch _version output
30903         * top/GNUmakefile (_version): Create one-shot dependency rather
30904         than using $(shell) when version must be regenerated.
30905         (_autoreconf): Run verbosely, by default.
30906
30907         sys_time: avoid compiler warnings
30908         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30909         unconditional, fixing regression from 2010-03-29.
30910         Reported by Simon Josefsson.
30911
30912 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30913
30914         maint.mk: s/_header_without_use/_sc_header_without_use/
30915         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30916         (sc_prohibit_assert_without_use): Use the new name.
30917         (sc_prohibit_close_stream_without_use): Likewise.
30918         (sc_prohibit_getopt_without_use): Likewise.
30919         (sc_prohibit_quotearg_without_use): Likewise.
30920         (sc_prohibit_quote_without_use): Likewise.
30921         (sc_prohibit_long_options_without_use): Likewise.
30922         (sc_prohibit_inttostr_without_use): Likewise.
30923         (sc_prohibit_ignore_value_without_use): Likewise.
30924         (sc_prohibit_error_without_use): Likewise.
30925         (sc_prohibit_xalloc_without_use): Likewise.
30926         (sc_prohibit_hash_without_use): Likewise.
30927         (sc_prohibit_hash_pjw_without_use): Likewise.
30928         (sc_prohibit_safe_read_without_use): Likewise.
30929         (sc_prohibit_argmatch_without_use): Likewise.
30930         (sc_prohibit_canonicalize_without_use): Likewise.
30931         (sc_prohibit_root_dev_ino_without_use): Likewise.
30932         (sc_prohibit_openat_without_use): Likewise.
30933         (sc_prohibit_c_ctype_without_use): Likewise.
30934         (sc_prohibit_signal_without_use): Likewise.
30935         (sc_prohibit_intprops_without_use): Likewise.
30936
30937 2010-03-30  Eric Blake  <eblake@redhat.com>
30938
30939         maint: improve module indicators
30940         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30941         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30942         columns, and avoid extra macro expansion.
30943
30944         fdopendir: work around FreeBSD bug
30945         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30946         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30947         * modules/dirent (Makefile.am): Substitute it.
30948         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30949         declaration.
30950         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30951         fix.
30952         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30953
30954 2010-03-29  Bruno Haible  <bruno@clisp.org>
30955
30956         Emit #pragma system_header after the inclusion guard, not before.
30957         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30958         guard that spans the entire file, not before. This enables an
30959         optimization in GCC's preprocessor.
30960         * lib/ctype.in.h: Likewise.
30961         * lib/dirent.in.h: Likewise.
30962         * lib/errno.in.h: Likewise.
30963         * lib/float.in.h: Likewise.
30964         * lib/getopt.in.h: Likewise.
30965         * lib/iconv.in.h: Likewise.
30966         * lib/langinfo.in.h: Likewise.
30967         * lib/locale.in.h: Likewise.
30968         * lib/math.in.h: Likewise.
30969         * lib/netdb.in.h: Likewise.
30970         * lib/netinet_in.in.h: Likewise.
30971         * lib/pty.in.h: Likewise.
30972         * lib/sched.in.h: Likewise.
30973         * lib/se-selinux.in.h: Likewise.
30974         * lib/search.in.h: Likewise.
30975         * lib/spawn.in.h: Likewise.
30976         * lib/stdarg.in.h: Likewise.
30977         * lib/stdint.in.h: Likewise.
30978         * lib/string.in.h: Likewise.
30979         * lib/strings.in.h: Likewise.
30980         * lib/sys_file.in.h: Likewise.
30981         * lib/sys_ioctl.in.h: Likewise.
30982         * lib/sys_time.in.h: Likewise.
30983         * lib/sys_times.in.h: Likewise.
30984         * lib/sys_utsname.in.h: Likewise.
30985         * lib/sys_wait.in.h: Likewise.
30986         * lib/sysexits.in.h: Likewise.
30987         * lib/wctype.in.h: Likewise.
30988
30989 2010-03-28  James Youngman  <jay@gnu.org>
30990
30991         save-cwd: don't leak a file descriptor when the caller execs.
30992         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30993         saved file descriptor.
30994         * modules/save-cwd (Depends-on): Depend on cloexec.
30995
30996 2010-03-29  Bruno Haible  <bruno@clisp.org>
30997
30998         Remove vestiges of fts-lgpl module.
30999         * lib/fts_.h: Assume GNULIB_FTS is 1.
31000         * lib/fts.c: Likewise.
31001         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31002
31003 2010-03-28  Bruno Haible  <bruno@clisp.org>
31004
31005         Fix definition of tests witness macro.
31006         * gnulib-tool (func_import): Fix definition of witness macro.
31007
31008 2010-03-28  Bruno Haible  <bruno@clisp.org>
31009
31010         Fix ioctl's protoype on glibc systems.
31011         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31012         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31013         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31014         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31015         signature. If not, arrange to replace the ioctl function.
31016         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31017         REPLACE_IOCTL.
31018         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31019         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31020         Reported by Ludovic Courtès <ludo@gnu.org>.
31021
31022 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31023
31024         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31025         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31026         made it so grep -r --include=GLOB* ... did not work.
31027
31028 2010-03-26  Jim Meyering  <meyering@redhat.com>
31029             Eric Blake  <eblake@redhat.com>
31030
31031         maint.mk: prohibit use of test's -o and -a operators
31032         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31033
31034 2010-03-28  Bruno Haible  <bruno@clisp.org>
31035
31036         Remove unused GNULIB_XYZ macro definitions.
31037         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31038         invocation.
31039
31040 2010-03-28  Bruno Haible  <bruno@clisp.org>
31041
31042         Mark privileged tests modules.
31043         * modules/idpriv-drop-tests (Status): New section.
31044         * modules/idpriv-droptemp-tests (Status): New section.
31045
31046 2010-03-28  Bruno Haible  <bruno@clisp.org>
31047
31048         Split C++ tests into separate tests modules.
31049         * modules/dirent-c++-tests: New file, extracted from
31050         modules/dirent-tests.
31051         * modules/dirent-tests: Depend on it.
31052         * modules/fcntl-h-c++-tests: New file, extracted from
31053         modules/fcntl-h-tests.
31054         * modules/fcntl-h-tests: Depend on it.
31055         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31056         * modules/glob-tests: Depend on it.
31057         * modules/iconv-h-c++-tests: New file, extracted from
31058         modules/iconv-h-tests.
31059         * modules/iconv-h-tests: Depend on it.
31060         * modules/langinfo-c++-tests: New file, extracted from
31061         modules/langinfo-tests.
31062         * modules/langinfo-tests: Depend on it.
31063         * modules/locale-c++-tests: New file, extracted from
31064         modules/locale-tests.
31065         * modules/locale-tests: Depend on it.
31066         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31067         * modules/math-tests: Depend on it.
31068         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31069         * modules/pty-tests: Depend on it.
31070         * modules/search-c++-tests: New file, extracted from
31071         modules/search-tests.
31072         * modules/search-tests: Depend on it.
31073         * modules/signal-c++-tests: New file, extracted from
31074         modules/signal-tests.
31075         * modules/signal-tests: Depend on it.
31076         * modules/spawn-c++-tests: New file, extracted from
31077         modules/spawn-tests.
31078         * modules/spawn-tests: Depend on it.
31079         * modules/stdio-c++-tests: New file, extracted from
31080         modules/stdio-tests.
31081         * modules/stdio-tests: Depend on it.
31082         * modules/stdlib-c++-tests: New file, extracted from
31083         modules/stdlib-tests.
31084         * modules/stdlib-tests: Depend on it.
31085         * modules/string-c++-tests: New file, extracted from
31086         modules/string-tests.
31087         * modules/string-tests: Depend on it.
31088         * modules/sys_ioctl-c++-tests: New file, extracted from
31089         modules/sys_ioctl-tests.
31090         * modules/sys_ioctl-tests: Depend on it.
31091         * modules/sys_select-c++-tests: New file, extracted from
31092         modules/sys_select-tests.
31093         * modules/sys_select-tests: Depend on it.
31094         * modules/sys_socket-c++-tests: New file, extracted from
31095         modules/sys_socket-tests.
31096         * modules/sys_socket-tests: Depend on it.
31097         * modules/sys_stat-c++-tests: New file, extracted from
31098         modules/sys_stat-tests.
31099         * modules/sys_stat-tests: Depend on it.
31100         * modules/sys_time-c++-tests: New file, extracted from
31101         modules/sys_time-tests.
31102         * modules/sys_time-tests: Depend on it.
31103         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31104         * modules/time-tests: Depend on it.
31105         * modules/unistd-c++-tests: New file, extracted from
31106         modules/unistd-tests.
31107         * modules/unistd-tests: Depend on it.
31108         * modules/wchar-c++-tests: New file, extracted from
31109         modules/wchar-tests.
31110         * modules/wchar-tests: Depend on it.
31111         * modules/wctype-c++-tests: New file, extracted from
31112         modules/wctype-tests.
31113         * modules/wctype-tests: Depend on it.
31114         Reported by Simon Josefsson.
31115
31116 2010-03-28  Bruno Haible  <bruno@clisp.org>
31117
31118         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31119         * gnulib-tool (func_exists_module): New function, extracted from
31120         func_verify_module.
31121         (func_verify_module): Use it.
31122         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31123         'foo' only if 'foo' exists.
31124         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31125         module.
31126
31127 2010-03-28  Bruno Haible  <bruno@clisp.org>
31128
31129         gnulib-tool: Add support for special categories of tests.
31130         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31131         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31132         (func_usage): Document them.
31133         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31134         inc_unportable_tests, inc_all_tests): New variables.
31135         (func_acceptable): Consider these variables.
31136         (func_modules_transitive_closure): Make it work when the 'Status' field
31137         consists of multiple words.
31138         (func_import): Store and restore the values of inc_cxx_tests,
31139         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31140         inc_all_tests in gnulib-comp.m4.
31141         (func_create_testdir): Set inc_all_tests to true.
31142         * doc/gnulib.texi (Extra tests modules): New section.
31143         Suggested by Jim Meyering.
31144
31145 2010-03-28  Bruno Haible  <bruno@clisp.org>
31146
31147         ansi-c++-opt: Allow turning off the C++ build by default.
31148         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31149         gl_CXX_CHOICE_DEFAULT_NO is defined.
31150         Requested by Eric Blake.
31151
31152 2010-03-28  Bruno Haible  <bruno@clisp.org>
31153
31154         unistd: Avoid #define replacements in C++ mode.
31155         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31156         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31157         setsockopt, shutdown, select): In C++, attach a warning to the function
31158         if possible, rather than #defining the symbol to a dysfunctional alias.
31159         Reported by John W. Eaton <jwe@gnu.org>.
31160
31161 2010-03-28  Bruno Haible  <bruno@clisp.org>
31162
31163         Fix link errors on mingw.
31164         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31165         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31166         $(LIBSOCKET).
31167         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31168         $(LIBSOCKET).
31169
31170 2010-03-28  Bruno Haible  <bruno@clisp.org>
31171             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31172
31173         lib-ignore: Determine different options for different compilers.
31174         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31175         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31176         Add comments.
31177         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31178         * NEWS: Mention the change.
31179
31180 2010-03-27  Bruno Haible  <bruno@clisp.org>
31181
31182         Remove unused GNULIB_XYZ macro definitions.
31183         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31184         * modules/fseek (configure.ac): Likewise.
31185         * modules/ioctl (configure.ac): Likewise.
31186         * modules/open (configure.ac): Likewise.
31187         * modules/stdlib-safer (configure.ac): Likewise.
31188
31189 2010-03-27  Bruno Haible  <bruno@clisp.org>
31190
31191         Add a remark about certain modules.
31192         * modules/malloc (Comment): New section.
31193         * modules/realloc (Comment): Likewise.
31194         * modules/sigpipe (Comment): Likewise.
31195
31196 2010-03-27  Bruno Haible  <bruno@clisp.org>
31197
31198         Resolve conflict between the two kinds of module indicators.
31199         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31200         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31201         * modules/canonicalize (configure.ac): Invoke
31202         gl_MODULE_INDICATOR_FOR_TESTS.
31203         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31204         GNULIB_XYZ.
31205         * tests/test-dirent-c++.cc: Likewise.
31206         * tests/test-dirent-safer.c: Likewise.
31207         * tests/test-dup2.c: Likewise.
31208         * tests/test-fchdir.c: Likewise.
31209         * tests/test-fcntl-h-c++.cc: Likewise.
31210         * tests/test-getopt.c: Likewise.
31211         * tests/test-getopt.h: Likewise.
31212         * tests/test-langinfo-c++.cc: Likewise.
31213         * tests/test-locale-c++.cc: Likewise.
31214         * tests/test-math-c++.cc: Likewise.
31215         * tests/test-pty-c++.cc: Likewise.
31216         * tests/test-search-c++.cc: Likewise.
31217         * tests/test-signal-c++.cc: Likewise.
31218         * tests/test-spawn-c++.cc: Likewise.
31219         * tests/test-stdio-c++.cc: Likewise.
31220         * tests/test-stdlib-c++.cc: Likewise.
31221         * tests/test-string-c++.cc: Likewise.
31222         * tests/test-sys_ioctl-c++.cc: Likewise.
31223         * tests/test-sys_select-c++.cc: Likewise.
31224         * tests/test-sys_socket-c++.cc: Likewise.
31225         * tests/test-sys_stat-c++.cc: Likewise.
31226         * tests/test-sys_time-c++.cc: Likewise.
31227         * tests/test-time-c++.cc: Likewise.
31228         * tests/test-unistd-c++.cc: Likewise.
31229         * tests/test-wchar-c++.cc: Likewise.
31230         * tests/uninorm/test-u8-nfc.c: Likewise.
31231         * tests/uninorm/test-u8-nfd.c: Likewise.
31232         * tests/uninorm/test-u8-nfkc.c: Likewise.
31233         * tests/uninorm/test-u8-nfkd.c: Likewise.
31234         * tests/uninorm/test-u16-nfc.c: Likewise.
31235         * tests/uninorm/test-u16-nfd.c: Likewise.
31236         * tests/uninorm/test-u16-nfkc.c: Likewise.
31237         * tests/uninorm/test-u16-nfkd.c: Likewise.
31238         * tests/uninorm/test-u32-nfc.c: Likewise.
31239         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31240         * tests/uninorm/test-u32-nfd.c: Likewise.
31241         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31242         * tests/uninorm/test-u32-nfkc.c: Likewise.
31243         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31244         * tests/uninorm/test-u32-nfkd.c: Likewise.
31245         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31246         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31247
31248 2010-03-27  Bruno Haible  <bruno@clisp.org>
31249
31250         Distinguish two kinds of module indicators.
31251         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31252         gl_MODULE_INDICATOR.
31253         (gl_MODULE_INDICATOR): New macro.
31254         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31255         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31256         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31257         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31258         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31259         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31260         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31261         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31262         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31263         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31264         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31265         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31266         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31267         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31268         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31269         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31270         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31271         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31272         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31273         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31274         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31275         * modules/cloexec (configure.ac): Likewise.
31276         * modules/getopt-gnu (configure.ac): Likewise.
31277         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31278         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31279         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31280         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31281
31282 2010-03-27  Bruno Haible  <bruno@clisp.org>
31283
31284         New module description field 'Comment'.
31285         * gnulib-tool: New option --extract-comment.
31286         (func_usage): Document it.
31287         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31288         (func_get_comment): New function.
31289         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31290
31291 2010-03-27  Bruno Haible  <bruno@clisp.org>
31292
31293         Addendum to 2010-02-07 commit.
31294         * gnulib-tool (func_usage): Document --extract-applicability option.
31295
31296 2010-03-27  Bruno Haible  <bruno@clisp.org>
31297
31298         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31299         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31300         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31301         rather than link errors.
31302
31303 2010-03-27  Bruno Haible  <bruno@clisp.org>
31304
31305         Avoid side effects from tests-related modules on the compilation of lib.
31306         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31307         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31308         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31309         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31310         macro.
31311         (func_import): Define a witness macro. Assign it a value that depends
31312         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31313         tests-related modules.
31314         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31315         Reported by Jim Meyering.
31316
31317 2010-03-27  Bruno Haible  <bruno@clisp.org>
31318
31319         Factorize common .m4 code.
31320         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31321         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31322         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31323         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31324         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31325         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31326         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31327         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31328         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31329         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31330         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31331         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31332         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31333         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31334         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31335         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31336         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31337         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31339         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31340         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31341         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31342         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31343         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31344         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31345         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31346         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31347         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31348         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31349         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31350         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31351         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31352
31353 2010-03-27  Bruno Haible  <bruno@clisp.org>
31354
31355         Fix a compilation error on Cygwin with g++ >= 4.3.
31356         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31357         if it is undefined or if we alias it to chmod.
31358         (lstat): Don't warn about the use of this function if it is undefined
31359         or if we alias it to stat.
31360         Reported by Simon Josefsson.
31361
31362 2010-03-27  Bruno Haible  <bruno@clisp.org>
31363
31364         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31365         * modules/getlogin (configure.ac): Update.
31366
31367         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31368         * modules/getlogin_r (configure.ac): Update.
31369
31370         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31371         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31372         * modules/inet_ntop (configure.ac): Update.
31373
31374         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31375         * modules/inet_pton (configure.ac): Update.
31376
31377         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31378         * modules/mbslen (configure.ac): Update.
31379
31380         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31381         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31382         * modules/forkpty (configure.ac): Update.
31383         * modules/openpty (configure.ac): Update.
31384
31385 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31386
31387         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31388         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31389
31390 2010-03-25  Eric Blake  <eblake@redhat.com>
31391
31392         maint: use pragma consistently across replacement headers
31393         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31394         * lib/dirent.in.h (system_header): Likewise.
31395         * lib/errno.in.h (system_header): Likewise.
31396         * lib/float.in.h (system_header): Likewise.
31397         * lib/getopt.in.h (system_header): Likewise.
31398         * lib/iconv.in.h (system_header): Likewise.
31399         * lib/inttypes.in.h (system_header): Likewise.
31400         * lib/langinfo.in.h (system_header): Likewise.
31401         * lib/locale.in.h (system_header): Likewise.
31402         * lib/math.in.h (system_header): Likewise.
31403         * lib/netdb.in.h (system_header): Likewise.
31404         * lib/netinet_in.in.h (system_header): Likewise.
31405         * lib/pty.in.h (system_header): Likewise.
31406         * lib/sched.in.h (system_header): Likewise.
31407         * lib/se-selinux.in.h (system_header): Likewise.
31408         * lib/search.in.h (system_header): Likewise.
31409         * lib/spawn.in.h (system_header): Likewise.
31410         * lib/stdarg.in.h (system_header): Likewise.
31411         * lib/stdint.in.h (system_header): Likewise.
31412         * lib/string.in.h (system_header): Likewise.
31413         * lib/strings.in.h (system_header): Likewise.
31414         * lib/sys_file.in.h (system_header): Likewise.
31415         * lib/sys_ioctl.in.h (system_header): Likewise.
31416         * lib/sys_socket.in.h (system_header): Likewise.
31417         * lib/sys_times.in.h (system_header): Likewise.
31418         * lib/sys_utsname.in.h (system_header): Likewise.
31419         * lib/sys_wait.in.h (system_header): Likewise.
31420         * lib/sysexits.in.h (system_header): Likewise.
31421         * lib/unistd.in.h (system_header): Likewise.
31422         * lib/wctype.in.h (system_header): Likewise.
31423
31424         arpa/inet: fix mingw compilation warning
31425         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31426         Reported by Matthew Bolte.
31427
31428 2010-03-25  Bruno Haible  <bruno@clisp.org>
31429
31430         Avoid collision between gnulib wrapper and libintl wrapper.
31431         * lib/printf.c (printf): Don't define if a printf wrapper is already
31432         defined in intl/printf.c.
31433         Reported by Michel Boaventura <michel@michelboaventura.com>.
31434
31435 2010-03-25  Bruno Haible  <bruno@clisp.org>
31436
31437         Use ANSI C.
31438         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31439
31440 2010-03-25  Bruno Haible  <bruno@clisp.org>
31441
31442         Minor formatting changes.
31443         * lib/acosl.c: Insert space before function argument list.
31444         * lib/argz.c: Likewise.
31445         * lib/asinl.c: Likewise.
31446         * lib/expl.c: Likewise.
31447         * lib/gen-uni-tables.c: Likewise.
31448         * lib/gettext.h: Likewise.
31449         * lib/glthread/lock.h: Likewise.
31450         * lib/tanl.c: Likewise.
31451         * lib/uniname/uniname.c: Likewise.
31452         * tests/test-idpriv-drop.c: Likewise.
31453         * tests/test-idpriv-droptemp.c: Likewise.
31454         * tests/test-lock.c: Likewise.
31455         * tests/test-tls.c: Likewise.
31456         * lib/argp-help.c: Insert space before function-like macro argument
31457         list.
31458         * lib/memcmp.c: Likewise.
31459         * tests/test-base64.c: Likewise.
31460         * lib/localename.c: Insert space before sizeof's argument list.
31461         * lib/safe-alloc.h: Likewise.
31462         * lib/file-set.h: Insert space before macro argument list.
31463         * tests/test-argp.c: Likewise.
31464         * lib/argp-namefrob.h: Insert space before function parameter list.
31465         * lib/getaddrinfo.c: Likewise.
31466         * lib/netdb.in.h: Likewise.
31467         * lib/parse-duration.h: Likewise.
31468         * lib/parse-duration.c: Likewise.
31469         * lib/poll.c: Likewise.
31470         * lib/select.c: Likewise.
31471         * lib/trim.h: Likewise.
31472         * tests/test-usleep.c: Likewise.
31473         * lib/ldexpl.c: Insert space before function parameter list and before
31474         function argument list.
31475         * lib/logl.c: Likewise.
31476         * lib/sqrtl.c: Likewise.
31477         * lib/trim.c: Likewise.
31478         * lib/cosl.c: Use GNU style indentation. Insert space before function
31479         argument list.
31480         * lib/sinl.c: Likewise.
31481         * lib/tsearch.c: Insert space after 'for'.
31482         Reported by Jim Meyering.
31483
31484 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31485
31486         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31487         config header before grepping, as it's not present before
31488         autoreconf/configure are run.  Reported by Simon Josefsson.
31489
31490 2010-03-23  Bruno Haible  <bruno@clisp.org>
31491
31492         pt_chown: Make it work with automake < 1.11.
31493         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31494         Reported by Simon Josefsson.
31495
31496 2010-03-23  Bruno Haible  <bruno@clisp.org>
31497
31498         pt_chown: Don't depend on GPLed modules.
31499         * lib/pt_chown.c: Don't include idpriv.h.
31500         (main): Don't drop privileges.
31501         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31502         Reported by Simon Josefsson.
31503
31504 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31505
31506         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31507         suggestions from karl@freefriends.org (Karl Berry).
31508
31509 2010-03-22  Eric Blake  <eblake@redhat.com>
31510
31511         gethostname: further tweaks
31512         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31513         are overriding gethostname.
31514         Suggested by Bruno Haible.
31515
31516 2010-03-21  Bruno Haible  <bruno@clisp.org>
31517
31518         Fix comments.
31519         * lib/forkpty.c (rpl_forkpty): Fix comment.
31520         * lib/openpty.c (rpl_openpty): Likewise.
31521         Reported by Eric Blake.
31522
31523 2010-03-22  Eric Blake  <eblake@redhat.com>
31524
31525         gethostname: fix build on mingw
31526         * lib/unistd.in.h (includes): Work around fact that mingw
31527         <winsock2.h> re-includes <unistd.h>, by avoiding any
31528         redeclarations if we are being included by <winsock2.h>.
31529         Reported by Matthias Bolte.
31530
31531 2010-03-21  Bruno Haible  <bruno@clisp.org>
31532
31533         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31534         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31535         modifications.
31536         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31537         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31538         provide the replacement.
31539         * modules/forkpty (Depends-on): Add openpty, login_tty.
31540         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31541         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31542         * doc/glibc-functions/forkpty.texi: More supported platforms.
31543         * config/srclist.txt: Add forkpty.c (commented).
31544
31545 2010-03-21  Bruno Haible  <bruno@clisp.org>
31546
31547         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31548         (Makefile.am): Verify that PTY_LIB is defined.
31549
31550         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31551
31552 2010-03-21  Bruno Haible  <bruno@clisp.org>
31553
31554         Tests for module 'login_tty'.
31555         * modules/login_tty-tests: New file.
31556         * tests/test-login_tty.c: New file.
31557
31558         New module 'login_tty'.
31559         * lib/login_tty.c: New file.
31560         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31561         * modules/login_tty: New file.
31562         * doc/glibc-functions/login_tty.texi: Mention the new module.
31563
31564 2010-03-21  Bruno Haible  <bruno@clisp.org>
31565
31566         login_tty: Documentation.
31567         * doc/glibc-functions/login_tty.texi: New file.
31568         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31569
31570 2010-03-21  Bruno Haible  <bruno@clisp.org>
31571
31572         pty: Consistent macro naming.
31573         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31574         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31575         * modules/pty (configure.ac): Update.
31576
31577 2010-03-21  Bruno Haible  <bruno@clisp.org>
31578
31579         Tests for openpty: Make stricter.
31580         * tests/test-openpty.c (main): Add test of canonical processing and
31581         erase.
31582         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31583
31584         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31585         * lib/openpty.c (openpty): New replacement function.
31586         * lib/pty.in.h: Include <termios.h>.
31587         (openpty): Update declaration. Add comments.
31588         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31589         is not declared, arrange to provide the replacement. Check for _getpty
31590         and posix_openpt.
31591         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31592         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31593         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31594         * modules/pty-tests (test_pty_c___LDADD): New variable.
31595         * doc/glibc-functions/openpty.texi: More supported platforms.
31596
31597 2010-03-21  Bruno Haible  <bruno@clisp.org>
31598
31599         setenv: Tweaks.
31600         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31601         the test program.
31602         * doc/posix-functions/setenv.texi: Update platforms list.
31603
31604 2010-03-21  Bruno Haible  <bruno@clisp.org>
31605
31606         New module 'unlockpt'.
31607         * lib/unlockpt.c: New file, from glibc with modifications.
31608         * m4/unlockpt.m4: New file.
31609         * modules/unlockpt: New file.
31610         * lib/stdlib.in.h (unlockpt): New declaration.
31611         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31612         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31613         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31614         HAVE_UNLOCKPT.
31615         * doc/posix-functions/unlockpt.texi: Mention the new module.
31616         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31617         * config/srclist.txt: Add unlockpt.c (commented).
31618
31619 2010-03-21  Jim Meyering  <meyering@redhat.com>
31620
31621         maint.mk: prohibit inclusion of "intprops.h" without use
31622         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31623
31624 2010-03-21  Bruno Haible  <bruno@clisp.org>
31625
31626         New module 'grantpt'.
31627         * lib/grantpt.c: New file, from glibc with modifications.
31628         * m4/grantpt.m4: New file.
31629         * modules/grantpt: New file.
31630         * lib/stdlib.in.h (grantpt): New declaration.
31631         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31632         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31633         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31634         HAVE_GRANTPT.
31635         * doc/posix-functions/grantpt.texi: Mention the new module.
31636         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31637         * config/srclist.txt: Add grantpt.c (commented).
31638
31639 2010-03-21  Bruno Haible  <bruno@clisp.org>
31640
31641         New module 'pt_chown'.
31642         * lib/pt_chown.c: New file, from glibc with modifications.
31643         * lib/pty-private.h: New file, from glibc with modifications.
31644         * modules/pt_chown: New file.
31645         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31646
31647 2010-03-21  Bruno Haible  <bruno@clisp.org>
31648
31649         Tests for module 'ptsname'.
31650         * modules/ptsname-tests: New file.
31651         * tests/test-ptsname.c: New file.
31652
31653         New module 'ptsname'.
31654         * lib/ptsname.c: New file, from glibc with modifications.
31655         * m4/ptsname.m4: New file.
31656         * modules/ptsname: New file.
31657         * lib/stdlib.in.h (ptsname): New declaration.
31658         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31659         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31660         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31661         HAVE_PTSNAME.
31662         * doc/posix-functions/ptsname.texi: Mention the new module.
31663         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31664         * config/srclist.txt: Add ptsname.c (commented).
31665
31666 2010-03-21  Bruno Haible  <bruno@clisp.org>
31667
31668         Tests for module 'ttyname_r'.
31669         * modules/ttyname_r-tests: New file.
31670         * tests/test-ttyname_r.c: New file.
31671
31672         New module 'ttyname_r'.
31673         * lib/ttyname_r.c: New file.
31674         * m4/ttyname_r.m4: New file.
31675         * modules/ttyname_r: New file.
31676         * lib/unistd.in.h (ttyname_r): New declaration.
31677         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31678         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31679         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31680         HAVE_TTYNAME_R.
31681         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31682         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31683
31684 2010-03-20  Bruno Haible  <bruno@clisp.org>
31685
31686         signal: Undefine macro definitions in C++ mode.
31687         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31688         sigfillset): Undefine macro definitions from the system header in C++
31689         mode.
31690         Reported by John W. Eaton <jwe@gnu.org>.
31691
31692 2010-03-20  Bruno Haible  <bruno@clisp.org>
31693
31694         Ensure no #include statements inside extern "C" { ... }.
31695         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31696         contain #include statements.
31697         * lib/time.in.h: Likewise.
31698
31699 2010-03-20  Bruno Haible  <bruno@clisp.org>
31700
31701         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31702         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31703         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31704         Reported by John W. Eaton <jwe@gnu.org>.
31705
31706 2010-03-20  Bruno Haible  <bruno@clisp.org>
31707
31708         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31709         Reported by Jim Meyering.
31710
31711 2010-03-20  Bruno Haible  <bruno@clisp.org>
31712
31713         pipe: Set errno upon failure.
31714         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31715         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31716         errno value in error message.
31717
31718 2010-03-20  Bruno Haible  <bruno@clisp.org>
31719             Jim Meyering  <meyering@redhat.com>
31720
31721         lchown: Avoid "unused variable" warning.
31722         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31723
31724 2010-03-20  Bruno Haible  <bruno@clisp.org>
31725
31726         Work around unlink() bug on MacOS X 10.5.6.
31727         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31728         attempting to unlink a parent directory.
31729         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31730         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31731         activate for the replacement function.
31732         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31733
31734 2010-03-20  Bruno Haible  <bruno@clisp.org>
31735
31736         Fix link errors on Solaris 8.
31737         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31738         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31739
31740 2010-03-19  Jim Meyering  <meyering@redhat.com>
31741
31742         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31743         The _LIBC implementation of build_range_exp correctly honors the
31744         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31745         However, the non-_LIBC implementation would ignore that syntax-bit
31746         flag and return REG_ERANGE unconditionally.
31747         This change makes it honor that flag.
31748         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31749         Make two pointer parameters "const".
31750         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31751         (parse_bracket_exp): Update caller.
31752
31753         regex.m4: correct the reversed range endpoint ([b-a]) test
31754         * m4/regex.m4: When requiring that [b-a] evoke failure,
31755         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31756         test pass once again for x86-based systems.
31757
31758 2010-03-19  Bruno Haible  <bruno@clisp.org>
31759
31760         scandir: Fix link error on Solaris 8.
31761         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31762         macros.
31763
31764 2010-03-19  Bruno Haible  <bruno@clisp.org>
31765
31766         getusershell: Fix documentation.
31767         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31768         module.
31769         * doc/glibc-functions/setusershell.texi: Likewise.
31770
31771         getusershell: Provide declaration, missing on Solaris 9.
31772         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31773         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31774         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31775         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31777         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31778         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31779         HAVE_GETUSERSHELL.
31780         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31781
31782 2010-03-19  Bruno Haible  <bruno@clisp.org>
31783
31784         wctype: Provide iswblank function.
31785         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31786         exists and is fine.
31787         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31788         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31789         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31790         * doc/posix-functions/iswblank.texi: Update.
31791
31792 2010-03-19  Bruno Haible  <bruno@clisp.org>
31793
31794         Tests of module 'pty' in C++ mode.
31795         * modules/pty-tests: New file.
31796         * tests/test-pty-c++.cc: New file.
31797         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31798
31799 2010-03-19  Eric Blake  <eblake@redhat.com>
31800
31801         logb: fix documentation
31802         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31803         1.5 declaration bug.
31804
31805         forkpty, openpty: prefer glibc's const-safe prototype
31806         * lib/forkpty.c (rpl_forkpty): New file.
31807         * lib/openpty.c (rpl_openpty): Likewise.
31808         * modules/forkpty (Files): Distribute it.
31809         * modules/openpty (Files): Likewise.
31810         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31811         check...
31812         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31813         replacement for for non-const BSD signature.
31814         * modules/pty (Makefile.am): Substitute witnesses.
31815         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31816         * tests/test-forkpty.c: Update signature check.
31817         * tests/test-openpty.c: Likewise.
31818         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31819         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31820
31821         forkpty, openpty: split functions into new modules
31822         * modules/pty (Makefile.am): Substitute new witnesses.
31823         (Libraries): Move library detection...
31824         * modules/forkpty: ...into new module.
31825         * modules/openpty: Another new module.
31826         * modules/pty-tests: Rename and split...
31827         * modules/forkpty-tests: ...to this...
31828         * modules/openpty-tests: ...and this.
31829         * tests/test-pty.c: Rename and split...
31830         * tests/test-forkpty.c: ...to this...
31831         * tests/test-openpty.c: ...and this.
31832         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31833         (gl_PTY): Split library searching...
31834         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31835         (gl_FORKPTY, gl_OPENPTY): New macros.
31836         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31837         * NEWS: Mention the split.
31838         * MODULES.html.sh (Misc): Document the modules.
31839         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31840         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31841
31842         pty: improve replacement header
31843         * lib/pty.in.h: New file.
31844         * modules/pty (Files): Ship it.
31845         (Makefile.am): Always build replacement.
31846         * m4/pty.m4: Rename...
31847         * m4/pty_h.m4: ...to this.
31848         (gl_PTY): Modernize setting of witness macros; update check of
31849         forkpty to take proper advantage of cache.
31850         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31851
31852         getopt: avoid compiler warning
31853         * lib/getopt.c (attribute_hidden): Remove unused macro.
31854
31855 2010-03-18  Bruno Haible  <bruno@clisp.org>
31856
31857         Fix link errors on Solaris 8.
31858         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31859         * modules/search-tests (test_search_c___LDADD): Likewise.
31860         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31861         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31862         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31863         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31864         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31865         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31866         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31867
31868 2010-03-18  Bruno Haible  <bruno@clisp.org>
31869
31870         Fix bug introduced on 2010-03-14.
31871         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31872         (gl_SPAWN_H): Require it.
31873         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31874         Reported by Simon Josefsson.
31875
31876 2010-03-18  Bruno Haible  <bruno@clisp.org>
31877
31878         Fix typo introduced on 2009-12-31.
31879         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31880         posix_spawn_file_actions_adddup2.
31881
31882 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31883         and Eric Blake  <eblake@redhat.com>
31884
31885         test-vc-list-files-git: make more robust
31886         * tests/test-vc-list-files-git.sh: Unset problematic environment
31887         variables.  Chain commands together.
31888
31889 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31890
31891         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31892         `AC_CHECK_DECL' invocation.
31893
31894 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31895
31896         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31897         appears before executable statements. Suggested by Petr Sumbera
31898         <Petr.Sumbera@Sun.COM>.
31899
31900 2010-03-14  Bruno Haible  <bruno@clisp.org>
31901
31902         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31903         portability problems. Instead use a simpler test.
31904         (main): Check that invalid arguments are rejected only on Linux.
31905
31906 2010-03-14  Bruno Haible  <bruno@clisp.org>
31907
31908         Fix bug introduced on 2009-12-31.
31909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31910         gl_PREREQ_SYS_H_WINSOCK2 always.
31911         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31912         SYS_SOCKET_H variable.
31913         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31914         Update comments.
31915         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31916         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31917         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31918         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31919         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31920
31921 2010-03-14  Bruno Haible  <bruno@clisp.org>
31922
31923         Fix values returned by sinl, cosl.
31924         * lib/trigl.h: Add specification comments.
31925         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31926         that combines the values from the precomputed table with the values of
31927         the Chebyshev polynomials.
31928
31929 2010-03-14  Bruno Haible  <bruno@clisp.org>
31930
31931         Fix compilation error when modules 'posix_spawn[p]' are not used.
31932         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31933         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31934
31935 2010-03-14  Bruno Haible  <bruno@clisp.org>
31936
31937         Fix compilation error on mingw when module 'time_r' is not used.
31938         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31939         is 1.
31940         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31941         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31942         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31943         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31944
31945 2010-03-14  Bruno Haible  <bruno@clisp.org>
31946
31947         Fix compilation error with Sun C.
31948         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31949         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31950         instead of GCC specific ULONG_LONG_MAX.
31951         * lib/xstrtoll.c: Likewise.
31952         * lib/xstrtoull.c: Likewise.
31953
31954 2010-03-13  Bruno Haible  <bruno@clisp.org>
31955
31956         Allow the user to disable C++ code and tests.
31957         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31958         (gl_PROG_ANSI_CXX): Require it.
31959
31960 2010-03-13  Bruno Haible  <bruno@clisp.org>
31961
31962         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31963         cases.
31964
31965 2010-03-13  Bruno Haible  <bruno@clisp.org>
31966
31967         Test that gnulib does not break the standard C++ headers.
31968         * tests/test-locale-c++2.cc: New file.
31969         * modules/locale-tests (Files): Add it.
31970         (Makefile.am): Compile it for test-locale-c++.
31971         * tests/test-math-c++2.cc: New file.
31972         * modules/math-tests (Files): Add it.
31973         (Makefile.am): Compile it for test-math-c++.
31974         * tests/test-signal-c++2.cc: New file.
31975         * modules/signal-tests (Files): Add it.
31976         (Makefile.am): Compile it for test-signal-c++.
31977         * tests/test-stdio-c++2.cc: New file.
31978         * modules/stdio-tests (Files): Add it.
31979         (Makefile.am): Compile it for test-stdio-c++.
31980         * tests/test-stdlib-c++2.cc: New file.
31981         * modules/stdlib-tests (Files): Add it.
31982         (Makefile.am): Compile it for test-stdlib-c++.
31983         * tests/test-string-c++2.cc: New file.
31984         * modules/string-tests (Files): Add it.
31985         (Makefile.am): Compile it for test-string-c++.
31986         * tests/test-time-c++2.cc: New file.
31987         * modules/time-tests (Files): Add it.
31988         (Makefile.am): Compile it for test-time-c++.
31989         Reported by John W. Eaton <jwe@gnu.org>.
31990
31991 2010-03-13  Bruno Haible  <bruno@clisp.org>
31992
31993         * gnulib-tool (func_usage): Clarify which options are available for
31994         --create-testdir and --create-megatestdir.
31995
31996 2010-03-13  Bruno Haible  <bruno@clisp.org>
31997
31998         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31999         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32000         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32001         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32002         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32003         when appropriate.
32004         Reported by Jim Meyering.
32005
32006 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32007
32008         * gnulib-tool (func_import): Explain origin of code.
32009
32010 2010-03-12  Bruno Haible  <bruno@clisp.org>
32011
32012         Fix problem with automake's definition of CXXLINK.
32013         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32014         Reported by Simon Josefsson and Ludovic Courtès.
32015
32016 2010-03-12  Bruno Haible  <bruno@clisp.org>
32017
32018         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32019         stable releases.
32020
32021 2010-03-11  Bruno Haible  <bruno@clisp.org>
32022
32023         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32024         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32025         whether the system provides one variant or multiple variants of the
32026         function.
32027         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32028         C++ compilers.
32029         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32030         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32031         Reported by Jim Meyering.
32032
32033 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32034
32035         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32036
32037 2010-03-08  Bruno Haible  <bruno@clisp.org>
32038
32039         gnulib-tool: Add support for --libtool in --create-testdir.
32040         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32041         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32042
32043 2010-03-08  Eric Blake  <eblake@redhat.com>
32044
32045         gnulib-tool.texi: mention possibility of git submodule
32046         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32047         submodules.
32048         * doc/.gitignore: Ignore another generated file.
32049
32050 2010-03-08  Karl Berry  <karl@gnu.org>
32051
32052         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32053         of committing gnulib files while skipping others.
32054
32055 2010-03-07  Bruno Haible  <bruno@clisp.org>
32056
32057         Tests of module 'wctype' in C++ mode.
32058         * tests/test-wctype-c++.cc: New file.
32059         * modules/wctype-tests (Files): Add it and tests/signature.h.
32060         (Depends-on): Add ansi-c++-opt.
32061         (Makefile.am): Arrange to compile and run test-wctype-c++.
32062
32063         Tests of module 'wchar' in C++ mode.
32064         * tests/test-wchar-c++.cc: New file.
32065         * modules/wchar-tests (Files): Add it and tests/signature.h.
32066         (Depends-on): Add ansi-c++-opt.
32067         (Makefile.am): Arrange to compile and run test-wchar-c++.
32068         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32069         gl_MODULE_INDICATOR.
32070
32071         Tests of module 'unistd' in C++ mode.
32072         * tests/test-unistd-c++.cc: New file.
32073         * modules/unistd-tests (Files): Add it and tests/signature.h.
32074         (Depends-on): Add ansi-c++-opt.
32075         (Makefile.am): Arrange to compile and run test-unistd-c++.
32076         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32077         gl_MODULE_INDICATOR.
32078
32079         Tests of module 'time' in C++ mode.
32080         * tests/test-time-c++.cc: New file.
32081         * modules/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-time-c++.
32084         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32085
32086         Tests of module 'sys_time' in C++ mode.
32087         * tests/test-sys_time-c++.cc: New file.
32088         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32089         (Depends-on): Add ansi-c++-opt.
32090         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32091         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32092         gl_MODULE_INDICATOR.
32093
32094         Tests of module 'sys_stat' in C++ mode.
32095         * tests/test-sys_stat-c++.cc: New file.
32096         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32097         (Depends-on): Add ansi-c++-opt.
32098         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32099         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32100         gl_MODULE_INDICATOR.
32101
32102         Tests of module 'sys_socket' in C++ mode.
32103         * tests/test-sys_socket-c++.cc: New file.
32104         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32105         (Depends-on): Add ansi-c++-opt.
32106         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32107         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32108         gl_MODULE_INDICATOR.
32109
32110         Tests of module 'sys_select' in C++ mode.
32111         * tests/test-sys_select-c++.cc: New file.
32112         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32113         (Depends-on): Add ansi-c++-opt.
32114         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32115         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32116         gl_MODULE_INDICATOR.
32117
32118         Tests of module 'sys_ioctl' in C++ mode.
32119         * tests/test-sys_ioctl-c++.cc: New file.
32120         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32121         (Depends-on): Add ansi-c++-opt.
32122         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32123         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32124         gl_MODULE_INDICATOR.
32125
32126         Tests of module 'string' in C++ mode.
32127         * tests/test-string-c++.cc: New file.
32128         * modules/string-tests (Files): Add it and tests/signature.h.
32129         (Depends-on): Add ansi-c++-opt.
32130         (Makefile.am): Arrange to compile and run test-string-c++.
32131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32132         gl_MODULE_INDICATOR.
32133
32134         Tests of module 'stdlib' in C++ mode.
32135         * tests/test-stdlib-c++.cc: New file.
32136         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32137         (Depends-on): Add ansi-c++-opt.
32138         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32139         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32140         gl_MODULE_INDICATOR.
32141
32142         Tests of module 'stdio' in C++ mode.
32143         * tests/test-stdio-c++.cc: New file.
32144         * modules/stdio-tests (Files): Add it and tests/signature.h.
32145         (Depends-on): Add ansi-c++-opt.
32146         (Makefile.am): Arrange to compile and run test-stdio-c++.
32147         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32148         gl_MODULE_INDICATOR.
32149
32150         Tests of module 'spawn' in C++ mode.
32151         * tests/test-spawn-c++.cc: New file.
32152         * modules/spawn-tests (Files): Add it and tests/signature.h.
32153         (Depends-on): Add ansi-c++-opt.
32154         (Makefile.am): Arrange to compile and run test-spawn-c++.
32155         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32156         gl_MODULE_INDICATOR.
32157
32158         Tests of module 'signal' in C++ mode.
32159         * tests/test-signal-c++.cc: New file.
32160         * modules/signal-tests (Files): Add it and tests/signature.h.
32161         (Depends-on): Add ansi-c++-opt.
32162         (Makefile.am): Arrange to compile and run test-signal-c++.
32163         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32164         gl_MODULE_INDICATOR.
32165
32166         Tests of module 'search' in C++ mode.
32167         * tests/test-search-c++.cc: New file.
32168         * modules/search-tests (Files): Add it and tests/signature.h.
32169         (Depends-on): Add ansi-c++-opt.
32170         (Makefile.am): Arrange to compile and run test-search-c++.
32171         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32172         gl_MODULE_INDICATOR.
32173
32174         Tests of module 'math' in C++ mode.
32175         * tests/test-math-c++.cc: New file.
32176         * modules/math-tests (Files): Add it and tests/signature.h.
32177         (Depends-on): Add ansi-c++-opt.
32178         (Makefile.am): Arrange to compile and run test-math-c++.
32179         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32180
32181         Tests of module 'locale' in C++ mode.
32182         * tests/test-locale-c++.cc: New file.
32183         * modules/locale-tests (Files): Add it and tests/signature.h.
32184         (Depends-on): Add ansi-c++-opt.
32185         (Makefile.am): Arrange to compile and run test-locale-c++.
32186         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32187         gl_MODULE_INDICATOR.
32188
32189         Tests of module 'langinfo' in C++ mode.
32190         * tests/test-langinfo-c++.cc: New file.
32191         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32192         (Depends-on): Add ansi-c++-opt.
32193         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32194         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32195         gl_MODULE_INDICATOR.
32196
32197         Tests of module 'iconv-h' in C++ mode.
32198         * tests/test-iconv-h-c++.cc: New file.
32199         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32200         (Depends-on): Add ansi-c++-opt.
32201         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32202
32203         Tests of module 'glob' in C++ mode.
32204         * tests/test-glob-c++.cc: New file.
32205         * modules/glob-tests (Files): Add it.
32206         (Depends-on): Add ansi-c++-opt.
32207         (Makefile.am): Arrange to compile and run test-glob-c++.
32208
32209         Tests of module 'fcntl-h' in C++ mode.
32210         * tests/test-fcntl-h-c++.cc: New file.
32211         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32212         (Depends-on): Add ansi-c++-opt.
32213         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32214         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32215         gl_MODULE_INDICATOR.
32216
32217         Tests of module 'dirent' in C++ mode.
32218         * tests/test-dirent-c++.cc: New file.
32219         * modules/dirent-tests (Files): Add it and tests/signature.h.
32220         (Depends-on): Add ansi-c++-opt.
32221         (Makefile.am): Arrange to compile and run test-dirent-c++.
32222         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32223         gl_MODULE_INDICATOR.
32224
32225         New module 'ansi-c++-opt'.
32226         * modules/ansi-c++-opt: New file.
32227         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32228
32229         Document C++ namespace mode.
32230         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32231
32232         wctype: Avoid #define replacements in C++ mode.
32233         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32234         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32235         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32236         In C++, define a namespaced alias symbol.
32237         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32238         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32239         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32240         rule.
32241
32242         wchar: Avoid #define replacements in C++ mode.
32243         * lib/wchar.in.h: Include c++defs.h.
32244         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32245         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32246         symbol.
32247         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32248         * modules/wchar (Depends-on): Add c++defs.
32249         (Makefile.am): Update wchar.h rule.
32250
32251         unistd: Avoid #define replacements in C++ mode.
32252         * lib/unistd.in.h: Include c++defs.h.
32253         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32254         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32255         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32256         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32257         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32258         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32259         symbol.
32260         (environ): Update.
32261         * modules/unistd (Depends-on): Add c++defs.
32262         (Makefile.am): Update unistd.h rule.
32263
32264         time: Avoid #define replacements in C++ mode.
32265         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32266         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32267         define a namespaced alias symbol.
32268         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32269         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32270         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32271         * modules/time (Depends-on): Add c++defs, warn-on-use.
32272         (Makefile.am): Update time.h rule.
32273         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32274         * modules/nanosleep (configure.ac): Likewise.
32275         * modules/strptime (configure.ac): Likewise.
32276         * modules/timegm (configure.ac): Likewise.
32277
32278         sys_time: Avoid #define replacements in C++ mode.
32279         * lib/sys_time.in.h: Include c++defs.h.
32280         (gettimeofday): In C++, define a namespaced alias symbol.
32281         * modules/sys_time (Depends-on): Add c++defs.
32282         (Makefile.am): Update sys/time.h rule.
32283
32284         sys_stat: Avoid #define replacements in C++ mode.
32285         * lib/sys_stat.in.h: Include c++defs.h.
32286         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32287         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32288         namespaced alias symbol.
32289         In C++, define a namespaced alias symbol.
32290         * modules/sys_stat (Depends-on): Add c++defs.
32291         (Makefile.am): Update sys/stat.h rule.
32292
32293         sys_socket: Avoid #define replacements in C++ mode.
32294         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32295         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32296         definitions also when the system has a <sys/socket.h>.
32297         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32298         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32299         In C++, define a namespaced alias symbol.
32300         * modules/sys_socket (Depends-on): Add c++defs.
32301         (Makefile.am): Update sys/socket.h rule.
32302
32303         sys_select: Avoid #define replacements in C++ mode.
32304         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32305         definitions also when the system has a <sys/select.h>.
32306         (select): In C++, define a namespaced alias symbol.
32307         * modules/sys_select (Depends-on): Add c++defs.
32308         (Makefile.am): Update sys/select.h rule.
32309
32310         sys_ioctl: Avoid #define replacements in C++ mode.
32311         * lib/sys_ioctl.in.h: Include c++defs.h.
32312         (ioctl): In C++, define a namespaced alias symbol.
32313         * modules/sys_ioctl (Depends-on): Add c++defs.
32314         (Makefile.am): Update sys/ioctl.h rule.
32315
32316         string: Avoid #define replacements in C++ mode.
32317         * lib/string.in.h: Include c++defs.h.
32318         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32319         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32320         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32321         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32322         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32323         * modules/string (Depends-on): Add c++defs.
32324         (Makefile.am): Update string.h rule.
32325
32326         stdlib: Avoid #define replacements in C++ mode.
32327         * lib/stdlib.in.h: Include c++defs.h.
32328         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32329         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32330         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32331         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32332         symbol.
32333         * modules/stdlib (Depends-on): Add c++defs.
32334         (Makefile.am): Update stdlib.h rule.
32335
32336         stdio: Avoid #define replacements in C++ mode.
32337         * lib/stdio.in.h: Include c++defs.h.
32338         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32339         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32340         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32341         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32342         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32343         namespaced alias symbol.
32344         * modules/stdio (Depends-on): Add c++defs.
32345         (Makefile.am): Update stdio.h rule.
32346
32347         spawn: Avoid #define replacements in C++ mode.
32348         * lib/spawn.in.h: Include c++defs.h.
32349         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32350         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32351         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32352         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32353         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32354         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32355         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32356         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32357         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32358         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32359         In C++, define a namespaced alias symbol.
32360         * modules/spawn (Depends-on): Add c++defs.
32361         (Makefile.am): Update spawn.h rule.
32362
32363         signal: Avoid #define replacements in C++ mode.
32364         * lib/signal.in.h: Include c++defs.h.
32365         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32366         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32367         namespaced alias symbol.
32368         * modules/signal (Depends-on): Add c++defs.
32369         (Makefile.am): Update signal.h rule.
32370
32371         search: Avoid #define replacements in C++ mode.
32372         * lib/search.in.h: Include c++defs.h.
32373         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32374         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32375         symbol.
32376         * modules/search (Depends-on): Add c++defs.
32377         (Makefile.am): Update search.h rule.
32378
32379         math: Avoid #define replacements in C++ mode.
32380         * lib/math.in.h: Include c++defs.h.
32381         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32382         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32383         trunc, truncl): In C++, define a namespaced alias symbol.
32384         * modules/math (Depends-on): Add c++defs.
32385         (Makefile.am): Update math.h rule.
32386
32387         locale: Avoid #define replacements in C++ mode.
32388         * lib/locale.in.h: Include c++defs.h.
32389         (duplocale): In C++, define a namespaced alias symbol.
32390         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32391         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32392         * modules/locale (Depends-on): Add c++defs.
32393         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32394
32395         langinfo: Avoid #define replacements in C++ mode.
32396         * lib/langinfo.in.h: Include c++defs.h.
32397         (nl_langinfo): In C++, define a namespaced alias symbol.
32398         * modules/langinfo (Depends-on): Add c++defs.
32399         (Makefile.am): Update langinfo.h rule.
32400
32401         iconv-h: Avoid #define replacements in C++ mode.
32402         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32403         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32404         symbol.
32405         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32406         whenever iconv is present.
32407         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32408         (Makefile.am): Update iconv.h rule.
32409
32410         glob: Avoid #define replacements in C++ mode.
32411         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32412         (_gl_glob_errfunc_fn): New type.
32413         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32414         symbol.
32415         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32416         (Makefile.am): Update glob.h rule.
32417
32418         fcntl-h: Avoid #define replacements in C++ mode.
32419         * lib/fcntl.in.h: Include c++defs.h.
32420         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32421         * modules/fcntl-h (Depends-on): Add c++defs.
32422         (Makefile.am): Update fcntl.h rule.
32423
32424         dirent: Avoid #define replacements in C++ mode.
32425         * lib/dirent.in.h: Include c++defs.h.
32426         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32427         namespaced alias symbol.
32428         (dirfd): Update declaration.
32429         * modules/dirent (Depends-on): Add c++defs.
32430         (Makefile.am): Update dirent.h rule.
32431
32432         ctype: Make it usable in C++ code.
32433         * lib/ctype.in.h: Include c++defs.h.
32434         (isblank): Declare as extern "C".
32435         * modules/ctype (Depends-on): Add c++defs.
32436         (Makefile.am): Update ctype.h rule.
32437
32438         New module 'c++defs'.
32439         * modules/c++defs: New file.
32440         * build-aux/c++defs.h: New file.
32441         Reported by John W. Eaton <jwe@gnu.org>.
32442
32443 2010-03-07  Bruno Haible  <bruno@clisp.org>
32444
32445         logb: Provide missing declaration for Cygwin.
32446         * lib/math.in.h (logb): New declaration.
32447         * m4/logb.m4: New file.
32448         * modules/logb (Files): Add m4/logb.m4.
32449         (Depends-on): Add math.
32450         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32451         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32453         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32454         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32455
32456 2010-03-07  Bruno Haible  <bruno@clisp.org>
32457
32458         Fix test-cond link error.
32459         * tests/test-cond.c: Include <stdio.h>.
32460
32461 2010-03-07  Bruno Haible  <bruno@clisp.org>
32462
32463         Fix test-dirent-safer link error.
32464         * modules/dirent-safer-tests (Makefile.am): Define
32465         test_dirent_safer_LDADD.
32466
32467 2010-03-07  Bruno Haible  <bruno@clisp.org>
32468
32469         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32470         among default module list.
32471
32472 2010-03-07  Bruno Haible  <bruno@clisp.org>
32473
32474         Fix link error on platforms with GNU libiconv.
32475         * modules/unistr/u8-strcoll-tests (Makefile): Define
32476         test_u8_strcoll_LDADD.
32477         * modules/unistr/u16-strcoll-tests (Makefile): Define
32478         test_u16_strcoll_LDADD.
32479         * modules/unistr/u32-strcoll-tests (Makefile): Define
32480         test_u32_strcoll_LDADD.
32481
32482 2010-03-07  Bruno Haible  <bruno@clisp.org>
32483
32484         Use POSIX declarations for socket functions.
32485         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32486         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32487         rpl_sendto): Change declaration to match POSIX.
32488         * lib/connect.c (rpl_connect): Likewise.
32489         * lib/accept.c (rpl_accept): Likewise.
32490         * lib/bind.c (rpl_bind): Likewise.
32491         * lib/getpeername.c (rpl_getpeername): Likewise.
32492         * lib/getsockname.c (rpl_getsockname): Likewise.
32493         * lib/recv.c (rpl_recv): Likewise.
32494         * lib/send.c (rpl_send): Likewise.
32495         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32496         * lib/sendto.c (rpl_sendto): Likewise.
32497
32498 2010-03-06  Bruno Haible  <bruno@clisp.org>
32499
32500         Clarify access, euidaccess, faccessat.
32501         * doc/posix-functions/faccessat.texi: Mention security problem under
32502         "Other problems", not "Portability problems".
32503         * doc/posix-functions/access.texi: Likewise. Mention a related security
32504         problem.
32505         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32506         * lib/euidaccess.c: Add comments about platforms.
32507         * lib/unistd.in.h (access, euidaccess): Add warnings.
32508
32509 2010-03-07  Bruno Haible  <bruno@clisp.org>
32510
32511         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32512         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32513         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32514         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32515         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32516         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32517         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32518         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32519         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32520         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32521         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32522         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32523         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32524         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32525         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32526         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32527         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32528         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32529         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32530         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32531         Likewise.
32532         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32533         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32534         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32535         Likewise.
32536         * tests/test-spawn.c (main): Make it work when
32537         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32538
32539 2010-03-07  Bruno Haible  <bruno@clisp.org>
32540
32541         Fix incorrect Makefile.am generation in German locale.
32542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32543         Execute sed command with character range in C locale.
32544
32545 2010-03-06  Bruno Haible  <bruno@clisp.org>
32546
32547         Tests for module 'iconv-h'.
32548         * modules/iconv-h-tests: New file.
32549         * tests/test-iconv-h.c: New file.
32550
32551         New module 'iconv-h'.
32552         * modules/iconv-h: New file.
32553         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32554         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32555         (configure.ac): Remove gl_ICONV_H.
32556         (Makefile.am): Remove rule for iconv.h.
32557
32558 2010-03-06  Bruno Haible  <bruno@clisp.org>
32559
32560         More consistent naming of *.m4 files.
32561         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32562         * modules/wctype (Files): Update.
32563
32564         More consistent naming of *.m4 files.
32565         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32566         * modules/wchar (Files): Update.
32567
32568 2010-03-06  Jim Meyering  <meyering@redhat.com>
32569
32570         euidaccess: relax license to LGPLv2+
32571         * modules/euidaccess (License): Relax to LGPLv2+.
32572
32573 2010-03-06  Bruno Haible  <bruno@clisp.org>
32574
32575         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32576         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32577         (Makefile.am): Augment lib_SOURCES instead.
32578
32579 2010-03-04  Jim Meyering  <meyering@redhat.com>
32580
32581         utime: remove obsolete module
32582         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32583         unnecessary for years, and has been marked as obsolete for 10 months.
32584         * modules/utime: Remove file.
32585         * lib/utime.c: Remove file.
32586         * m4/utime.m4: Remove file.
32587         * m4/utimes-null.m4: Remove file.
32588         * doc/posix-functions/utime.texi (utime): Remove reference to
32589         the module.  Move the sole "fixed by gnulib" item into the
32590         "problems not fixed by Gnulib" list.
32591         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32592
32593 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32594
32595         * modules/exit (License): Relax license to LGPLv2+.
32596         (Status): Mark as obsolete.
32597         * NEWS: Mention deprecated 'exit' module.
32598         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32599         of now obsolete 'exit'.
32600
32601 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32602
32603         fts-lgpl: remove unused module
32604         * modules/fts-lgpl: Remove.
32605         * MODULES.html.sh (func_all_modules): Adjust.
32606         * check-module (find_included_lib_files): Adjust.
32607         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32608
32609 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32610
32611         copy-acl: enhance Solaris ACL error handling
32612         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32613         * lib/set-mode-acl.c (qset_acl): Likewise.
32614
32615 2010-03-02  Bruno Haible  <bruno@clisp.org>
32616
32617         spawn: Don't override the system defined values on FreeBSD 8.
32618         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32619         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32620         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32621         if HAVE_POSIX_SPAWN is 1.
32622         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32623
32624 2010-03-01  Bruno Haible  <bruno@clisp.org>
32625
32626         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32627         regarding Automake.
32628
32629 2010-02-25  Bruno Haible  <bruno@clisp.org>
32630
32631         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32632         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32633         setting, not afterwards.
32634         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32635
32636 2010-02-24  Eric Blake  <eblake@redhat.com>
32637
32638         bootstrap, git-version-gen: use timestamp
32639         * build-aux/git-version-gen (scriptversion): Force UTC.
32640         * build-aux/bootstrap (scriptversion): New variable.
32641
32642         bootstrap: allow older git
32643         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32644         older than 1.6.4.  Requested by the libvirt project.
32645
32646 2010-02-23  Eric Blake  <eblake@redhat.com>
32647
32648         warn-on-use: work with old autoconf
32649         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32650         AS_VAR semantics of autoconf 2.60.
32651         Reported by Bruno Haible.
32652
32653         bootstrap: improve some comments
32654         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32655         clarification comments.
32656
32657         gettimeofday: provide correct function
32658         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32659         when replacement is declared, otherwise provide gettimeofday.
32660         Reported by Michael Goffioul.
32661
32662 2010-02-23  Jim Meyering  <meyering@redhat.com>
32663
32664         lib-ignore: relax license to "unlimited", not LGPLv2+
32665         * modules/lib-ignore (License): Relax to "unlimited".
32666
32667 2010-02-23  Jim Meyering  <meyering@redhat.com>
32668
32669         lib-ignore: relax license to LGPLv2+
32670         * modules/lib-ignore (License): Relax to LGPLv2+.
32671
32672 2010-02-22  Eric Blake  <eblake@redhat.com>
32673
32674         lseek: avoid bash 3.2 broken pipe bug
32675         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32676         warning from bash 3.2.
32677         Reported by Ben Pfaff, with analysis from Bruno Haible.
32678
32679         bootstrap: support non-FSF copyright holder
32680         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32681         bootstrap.conf override of COPYRIGHT_HOLDER.
32682         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32683
32684         bootstrap: interoperate with gettext 0.14.1
32685         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32686
32687         bootstrap: allow for alternate submodule location
32688         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32689         hardcoding submodule location.
32690         (gnulib_mk): Allow direct use of Makefile.am.
32691
32692         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32693         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32694         rather than reconfiguring where the submodule points.
32695
32696         gettimeofday: restore support for platforms that lack function
32697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32698         replacement if function is missing.
32699         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32700         * modules/sys_time (Makefile.am): Substitute it.
32701         * lib/sys_time.in.h (gettimeofday): Check it.
32702         Reported by Michael Goffioul.
32703
32704 2010-02-21  Bruno Haible  <bruno@clisp.org>
32705
32706         * lib/stdio.in.h (obstack_printf): Fix typo.
32707
32708 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32709
32710         vc-list-files: use bzr ls's -R option
32711         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32712         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32713
32714 2010-02-21  Jim Meyering  <meyering@redhat.com>
32715
32716         init.sh: fix EXEEXT shims to work also for names like test-prog
32717         * tests/init.sh: Re-exec a better shell, when needed.
32718         If the current shell lacks support for posix $(...), an init.sh-using
32719         test will now try to find a shell that supports that.  If EXEEXT is
32720         nonempty, we also require support for hyphen-in-alias-name and shell
32721         substitutions like ${var#glob}.  Failure to find such a shell results
32722         in a skipped test.
32723
32724 2010-02-21  Bruno Haible  <bruno@clisp.org>
32725
32726         Really work around around "broken pipe" error message from bash 3.2.
32727         * gnulib-tool (func_reset_sigpipe): Remove function.
32728         (echo): In bash 3.2, define to a function that uses printf.
32729         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32730
32731 2010-02-20  Bruno Haible  <bruno@clisp.org>
32732
32733         Restore support for automake 1.9.6 with autoconf 2.61.
32734         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32735         Reported by James Youngman <jay@gnu.org>.
32736
32737 2010-02-20  Bruno Haible  <bruno@clisp.org>
32738
32739         Improve *printf warning condition.
32740         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32741         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32742         and the function is overridden due to SIGPIPE emulation.
32743
32744 2010-02-20  Bruno Haible  <bruno@clisp.org>
32745
32746         * lib/stdio.in.h: Tweak comments.
32747
32748 2010-02-19  Bruno Haible  <bruno@clisp.org>
32749
32750         Make it easier to find modules. New gnulib-tool option '--find'.
32751         * gnulib-tool: New option --find.
32752         (func_usage): Document it.
32753         (func_sanitize_modulelist): New function, extracted from
32754         func_all_modules.
32755         (func_all_modules): Invoke it.
32756         * doc/gnulib-tool.texi (Which modules?): New node.
32757
32758 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32759
32760         * lib/sys_select.in.h: Provide select replacement even if
32761         sys/select.h exists on a system, for Interix.
32762
32763 2010-02-18  Jim Meyering  <meyering@redhat.com>
32764
32765         init.sh: don't use $(...) just yet
32766         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32767         to accommodate e.g., Solaris' /bin/sh.
32768
32769 2010-02-17  Bruno Haible  <bruno@clisp.org>
32770
32771         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32772         Reported by Ludovic Courtès <ludo@gnu.org>.
32773
32774 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32775
32776         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32777         linking with -lintl.
32778
32779 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32780
32781         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32782         if not provided by the system's netdb.h.  Reported by
32783         ludo@gnu.org (Ludovic Courtès).
32784
32785 2010-02-15  Jim Meyering  <meyering@redhat.com>
32786
32787         init.sh: improve portability and efficiency
32788         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32789         "dummy" in a for loop.
32790         Use '!', not '^' to select the complement of a character set used
32791         in a "case" statement.
32792         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32793         Suggestions from Eric Blake.
32794
32795         init.sh: automatically accommodate programs with the .exe suffix
32796         Automatically arrange for an invocation of "prog" to execute the
32797         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32798         may use the simpler "prog", yet still work when built on a system
32799         that requires specifying the added suffix.
32800         Do this by constructing a function named "prog" that invokes
32801         "prog.exe" for each .exe file in selected directories.
32802         * tests/init.sh (find_exe_basenames_): New function.
32803         (create_exe_shim_functions_): New function.
32804         (path_prepend_): Use it.
32805
32806         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32807         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32808         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32809
32810 2010-02-14  Jim Meyering  <meyering@redhat.com>
32811
32812         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32813         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32814         (sc_prohibit_hash_pjw_without_use): New rule.
32815
32816         maint.mk: allow the default upload destination dir to be overridden
32817         * top/maint.mk (upload_dest_dir_): Define with a default that
32818         preserves the status quo.
32819         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32820         Reported by Peter Simons.
32821
32822         maint.mk: prohibit inclusion of "hash.h" without_use
32823         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32824
32825 2010-02-10  Jim Meyering  <meyering@redhat.com>
32826
32827         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32828         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32829
32830 2010-02-09  Eric Blake  <ebb9@byu.net>
32831         and Bruno Haible  <bruno@clisp.org>
32832
32833         obstack-printf-posix: ensure declaration
32834         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32835         extracted from gl_FUNC_OBSTACK_PRINTF.
32836         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32837         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32838         Likewise.
32839         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32840         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32841         0.
32842
32843 2010-02-08  Bruno Haible  <bruno@clisp.org>
32844
32845         gnulib-tool: Fix typo in 2010-02-07 commit.
32846         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32847         Reported by Eric Blake.
32848
32849 2010-02-07  Bruno Haible  <bruno@clisp.org>
32850
32851         gnulib-tool: Fix up caching patches.
32852         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32853         option --no-cache. Use associative arrays when supported by the shell.
32854         (sed_comments): New variable.
32855         (modcache): Renamed from do_cache.
32856         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32857         abbreviate unnecessarily.
32858         (have_associative): New variable.
32859         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32860         way also for ksh and zsh.
32861         (func_init_sed_convert_to_cache_statements): New function, extracted
32862         from func_cache_lookup_module. Add support for associative arrays.
32863         Don't set the c_MODULE_cached variable here. Ignore all lines before
32864         the first field header. Remove only the final newline, not all trailing
32865         newlines. Support empty fields correctly. Limit the use of 'eval' to
32866         assignments.
32867         (func_get_description, func_get_status, func_get_notice,
32868         func_get_applicability, func_get_filelist, func_get_dependencies,
32869         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32870         func_get_automake_snippet, func_get_include_directive,
32871         func_get_link_directive, func_get_license, func_get_maintainer):
32872         Update documentation. List the unoptimized code first. Add support for
32873         associative arrays. Limit the use of 'eval' to assignments.
32874         (func_get_applicability): Undo stylistic pessimisations.
32875         (func_get_automake_snippet, func_get_include_directive): Reduce code
32876         duplication.
32877         (func_modules_transitive_closure, func_modules_add_dummy,
32878         func_modules_notice, func_modules_to_filelist, func_add_file,
32879         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32880         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32881         func_create_testdir, func_create_megatestdir): Update documentation.
32882
32883 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32884
32885         * gnulib-tool (func_cache_lookup_module): Store the module name
32886         belonging to the cache variable; error out if two different
32887         module names map to the same cache variable name.
32888
32889 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32890
32891         gnulib-tool: Make caching optional.
32892         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32893         Update matching short versions of --no-changelog.
32894         (func_usage): Update.
32895         (sed_extract_cache_prog): Renamed from ...
32896         (sed_extract_prog): ... this; revert to old extraction script.
32897         (func_get_description, func_get_status)
32898         (func_get_notice, func_get_applicability, func_get_filelist)
32899         (func_get_dependencies, func_get_autoconf_early_snippet)
32900         (func_get_autoconf_snippet, func_get_automake_snippet)
32901         (func_get_include_directive, func_get_link_directive)
32902         (func_get_license, func_get_maintainer): If $do_cache is false,
32903         use old, non-caching extraction scripts.
32904         Suggestion by Bruno Haible.
32905
32906 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32907
32908         gnulib-tool: cache module metainformation.
32909         * gnulib-tool (sed_extract_prog): Match newline before each
32910         header, and rewrite header to a shell variable suffix.
32911         (func_cache_var, func_cache_lookup_module): New functions,
32912         to turn a module name into a cache variable prefix, and to
32913         look up and cache module metainformation.
32914         (func_get_description, func_get_status)
32915         (func_get_notice, func_get_applicability, func_get_filelist)
32916         (func_get_dependencies, func_get_autoconf_early_snippet)
32917         (func_get_autoconf_snippet, func_get_automake_snippet)
32918         (func_get_include_directive, func_get_link_directive)
32919         (func_get_license, func_get_maintainer): Use
32920         func_cache_lookup_module.
32921
32922 2010-02-07  Bruno Haible  <bruno@clisp.org>
32923
32924         fnctl: Fix missing dependency.
32925         * modules/fcntl (Depends-on): Add getdtablesize.
32926         Reported by John W. Eaton <jwe@gnu.org>.
32927
32928 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32929
32930         Argp: fix recognition of short alias options.
32931
32932         * lib/argp-parse.c (convert_options): Fix improper use of
32933         `|' between character values.
32934         * tests/test-argp.c (group1_option): New alias option
32935         --read (-r).
32936         (group1_parser): Special handling for 'r'.
32937         (test15): New test case.
32938         (test_fun): Add test15.
32939         * tests/test-argp-2.sh: Update expected --help and --usage
32940         outputs.
32941
32942 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32943
32944         * tests/test-argp.c: Fix indentation.
32945
32946 2010-02-04  Eric Blake  <ebb9@byu.net>
32947
32948         gettimeofday: expose type of second argument
32949         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32950         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32951         * tests/test-gettimeofday.c: Use it to silence warning.
32952         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32953         the issue.
32954
32955 2010-02-03  Jim Meyering  <meyering@redhat.com>
32956
32957         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32958         * lib/regcomp.c (TYPE_SIGNED): Define.
32959         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32960
32961         regcomp.c: avoid a new -Wshadow warning
32962         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32963
32964 2010-02-01  Jim Meyering  <meyering@redhat.com>
32965
32966         removing useless parentheses in cpp #define directives
32967         For motivation, see commit c0221df4, "define STREQ(a,b)
32968         consistently, removing useless parentheses"
32969         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32970         * lib/mountlist.c (MNT_IGNORE): Likewise.
32971         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32972
32973 2010-02-01  Eric Blake  <ebb9@byu.net>
32974
32975         sys_time: use link-warning
32976         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32977         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32978         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32979         * modules/sys_time (Depends-on): Add warn-on-use.
32980         (Makefile.am): Always build replacement.
32981         (configure.ac): Update substitutions.
32982         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32983         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32984         bother with SYS_TIME_H.
32985         * modules/gettimeofday (configure.ac): Declare indicator.
32986         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32987         in use.
32988
32989         closein-tests: silence compiler warning
32990         * tests/test-closein.c (main): Ignore fread result.
32991         * modules/closein-tests (Depends-on): Add ignore-value.
32992
32993         tests: silence warning about system return
32994         * tests/test-areadlink-with-size.c (main): Ignore system result.
32995         * tests/test-areadlink.c (main): Likewise.
32996         * tests/test-areadlinkat-with-size.c (main): Likewise.
32997         * tests/test-areadlinkat.c (main): Likewise.
32998         * tests/test-canonicalize-lgpl.c (main): Likewise.
32999         * tests/test-canonicalize.c (main): Likewise.
33000         * tests/test-chown.c (main): Likewise.
33001         * tests/test-fchownat.c (main): Likewise.
33002         * tests/test-fdutimensat.c (main): Likewise.
33003         * tests/test-fstatat.c (main): Likewise.
33004         * tests/test-futimens.c (main): Likewise.
33005         * tests/test-lchown.c (main): Likewise.
33006         * tests/test-link.c (main): Likewise.
33007         * tests/test-linkat.c (main): Likewise.
33008         * tests/test-lstat.c (main): Likewise.
33009         * tests/test-mkdir.c (main): Likewise.
33010         * tests/test-mkdirat.c (main): Likewise.
33011         * tests/test-mkfifo.c (main): Likewise.
33012         * tests/test-mkfifoat.c (main): Likewise.
33013         * tests/test-mknod.c (main): Likewise.
33014         * tests/test-readlink.c (main): Likewise.
33015         * tests/test-remove.c (main): Likewise.
33016         * tests/test-rename.c (main): Likewise.
33017         * tests/test-renameat.c (main): Likewise.
33018         * tests/test-rmdir.c (main): Likewise.
33019         * tests/test-symlink.c (main): Likewise.
33020         * tests/test-symlinkat.c (main): Likewise.
33021         * tests/test-unlink.c (main): Likewise.
33022         * tests/test-unlinkat.c (main): Likewise.
33023         * tests/test-utimens.c (main): Likewise.
33024         * tests/test-utimensat.c (main): Likewise.
33025         * modules/areadlink-tests (Depends-on): Add ignore-value.
33026         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33027         * modules/areadlinkat-tests (Depends-on): Likewise.
33028         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33029         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33030         * modules/canonicalize-tests (Depends-on): Likewise.
33031         * modules/chown-tests (Depends-on): Likewise.
33032         * modules/fdutimensat-tests (Depends-on): Likewise.
33033         * modules/futimens-tests (Depends-on): Likewise.
33034         * modules/lchown-tests (Depends-on): Likewise.
33035         * modules/link-tests (Depends-on): Likewise.
33036         * modules/linkat-tests (Depends-on): Likewise.
33037         * modules/lstat-tests (Depends-on): Likewise.
33038         * modules/mkdir-tests (Depends-on): Likewise.
33039         * modules/mkfifo-tests (Depends-on): Likewise.
33040         * modules/mkfifoat-tests (Depends-on): Likewise.
33041         * modules/mknod-tests (Depends-on): Likewise.
33042         * modules/openat-tests (Depends-on): Likewise.
33043         * modules/readlink-tests (Depends-on): Likewise.
33044         * modules/remove-tests (Depends-on): Likewise.
33045         * modules/rename-tests (Depends-on): Likewise.
33046         * modules/renameat-tests (Depends-on): Likewise.
33047         * modules/rmdir-tests (Depends-on): Likewise.
33048         * modules/symlink-tests (Depends-on): Likewise.
33049         * modules/symlinkat-tests (Depends-on): Likewise.
33050         * modules/unlink-tests (Depends-on): Likewise.
33051         * modules/utimens-tests (Depends-on): Likewise.
33052         * modules/utimensat-tests (Depends-on): Likewise.
33053
33054 2010-01-31  Bruno Haible  <bruno@clisp.org>
33055
33056         Perform the same test for many <math.h> functions.
33057         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33058         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33059         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33060         of gl_MATHFUNC.
33061         * modules/acos (configure.ac): Likewise.
33062         * modules/asin (configure.ac): Likewise.
33063         * modules/atan (configure.ac): Likewise.
33064         * modules/atan2 (configure.ac): Likewise.
33065         * modules/cbrt (configure.ac): Likewise.
33066         * modules/copysign (configure.ac): Likewise.
33067         * modules/cos (configure.ac): Likewise.
33068         * modules/cosh (configure.ac): Likewise.
33069         * modules/erf (configure.ac): Likewise.
33070         * modules/erfc (configure.ac): Likewise.
33071         * modules/exp (configure.ac): Likewise.
33072         * modules/fmod (configure.ac): Likewise.
33073         * modules/hypot (configure.ac): Likewise.
33074         * modules/j0 (configure.ac): Likewise.
33075         * modules/j1 (configure.ac): Likewise.
33076         * modules/jn (configure.ac): Likewise.
33077         * modules/lgamma (configure.ac): Likewise.
33078         * modules/log (configure.ac): Likewise.
33079         * modules/log10 (configure.ac): Likewise.
33080         * modules/log1p (configure.ac): Likewise.
33081         * modules/pow (configure.ac): Likewise.
33082         * modules/remainder (configure.ac): Likewise.
33083         * modules/sin (configure.ac): Likewise.
33084         * modules/sinh (configure.ac): Likewise.
33085         * modules/tan (configure.ac): Likewise.
33086         * modules/tanh (configure.ac): Likewise.
33087         * modules/y0 (configure.ac): Likewise.
33088         * modules/y1 (configure.ac): Likewise.
33089         * modules/yn (configure.ac): Likewise.
33090         Suggested by Paolo Bonzini.
33091
33092 2010-01-31  Bruno Haible  <bruno@clisp.org>
33093
33094         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33095
33096 2010-01-31  Bruno Haible  <bruno@clisp.org>
33097
33098         Work around getdelim() bug on FreeBSD 8.0.
33099         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33100         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33101         not work.
33102         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33103         is 1.
33104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33105         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33106         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33107         a non-zero size.
33108         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33109
33110 2010-01-31  Bruno Haible  <bruno@clisp.org>
33111
33112         Work around getline() bug on FreeBSD 8.0.
33113         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33114         and a non-zero size.
33115         * tests/test-getline.c (main): Likewise.
33116         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33117         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33118
33119 2010-01-28  Eric Blake  <ebb9@byu.net>
33120
33121         regex: fix build failure
33122         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33123         platforms.
33124
33125 2010-01-28  Jim Meyering  <meyering@redhat.com>
33126
33127         regex: do not ignore memory allocation failure
33128         * lib/regex_internal.c (create_cd_newstate): Detect
33129         re_node_set_init_copy failure.   Extracted from glibc commit
33130         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33131
33132         regex: sync more white-space changes from libc
33133         * lib/regex_internal.c: White-space only changes.
33134         * lib/regexec.c: Likewise.
33135
33136         regex: add many uses of __attribute_warn_unused_result__
33137         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33138         * lib/regexec.c: Likewise.
33139         Extracted from a messy glibc commit.
33140
33141         regcomp.c: spelling and merge-artifact from glibc
33142         * lib/regcomp.c: Merge remainder of glibc's
33143         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33144
33145         regcomp.c: sync white-space changes from glibc
33146         * lib/regcomp.c: Merge to accommodate white space
33147         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33148
33149         regcomp.c: do not ignore internal return values
33150         * lib/regcomp.c: Do not ignore internal return values.
33151         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33152         but without its white-space changes and spelling fixes.
33153
33154         regex_internal.h: define __attribute_warn_unused_result__
33155         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33156
33157         maint: add a syntax-check rule to check for vulnerable Makefile.in
33158         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33159
33160 2010-01-27  Jim Meyering  <meyering@redhat.com>
33161
33162         ncftpput-ftp: clean up spaces
33163         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33164         Remove trailing blanks.
33165
33166 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33167
33168         * build-aux/git-version-gen: Fix copyright statement.
33169         * build-aux/gnupload: Likewise.
33170         * tests/test-arcfour.c: Likewise.
33171         * tests/test-arctwo.c: Likewise.
33172         * tests/test-count-one-bits.c: Likewise.
33173         * tests/test-crc.c: Likewise.
33174         * tests/test-des.c: Likewise.
33175         * tests/test-gc-arcfour.c: Likewise.
33176         * tests/test-gc-arctwo.c: Likewise.
33177         * tests/test-gc-des.c: Likewise.
33178         * tests/test-gc-hmac-md5.c: Likewise.
33179         * tests/test-gc-hmac-sha1.c: Likewise.
33180         * tests/test-gc-md2.c: Likewise.
33181         * tests/test-gc-md4.c: Likewise.
33182         * tests/test-gc-md5.c: Likewise.
33183         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33184         * tests/test-gc-rijndael.c: Likewise.
33185         * tests/test-gc-sha1.c: Likewise.
33186         * tests/test-gc.c: Likewise.
33187         * tests/test-gethostname.c: Likewise.
33188         * tests/test-gettimeofday.c: Likewise.
33189         * tests/test-hash.c: Likewise.
33190         * tests/test-hmac-md5.c: Likewise.
33191         * tests/test-hmac-sha1.c: Likewise.
33192         * tests/test-md2.c: Likewise.
33193         * tests/test-md4.c: Likewise.
33194         * tests/test-md5.c: Likewise.
33195         * tests/test-memchr.c: Likewise.
33196         * tests/test-memchr2.c: Likewise.
33197         * tests/test-memcmp.c: Likewise.
33198         * tests/test-memmem.c: Likewise.
33199         * tests/test-memrchr.c: Likewise.
33200         * tests/test-rawmemchr.c: Likewise.
33201         * tests/test-read-file.c: Likewise.
33202         * tests/test-rijndael.c: Likewise.
33203         * tests/test-sockets.c: Likewise.
33204         * tests/test-strchrnul.c: Likewise.
33205         * tests/test-strstr.c: Likewise.
33206         * tests/test-strtod.c: Likewise.
33207         * build-aux/ncftpput-ftp: Likewise.
33208
33209 2010-01-26  Eric Blake  <ebb9@byu.net>
33210
33211         ignore-value: update recommended header name
33212         * modules/ignore-value (Include): Only use <> for headers that
33213         exist in glibc.
33214
33215 2010-01-26  Jim Meyering  <meyering@redhat.com>
33216
33217         test-userspec.c: avoid compiler warnings
33218         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33219         and "initialization discards qualifiers..." warnings.
33220         Put the first "uid" in its own scope, and make char* members "const".
33221
33222 2010-01-25  Bruno Haible  <bruno@clisp.org>
33223
33224         gnulib-tool: Make warning diagnostics consistent.
33225         * gnulib-tool (func_warning): New function.
33226         Use it everywhere where gnulib-tool produces output to stderr and it is
33227         not a fatal error.
33228
33229 2010-01-25  Bruno Haible  <bruno@clisp.org>
33230
33231         Fix test dependencies.
33232         * modules/xstrtol-tests (Depends-on): Add inttypes.
33233         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33234
33235 2010-01-25 Pádraig Brady <P@draigBrady.com>
33236
33237         syntax-check: detect incorrect boolean macro values in config.h
33238         * modules/maintainer-makefile (configure.ac): Parameterize the location
33239         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33240         The logic is from Eric Blake and the location indicated by Jim Meyering.
33241         Note the more natural CONFIG_HEADER name is prohibited by automake
33242         for backwards compatibility reasons.
33243         * top/maint.mk (sc_Wundef_boolean): New rule.
33244
33245 2010-01-25  Jim Meyering  <meyering@redhat.com>
33246
33247         bootstrap: detect MacOS 10.6's shasum, too
33248         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33249         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33250
33251 2010-01-23  Jim Meyering  <meyering@redhat.com>
33252
33253         xstrtoll: new module
33254         * modules/xstrtoll: New file.
33255         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33256         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33257         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33258         ./configure fails if you use this module and lack "long long".
33259         * modules/xstrtoll-tests: New module.
33260         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33261         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33262         new init.sh-based test framework.
33263
33264 2010-01-24  Bruno Haible  <bruno@clisp.org>
33265
33266         Tests for module 'yn'.
33267         * modules/yn-tests: New file.
33268         * tests/test-yn.c: New file.
33269
33270         Tests for module 'y1'.
33271         * modules/y1-tests: New file.
33272         * tests/test-y1.c: New file.
33273
33274         Tests for module 'y0'.
33275         * modules/y0-tests: New file.
33276         * tests/test-y0.c: New file.
33277
33278         Tests for module 'tanh'.
33279         * modules/tanh-tests: New file.
33280         * tests/test-tanh.c: New file.
33281
33282         Tests for module 'tan'.
33283         * modules/tan-tests: New file.
33284         * tests/test-tan.c: New file.
33285
33286         Tests for module 'sqrt'.
33287         * modules/sqrt-tests: New file.
33288         * tests/test-sqrt.c: New file.
33289
33290         Tests for module 'sinh'.
33291         * modules/sinh-tests: New file.
33292         * tests/test-sinh.c: New file.
33293
33294         Tests for module 'sin'.
33295         * modules/sin-tests: New file.
33296         * tests/test-sin.c: New file.
33297
33298         Tests for module 'rint'.
33299         * modules/rint-tests: New file.
33300         * tests/test-rint.c: New file.
33301
33302         Tests for module 'remainder'.
33303         * modules/remainder-tests: New file.
33304         * tests/test-remainder.c: New file.
33305
33306         Tests for module 'pow'.
33307         * modules/pow-tests: New file.
33308         * tests/test-pow.c: New file.
33309
33310         Tests for module 'nextafter'.
33311         * modules/nextafter-tests: New file.
33312         * tests/test-nextafter.c: New file.
33313
33314         Tests for module 'modf'.
33315         * modules/modf-tests: New file.
33316         * tests/test-modf.c: New file.
33317
33318         Tests for module 'logb'.
33319         * modules/logb-tests: New file.
33320         * tests/test-logb.c: New file.
33321
33322         Tests for module 'log1p'.
33323         * modules/log1p-tests: New file.
33324         * tests/test-log1p.c: New file.
33325
33326         Tests for module 'log10'.
33327         * modules/log10-tests: New file.
33328         * tests/test-log10.c: New file.
33329
33330         Tests for module 'log'.
33331         * modules/log-tests: New file.
33332         * tests/test-log.c: New file.
33333
33334         Tests for module 'lgamma'.
33335         * modules/lgamma-tests: New file.
33336         * tests/test-lgamma.c: New file.
33337
33338         Tests for module 'ldexp'.
33339         * modules/ldexp-tests: New file.
33340         * tests/test-ldexp.c: New file.
33341
33342         Tests for module 'jn'.
33343         * modules/jn-tests: New file.
33344         * tests/test-jn.c: New file.
33345
33346         Tests for module 'j1'.
33347         * modules/j1-tests: New file.
33348         * tests/test-j1.c: New file.
33349
33350         Tests for module 'j0'.
33351         * modules/j0-tests: New file.
33352         * tests/test-j0.c: New file.
33353
33354         Tests for module 'hypot'.
33355         * modules/hypot-tests: New file.
33356         * tests/test-hypot.c: New file.
33357
33358         Tests for module 'fmod'.
33359         * modules/fmod-tests: New file.
33360         * tests/test-fmod.c: New file.
33361
33362         Tests for module 'fabs'.
33363         * modules/fabs-tests: New file.
33364         * tests/test-fabs.c: New file.
33365
33366         Tests for module 'exp'.
33367         * modules/exp-tests: New file.
33368         * tests/test-exp.c: New file.
33369
33370         Tests for module 'erfc'.
33371         * modules/erfc-tests: New file.
33372         * tests/test-erfc.c: New file.
33373
33374         Tests for module 'erf'.
33375         * modules/erf-tests: New file.
33376         * tests/test-erf.c: New file.
33377
33378         Tests for module 'cosh'.
33379         * modules/cosh-tests: New file.
33380         * tests/test-cosh.c: New file.
33381
33382         Tests for module 'cos'.
33383         * modules/cos-tests: New file.
33384         * tests/test-cos.c: New file.
33385
33386         Tests for module 'copysign'.
33387         * modules/copysign-tests: New file.
33388         * tests/test-copysign.c: New file.
33389
33390         Tests for module 'cbrt'.
33391         * modules/cbrt-tests: New file.
33392         * tests/test-cbrt.c: New file.
33393
33394         Tests for module 'atan2'.
33395         * modules/atan2-tests: New file.
33396         * tests/test-atan2.c: New file.
33397
33398         Tests for module 'atan'.
33399         * modules/atan-tests: New file.
33400         * tests/test-atan.c: New file.
33401
33402         Tests for module 'asin'.
33403         * modules/asin-tests: New file.
33404         * tests/test-asin.c: New file.
33405
33406         Tests for module 'acos'.
33407         * modules/acos-tests: New file.
33408         * tests/test-acos.c: New file.
33409
33410 2010-01-24  Bruno Haible  <bruno@clisp.org>
33411
33412         Fix tests for common <math.h> functions.
33413         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33414         code snippet that references the function pointer, rather than merely
33415         calling the function. Substitute the FUNC_LIBM variable.
33416         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33417         * modules/acos (configure.ac): Likewise.
33418         * modules/asin (configure.ac): Likewise.
33419         * modules/atan (configure.ac): Likewise.
33420         * modules/atan2 (configure.ac): Likewise.
33421         * modules/cbrt (configure.ac): Likewise.
33422         * modules/copysign (configure.ac): Likewise.
33423         * modules/cos (configure.ac): Likewise.
33424         * modules/cosh (configure.ac): Likewise.
33425         * modules/erf (configure.ac): Likewise.
33426         * modules/erfc (configure.ac): Likewise.
33427         * modules/exp (configure.ac): Likewise.
33428         * modules/fabs (configure.ac): Likewise.
33429         * modules/fmod (configure.ac): Likewise.
33430         * modules/hypot (configure.ac): Likewise.
33431         * modules/j0 (configure.ac): Likewise.
33432         * modules/j1 (configure.ac): Likewise.
33433         * modules/jn (configure.ac): Likewise.
33434         * modules/ldexp (configure.ac): Likewise.
33435         * modules/lgamma (configure.ac): Likewise.
33436         * modules/log (configure.ac): Likewise.
33437         * modules/log10 (configure.ac): Likewise.
33438         * modules/log1p (configure.ac): Likewise.
33439         * modules/logb (configure.ac): Likewise.
33440         * modules/modf (configure.ac): Likewise.
33441         * modules/nextafter (configure.ac): Likewise.
33442         * modules/pow (configure.ac): Likewise.
33443         * modules/remainder (configure.ac): Likewise.
33444         * modules/rint (configure.ac): Likewise.
33445         * modules/sin (configure.ac): Likewise.
33446         * modules/sinh (configure.ac): Likewise.
33447         * modules/tan (configure.ac): Likewise.
33448         * modules/tanh (configure.ac): Likewise.
33449         * modules/y0 (configure.ac): Likewise.
33450         * modules/y1 (configure.ac): Likewise.
33451         * modules/yn (configure.ac): Likewise.
33452
33453 2010-01-24  Bruno Haible  <bruno@clisp.org>
33454
33455         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33456         * tests/test-acosl.c (x): New variable.
33457         (main): Store argument in x and fetch it from x.
33458         * tests/test-asinl.c (x): New variable.
33459         (main): Store argument in x and fetch it from x.
33460         * tests/test-atanl.c (x): New variable.
33461         (main): Store argument in x and fetch it from x.
33462         * tests/test-cosl.c (x): New variable.
33463         (main): Store argument in x and fetch it from x.
33464         * tests/test-expl.c (x): New variable.
33465         (main): Store argument in x and fetch it from x.
33466         * tests/test-logl.c (x): New variable.
33467         (main): Store argument in x and fetch it from x.
33468         * tests/test-sinl.c (x): New variable.
33469         (main): Store argument in x and fetch it from x.
33470         * tests/test-sqrtl.c (x): New variable.
33471         (main): Store argument in x and fetch it from x.
33472         * tests/test-tanl.c (x): New variable.
33473         (main): Store argument in x and fetch it from x.
33474
33475 2010-01-24  Bruno Haible  <bruno@clisp.org>
33476
33477         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33478         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33479         assignments to the initial TESTS_ENVIRONMENT.
33480         * doc/gnulib.texi (Unit test modules): Document it.
33481         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33482         TESTS_ENVIRONMENT.
33483         * modules/btowc-tests (Makefile.am): Likewise.
33484         * modules/c-stack-tests (Makefile.am): Likewise.
33485         * modules/c-strcase-tests (Makefile.am): Likewise.
33486         * modules/copy-file-tests (Makefile.am): Likewise.
33487         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33488         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33489         * modules/mbrtowc-tests (Makefile.am): Likewise.
33490         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33491         * modules/mbscasestr-tests (Makefile.am): Likewise.
33492         * modules/mbschr-tests (Makefile.am): Likewise.
33493         * modules/mbscspn-tests (Makefile.am): Likewise.
33494         * modules/mbsinit-tests (Makefile.am): Likewise.
33495         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33496         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33497         * modules/mbspbrk-tests (Makefile.am): Likewise.
33498         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33499         * modules/mbsrchr-tests (Makefile.am): Likewise.
33500         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33501         * modules/mbsspn-tests (Makefile.am): Likewise.
33502         * modules/mbsstr-tests (Makefile.am): Likewise.
33503         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33504         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33505         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33506         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33507         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33508         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33509         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33510         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33511         * modules/wcrtomb-tests (Makefile.am): Likewise.
33512         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33513         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33514         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33515         assignments from TESTS_ENVIRONMENT.
33516         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33517         augmentation.
33518         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33519         * modules/atexit-tests (Makefile.am): Likewise.
33520         * modules/binary-io-tests (Makefile.am): Likewise.
33521         * modules/closein-tests (Makefile.am): Likewise.
33522         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33523         * modules/exclude-tests (Makefile.am): Likewise.
33524         * modules/fflush-tests (Makefile.am): Likewise.
33525         * modules/fpending-tests (Makefile.am): Likewise.
33526         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33527         * modules/freadahead-tests (Makefile.am): Likewise.
33528         * modules/freadptr-tests (Makefile.am): Likewise.
33529         * modules/freadseek-tests (Makefile.am): Likewise.
33530         * modules/fseek-tests (Makefile.am): Likewise.
33531         * modules/fseeko-tests (Makefile.am): Likewise.
33532         * modules/ftell-tests (Makefile.am): Likewise.
33533         * modules/ftello-tests (Makefile.am): Likewise.
33534         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33535         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33536         * modules/lseek-tests (Makefile.am): Likewise.
33537         * modules/parse-duration-tests (Makefile.am): Likewise.
33538         * modules/perror-tests (Makefile.am): Likewise.
33539         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33540         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33541         * modules/pipe-tests (Makefile.am): Likewise.
33542         * modules/pread-tests (Makefile.am): Likewise.
33543         * modules/printf-posix-tests (Makefile.am): Likewise.
33544         * modules/select-tests (Makefile.am): Likewise.
33545         * modules/sigpipe-tests (Makefile.am): Likewise.
33546         * modules/tsearch-tests (Makefile.am): Likewise.
33547         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33548         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33549         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33550         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33551         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33552         * modules/version-etc-tests (Makefile.am): Likewise.
33553         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33554         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33555         * modules/xalloc-die-tests (Makefile.am): Likewise.
33556         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33557         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33558         * modules/xstrtol-tests (Makefile.am): Likewise.
33559         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33560         * modules/yesno-tests (Makefile.am): Likewise.
33561         Suggested by Jim Meyering.
33562
33563 2010-01-24  Bruno Haible  <bruno@clisp.org>
33564
33565         More documentation.
33566         * doc/gnulib.texi (Writing modules): New chapter.
33567         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33568         the new chapter.
33569
33570 2010-01-24  Jim Meyering  <meyering@redhat.com>
33571
33572         maint.mk: do not prepend "./" after filtering
33573         * top/maint.mk (_prepend_srcdir_prefix): New variable
33574         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33575         "./" when $(srcdir) is ".".
33576
33577         define STREQ(a,b) consistently, removing useless parentheses
33578         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33579         since the only risk is that "a" or "b" contains an unparenthesized
33580         comma, but if either did that, STREQ would have 3 or more arguments.
33581         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33582         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33583         * lib/hash-triple.c (STREQ): Likewise.
33584         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33585         * lib/getugroups.c (STREQ): Likewise.
33586
33587 2010-01-23  Jim Meyering  <meyering@redhat.com>
33588
33589         maint.mk: fix syntax-check in a non-srcdir build directory
33590         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33591         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33592
33593 2010-01-22  Jim Meyering  <meyering@redhat.com>
33594
33595         userspec: add unit tests
33596         * tests/test-userspec.c: New file.
33597         * modules/userspec-tests: Likewise.
33598
33599 2010-01-21  Jim Meyering  <meyering@redhat.com>
33600
33601         maint.mk: handle source file names containing "." robustly
33602         * top/maint.mk (_dot_escaped_srcdir): Define.
33603         (VC_LIST): Use it in LHS of sed substitution.
33604
33605 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33606
33607         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33608         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33609         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33610         from a non-srcdir build.
33611
33612 2010-01-20  Eric Blake  <ebb9@byu.net>
33613
33614         warn-on-use: use instead of link-warning
33615         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33616         * modules/unistd (Depends-on, Makefile.am): Likewise.
33617         * modules/arpa_inet (Depends-on): Replace link-warning with
33618         warn-on-use.
33619         (Makefile.am): Update rules accordingly.
33620         * modules/ctype (Depends-on, Makefile.am): Likewise.
33621         * modules/dirent (Depends-on, Makefile.am): Likewise.
33622         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33623         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33624         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33625         * modules/locale (Depends-on, Makefile.am): Likewise.
33626         * modules/math (Depends-on, Makefile.am): Likewise.
33627         * modules/search (Depends-on, Makefile.am): Likewise.
33628         * modules/signal (Depends-on, Makefile.am): Likewise.
33629         * modules/spawn (Depends-on, Makefile.am): Likewise.
33630         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33631         * modules/string (Depends-on, Makefile.am): Likewise.
33632         * modules/strings (Depends-on, Makefile.am): Likewise.
33633         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33634         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33635         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33636         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33637         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33638         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33639         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33640         * modules/wchar (Depends-on, Makefile.am): Likewise.
33641         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33642         should be poisoned.
33643         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33644         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33645         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33646         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33647         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33648         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33649         * m4/math_h.m4 (gl_MATH_H): Likewise.
33650         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33651         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33652         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33653         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33654         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33655         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33656         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33657         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33658         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33659         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33660         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33661         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33662         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33663         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33664         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33665         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33666         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33667         GL_LINK_WARNING.
33668         * lib/ctype.in.h: Likewise.
33669         * lib/dirent.in.h: Likewise.
33670         * lib/fcntl.in.h: Likewise.
33671         * lib/inttypes.in.h: Likewise.
33672         * lib/langinfo.in.h: Likewise.
33673         * lib/locale.in.h: Likewise.
33674         * lib/math.in.h: Likewise.
33675         * lib/search.in.h: Likewise.
33676         * lib/signal.in.h: Likewise.
33677         * lib/spawn.in.h: Likewise.
33678         * lib/stdio.in.h: Likewise.
33679         * lib/stdlib.in.h: Likewise.
33680         * lib/string.in.h: Likewise.
33681         * lib/strings.in.h: Likewise.
33682         * lib/sys_file.in.h: Likewise.
33683         * lib/sys_ioctl.in.h: Likewise.
33684         * lib/sys_select.in.h: Likewise.
33685         * lib/sys_socket.in.h: Likewise.
33686         * lib/sys_stat.in.h: Likewise.
33687         * lib/sys_times.in.h: Likewise.
33688         * lib/sys_utsname.in.h: Likewise.
33689         * lib/unistd.in.h: Likewise.
33690         * lib/wchar.in.h: Likewise.
33691
33692 2010-01-20  Bruno Haible  <bruno@clisp.org>
33693
33694         Avoid duplicate -lm.
33695         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33696         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33697         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33698         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33699         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33700         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33701         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33702         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33703         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33704         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33705         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33706         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33707         Reported by Paolo Bonzini.
33708
33709 2010-01-19  Bruno Haible  <bruno@clisp.org>
33710
33711         langinfo, nl_langinfo: Relicense under LGPLv2+.
33712         * modules/langinfo (License): Change to LGPLv2+.
33713         * modules/nl_langinfo (License): Likewise.
33714         Patch by David Lutterkort <lutter@redhat.com>.
33715
33716 2010-01-19  Bruno Haible  <bruno@clisp.org>
33717
33718         Avoid compilation error with cc on OSF/1 5.1.
33719         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33720         statement, not before.
33721         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33722
33723 2010-01-18  Bruno Haible  <bruno@clisp.org>
33724
33725         Avoid a link error due to the __printf__ symbol.
33726         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33727         and 2.6.x.
33728         (__format__, __printf__): Remove definitions.
33729         * lib/argp-fmtstream.h: Likewise.
33730         * lib/argp.h: Likewise.
33731         * lib/error.h: Likewise.
33732         * lib/vasnprintf.h: Likewise.
33733         * lib/xprintf.h: Likewise.
33734         * lib/xvasprintf.h: Likewise.
33735         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33736
33737 2010-01-18  Bruno Haible  <bruno@clisp.org>
33738
33739         Tests for module 'tanl'.
33740         * modules/tanl-tests: New file.
33741         * tests/test-tanl.c: New file.
33742
33743         Tests for module 'sqrtl'.
33744         * modules/sqrtl-tests: New file.
33745         * tests/test-sqrtl.c: New file.
33746
33747         Tests for module 'sinl'.
33748         * modules/sinl-tests: New file.
33749         * tests/test-sinl.c: New file.
33750
33751         Tests for module 'logl'.
33752         * modules/logl-tests: New file.
33753         * tests/test-logl.c: New file.
33754
33755         Tests for module 'expl'.
33756         * modules/expl-tests: New file.
33757         * tests/test-expl.c: New file.
33758
33759         Tests for module 'cosl'.
33760         * modules/cosl-tests: New file.
33761         * tests/test-cosl.c: New file.
33762
33763         Tests for module 'atanl'.
33764         * modules/atanl-tests: New file.
33765         * tests/test-atanl.c: New file.
33766
33767         Tests for module 'asinl'.
33768         * modules/asinl-tests: New file.
33769         * tests/test-asinl.c: New file.
33770
33771         Tests for module 'acosl'.
33772         * modules/acosl-tests: New file.
33773         * tests/test-acosl.c: New file.
33774
33775         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33776         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33777         tanl): Use the standard gnulib idiom.
33778         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33779         * lib/sinl.c: Likewise.
33780         * lib/tanl.c: Don't include trigl.c.
33781         (kernel_tanl): Make static.
33782         * lib/sincosl.c: Include trigl.h first.
33783         * lib/trigl.c: Likewise.
33784         * m4/acosl.m4: New file.
33785         * m4/asinl.m4: New file.
33786         * m4/atanl.m4: New file.
33787         * m4/cosl.m4: New file.
33788         * m4/expl.m4: New file.
33789         * m4/logl.m4: New file.
33790         * m4/sinl.m4: New file.
33791         * m4/sqrtl.m4: New file.
33792         * m4/tanl.m4: New file.
33793         * m4/mathl.m4: Remove file.
33794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33795         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33796         Don't initialize GNULIB_MATHL.
33797         * modules/acosl: New file.
33798         * modules/asinl: New file.
33799         * modules/atanl: New file.
33800         * modules/cosl: New file.
33801         * modules/expl: New file.
33802         * modules/logl: New file.
33803         * modules/sinl: New file.
33804         * modules/sqrtl: New file.
33805         * modules/tanl: New file.
33806         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33807         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33808         substitute GNULIB_MATHL.
33809         * modules/mathl: Rewritten.
33810         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33811         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33812         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33813         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33814         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33815         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33816         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33817         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33818         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33819
33820 2010-01-18  Bruno Haible  <bruno@clisp.org>
33821
33822         sqrt: Make gl_FUNC_SQRT requirable.
33823         * m4/sqrt.m4: New file.
33824         * modules/sqrt (Files): Add it.
33825         (configure.ac): Invoke gl_FUNC_SQRT.
33826
33827 2010-01-18  Bruno Haible  <bruno@clisp.org>
33828
33829         New modules for common <math.h> functions.
33830         * m4/mathfunc.m4: New file.
33831         * modules/acos: New file.
33832         * modules/asin: New file.
33833         * modules/atan: New file.
33834         * modules/atan2: New file.
33835         * modules/cbrt: New file.
33836         * modules/copysign: New file.
33837         * modules/cos: New file.
33838         * modules/cosh: New file.
33839         * modules/erf: New file.
33840         * modules/erfc: New file.
33841         * modules/exp: New file.
33842         * modules/fabs: New file.
33843         * modules/fmod: New file.
33844         * modules/hypot: New file.
33845         * modules/j0: New file.
33846         * modules/j1: New file.
33847         * modules/jn: New file.
33848         * modules/ldexp: New file.
33849         * modules/lgamma: New file.
33850         * modules/log: New file.
33851         * modules/log10: New file.
33852         * modules/log1p: New file.
33853         * modules/logb: New file.
33854         * modules/modf: New file.
33855         * modules/nextafter: New file.
33856         * modules/pow: New file.
33857         * modules/remainder: New file.
33858         * modules/rint: New file.
33859         * modules/sin: New file.
33860         * modules/sinh: New file.
33861         * modules/sqrt: New file.
33862         * modules/tan: New file.
33863         * modules/tanh: New file.
33864         * modules/y0: New file.
33865         * modules/y1: New file.
33866         * modules/yn: New file.
33867         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33868         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33869         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33870         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33871         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33872         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33873         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33874         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33875         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33876         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33877         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33878         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33879         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33880         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33881         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33882         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33883         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33884         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33885         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33886         * doc/posix-functions/log.texi: Mention the 'log' module.
33887         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33888         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33889         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33890         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33891         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33892         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33893         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33894         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33895         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33896         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33897         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33898         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33899         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33900         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33901         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33902         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33903
33904 2010-01-18  Jim Meyering  <meyering@redhat.com>
33905
33906         ignore-value: relax license to LGPLv2+
33907         * modules/ignore-value (License): Relax to LGPLv2+.
33908
33909         getdate: don't leak when TZ contains two or more '"'s
33910         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33911         double quote in TZ after the first one.
33912
33913         readtokens: do not leak internal token_lengths buffer
33914         * lib/readtokens.c (readtokens): Free the local, lengths,
33915         when the supplied "token_lengths" parameter is NULL.
33916
33917 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33918
33919         Fix a couple of missing LIBTHREAD link failures on AIX.
33920         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33921         $(LIBTHREAD).
33922         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33923
33924         Link test-poll against INET_PTON_LIB.
33925         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33926         for inet_pton on Solaris 10.
33927
33928 2010-01-17  Bruno Haible  <bruno@clisp.org>
33929
33930         unistdio/*-sprintf: Fix typo in module description.
33931         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33932         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33933         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33934         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33935         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33936         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33937         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33939
33940 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33941
33942         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33943         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33944         variables in shell case patterns, for AIX and HP-UX ksh.
33945
33946         Split large sed scripts, for HP-UX sed.
33947         * modules/stdio: Split sed scripts around 50 sed commands,
33948         to avoid HP-UX limit of 99 commands, in the near future.
33949         * modules/string: Likewise.
33950         * modules/unistd: Likewise.
33951
33952         gnulib-tool: avoid writing in the current directory.
33953         * gnulib-tool (func_emit_lib_Makefile_am)
33954         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33955         not in the current directory, so concurrent gnulib-tool
33956         instances do not interfere.
33957
33958 2010-01-16  Jim Meyering  <meyering@redhat.com>
33959
33960         doc: update users.txt
33961         * users.txt: Add grep.
33962         (diffutils, gzip): Update URLs.
33963
33964 2010-01-12  Bruno Haible  <bruno@clisp.org>
33965
33966         posix_spawn: Avoid test failure on Cygwin.
33967         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33968         characters.
33969         Reported by Simon Josefsson.
33970
33971 2010-01-12  Bruno Haible  <bruno@clisp.org>
33972
33973         * tests/test-cond.c (main): When skipping the test, show the reason.
33974
33975 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33976
33977         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33978
33979 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33980
33981         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33982         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33983
33984 2010-01-12  Eric Blake  <ebb9@byu.net>
33985
33986         build: guarantee AS_VAR_IF
33987         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33988         (gl_AS_VAR_IF): Move...
33989         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33990         Reported by Simon Josefsson.
33991
33992 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33993
33994         * lib/stdio.in.h: Fix typo.
33995
33996 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33997
33998         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33999         libgpg-error.
34000
34001 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34002
34003         * tests/test-xalloc-die.sh: Use $EXEEXT.
34004
34005 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34006             Bruno Haible  <bruno@clisp.org>
34007
34008         getlogin, getlogin_r: Avoid test failure.
34009         * tests/test-getlogin.c: Include <stdio.h>.
34010         (main): Skip the test when the function fails because stdin is not a
34011         tty.
34012         * tests/test-getlogin_r.c: Include <stdio.h>.
34013         (main): Skip the test when the function fails because stdin is not a
34014         tty.
34015
34016 2010-01-11  Eric Blake  <ebb9@byu.net>
34017
34018         tests: avoid more large file warnings
34019         * tests/test-fflush.c: Avoid warning about ftell use.
34020         * tests/test-fseek.c: Avoid warning about fseek use.
34021
34022 2010-01-10  Bruno Haible  <bruno@clisp.org>
34023
34024         nproc: Work better on Linux when /proc and /sys are not mounted.
34025         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34026         as lower bound when, on glibc/Linux systems,
34027         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34028         Suggested by Pádraig Brady <P@draigbrady.com>.
34029         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34030
34031         nproc: Refactor.
34032         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34033         extracted from num_processors.
34034         (num_processors): Call it.
34035
34036 2010-01-11  Jim Meyering  <meyering@redhat.com>
34037
34038         utimecmp: avoid new warning from upcoming gcc-4.5.0
34039         * lib/utimecmp.c (BILLION): Define using #define rather than an
34040         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34041
34042 2010-01-11  Eric Blake  <ebb9@byu.net>
34043
34044         math: add portability warnings for classification macros
34045         * modules/math (Depends-on): Add warn-on-use.
34046         (Makefile.am): Provide new substitutions.
34047         * m4/math_h.m4 (gl_MATH_H): Require inline.
34048         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34049         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34050         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34051         implement warnings.
34052
34053         unistd: warn on use of environ without module
34054         * modules/unistd (Depends-on): Add warn-on-use.
34055         (Makefile.am): Provide new substitutions.
34056         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34057         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34058
34059         stdio: warn on suspicious uses
34060         * modules/stdio (Depends-on): Add warn-on-use.
34061         (Makefile.am): Provide new substitutions.
34062         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34063         fseeko.
34064         * lib/stdio.in.h (gets): Always warn on use.
34065         (fseek, ftell): Adjust when warnings are issued, and honor
34066         _GL_NO_LARGE_FILES as a way to silence the warning.
34067         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34068         any warning about large file offsets.
34069         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34070         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34071         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34072         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34073         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34074         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34075         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34076         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34077
34078         warn-on-use: new module
34079         * modules/warn-on-use: New file.
34080         * build-aux/warn-on-use.h: Likewise.
34081         * m4/warn-on-use.m4: Likewise.
34082         * MODULES.html.sh (Support for building): Mention it.
34083
34084 2010-01-10  Bruno Haible  <bruno@clisp.org>
34085
34086         Tests for module 'unistr/u32-strdup'.
34087         * modules/unistr/u32-strdup-tests: New file.
34088         * tests/unistr/test-u32-strdup.c: New file.
34089
34090         Tests for module 'unistr/u16-strdup'.
34091         * modules/unistr/u16-strdup-tests: New file.
34092         * tests/unistr/test-u16-strdup.c: New file.
34093
34094         Tests for module 'unistr/u8-strdup'.
34095         * modules/unistr/u8-strdup-tests: New file.
34096         * tests/unistr/test-u8-strdup.c: New file.
34097         * tests/unistr/test-strdup.h: New file.
34098
34099         Tests for module 'unistr/u32-strncmp'.
34100         * modules/unistr/u32-strncmp-tests: New file.
34101         * tests/unistr/test-u32-strncmp.c: New file.
34102
34103         Tests for module 'unistr/u16-strncmp'.
34104         * modules/unistr/u16-strncmp-tests: New file.
34105         * tests/unistr/test-u16-strncmp.c: New file.
34106
34107         Tests for module 'unistr/u8-strncmp'.
34108         * modules/unistr/u8-strncmp-tests: New file.
34109         * tests/unistr/test-u8-strncmp.c: New file.
34110         * tests/unistr/test-strncmp.h: New file.
34111
34112         Tests for module 'unistr/u32-strcoll'.
34113         * modules/unistr/u32-strcoll-tests: New file.
34114         * tests/unistr/test-u32-strcoll.c: New file.
34115
34116         Tests for module 'unistr/u16-strcoll'.
34117         * modules/unistr/u16-strcoll-tests: New file.
34118         * tests/unistr/test-u16-strcoll.c: New file.
34119
34120         Tests for module 'unistr/u8-strcoll'.
34121         * modules/unistr/u8-strcoll-tests: New file.
34122         * tests/unistr/test-u8-strcoll.c: New file.
34123
34124         Tests for module 'unistr/u32-strcmp'.
34125         * modules/unistr/u32-strcmp-tests: New file.
34126         * tests/unistr/test-u32-strcmp.c: New file.
34127         * tests/unistr/test-u32-strcmp.h: New file.
34128
34129         Tests for module 'unistr/u16-strcmp'.
34130         * modules/unistr/u16-strcmp-tests: New file.
34131         * tests/unistr/test-u16-strcmp.c: New file.
34132         * tests/unistr/test-u16-strcmp.h: New file.
34133
34134         Tests for module 'unistr/u8-strcmp'.
34135         * modules/unistr/u8-strcmp-tests: New file.
34136         * tests/unistr/test-u8-strcmp.c: New file.
34137         * tests/unistr/test-u8-strcmp.h: New file.
34138         * tests/unistr/test-strcmp.h: New file.
34139
34140         Tests for module 'unistr/u32-strncat'.
34141         * modules/unistr/u32-strncat-tests: New file.
34142         * tests/unistr/test-u32-strncat.c: New file.
34143
34144         Tests for module 'unistr/u16-strncat'.
34145         * modules/unistr/u16-strncat-tests: New file.
34146         * tests/unistr/test-u16-strncat.c: New file.
34147
34148         Tests for module 'unistr/u8-strncat'.
34149         * modules/unistr/u8-strncat-tests: New file.
34150         * tests/unistr/test-u8-strncat.c: New file.
34151         * tests/unistr/test-strncat.h: New file.
34152
34153         Tests for module 'unistr/u32-strcat'.
34154         * modules/unistr/u32-strcat-tests: New file.
34155         * tests/unistr/test-u32-strcat.c: New file.
34156
34157         Tests for module 'unistr/u16-strcat'.
34158         * modules/unistr/u16-strcat-tests: New file.
34159         * tests/unistr/test-u16-strcat.c: New file.
34160
34161         Tests for module 'unistr/u8-strcat'.
34162         * modules/unistr/u8-strcat-tests: New file.
34163         * tests/unistr/test-u8-strcat.c: New file.
34164         * tests/unistr/test-strcat.h: New file.
34165
34166         Tests for module 'unistr/u32-stpncpy'.
34167         * modules/unistr/u32-stpncpy-tests: New file.
34168         * tests/unistr/test-u32-stpncpy.c: New file.
34169
34170         Tests for module 'unistr/u16-stpncpy'.
34171         * modules/unistr/u16-stpncpy-tests: New file.
34172         * tests/unistr/test-u16-stpncpy.c: New file.
34173
34174         Tests for module 'unistr/u8-stpncpy'.
34175         * modules/unistr/u8-stpncpy-tests: New file.
34176         * tests/unistr/test-u8-stpncpy.c: New file.
34177         * tests/unistr/test-stpncpy.h: New file.
34178
34179         Tests for module 'unistr/u32-strncpy'.
34180         * modules/unistr/u32-strncpy-tests: New file.
34181         * tests/unistr/test-u32-strncpy.c: New file.
34182
34183         Tests for module 'unistr/u16-strncpy'.
34184         * modules/unistr/u16-strncpy-tests: New file.
34185         * tests/unistr/test-u16-strncpy.c: New file.
34186
34187         Tests for module 'unistr/u8-strncpy'.
34188         * modules/unistr/u8-strncpy-tests: New file.
34189         * tests/unistr/test-u8-strncpy.c: New file.
34190         * tests/unistr/test-strncpy.h: New file.
34191
34192         Tests for module 'unistr/u32-stpcpy'.
34193         * modules/unistr/u32-stpcpy-tests: New file.
34194         * tests/unistr/test-u32-stpcpy.c: New file.
34195
34196         Tests for module 'unistr/u16-stpcpy'.
34197         * modules/unistr/u16-stpcpy-tests: New file.
34198         * tests/unistr/test-u16-stpcpy.c: New file.
34199
34200         Tests for module 'unistr/u8-stpcpy'.
34201         * modules/unistr/u8-stpcpy-tests: New file.
34202         * tests/unistr/test-u8-stpcpy.c: New file.
34203         * tests/unistr/test-stpcpy.h: New file.
34204
34205         Tests for module 'unistr/u32-strcpy'.
34206         * modules/unistr/u32-strcpy-tests: New file.
34207         * tests/unistr/test-u32-strcpy.c: New file.
34208
34209         Tests for module 'unistr/u16-strcpy'.
34210         * modules/unistr/u16-strcpy-tests: New file.
34211         * tests/unistr/test-u16-strcpy.c: New file.
34212
34213         Tests for module 'unistr/u8-strcpy'.
34214         * modules/unistr/u8-strcpy-tests: New file.
34215         * tests/unistr/test-u8-strcpy.c: New file.
34216         * tests/unistr/test-strcpy.h: New file.
34217
34218         Tests for module 'unistr/u32-strnlen'.
34219         * modules/unistr/u32-strnlen-tests: New file.
34220         * tests/unistr/test-u32-strnlen.c: New file.
34221
34222         Tests for module 'unistr/u16-strnlen'.
34223         * modules/unistr/u16-strnlen-tests: New file.
34224         * tests/unistr/test-u16-strnlen.c: New file.
34225
34226         Tests for module 'unistr/u8-strnlen'.
34227         * modules/unistr/u8-strnlen-tests: New file.
34228         * tests/unistr/test-u8-strnlen.c: New file.
34229         * tests/unistr/test-strnlen.h: New file.
34230
34231         Tests for module 'unistr/u32-strlen'.
34232         * modules/unistr/u32-strlen-tests: New file.
34233         * tests/unistr/test-u32-strlen.c: New file.
34234
34235         Tests for module 'unistr/u16-strlen'.
34236         * modules/unistr/u16-strlen-tests: New file.
34237         * tests/unistr/test-u16-strlen.c: New file.
34238
34239         Tests for module 'unistr/u8-strlen'.
34240         * modules/unistr/u8-strlen-tests: New file.
34241         * tests/unistr/test-u8-strlen.c: New file.
34242
34243         Tests for module 'unistr/u32-prev'.
34244         * modules/unistr/u32-prev-tests: New file.
34245         * tests/unistr/test-u32-prev.c: New file.
34246
34247         Tests for module 'unistr/u16-prev'.
34248         * modules/unistr/u16-prev-tests: New file.
34249         * tests/unistr/test-u16-prev.c: New file.
34250
34251         Tests for module 'unistr/u8-prev'.
34252         * modules/unistr/u8-prev-tests: New file.
34253         * tests/unistr/test-u8-prev.c: New file.
34254
34255         Tests for module 'unistr/u32-next'.
34256         * modules/unistr/u32-next-tests: New file.
34257         * tests/unistr/test-u32-next.c: New file.
34258
34259         Tests for module 'unistr/u16-next'.
34260         * modules/unistr/u16-next-tests: New file.
34261         * tests/unistr/test-u16-next.c: New file.
34262
34263         Tests for module 'unistr/u8-next'.
34264         * modules/unistr/u8-next-tests: New file.
34265         * tests/unistr/test-u8-next.c: New file.
34266
34267         Tests for module 'unistr/u32-strmbtouc'.
34268         * modules/unistr/u32-strmbtouc-tests: New file.
34269         * tests/unistr/test-u32-strmbtouc.c: New file.
34270
34271         Tests for module 'unistr/u16-strmbtouc'.
34272         * modules/unistr/u16-strmbtouc-tests: New file.
34273         * tests/unistr/test-u16-strmbtouc.c: New file.
34274
34275         Tests for module 'unistr/u8-strmbtouc'.
34276         * modules/unistr/u8-strmbtouc-tests: New file.
34277         * tests/unistr/test-u8-strmbtouc.c: New file.
34278
34279         Tests for module 'unistr/u32-strmblen'.
34280         * modules/unistr/u32-strmblen-tests: New file.
34281         * tests/unistr/test-u32-strmblen.c: New file.
34282
34283         Tests for module 'unistr/u16-strmblen'.
34284         * modules/unistr/u16-strmblen-tests: New file.
34285         * tests/unistr/test-u16-strmblen.c: New file.
34286
34287         Tests for module 'unistr/u8-strmblen'.
34288         * modules/unistr/u8-strmblen-tests: New file.
34289         * tests/unistr/test-u8-strmblen.c: New file.
34290
34291         Tests for module 'unistr/u32-cpy-alloc'.
34292         * modules/unistr/u32-cpy-alloc-tests: New file.
34293         * tests/unistr/test-u32-cpy-alloc.c: New file.
34294
34295         Tests for module 'unistr/u16-cpy-alloc'.
34296         * modules/unistr/u16-cpy-alloc-tests: New file.
34297         * tests/unistr/test-u16-cpy-alloc.c: New file.
34298
34299         Tests for module 'unistr/u8-cpy-alloc'.
34300         * modules/unistr/u8-cpy-alloc-tests: New file.
34301         * tests/unistr/test-u8-cpy-alloc.c: New file.
34302         * tests/unistr/test-cpy-alloc.h: New file.
34303
34304         Tests for module 'unistr/u32-mbsnlen'.
34305         * modules/unistr/u32-mbsnlen-tests: New file.
34306         * tests/unistr/test-u32-mbsnlen.c: New file.
34307
34308         Tests for module 'unistr/u16-mbsnlen'.
34309         * modules/unistr/u16-mbsnlen-tests: New file.
34310         * tests/unistr/test-u16-mbsnlen.c: New file.
34311
34312         Tests for module 'unistr/u8-mbsnlen'.
34313         * modules/unistr/u8-mbsnlen-tests: New file.
34314         * tests/unistr/test-u8-mbsnlen.c: New file.
34315
34316         Tests for module 'unistr/u32-chr'.
34317         * modules/unistr/u32-chr-tests: New file.
34318         * tests/unistr/test-u32-chr.c: New file.
34319
34320         Tests for module 'unistr/u16-chr'.
34321         * modules/unistr/u16-chr-tests: New file.
34322         * tests/unistr/test-u16-chr.c: New file.
34323
34324         Tests for module 'unistr/u8-chr'.
34325         * modules/unistr/u8-chr-tests: New file.
34326         * tests/unistr/test-u8-chr.c: New file.
34327         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34328
34329         Tests for module 'unistr/u32-cmp2'.
34330         * modules/unistr/u32-cmp2-tests: New file.
34331         * tests/unistr/test-u32-cmp2.c: New file.
34332
34333         Tests for module 'unistr/u16-cmp2'.
34334         * modules/unistr/u16-cmp2-tests: New file.
34335         * tests/unistr/test-u16-cmp2.c: New file.
34336
34337         Tests for module 'unistr/u8-cmp2'.
34338         * modules/unistr/u8-cmp2-tests: New file.
34339         * tests/unistr/test-u8-cmp2.c: New file.
34340         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34341
34342         Tests for module 'unistr/u32-cmp'.
34343         * modules/unistr/u32-cmp-tests: New file.
34344         * tests/unistr/test-u32-cmp.c: New file.
34345
34346         Tests for module 'unistr/u16-cmp'.
34347         * modules/unistr/u16-cmp-tests: New file.
34348         * tests/unistr/test-u16-cmp.c: New file.
34349
34350         Tests for module 'unistr/u8-cmp'.
34351         * modules/unistr/u8-cmp-tests: New file.
34352         * tests/unistr/test-u8-cmp.c: New file.
34353         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34354
34355         Tests for module 'unistr/u32-set'.
34356         * modules/unistr/u32-set-tests: New file.
34357         * tests/unistr/test-u32-set.c: New file.
34358
34359         Tests for module 'unistr/u16-set'.
34360         * modules/unistr/u16-set-tests: New file.
34361         * tests/unistr/test-u16-set.c: New file.
34362
34363         Tests for module 'unistr/u8-set'.
34364         * modules/unistr/u8-set-tests: New file.
34365         * tests/unistr/test-u8-set.c: New file.
34366         * tests/unistr/test-set.h: New file.
34367
34368         Tests for module 'unistr/u32-move'.
34369         * modules/unistr/u32-move-tests: New file.
34370         * tests/unistr/test-u32-move.c: New file.
34371
34372         Tests for module 'unistr/u16-move'.
34373         * modules/unistr/u16-move-tests: New file.
34374         * tests/unistr/test-u16-move.c: New file.
34375
34376         Tests for module 'unistr/u8-move'.
34377         * modules/unistr/u8-move-tests: New file.
34378         * tests/unistr/test-u8-move.c: New file.
34379         * tests/unistr/test-move.h: New file.
34380
34381         Tests for module 'unistr/u32-cpy'.
34382         * modules/unistr/u32-cpy-tests: New file.
34383         * tests/unistr/test-u32-cpy.c: New file.
34384
34385         Tests for module 'unistr/u16-cpy'.
34386         * modules/unistr/u16-cpy-tests: New file.
34387         * tests/unistr/test-u16-cpy.c: New file.
34388
34389         Tests for module 'unistr/u8-cpy'.
34390         * modules/unistr/u8-cpy-tests: New file.
34391         * tests/unistr/test-u8-cpy.c: New file.
34392         * tests/unistr/test-cpy.h: New file.
34393
34394 2010-01-09  Bruno Haible  <bruno@clisp.org>
34395
34396         Tests for module 'unistr/u32-uctomb'.
34397         * modules/unistr/u32-uctomb-tests: New file.
34398         * tests/unistr/test-u32-uctomb.c: New file.
34399
34400         Tests for module 'unistr/u16-uctomb'.
34401         * modules/unistr/u16-uctomb-tests: New file.
34402         * tests/unistr/test-u16-uctomb.c: New file.
34403
34404         Tests for module 'unistr/u8-uctomb'.
34405         * modules/unistr/u8-uctomb-tests: New file.
34406         * tests/unistr/test-u8-uctomb.c: New file.
34407
34408         Tests for module 'unistr/u32-mbtoucr'.
34409         * modules/unistr/u32-mbtoucr-tests: New file.
34410         * tests/unistr/test-u32-mbtoucr.c: New file.
34411
34412         Tests for module 'unistr/u16-mbtoucr'.
34413         * modules/unistr/u16-mbtoucr-tests: New file.
34414         * tests/unistr/test-u16-mbtoucr.c: New file.
34415
34416         Tests for module 'unistr/u8-mbtoucr'.
34417         * modules/unistr/u8-mbtoucr-tests: New file.
34418         * tests/unistr/test-u8-mbtoucr.c: New file.
34419
34420         Tests for module 'unistr/u32-mbtouc'.
34421         * modules/unistr/u32-mbtouc-tests: New file.
34422         * tests/unistr/test-u32-mbtouc.c: New file.
34423
34424         Tests for module 'unistr/u16-mbtouc'.
34425         * modules/unistr/u16-mbtouc-tests: New file.
34426         * tests/unistr/test-u16-mbtouc.c: New file.
34427
34428         Tests for module 'unistr/u8-mbtouc'.
34429         * modules/unistr/u8-mbtouc-tests: New file.
34430         * tests/unistr/test-u8-mbtouc.c: New file.
34431
34432         Tests for module 'unistr/u32-mbtouc-unsafe'.
34433         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34434         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34435         * tests/unistr/test-u32-mbtouc.h: New file.
34436
34437         Tests for module 'unistr/u16-mbtouc-unsafe'.
34438         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34439         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34440         * tests/unistr/test-u16-mbtouc.h: New file.
34441
34442         Tests for module 'unistr/u8-mbtouc-unsafe'.
34443         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34444         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34445         * tests/unistr/test-u8-mbtouc.h: New file.
34446
34447         Tests for module 'unistr/u32-mblen'.
34448         * modules/unistr/u32-mblen-tests: New file.
34449         * tests/unistr/test-u32-mblen.c: New file.
34450
34451         Tests for module 'unistr/u16-mblen'.
34452         * modules/unistr/u16-mblen-tests: New file.
34453         * tests/unistr/test-u16-mblen.c: New file.
34454
34455         Tests for module 'unistr/u8-mblen'.
34456         * modules/unistr/u8-mblen-tests: New file.
34457         * tests/unistr/test-u8-mblen.c: New file.
34458
34459         Tests for module 'unistr/u32-to-u16'.
34460         * modules/unistr/u32-to-u16-tests: New file.
34461         * tests/unistr/test-u32-to-u16.c: New file.
34462
34463         Tests for module 'unistr/u32-to-u8'.
34464         * modules/unistr/u32-to-u8-tests: New file.
34465         * tests/unistr/test-u32-to-u8.c: New file.
34466
34467         Tests for module 'unistr/u16-to-u32'.
34468         * modules/unistr/u16-to-u32-tests: New file.
34469         * tests/unistr/test-u16-to-u32.c: New file.
34470
34471         Tests for module 'unistr/u16-to-u8'.
34472         * modules/unistr/u16-to-u8-tests: New file.
34473         * tests/unistr/test-u16-to-u8.c: New file.
34474
34475         Tests for module 'unistr/u8-to-u32'.
34476         * modules/unistr/u8-to-u32-tests: New file.
34477         * tests/unistr/test-u8-to-u32.c: New file.
34478
34479         Tests for module 'unistr/u8-to-u16'.
34480         * modules/unistr/u8-to-u16-tests: New file.
34481         * tests/unistr/test-u8-to-u16.c: New file.
34482
34483         Tests for module 'unistr/u32-check'.
34484         * modules/unistr/u32-check-tests: New file.
34485         * tests/unistr/test-u32-check.c: New file.
34486
34487         Tests for module 'unistr/u16-check'.
34488         * modules/unistr/u16-check-tests: New file.
34489         * tests/unistr/test-u16-check.c: New file.
34490
34491         Tests for module 'unistr/u8-check'.
34492         * modules/unistr/u8-check-tests: New file.
34493         * tests/unistr/test-u8-check.c: New file.
34494
34495         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34496         (category_equals): New function.
34497         (main): Add more tests.
34498         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34499
34500         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34501
34502 2010-01-10  Bruno Haible  <bruno@clisp.org>
34503
34504         unistr/u*-strcoll: Try harder to distinguish different strings.
34505         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34506         compare s1 and s2 to see if they are different.
34507
34508 2010-01-10  Bruno Haible  <bruno@clisp.org>
34509
34510         unistr/u*-stpncpy: Fix the return value.
34511         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34512         description of the return value consistent with stpncpy in glibc.
34513         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34514         written non-NUL unit.
34515
34516 2010-01-10  Bruno Haible  <bruno@clisp.org>
34517
34518         unistr/u*-next: Add missing dependencies.
34519         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34520         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34521         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34522
34523 2010-01-10  Bruno Haible  <bruno@clisp.org>
34524
34525         unistr/u8-mbsnlen: Fix return value for incomplete character.
34526         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34527         u8_mblen.
34528         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34529         Remove unistr/u8-mblen.
34530         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34531         u16_mblen.
34532         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34533         Remove unistr/u16-mblen.
34534
34535 2010-01-10  Bruno Haible  <bruno@clisp.org>
34536
34537         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34538         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34539         Reported by Brian Gough <bjg@gnu.org> and
34540         Chris Clayton <chris2553@googlemail.com> via
34541         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34542
34543 2010-01-09  Bruno Haible  <bruno@clisp.org>
34544
34545         unistr/u16-to-u32: Reject invalid input.
34546         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34547         u16_mbtouc.
34548         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34549         Remove unistr/u16-mbtouc.
34550
34551         unistr/u16-to-u8: Reject invalid input.
34552         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34553         u16_mbtouc.
34554         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34555         Remove unistr/u16-mbtouc.
34556
34557         unistr/u8-to-u32: Reject invalid input.
34558         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34559         u8_mbtouc.
34560         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34561         Remove unistr/u8-mbtouc.
34562
34563         unistr/u8-to-u16: Reject invalid input.
34564         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34565         u8_mbtouc.
34566         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34567         Remove unistr/u8-mbtouc.
34568
34569 2010-01-09  Bruno Haible  <bruno@clisp.org>
34570
34571         Tests for module 'getlogin'.
34572         * modules/getlogin-tests: New file.
34573         * tests/test-getlogin.c: New file.
34574
34575         New module 'getlogin'.
34576         * lib/unistd.in.h (getlogin): New declaration.
34577         * lib/getlogin.c: New file.
34578         * m4/getlogin.m4: New file.
34579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34580         HAVE_GETLOGIN.
34581         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34582         HAVE_GETLOGIN.
34583         * modules/getlogin: New file.
34584         * doc/posix-functions/getlogin.texi: Mention the new module.
34585         Reported by John W. Eaton <jwe@gnu.org>.
34586
34587 2010-01-09  Bruno Haible  <bruno@clisp.org>
34588
34589         getlogin_r: Support for native Windows.
34590         * lib/getlogin_r.c: Include <windows.h>
34591         (getlogin_r): Implement for native Windows.
34592         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34593         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34594         via John W. Eaton <jwe@gnu.org>.
34595
34596 2010-01-09  Bruno Haible  <bruno@clisp.org>
34597
34598         getlogin_r: Small fixes.
34599         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34600         succeeds.
34601         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34602         before testing whether getlogin_r is declared. No need to set
34603         HAVE_DECL_GETLOGIN_R to 1.
34604         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34605
34606 2010-01-09  Bruno Haible  <bruno@clisp.org>
34607
34608         * lib/unistd.in.h (getlogin_r): Add comment.
34609
34610 2010-01-09  Bruno Haible  <bruno@clisp.org>
34611
34612         Tests for module 'getlogin_r'.
34613         * modules/getlogin_r-tests: New file.
34614         * tests/test-getlogin_r.c: New file.
34615
34616 2010-01-09  Jim Meyering  <meyering@redhat.com>
34617
34618         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34619         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34620         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34621
34622 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34623
34624         * lib/dup2.c (rpl_dup2): Improve comment.
34625
34626 2010-01-08  Eric Blake  <ebb9@byu.net>
34627
34628         maint.mk: allow packages to add makefile @@ exceptions
34629         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34630         (sc_makefile_check): Rename...
34631         (sc_makefile_at_at_check): ...to this, and use hook.
34632
34633         dup2: work around mingw bug
34634         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34635         Reported by Simon Josefsson.
34636
34637 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34638
34639         glob: Fix C++ compilation.
34640         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34641         C++.
34642
34643 2010-01-07  Bruno Haible  <bruno@clisp.org>
34644
34645         Fix indentation of wctype.in.h, broken since 2007-01-06.
34646         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34647
34648 2010-01-07  Bruno Haible  <bruno@clisp.org>
34649
34650         mbslen: Avoid collision with system function.
34651         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34652         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34653         * m4/mbslen.m4: New file.
34654         * modules/mbslen (Files): Add it.
34655         (configure.ac): Invoke gl_MBSLEN.
34656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34657         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34658         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34659         via Ian Beckwith <ianb@erislabs.net>.
34660
34661 2010-01-07  Bruno Haible  <bruno@clisp.org>
34662
34663         dirent: Document the last fix.
34664         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34665
34666 2010-01-07  Bruno Haible  <bruno@clisp.org>
34667
34668         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34669         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34670         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34671         va_list are defined.
34672         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34673         Reported by Eric Blake.
34674
34675 2010-01-07  Bruno Haible  <bruno@clisp.org>
34676
34677         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34678         * modules/xlist (Depends-on): Add 'list',
34679         * modules/xoset (Depends-on): Add 'oset'.
34680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34681
34682 2010-01-07  Bruno Haible  <bruno@clisp.org>
34683
34684         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34685         * doc/posix-functions/strncasecmp.texi: Likewise.
34686
34687 2010-01-07  Bruno Haible  <bruno@clisp.org>
34688
34689         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34690
34691 2010-01-07  John W. Eaton  <jwe@octave.org>
34692
34693         wctype: allow C++ use
34694         * lib/wctype.in.h: Add extern "C" block for C++.
34695
34696 2010-01-06  Eric Blake  <ebb9@byu.net>
34697
34698         maint.mk: detect incorrect GFDL usage
34699         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34700
34701 2010-01-06  Jim Meyering  <meyering@redhat.com>
34702         and Eric Blake  <ebb9@byu.net>
34703
34704         maint.mk: ignore multi-line copyright in NEWS
34705         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34706
34707 2010-01-06  Eric Blake  <ebb9@byu.net>
34708
34709         select: add missing dependency
34710         * modules/select-tests (Depends-on): Move sockets dependency...
34711         * modules/select (Depends-on): ...here.
34712         Reported by Ian Beckwith.
34713
34714         doc: regenerate INSTALL
34715         * doc/INSTALL: Reflect recent autoconf update.
34716         * doc/INSTALL.ISO: Likewise.
34717         * doc/INSTALL.UTF-8: Likewise.
34718
34719         pread: fix compilation on glibc
34720         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34721         Reported by Ralf Wildenhues.
34722
34723         dirent: fix test failure
34724         * lib/dirent.in.h (includes): Guarantee ino_t.
34725         Reported by Ralf Wildenhues.
34726
34727 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34728
34729         linkat, renameat: avoid bad free
34730         * lib/at-func2.c (at_func2): Fix typo.
34731         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34732
34733 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34734
34735         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34736         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34737         to avoid failure of symlink test later.
34738
34739 2010-01-06  Eric Blake  <ebb9@byu.net>
34740
34741         stdio, unistd: guarantee ssize_t
34742         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34743         2008 are exposed when needed.
34744         * lib/stdio.in.h (includes): Likewise.
34745         Reported by Ralf Wildenhues.
34746
34747 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34748
34749         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34750         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34751         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34752
34753 2010-01-06  Jim Meyering  <meyering@redhat.com>
34754
34755         readtokens: this module *does* require xalloc.h
34756         It uses only functions that were omitted by the old syntax-check rule.
34757         * lib/readtokens.c: Include "xalloc.h" once again.
34758         * modules/readtokens (Depends-on): Add xalloc.
34759         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34760
34761 2010-01-05  Eric Blake  <ebb9@byu.net>
34762
34763         maint: support 'make announcement' from a VPATH build
34764         * top/maint.mk (announcement): Look for correct NEWS file.
34765
34766 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34767
34768         utimens (fdutimens): ignore a negative FD, per contract
34769         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34770         when we have a valid file descriptor.  Otherwise, using a brand
34771         new glibc (with just-patched futimens that now fails with EBADF)
34772         would cause this function to fail with ENOSYS.
34773         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34774         See also http://bugzilla.redhat.com/552320.
34775
34776 2010-01-05  Eric Blake  <ebb9@byu.net>
34777
34778         strcase: document what it provides
34779         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34780         gnulib module.
34781         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34782         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34783
34784 2010-01-05  Jim Meyering  <meyering@redhat.com>
34785
34786         maint: remove useless inclusions of "xalloc.h"
34787         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34788         * lib/readtokens.c: Likewise.
34789         * lib/same.c: Likewise.
34790         * modules/getloadavg (Depends-on): Remove xalloc.
34791         * modules/readtokens: Likewise.
34792         * modules/same: Likewise.
34793
34794         maint.mk: include 4 more function names in alloca.h-checking regexp
34795         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34796         regexp.  Before, we would give a false-positive (saying alloca.h
34797         is included unnecessarily) when the only uses involved omitted symbols.
34798
34799         xalloc.h: use consistent formatting
34800         * lib/xalloc.h: Move declarations to start in the first column.
34801
34802 2010-01-05  Eric Blake  <ebb9@byu.net>
34803
34804         mkdir: avoid xalloc
34805         * lib/mkdir.c (includes): Drop unused header.
34806         Reported by John W. Eaton.
34807
34808 2010-01-04  Jim Meyering  <meyering@redhat.com>
34809
34810         nl_langinfo: avoid configure-time syntax error
34811         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34812         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34813         the empty string.  Don't let that provoke a shell syntax error.
34814
34815         regcomp, regexec, fnmatch: avoid array bounds read error
34816         * lib/regcomp.c (build_equiv_class): From glibc:
34817         Use only the low 24 bits of a findidx return value as an index
34818         into the weights array.  Patch by Ulrich Drepper:
34819         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34820         * lib/regexec.c (check_node_accept_bytes): Likewise.
34821         * lib/fnmatch_loop.c (FCT): Likewise.
34822
34823         regcomp: skip collseq lookup when there are no rules
34824         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34825         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34826
34827         regcomp: recognize ill-formed { } expressions
34828         * lib/regcomp.c (parse_dup_op): From glibc:
34829         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34830
34831         regcomp: fix typo in comment
34832         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34833         s/satisfy/satisfies/.
34834
34835         regcomp: sync from glibc: remove dead store
34836         * lib/regcomp.c (duplicate_node_closure): Remove useless
34837         search_duplicated_node call and dead store.
34838
34839         regcomp: sync from glibc; always use nl_langinfo
34840         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34841         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34842         * modules/regex (Depends-on): Add nl_langinfo.
34843
34844 2010-01-04  Eric Blake  <ebb9@byu.net>
34845
34846         fdopendir: fix configure test
34847         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34848
34849 2010-01-01  Bruno Haible  <bruno@clisp.org>
34850
34851         wchar: Remove unused configure check.
34852         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34853
34854 2010-01-01  Eric Blake  <ebb9@byu.net>
34855
34856         headers: make check of system header explicit
34857         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34858         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34859         ourselves.
34860         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34861         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34862         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34863         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34864         internals.
34865         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34866         missing.
34867         Suggested by Bruno Haible.
34868
34869 2010-01-01  Jim Meyering  <meyering@redhat.com>
34870
34871         ChangeLog: tweak to eliminate unnecessary copyright line
34872         * ChangeLog: Remove a copyright line that was mistakenly updated
34873         by today's update-copyright run.  Reported by Eric Blake.
34874
34875         test-update-copyright: don't let envvar setting cause test failure
34876         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34877
34878 2010-01-01  Bruno Haible  <bruno@clisp.org>
34879
34880         localename: Avoid gcc warning.
34881         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34882         function if it is not used.
34883
34884 2010-01-01  Jim Meyering  <meyering@redhat.com>
34885
34886         update nearly all FSF copyright year lists to include 2010
34887         Use the same procedure as for 2009, outlined in
34888         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34889
34890         version-etc: set COPYRIGHT_YEAR to 2010
34891         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34892
34893 2009-12-31  Eric Blake  <ebb9@byu.net>
34894
34895         doc: correct availability of cygwin 1.5.x getopt
34896         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34897         variables.
34898         * doc/posix-functions/opterr.texi (opterr): Likewise.
34899         * doc/posix-functions/optind.texi (optind): Likewise.
34900         * doc/posix-functions/optopt.texi (optopt): Likewise.
34901         * doc/posix-functions/tzname.texi (tzname): Likewise.
34902
34903         openat: update maintainer
34904         * modules/openat (Maintainer): Add myself.
34905
34906         utimens: avoid shadowing warning
34907         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34908         buffers into one, to avoid shadowing, as well as avoiding a
34909         redundant stat.
34910         Reported by Jim Meyering.
34911
34912         test-dup2: avoid compiler warning
34913         * tests/test-dup2.c (is_inheritable): Only define if used.
34914
34915 2010-01-01  Bruno Haible  <bruno@clisp.org>
34916
34917         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34918         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34919         defined, use wctomb instead of wcrtomb.
34920
34921 2010-01-01  Bruno Haible  <bruno@clisp.org>
34922
34923         iconv: Reject native Solaris iconv.
34924         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34925         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34926
34927 2009-12-31  Bruno Haible  <bruno@clisp.org>
34928
34929         * tests/test-signal.c (main): Remove test of 'SIG'.
34930
34931 2009-12-31  Bruno Haible  <bruno@clisp.org>
34932
34933         spawn: Fix incomplete fix.
34934         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34935         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34936         warnings for GNULIB_POSIXCHECK again.
34937         Reported by Eric Blake.
34938
34939 2009-12-31  Bruno Haible  <bruno@clisp.org>
34940
34941         Avoid namespace pollution on glibc systems.
34942         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34943         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34944         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34945         glibc systems.
34946
34947 2009-12-31  Bruno Haible  <bruno@clisp.org>
34948
34949         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34950         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34951         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34952         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34953         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34954         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34955         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34956
34957 2009-12-31  Bruno Haible  <bruno@clisp.org>
34958
34959         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34960         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34961         afterwards.
34962
34963 2009-12-31  Bruno Haible  <bruno@clisp.org>
34964
34965         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34966         SYS_UTSNAME_H.
34967
34968 2009-12-31  Bruno Haible  <bruno@clisp.org>
34969
34970         spawn: Fix misapplied patch.
34971         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34972         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34973         warnings for GNULIB_POSIXCHECK.
34974
34975 2009-12-31  Bruno Haible  <bruno@clisp.org>
34976
34977         times: Update after sys_times changed.
34978         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34979         * modules/times (Files): Add it.
34980         (configure.ac): Invoke gl_FUNC_TIMES.
34981
34982 2009-12-31  Bruno Haible  <bruno@clisp.org>
34983
34984         Use AC_C_INLINE where necessary.
34985         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34986         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34987         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34988         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34989         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34990         * m4/mbiter.m4 (gl_MBITER): Likewise.
34991         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34992         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34993         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34994         * modules/u64 (configure.ac): Likewise.
34995
34996 2009-12-31  Bruno Haible  <bruno@clisp.org>
34997
34998         Use AC_C_INLINE instead of module 'inline' where possible.
34999         * modules/inline (Description): Clarify purpose.
35000         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35001         * modules/count-one-bits (Depends-on): Remove inline.
35002         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35003         * modules/openat (Depends-on): Remove inline.
35004         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35005         instead of depending on module 'inline'.
35006         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35007         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35008         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35009         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35010         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35011         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35012         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35013         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35014         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35015         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35016         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35017         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35018         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35019         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35020         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35021         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35022         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35023         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35024         Likewise.
35025         * modules/unictype/property-ascii-hex-digit (Depends-on,
35026         configure.ac): Likewise.
35027         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35028         configure.ac): Likewise.
35029         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35030         configure.ac): Likewise.
35031         * modules/unictype/property-bidi-block-separator (Depends-on,
35032         configure.ac): Likewise.
35033         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35034         configure.ac): Likewise.
35035         * modules/unictype/property-bidi-common-separator (Depends-on,
35036         configure.ac): Likewise.
35037         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35038         Likewise.
35039         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35040         configure.ac): Likewise.
35041         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35042         configure.ac): Likewise.
35043         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35044         configure.ac): Likewise.
35045         * modules/unictype/property-bidi-european-digit (Depends-on,
35046         configure.ac): Likewise.
35047         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35048         configure.ac): Likewise.
35049         * modules/unictype/property-bidi-left-to-right (Depends-on,
35050         configure.ac): Likewise.
35051         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35052         configure.ac): Likewise.
35053         * modules/unictype/property-bidi-other-neutral (Depends-on,
35054         configure.ac): Likewise.
35055         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35056         Likewise.
35057         * modules/unictype/property-bidi-segment-separator (Depends-on,
35058         configure.ac): Likewise.
35059         * modules/unictype/property-bidi-whitespace (Depends-on,
35060         configure.ac): Likewise.
35061         * modules/unictype/property-combining (Depends-on, configure.ac):
35062         Likewise.
35063         * modules/unictype/property-composite (Depends-on, configure.ac):
35064         Likewise.
35065         * modules/unictype/property-currency-symbol (Depends-on,
35066         configure.ac): Likewise.
35067         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35068         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35069         Likewise.
35070         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35071         configure.ac): Likewise.
35072         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35073         Likewise.
35074         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35075         Likewise.
35076         * modules/unictype/property-extender (Depends-on, configure.ac):
35077         Likewise.
35078         * modules/unictype/property-format-control (Depends-on, configure.ac):
35079         Likewise.
35080         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35081         Likewise.
35082         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35083         Likewise.
35084         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35085         Likewise.
35086         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35087         Likewise.
35088         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35089         Likewise.
35090         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35091         Likewise.
35092         * modules/unictype/property-id-start (Depends-on, configure.ac):
35093         Likewise.
35094         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35095         Likewise.
35096         * modules/unictype/property-ids-binary-operator (Depends-on,
35097         configure.ac): Likewise.
35098         * modules/unictype/property-ids-trinary-operator (Depends-on,
35099         configure.ac): Likewise.
35100         * modules/unictype/property-ignorable-control (Depends-on,
35101         configure.ac): Likewise.
35102         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35103         Likewise.
35104         * modules/unictype/property-join-control (Depends-on, configure.ac):
35105         Likewise.
35106         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35107         Likewise.
35108         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35109         Likewise.
35110         * modules/unictype/property-logical-order-exception (Depends-on,
35111         configure.ac): Likewise.
35112         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35113         Likewise.
35114         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35115         * modules/unictype/property-non-break (Depends-on, configure.ac):
35116         Likewise.
35117         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35118         Likewise.
35119         * modules/unictype/property-numeric (Depends-on, configure.ac):
35120         Likewise.
35121         * modules/unictype/property-other-alphabetic (Depends-on,
35122         configure.ac): Likewise.
35123         * modules/unictype/property-other-default-ignorable-code-point
35124         (Depends-on, configure.ac): Likewise.
35125         * modules/unictype/property-other-grapheme-extend (Depends-on,
35126         configure.ac): Likewise.
35127         * modules/unictype/property-other-id-continue (Depends-on,
35128         configure.ac): Likewise.
35129         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35130         Likewise.
35131         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35132         Likewise.
35133         * modules/unictype/property-other-math (Depends-on, configure.ac):
35134         Likewise.
35135         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35136         Likewise.
35137         * modules/unictype/property-paired-punctuation (Depends-on,
35138         configure.ac): Likewise.
35139         * modules/unictype/property-paragraph-separator (Depends-on,
35140         configure.ac): Likewise.
35141         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35142         Likewise.
35143         * modules/unictype/property-pattern-white-space (Depends-on,
35144         configure.ac): Likewise.
35145         * modules/unictype/property-private-use (Depends-on, configure.ac):
35146         Likewise.
35147         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35148         Likewise.
35149         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35150         Likewise.
35151         * modules/unictype/property-radical (Depends-on, configure.ac):
35152         Likewise.
35153         * modules/unictype/property-sentence-terminal (Depends-on,
35154         configure.ac): Likewise.
35155         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35156         Likewise.
35157         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35158         * modules/unictype/property-terminal-punctuation (Depends-on,
35159         configure.ac): Likewise.
35160         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35161         Likewise.
35162         * modules/unictype/property-unassigned-code-value (Depends-on,
35163         configure.ac): Likewise.
35164         * modules/unictype/property-unified-ideograph (Depends-on,
35165         configure.ac): Likewise.
35166         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35167         Likewise.
35168         * modules/unictype/property-variation-selector (Depends-on,
35169         configure.ac): Likewise.
35170         * modules/unictype/property-white-space (Depends-on, configure.ac):
35171         Likewise.
35172         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35173         Likewise.
35174         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35175         Likewise.
35176         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35177         Likewise.
35178         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35179         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35180         Likewise.
35181
35182 2009-12-31  Bruno Haible  <bruno@clisp.org>
35183
35184         Remove unnecessary AC_C_INLINE invocation.
35185         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35186         since 2009-08-21.
35187
35188 2009-12-31  Jim Meyering  <meyering@redhat.com>
35189
35190         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35191         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35192         With this change, we can all remove the gpg_key_ID = ... definition
35193         from our respective cfg.mk files.
35194
35195         maint.mk: create announcement template in ~/, not in /tmp
35196         * top/maint.mk (emit_upload_commands): Adjust.
35197         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35198         Remove temporary file, .ci-msg.
35199
35200 2009-12-31  Eric Blake  <ebb9@byu.net>
35201
35202         link-warning: always build headers with link warnings
35203         * modules/arpa_inet (Makefile.am): Always build replacement
35204         header.
35205         * modules/ctype (Makefile.am): Likewise.
35206         * modules/dirent (Makefile.am): Likewise.
35207         * modules/inttypes (Makefile.am): Likewise.
35208         * modules/langinfo (Makefile.am): Likewise.
35209         * modules/locale (Makefile.am): Likewise.
35210         * modules/spawn (Makefile.am): Likewise.
35211         * modules/sys_file (Makefile.am): Likewise.
35212         * modules/sys_ioctl (Makefile.am): Likewise.
35213         * modules/sys_select (Makefile.am): Likewise.
35214         * modules/sys_socket (Makefile.am): Likewise.
35215         * modules/sys_times (Makefile.am): Likewise.
35216         * modules/sys_utsname (Makefile.am): Likewise.
35217         * modules/sys_wait (Makefile.am): Likewise.
35218         * modules/wchar (Makefile.am): Likewise.
35219         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35220         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35221         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35222         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35223         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35224         Likewise.
35225         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35226         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35227         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35228         Likewise.
35229         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35230         Likewise.
35231         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35232         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35233         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35234         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35235         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35236         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35237         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35238         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35239         (gl_WCHAR_H_DEFAULTS): Likewise.
35240
35241 2009-12-31  Eric Blake  <ebb9@byu.net>
35242
35243         signal, spawn: use link warnings
35244         * lib/signal.in.h (sigset_t): Make unconditional.
35245         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35246         (sigpending, sigprocmask, sigaction): Add link warnings.
35247         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35248         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35249         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35250         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35251         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35252         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35253         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35254         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35255         (posix_spawn_file_actions_destroy)
35256         (posix_spawn_file_actions_addopen)
35257         (posix_spawn_file_actions_addclose)
35258         (posix_spawn_file_actions_adddup2): Likewise.
35259         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35260         * tests/test-signal.c (main): Enhance test.
35261
35262         spawn: improve wrapper support
35263         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35264         (gl_SPAWN_H_DEFAULTS): New defaults.
35265         * modules/spawn (Makefile.am): Substitute them.
35266         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35267         Only declare if missing or broken.
35268
35269         sys_times, sys_utsname: use include_next
35270         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35271         header.
35272         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35273         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35274         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35275         * modules/sys_times (Depends-on): Add include_next.
35276         (Makefile.am): Substitute additional values.
35277         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35278         * lib/sys_times.in.h (includes): Include native header, if
35279         available.
35280         * lib/sys_utsname.in.h (includes): Likewise.
35281         * tests/test-sys_times.c (main): Enhance test.
35282
35283         fdutimensat: revert prior patch
35284         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35285         utimens.h.
35286         Reported by Bruno Haible.
35287
35288 2009-12-30  Eric Blake  <ebb9@byu.net>
35289
35290         sys_wait: drop link-warning dependency
35291         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35292         link-warning efforts.
35293         * lib/sys_wait.in.h: Likewise.
35294
35295         fdutimensat: remove bogus dependency
35296         * modules/fdutimensat (Depends-on): Drop inline.
35297
35298         unistd: fix typo
35299         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35300
35301 2009-12-30  Bruno Haible  <bruno@clisp.org>
35302
35303         Fix compilation error with Solaris cc.
35304         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35305         * lib/unicase/u16-is-invariant.c: Likewise.
35306         * lib/unicase/u32-is-invariant.c: Likewise.
35307         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35308
35309 2009-12-30  Bruno Haible  <bruno@clisp.org>
35310
35311         Fix test crash.
35312         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35313         locales.
35314         Reported by Simon Josefsson <simon@josefsson.org>.
35315
35316 2009-12-30  Bruno Haible  <bruno@clisp.org>
35317
35318         Fix compilation error on most platforms.
35319         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35320         Reported by Simon Josefsson <simon@josefsson.org>
35321         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35322
35323 2009-12-30  Eric Blake  <ebb9@byu.net>
35324
35325         futimens, utimensat: work around ntfs-3g bug
35326         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35327         a ctime bug is present, and expand workaround to cover ntfs-3g.
35328         * lib/utimens.c (fdutimens, lutimens): Likewise.
35329         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35330         (validate_timespec): Adjust return value.
35331         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35332         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35333         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35334
35335 2009-12-29  Eric Blake  <ebb9@byu.net>
35336
35337         link-warning: make usage consistent
35338         * modules/ctype (Depends-on): Add link-warning.
35339         (Makefile.am): Update rules accordingly.
35340         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35341         * modules/locale (Depends-on, Makefile.am): Likewise.
35342         * modules/sys_file (Makefile.am): Likewise.
35343         * modules/getopt-posix (Makefile.am): Delete unused link warning
35344         efforts.
35345         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35346         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35347         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35348         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35349
35350         stdio: remove unused variables
35351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35352         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35353         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35354
35355         tests: test more substitute headers
35356         * modules/ctype-tests: New file.
35357         * modules/dirent-tests: Likewise.
35358         * modules/spawn-tests: Likewise.
35359         * modules/sys_file-tests: Likewise.
35360         * modules/sys_ioctl-tests: Likewise.
35361         * modules/sys_wait-tests: Likewise.
35362         * tests/test-ctype.c: Likewise.
35363         * tests/test-dirent.c: Likewise.
35364         * tests/test-spawn.c: Likewise.
35365         * tests/test-sys_file.c: Likewise.
35366         * tests/test-sys_ioctl.c: Likewise.
35367         * tests/test-sys_wait.c: Likewise.
35368         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35369         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35370         whether or not flock is in use.
35371
35372         tests: remove License section from module
35373         * modules/arpa_inet-tests: Remove unneeded section.
35374         * modules/byteswap-tests: Likewise.
35375         * modules/ceilf-tests: Likewise.
35376         * modules/ceill-tests: Likewise.
35377         * modules/crypto/des-tests: Likewise.
35378         * modules/crypto/gc-arcfour-tests: Likewise.
35379         * modules/crypto/gc-arctwo-tests: Likewise.
35380         * modules/crypto/gc-des-tests: Likewise.
35381         * modules/crypto/gc-hmac-md5-tests: Likewise.
35382         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35383         * modules/crypto/gc-md2-tests: Likewise.
35384         * modules/crypto/gc-md4-tests: Likewise.
35385         * modules/crypto/gc-md5-tests: Likewise.
35386         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35387         * modules/crypto/gc-rijndael-tests: Likewise.
35388         * modules/crypto/gc-sha1-tests: Likewise.
35389         * modules/crypto/gc-tests: Likewise.
35390         * modules/crypto/md2-tests: Likewise.
35391         * modules/crypto/md4-tests: Likewise.
35392         * modules/fcntl-h-tests: Likewise.
35393         * modules/floorf-tests: Likewise.
35394         * modules/floorl-tests: Likewise.
35395         * modules/frexp-nolibm-tests: Likewise.
35396         * modules/frexp-tests: Likewise.
35397         * modules/frexpl-nolibm-tests: Likewise.
35398         * modules/frexpl-tests: Likewise.
35399         * modules/getaddrinfo-tests: Likewise.
35400         * modules/inttypes-tests: Likewise.
35401         * modules/isfinite-tests: Likewise.
35402         * modules/isinf-tests: Likewise.
35403         * modules/ldexpl-tests: Likewise.
35404         * modules/locale-tests: Likewise.
35405         * modules/math-tests: Likewise.
35406         * modules/netdb-tests: Likewise.
35407         * modules/netinet_in-tests: Likewise.
35408         * modules/printf-frexp-tests: Likewise.
35409         * modules/printf-frexpl-tests: Likewise.
35410         * modules/priv-set-tests: Likewise.
35411         * modules/random_r-tests: Likewise.
35412         * modules/round-tests: Likewise.
35413         * modules/roundf-tests: Likewise.
35414         * modules/roundl-tests: Likewise.
35415         * modules/search-tests: Likewise.
35416         * modules/select-tests: Likewise.
35417         * modules/signal-tests: Likewise.
35418         * modules/stdbool-tests: Likewise.
35419         * modules/stddef-tests: Likewise.
35420         * modules/stdint-tests: Likewise.
35421         * modules/stdio-tests: Likewise.
35422         * modules/stdlib-tests: Likewise.
35423         * modules/string-tests: Likewise.
35424         * modules/strings-tests: Likewise.
35425         * modules/sys_select-tests: Likewise.
35426         * modules/sys_socket-tests: Likewise.
35427         * modules/sys_stat-tests: Likewise.
35428         * modules/sys_time-tests: Likewise.
35429         * modules/sys_utsname-tests: Likewise.
35430         * modules/sysexits-tests: Likewise.
35431         * modules/time-tests: Likewise.
35432         * modules/trunc-tests: Likewise.
35433         * modules/truncf-tests: Likewise.
35434         * modules/truncl-tests: Likewise.
35435         * modules/tsearch-tests: Likewise.
35436         * modules/unistd-tests: Likewise.
35437         * modules/wchar-tests: Likewise.
35438         * modules/wctype-tests: Likewise.
35439
35440         tests: fix license on several tests
35441         * tests/test-des.c: Update to GPLv3+.
35442         * tests/test-flock.c: Likewise.
35443         * tests/test-fsync.c: Likewise.
35444         * tests/test-futimens.h: Likewise.
35445         * tests/test-gc-arcfour.c: Likewise.
35446         * tests/test-gc-arctwo.c: Likewise.
35447         * tests/test-gc-des.c: Likewise.
35448         * tests/test-gc-hmac-md5.c: Likewise.
35449         * tests/test-gc-hmac-sha1.c: Likewise.
35450         * tests/test-gc-md2.c: Likewise.
35451         * tests/test-gc-md4.c: Likewise.
35452         * tests/test-gc-md5.c: Likewise.
35453         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35454         * tests/test-gc-rijndael.c: Likewise.
35455         * tests/test-gc-sha1.c: Likewise.
35456         * tests/test-gc.c: Likewise.
35457         * tests/test-getcwd.c: Likewise.
35458         * tests/test-link.c: Likewise.
35459         * tests/test-link.h: Likewise.
35460         * tests/test-lutimens.h: Likewise.
35461         * tests/test-md2.c: Likewise.
35462         * tests/test-md4.c: Likewise.
35463         * tests/test-mkdir.h: Likewise.
35464         * tests/test-rename.c: Likewise.
35465         * tests/test-rename.h: Likewise.
35466         * tests/test-safe-alloc.c: Likewise.
35467         * tests/test-utimens-common.h: Likewise.
35468         * tests/test-utimens.h: Likewise.
35469
35470         maint: sync license texts
35471         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35472         * doc/gpl-3.0.texi: Revert copyright year update.
35473         * doc/lgpl-3.0.texi: Likewise.
35474
35475 2009-12-29  Jim Meyering  <meyering@redhat.com>
35476
35477         update nearly all FSF copyright year lists to include 2009
35478         The files named by the following are exempted:
35479             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35480               test -f "$dst" && { echo "$dst"; continue; }
35481               test -d "$dst" || continue
35482               echo "$dst"/$(basename "$src")
35483             done > exempt
35484             git ls-files tests/unictype >> exempt
35485         In the remaining files, convert to all-interval notation if
35486         - there is already at least one year interval like 2000-2003
35487         - the file is maintained by me
35488         - the file is in lib/uni*/, where that style already prevails
35489         Otherwise, use update-copyright's default.
35490
35491 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35492         and Eric Blake  <ebb9@byu.net>
35493
35494         tests: don't require debug system() to pass
35495         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35496         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35497         * tests/test-unlink.h (test_unlink_func): Likewise.
35498         * tests/test-fstatat.c (main): ...into callers.
35499         * tests/test-lstat.c (main): Likewise.
35500         * tests/test-rmdir.c (main): Likewise.
35501         * tests/test-unlink.c (main): Likewise.
35502         * tests/test-unlinkat.c (main): Likewise.
35503         * tests/test-areadlink-with-size.c (main): Don't require a
35504         debug-only system call to pass, aiding cross-testing to mingw.
35505         * tests/test-areadlink.c (main): Likewise.
35506         * tests/test-areadlinkat-with-size.c (main): Likewise.
35507         * tests/test-areadlinkat.c (main): Likewise.
35508         * tests/test-canonicalize-lgpl.c (main): Likewise.
35509         * tests/test-canonicalize.c (main): Likewise.
35510         * tests/test-chown.c (main): Likewise.
35511         * tests/test-fchownat.c (main): Likewise.
35512         * tests/test-lchown.c (main): Likewise.
35513         * tests/test-fdutimensat.c (main): Likewise.
35514         * tests/test-futimens.c (main): Likewise.
35515         * tests/test-link.c (main): Likewise.
35516         * tests/test-linkat.c (main): Likewise.
35517         * tests/test-mkdir.c (main): Likewise.
35518         * tests/test-mkdirat.c (main): Likewise.
35519         * tests/test-mkfifo.c (main): Likewise.
35520         * tests/test-mkfifoat.c (main): Likewise.
35521         * tests/test-mknod.c (main): Likewise.
35522         * tests/test-readlink.c (main): Likewise.
35523         * tests/test-remove.c (main): Likewise.
35524         * tests/test-rename.c (main): Likewise.
35525         * tests/test-renameat.c (main): Likewise.
35526         * tests/test-symlink.c (main): Likewise.
35527         * tests/test-symlinkat.c (main): Likewise.
35528         * tests/test-utimens.c (main): Likewise.
35529         * tests/test-utimensat.c (main): Likewise.
35530
35531 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35532
35533         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35534         on $(UNUSED_PARAMETER_H) to avoid build failure.
35535
35536 2009-12-28  Jim Meyering  <meyering@redhat.com>
35537
35538         update-copyright: you may specify a max. line length other than 72
35539         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35540
35541         maint: use consistent FSF copyright line syntax
35542         * lib/posixtm.c: Add missing comma in FSF copyright line.
35543         * lib/posixtm.h: Likewise.
35544         * lib/getugroups.c: Add missing ", Inc.".
35545
35546         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35547         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35548         FSF copyright line.  Remove trailing blanks.
35549
35550 2009-12-28  Eric Blake  <ebb9@byu.net>
35551
35552         test-dup2: reduce dependencies
35553         * modules/cloexec (Configure.ac): Set witness.
35554         * modules/dup2-tests (Depends-on): Drop cloexec.
35555         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35556         not present.
35557         Suggested by Bruno Haible.
35558
35559 2009-12-26  Bruno Haible  <bruno@clisp.org>
35560
35561         Remove an unneeded dependency.
35562         * modules/fseterr (Depends-on): Remove dup2.
35563
35564 2009-12-26  Eric Blake  <ebb9@byu.net>
35565
35566         tests: use macros.h in more places
35567         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35568         (ASSERT_STREAM): Provide default of stderr.
35569         * tests/test-dirent-safer.c: Include macros.h, using alternate
35570         stream for assertions.
35571         * tests/test-dup-safer.c: Likewise.
35572         * tests/test-freopen-safer.c: Likewise.
35573         * tests/test-getopt.c: Likewise.
35574         * tests/test-openat-safer.c: Likewise.
35575         * tests/test-pipe.c: Likewise.
35576         * tests/test-popen-safer.c: Likewise.
35577         * modules/dirent-safer-tests (Files): Include macros.h.
35578         * modules/unistd-safer-tests (Files): Likewise.
35579         * modules/freopen-safer-tests (Files): Likewise.
35580         * modules/getopt-posix-tests (Files): Likewise.
35581         * modules/openat-safer-tests (Files): Likewise.
35582         * modules/pipe-tests (Files): Likewise.
35583
35584 2009-12-26  Bruno Haible  <bruno@clisp.org>
35585
35586         javacomp: Portability fix.
35587         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35588         that it also works on Solaris.
35589
35590 2009-12-26  Bruno Haible  <bruno@clisp.org>
35591
35592         localename: Fix storage allocation of gl_locale_name_thread's result.
35593         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35594         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35595         all platforms that have 'uselocale'.
35596         (gl_locale_name_thread_unsafe): New function, extracted from
35597         gl_locale_name_thread.
35598         (gl_locale_name_thread): Call struniq on all platforms that have
35599         'uselocale'.
35600         * tests/test-localename.c (test_locale_name_thread): Check that the
35601         resulting strings are permanently allocated.
35602         * modules/localename-tests (Depends-on): Add strdup.
35603
35604 2009-12-26  Bruno Haible  <bruno@clisp.org>
35605
35606         * tests/test-localename.c (categories): Fill in the strings.
35607
35608 2009-12-26  Jim Meyering  <meyering@redhat.com>
35609
35610         isdir: complete the removal of m4/isdir.m4
35611         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35612
35613         isdir: clean up, since at least grep still uses it
35614         * lib/isdir.c: Include "isdir.h".
35615         (S_ISDIR): Remove now-unneeded definition.
35616         * modules/isdir (Files): Add lib/isdir.h.
35617         * lib/isdir.h: New file, with declaration.
35618         * m4/isdir.m4: Remove file -- unneeded.
35619
35620 2009-12-25  Bruno Haible  <bruno@clisp.org>
35621
35622         selinux-h: Make generated .h files standalone.
35623         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35624         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35625         * lib/se-selinux.in.h: Likewise.
35626         * modules/selinux-h (Depends-on): Add unused-parameter.
35627         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35628         selinux/selinux.h and selinux/context.h.
35629         Suggested by Eric Blake.
35630
35631 2009-12-25  Bruno Haible  <bruno@clisp.org>
35632
35633         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35634         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35635         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35636         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35637         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35638
35639 2009-12-24  Bruno Haible  <bruno@clisp.org>
35640
35641         openat: Fix warning.
35642         * lib/openat-proc.c: Include <unistd.h>.
35643
35644 2009-12-24  Bruno Haible  <bruno@clisp.org>
35645
35646         New module 'unused-parameter'.
35647         * build-aux/unused-parameter.h: New file, extracted from earlier
35648         gnulib-common.m4.
35649         * modules/unused-parameter: New file.
35650         * lib/unistr.h: Include unused-parameter.h.
35651         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35652         _GL_UNUSED.
35653         * modules/unistr/base (Depends-on): Add unused-parameter.
35654
35655 2009-12-24  Bruno Haible  <bruno@clisp.org>
35656
35657         Add missing dependencies to 'extensions' module.
35658         * m4/extensions.m4: Add comment.
35659         * modules/accept4 (Depends-on): Add extensions.
35660         * modules/dup3 (Depends-on): Likewise.
35661         * modules/fcntl (Depends-on): Likewise.
35662         * modules/futimens (Depends-on): Likewise.
35663         * modules/mknod (Depends-on): Likewise.
35664         * modules/pipe2 (Depends-on): Likewise.
35665         * modules/stat-time (Depends-on): Likewise.
35666         * modules/strcasestr-simple (Depends-on): Likewise.
35667         * modules/strsignal (Depends-on): Likewise.
35668         * modules/utimensat (Depends-on): Likewise.
35669         * modules/localcharset (Depends-on): Likewise. Needed because of
35670         gl_FCNTL_O_FLAGS.
35671         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35672         AC_TYPE_MBSTATE_T.
35673         * modules/wcsnrtombs (Depends-on): Likewise.
35674         * modules/wcsrtombs (Depends-on): Likewise.
35675
35676 2009-12-24  Bruno Haible  <bruno@clisp.org>
35677
35678         binary-io: Avoid gcc warning due to SET_BINARY.
35679         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35680         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35681
35682 2009-12-24  Bruno Haible  <bruno@clisp.org>
35683
35684         Avoid future namespace pollution on glibc systems.
35685         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35686         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35687         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35688         glibc systems.
35689
35690 2009-12-24  Bruno Haible  <bruno@clisp.org>
35691
35692         Refactor common macros used in tests.
35693         * tests/macros.h: New file.
35694         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35695         and/or <stdlib.h>, if appropriate.
35696         (ASSERT, SIZEOF): Remove macros.
35697         * tests/test-areadlink-with-size.c: Likewise.
35698         * tests/test-areadlinkat.c: Likewise.
35699         * tests/test-areadlinkat-with-size.c: Likewise.
35700         * tests/test-argmatch.c: Likewise.
35701         * tests/test-argv-iter.c: Likewise.
35702         * tests/test-array-mergesort.c: Likewise.
35703         * tests/test-array_list.c: Likewise.
35704         * tests/test-array_oset.c: Likewise.
35705         * tests/test-avltree_list.c: Likewise.
35706         * tests/test-avltree_oset.c: Likewise.
35707         * tests/test-avltreehash_list.c: Likewise.
35708         * tests/test-base64.c: Likewise.
35709         * tests/test-binary-io.c: Likewise.
35710         * tests/test-bitrotate.c: Likewise.
35711         * tests/test-btowc.c: Likewise.
35712         * tests/test-byteswap.c: Likewise.
35713         * tests/test-c-ctype.c: Likewise.
35714         * tests/test-c-stack.c: Likewise.
35715         * tests/test-c-strcasecmp.c: Likewise.
35716         * tests/test-c-strcasestr.c: Likewise.
35717         * tests/test-c-strncasecmp.c: Likewise.
35718         * tests/test-c-strstr.c: Likewise.
35719         * tests/test-canonicalize-lgpl.c: Likewise.
35720         * tests/test-canonicalize.c: Likewise.
35721         * tests/test-carray_list.c: Likewise.
35722         * tests/test-ceilf1.c: Likewise.
35723         * tests/test-ceilf2.c: Likewise.
35724         * tests/test-ceill.c: Likewise.
35725         * tests/test-chown.c: Likewise.
35726         * tests/test-cloexec.c: Likewise.
35727         * tests/test-copy-acl.c: Likewise.
35728         * tests/test-copy-file.c: Likewise.
35729         * tests/test-count-one-bits.c: Likewise.
35730         * tests/test-dprintf-posix.c: Likewise.
35731         * tests/test-dup2.c: Likewise.
35732         * tests/test-dup3.c: Likewise.
35733         * tests/test-duplocale.c: Likewise.
35734         * tests/test-fbufmode.c: Likewise.
35735         * tests/test-fchdir.c: Likewise.
35736         * tests/test-fchownat.c: Likewise.
35737         * tests/test-fcntl-safer.c: Likewise.
35738         * tests/test-fcntl.c: Likewise.
35739         * tests/test-fdopendir.c: Likewise.
35740         * tests/test-fdutimensat.c: Likewise.
35741         * tests/test-fflush2.c: Likewise.
35742         * tests/test-file-has-acl.c: Likewise.
35743         * tests/test-filevercmp.c: Likewise.
35744         * tests/test-flock.c: Likewise.
35745         * tests/test-floorf1.c: Likewise.
35746         * tests/test-floorf2.c: Likewise.
35747         * tests/test-floorl.c: Likewise.
35748         * tests/test-fnmatch.c: Likewise.
35749         * tests/test-fopen.h: Likewise.
35750         * tests/test-fpending.c: Likewise.
35751         * tests/test-fprintf-posix.c: Likewise.
35752         * tests/test-fpurge.c: Likewise.
35753         * tests/test-freadable.c: Likewise.
35754         * tests/test-freadahead.c: Likewise.
35755         * tests/test-freading.c: Likewise.
35756         * tests/test-freadptr.c: Likewise.
35757         * tests/test-freadptr2.c: Likewise.
35758         * tests/test-freadseek.c: Likewise.
35759         * tests/test-freopen.c: Likewise.
35760         * tests/test-frexp.c: Likewise.
35761         * tests/test-frexpl.c: Likewise.
35762         * tests/test-fseek.c: Likewise.
35763         * tests/test-fseeko.c: Likewise.
35764         * tests/test-fstatat.c: Likewise.
35765         * tests/test-fstrcmp.c: Likewise.
35766         * tests/test-fsync.c: Likewise.
35767         * tests/test-ftell.c: Likewise.
35768         * tests/test-ftello.c: Likewise.
35769         * tests/test-func.c: Likewise.
35770         * tests/test-futimens.c: Likewise.
35771         * tests/test-fwritable.c: Likewise.
35772         * tests/test-fwriting.c: Likewise.
35773         * tests/test-getcwd.c: Likewise.
35774         * tests/test-getdate.c: Likewise.
35775         * tests/test-getdelim.c: Likewise.
35776         * tests/test-getdtablesize.c: Likewise.
35777         * tests/test-getgroups.c: Likewise.
35778         * tests/test-getline.c: Likewise.
35779         * tests/test-getndelim2.c: Likewise.
35780         * tests/test-glob.c: Likewise.
35781         * tests/test-hash.c: Likewise.
35782         * tests/test-i-ring.c: Likewise.
35783         * tests/test-iconv-utf.c: Likewise.
35784         * tests/test-iconv.c: Likewise.
35785         * tests/test-idpriv-drop.c: Likewise.
35786         * tests/test-idpriv-droptemp.c: Likewise.
35787         * tests/test-inet_ntop.c: Likewise.
35788         * tests/test-inet_pton.c: Likewise.
35789         * tests/test-isblank.c: Likewise.
35790         * tests/test-isfinite.c: Likewise.
35791         * tests/test-isinf.c: Likewise.
35792         * tests/test-isnan.c: Likewise.
35793         * tests/test-isnand.h: Likewise.
35794         * tests/test-isnanf.h: Likewise.
35795         * tests/test-isnanl.h: Likewise.
35796         * tests/test-lchown.c: Likewise.
35797         * tests/test-ldexpl.c: Likewise.
35798         * tests/test-link.c: Likewise.
35799         * tests/test-linkat.c: Likewise.
35800         * tests/test-linked_list.c: Likewise.
35801         * tests/test-linkedhash_list.c: Likewise.
35802         * tests/test-localename.c: Likewise.
35803         * tests/test-lseek.c: Likewise.
35804         * tests/test-lstat.c: Likewise.
35805         * tests/test-mbmemcasecmp.c: Likewise.
35806         * tests/test-mbmemcasecoll.c: Likewise.
35807         * tests/test-mbrtowc.c: Likewise.
35808         * tests/test-mbscasecmp.c: Likewise.
35809         * tests/test-mbscasestr1.c: Likewise.
35810         * tests/test-mbscasestr2.c: Likewise.
35811         * tests/test-mbscasestr3.c: Likewise.
35812         * tests/test-mbscasestr4.c: Likewise.
35813         * tests/test-mbschr.c: Likewise.
35814         * tests/test-mbscspn.c: Likewise.
35815         * tests/test-mbsinit.c: Likewise.
35816         * tests/test-mbsncasecmp.c: Likewise.
35817         * tests/test-mbsnrtowcs.c: Likewise.
35818         * tests/test-mbspbrk.c: Likewise.
35819         * tests/test-mbspcasecmp.c: Likewise.
35820         * tests/test-mbsrchr.c: Likewise.
35821         * tests/test-mbsrtowcs.c: Likewise.
35822         * tests/test-mbsspn.c: Likewise.
35823         * tests/test-mbsstr1.c: Likewise.
35824         * tests/test-mbsstr2.c: Likewise.
35825         * tests/test-mbsstr3.c: Likewise.
35826         * tests/test-memchr.c: Likewise.
35827         * tests/test-memchr2.c: Likewise.
35828         * tests/test-memcmp.c: Likewise.
35829         * tests/test-memmem.c: Likewise.
35830         * tests/test-memrchr.c: Likewise.
35831         * tests/test-mkdir.c: Likewise.
35832         * tests/test-mkdirat.c: Likewise.
35833         * tests/test-mkfifo.c: Likewise.
35834         * tests/test-mkfifoat.c: Likewise.
35835         * tests/test-mknod.c: Likewise.
35836         * tests/test-nanosleep.c: Likewise.
35837         * tests/test-nl_langinfo.c: Likewise.
35838         * tests/test-obstack-printf.c: Likewise.
35839         * tests/test-open.c: Likewise.
35840         * tests/test-openat.c: Likewise.
35841         * tests/test-pipe-filter-gi1.c: Likewise.
35842         * tests/test-pipe-filter-gi2-main.c: Likewise.
35843         * tests/test-pipe-filter-ii1.c: Likewise.
35844         * tests/test-pipe-filter-ii2-main.c: Likewise.
35845         * tests/test-pipe2.c: Likewise.
35846         * tests/test-popen.h: Likewise.
35847         * tests/test-posixtm.c: Likewise.
35848         * tests/test-pread.c: Likewise.
35849         * tests/test-printf-frexp.c: Likewise.
35850         * tests/test-printf-frexpl.c: Likewise.
35851         * tests/test-printf-posix.c: Likewise.
35852         * tests/test-priv-set.c: Likewise.
35853         * tests/test-quotearg.c: Likewise.
35854         * tests/test-random_r.c: Likewise.
35855         * tests/test-rawmemchr.c: Likewise.
35856         * tests/test-rbtree_list.c: Likewise.
35857         * tests/test-rbtree_oset.c: Likewise.
35858         * tests/test-rbtreehash_list.c: Likewise.
35859         * tests/test-readlink.c: Likewise.
35860         * tests/test-remove.c: Likewise.
35861         * tests/test-rename.c: Likewise.
35862         * tests/test-renameat.c: Likewise.
35863         * tests/test-rmdir.c: Likewise.
35864         * tests/test-round1.c: Likewise.
35865         * tests/test-roundf1.c: Likewise.
35866         * tests/test-roundl.c: Likewise.
35867         * tests/test-safe-alloc.c: Likewise.
35868         * tests/test-sameacls.c: Likewise.
35869         * tests/test-set-mode-acl.c: Likewise.
35870         * tests/test-setenv.c: Likewise.
35871         * tests/test-sigaction.c: Likewise.
35872         * tests/test-signbit.c: Likewise.
35873         * tests/test-sleep.c: Likewise.
35874         * tests/test-snprintf-posix.c: Likewise.
35875         * tests/test-snprintf.c: Likewise.
35876         * tests/test-sprintf-posix.c: Likewise.
35877         * tests/test-stat-time.c: Likewise.
35878         * tests/test-stat.c: Likewise.
35879         * tests/test-strcasestr.c: Likewise.
35880         * tests/test-strchrnul.c: Likewise.
35881         * tests/test-strerror.c: Likewise.
35882         * tests/test-striconv.c: Likewise.
35883         * tests/test-striconveh.c: Likewise.
35884         * tests/test-striconveha.c: Likewise.
35885         * tests/test-strsignal.c: Likewise.
35886         * tests/test-strstr.c: Likewise.
35887         * tests/test-strtod.c: Likewise.
35888         * tests/test-strverscmp.c: Likewise.
35889         * tests/test-symlink.c: Likewise.
35890         * tests/test-symlinkat.c: Likewise.
35891         * tests/test-trunc1.c: Likewise.
35892         * tests/test-trunc2.c: Likewise.
35893         * tests/test-truncf1.c: Likewise.
35894         * tests/test-truncf2.c: Likewise.
35895         * tests/test-truncl.c: Likewise.
35896         * tests/test-uname.c: Likewise.
35897         * tests/test-unlink.c: Likewise.
35898         * tests/test-unlinkat.c: Likewise.
35899         * tests/test-unsetenv.c: Likewise.
35900         * tests/test-usleep.c: Likewise.
35901         * tests/test-utimens.c: Likewise.
35902         * tests/test-utimensat.c: Likewise.
35903         * tests/test-vasnprintf-posix.c: Likewise.
35904         * tests/test-vasnprintf-posix2.c: Likewise.
35905         * tests/test-vasnprintf.c: Likewise.
35906         * tests/test-vasprintf-posix.c: Likewise.
35907         * tests/test-vasprintf.c: Likewise.
35908         * tests/test-vdprintf-posix.c: Likewise.
35909         * tests/test-vfprintf-posix.c: Likewise.
35910         * tests/test-vprintf-posix.c: Likewise.
35911         * tests/test-vsnprintf-posix.c: Likewise.
35912         * tests/test-vsnprintf.c: Likewise.
35913         * tests/test-vsprintf-posix.c: Likewise.
35914         * tests/test-wcrtomb.c: Likewise.
35915         * tests/test-wcsnrtombs.c: Likewise.
35916         * tests/test-wcsrtombs.c: Likewise.
35917         * tests/test-wctype.c: Likewise.
35918         * tests/test-wcwidth.c: Likewise.
35919         * tests/test-xfprintf-posix.c: Likewise.
35920         * tests/test-xmemdup0.c: Likewise.
35921         * tests/test-xprintf-posix.c: Likewise.
35922         * tests/test-xvasprintf.c: Likewise.
35923         * tests/unicase/test-locale-language.c: Likewise.
35924         * tests/unicase/test-mapping-part1.h: Likewise.
35925         * tests/unicase/test-predicate-part1.h: Likewise.
35926         * tests/unicase/test-u8-casecmp.c: Likewise.
35927         * tests/unicase/test-u8-casecoll.c: Likewise.
35928         * tests/unicase/test-u8-casefold.c: Likewise.
35929         * tests/unicase/test-u8-is-cased.c: Likewise.
35930         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35931         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35932         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35933         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35934         * tests/unicase/test-u8-tolower.c: Likewise.
35935         * tests/unicase/test-u8-totitle.c: Likewise.
35936         * tests/unicase/test-u8-toupper.c: Likewise.
35937         * tests/unicase/test-u16-casecmp.c: Likewise.
35938         * tests/unicase/test-u16-casecoll.c: Likewise.
35939         * tests/unicase/test-u16-casefold.c: Likewise.
35940         * tests/unicase/test-u16-is-cased.c: Likewise.
35941         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35942         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35943         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35944         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35945         * tests/unicase/test-u16-tolower.c: Likewise.
35946         * tests/unicase/test-u16-totitle.c: Likewise.
35947         * tests/unicase/test-u16-toupper.c: Likewise.
35948         * tests/unicase/test-u32-casecmp.c: Likewise.
35949         * tests/unicase/test-u32-casecoll.c: Likewise.
35950         * tests/unicase/test-u32-casefold.c: Likewise.
35951         * tests/unicase/test-u32-is-cased.c: Likewise.
35952         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35953         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35954         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35955         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35956         * tests/unicase/test-u32-tolower.c: Likewise.
35957         * tests/unicase/test-u32-totitle.c: Likewise.
35958         * tests/unicase/test-u32-toupper.c: Likewise.
35959         * tests/unicase/test-ulc-casecmp.c: Likewise.
35960         * tests/unicase/test-ulc-casecoll.c: Likewise.
35961         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35962         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35963         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35964         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35965         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35966         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35967         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35968         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35969         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35970         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35971         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35972         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35973         * tests/unictype/test-bidi_byname.c: Likewise.
35974         * tests/unictype/test-bidi_name.c: Likewise.
35975         * tests/unictype/test-bidi_of.c: Likewise.
35976         * tests/unictype/test-bidi_test.c: Likewise.
35977         * tests/unictype/test-block_list.c: Likewise.
35978         * tests/unictype/test-block_of.c: Likewise.
35979         * tests/unictype/test-block_test.c: Likewise.
35980         * tests/unictype/test-categ_and.c: Likewise.
35981         * tests/unictype/test-categ_and_not.c: Likewise.
35982         * tests/unictype/test-categ_byname.c: Likewise.
35983         * tests/unictype/test-categ_name.c: Likewise.
35984         * tests/unictype/test-categ_none.c: Likewise.
35985         * tests/unictype/test-categ_of.c: Likewise.
35986         * tests/unictype/test-categ_or.c: Likewise.
35987         * tests/unictype/test-categ_test_withtable.c: Likewise.
35988         * tests/unictype/test-combining.c: Likewise.
35989         * tests/unictype/test-decdigit.c: Likewise.
35990         * tests/unictype/test-digit.c: Likewise.
35991         * tests/unictype/test-mirror.c: Likewise.
35992         * tests/unictype/test-numeric.c: Likewise.
35993         * tests/unictype/test-pr_byname.c: Likewise.
35994         * tests/unictype/test-pr_test.c: Likewise.
35995         * tests/unictype/test-predicate-part1.h: Likewise.
35996         * tests/unictype/test-scripts.c: Likewise.
35997         * tests/unictype/test-sy_c_ident.c: Likewise.
35998         * tests/unictype/test-sy_java_ident.c: Likewise.
35999         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36000         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36001         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36002         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36003         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36004         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36005         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36006         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36007         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36008         * tests/uninorm/test-compat-decomposition.c: Likewise.
36009         * tests/uninorm/test-composition.c: Likewise.
36010         * tests/uninorm/test-decomposing-form.c: Likewise.
36011         * tests/uninorm/test-decomposition.c: Likewise.
36012         * tests/uninorm/test-u8-nfc.c: Likewise.
36013         * tests/uninorm/test-u8-nfd.c: Likewise.
36014         * tests/uninorm/test-u8-nfkc.c: Likewise.
36015         * tests/uninorm/test-u8-nfkd.c: Likewise.
36016         * tests/uninorm/test-u8-normcmp.c: Likewise.
36017         * tests/uninorm/test-u8-normcoll.c: Likewise.
36018         * tests/uninorm/test-u16-nfc.c: Likewise.
36019         * tests/uninorm/test-u16-nfd.c: Likewise.
36020         * tests/uninorm/test-u16-nfkc.c: Likewise.
36021         * tests/uninorm/test-u16-nfkd.c: Likewise.
36022         * tests/uninorm/test-u16-normcmp.c: Likewise.
36023         * tests/uninorm/test-u16-normcoll.c: Likewise.
36024         * tests/uninorm/test-u32-nfc.c: Likewise.
36025         * tests/uninorm/test-u32-nfd.c: Likewise.
36026         * tests/uninorm/test-u32-nfkc.c: Likewise.
36027         * tests/uninorm/test-u32-nfkd.c: Likewise.
36028         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36029         * tests/uninorm/test-u32-normcmp.c: Likewise.
36030         * tests/uninorm/test-u32-normcoll.c: Likewise.
36031         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36032         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36033         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36034         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36035         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36036         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36037         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36038         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36039         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36040         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36041         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36042         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36043         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36044         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36045         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36046         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36047         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36048         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36049         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36050         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36051         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36052         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36053         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36054         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36055         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36056         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36057         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36058         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36059         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36060         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36061         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36062         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36063         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36064         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36065         * tests/uniwidth/test-u8-width.c: Likewise.
36066         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36067         * tests/uniwidth/test-u16-width.c: Likewise.
36068         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36069         * tests/uniwidth/test-u32-width.c: Likewise.
36070         * tests/uniwidth/test-uc_width.c: Likewise.
36071         * tests/uniwidth/test-uc_width2.c: Likewise.
36072         * modules/acl-tests (Files): Add tests/macros.h.
36073         * modules/areadlink-tests (Files): Likewise.
36074         * modules/areadlink-with-size-tests (Files): Likewise.
36075         * modules/areadlinkat-tests (Files): Likewise.
36076         * modules/areadlinkat-with-size-tests (Files): Likewise.
36077         * modules/argmatch-tests (Files): Likewise.
36078         * modules/argv-iter-tests (Files): Likewise.
36079         * modules/array-list-tests (Files): Likewise.
36080         * modules/array-mergesort-tests (Files): Likewise.
36081         * modules/array-oset-tests (Files): Likewise.
36082         * modules/avltree-list-tests (Files): Likewise.
36083         * modules/avltree-oset-tests (Files): Likewise.
36084         * modules/avltreehash-list-tests (Files): Likewise.
36085         * modules/base64-tests (Files): Likewise.
36086         * modules/binary-io-tests (Files): Likewise.
36087         * modules/bitrotate-tests (Files): Likewise.
36088         * modules/btowc-tests (Files): Likewise.
36089         * modules/byteswap-tests (Files): Likewise.
36090         * modules/c-ctype-tests (Files): Likewise.
36091         * modules/c-stack-tests (Files): Likewise.
36092         * modules/c-strcase-tests (Files): Likewise.
36093         * modules/c-strcasestr-tests (Files): Likewise.
36094         * modules/c-strstr-tests (Files): Likewise.
36095         * modules/canonicalize-lgpl-tests (Files): Likewise.
36096         * modules/canonicalize-tests (Files): Likewise.
36097         * modules/carray-list-tests (Files): Likewise.
36098         * modules/ceilf-tests (Files): Likewise.
36099         * modules/ceill-tests (Files): Likewise.
36100         * modules/chown-tests (Files): Likewise.
36101         * modules/cloexec-tests (Files): Likewise.
36102         * modules/copy-file-tests (Files): Likewise.
36103         * modules/count-one-bits-tests (Files): Likewise.
36104         * modules/dprintf-posix-tests (Files): Likewise.
36105         * modules/dup2-tests (Files): Likewise.
36106         * modules/dup3-tests (Files): Likewise.
36107         * modules/duplocale-tests (Files): Likewise.
36108         * modules/fbufmode-tests (Files): Likewise.
36109         * modules/fchdir-tests (Files): Likewise.
36110         * modules/fcntl-safer-tests (Files): Likewise.
36111         * modules/fcntl-tests (Files): Likewise.
36112         * modules/fdopendir-tests (Files): Likewise.
36113         * modules/fdutimensat-tests (Files): Likewise.
36114         * modules/fflush-tests (Files): Likewise.
36115         * modules/filevercmp-tests (Files): Likewise.
36116         * modules/flock-tests (Files): Likewise.
36117         * modules/floorf-tests (Files): Likewise.
36118         * modules/floorl-tests (Files): Likewise.
36119         * modules/fnmatch-tests (Files): Likewise.
36120         * modules/fopen-safer-tests (Files): Likewise.
36121         * modules/fopen-tests (Files): Likewise.
36122         * modules/fpending-tests (Files): Likewise.
36123         * modules/fprintf-posix-tests (Files): Likewise.
36124         * modules/fpurge-tests (Files): Likewise.
36125         * modules/freadable-tests (Files): Likewise.
36126         * modules/freadahead-tests (Files): Likewise.
36127         * modules/freading-tests (Files): Likewise.
36128         * modules/freadptr-tests (Files): Likewise.
36129         * modules/freadseek-tests (Files): Likewise.
36130         * modules/freopen-tests (Files): Likewise.
36131         * modules/frexp-nolibm-tests (Files): Likewise.
36132         * modules/frexp-tests (Files): Likewise.
36133         * modules/frexpl-nolibm-tests (Files): Likewise.
36134         * modules/frexpl-tests (Files): Likewise.
36135         * modules/fseek-tests (Files): Likewise.
36136         * modules/fseeko-tests (Files): Likewise.
36137         * modules/fstrcmp-tests (Files): Likewise.
36138         * modules/fsync-tests (Files): Likewise.
36139         * modules/ftell-tests (Files): Likewise.
36140         * modules/ftello-tests (Files): Likewise.
36141         * modules/func-tests (Files): Likewise.
36142         * modules/futimens-tests (Files): Likewise.
36143         * modules/fwritable-tests (Files): Likewise.
36144         * modules/fwriting-tests (Files): Likewise.
36145         * modules/getcwd-tests (Files): Likewise.
36146         * modules/getdate-tests (Files): Likewise.
36147         * modules/getdelim-tests (Files): Likewise.
36148         * modules/getdtablesize-tests (Files): Likewise.
36149         * modules/getgroups-tests (Files): Likewise.
36150         * modules/getline-tests (Files): Likewise.
36151         * modules/getndelim2-tests (Files): Likewise.
36152         * modules/glob-tests (Files): Likewise.
36153         * modules/hash-tests (Files): Likewise.
36154         * modules/i-ring-tests (Files): Likewise.
36155         * modules/iconv-tests (Files): Likewise.
36156         * modules/iconv_open-utf-tests (Files): Likewise.
36157         * modules/idpriv-drop-tests (Files): Likewise.
36158         * modules/idpriv-droptemp-tests (Files): Likewise.
36159         * modules/inet_ntop-tests (Files): Likewise.
36160         * modules/inet_pton-tests (Files): Likewise.
36161         * modules/isblank-tests (Files): Likewise.
36162         * modules/isfinite-tests (Files): Likewise.
36163         * modules/isinf-tests (Files): Likewise.
36164         * modules/isnan-tests (Files): Likewise.
36165         * modules/isnand-nolibm-tests (Files): Likewise.
36166         * modules/isnand-tests (Files): Likewise.
36167         * modules/isnanf-nolibm-tests (Files): Likewise.
36168         * modules/isnanf-tests (Files): Likewise.
36169         * modules/isnanl-nolibm-tests (Files): Likewise.
36170         * modules/isnanl-tests (Files): Likewise.
36171         * modules/lchown-tests (Files): Likewise.
36172         * modules/ldexpl-tests (Files): Likewise.
36173         * modules/link-tests (Files): Likewise.
36174         * modules/linkat-tests (Files): Likewise.
36175         * modules/linked-list-tests (Files): Likewise.
36176         * modules/linkedhash-list-tests (Files): Likewise.
36177         * modules/localename-tests (Files): Likewise.
36178         * modules/lseek-tests (Files): Likewise.
36179         * modules/lstat-tests (Files): Likewise.
36180         * modules/mbmemcasecmp-tests (Files): Likewise.
36181         * modules/mbmemcasecoll-tests (Files): Likewise.
36182         * modules/mbrtowc-tests (Files): Likewise.
36183         * modules/mbscasecmp-tests (Files): Likewise.
36184         * modules/mbscasestr-tests (Files): Likewise.
36185         * modules/mbschr-tests (Files): Likewise.
36186         * modules/mbscspn-tests (Files): Likewise.
36187         * modules/mbsinit-tests (Files): Likewise.
36188         * modules/mbsncasecmp-tests (Files): Likewise.
36189         * modules/mbsnrtowcs-tests (Files): Likewise.
36190         * modules/mbspbrk-tests (Files): Likewise.
36191         * modules/mbspcasecmp-tests (Files): Likewise.
36192         * modules/mbsrchr-tests (Files): Likewise.
36193         * modules/mbsrtowcs-tests (Files): Likewise.
36194         * modules/mbsspn-tests (Files): Likewise.
36195         * modules/mbsstr-tests (Files): Likewise.
36196         * modules/memchr-tests (Files): Likewise.
36197         * modules/memchr2-tests (Files): Likewise.
36198         * modules/memcmp-tests (Files): Likewise.
36199         * modules/memmem-tests (Files): Likewise.
36200         * modules/memrchr-tests (Files): Likewise.
36201         * modules/mkdir-tests (Files): Likewise.
36202         * modules/mkfifo-tests (Files): Likewise.
36203         * modules/mkfifoat-tests (Files): Likewise.
36204         * modules/mknod-tests (Files): Likewise.
36205         * modules/nanosleep-tests (Files): Likewise.
36206         * modules/nl_langinfo-tests (Files): Likewise.
36207         * modules/obstack-printf-tests (Files): Likewise.
36208         * modules/open-tests (Files): Likewise.
36209         * modules/openat-tests (Files): Likewise.
36210         * modules/pipe-filter-gi-tests (Files): Likewise.
36211         * modules/pipe-filter-ii-tests (Files): Likewise.
36212         * modules/pipe2-tests (Files): Likewise.
36213         * modules/popen-safer-tests (Files): Likewise.
36214         * modules/popen-tests (Files): Likewise.
36215         * modules/posixtm-tests (Files): Likewise.
36216         * modules/pread-tests (Files): Likewise.
36217         * modules/printf-frexp-tests (Files): Likewise.
36218         * modules/printf-frexpl-tests (Files): Likewise.
36219         * modules/printf-posix-tests (Files): Likewise.
36220         * modules/priv-set-tests (Files): Likewise.
36221         * modules/quotearg-tests (Files): Likewise.
36222         * modules/random_r-tests (Files): Likewise.
36223         * modules/rawmemchr-tests (Files): Likewise.
36224         * modules/rbtree-list-tests (Files): Likewise.
36225         * modules/rbtree-oset-tests (Files): Likewise.
36226         * modules/rbtreehash-list-tests (Files): Likewise.
36227         * modules/readlink-tests (Files): Likewise.
36228         * modules/remove-tests (Files): Likewise.
36229         * modules/rename-tests (Files): Likewise.
36230         * modules/renameat-tests (Files): Likewise.
36231         * modules/rmdir-tests (Files): Likewise.
36232         * modules/round-tests (Files): Likewise.
36233         * modules/roundf-tests (Files): Likewise.
36234         * modules/roundl-tests (Files): Likewise.
36235         * modules/safe-alloc-tests (Files): Likewise.
36236         * modules/setenv-tests (Files): Likewise.
36237         * modules/sigaction-tests (Files): Likewise.
36238         * modules/signbit-tests (Files): Likewise.
36239         * modules/sleep-tests (Files): Likewise.
36240         * modules/snprintf-posix-tests (Files): Likewise.
36241         * modules/snprintf-tests (Files): Likewise.
36242         * modules/sprintf-posix-tests (Files): Likewise.
36243         * modules/stat-tests (Files): Likewise.
36244         * modules/stat-time-tests (Files): Likewise.
36245         * modules/strcasestr-tests (Files): Likewise.
36246         * modules/strchrnul-tests (Files): Likewise.
36247         * modules/strerror-tests (Files): Likewise.
36248         * modules/striconv-tests (Files): Likewise.
36249         * modules/striconveh-tests (Files): Likewise.
36250         * modules/striconveha-tests (Files): Likewise.
36251         * modules/strsignal-tests (Files): Likewise.
36252         * modules/strstr-tests (Files): Likewise.
36253         * modules/strtod-tests (Files): Likewise.
36254         * modules/strverscmp-tests (Files): Likewise.
36255         * modules/symlink-tests (Files): Likewise.
36256         * modules/symlinkat-tests (Files): Likewise.
36257         * modules/trunc-tests (Files): Likewise.
36258         * modules/truncf-tests (Files): Likewise.
36259         * modules/truncl-tests (Files): Likewise.
36260         * modules/uname-tests (Files): Likewise.
36261         * modules/unicase/cased-tests (Files): Likewise.
36262         * modules/unicase/ignorable-tests (Files): Likewise.
36263         * modules/unicase/locale-language-tests (Files): Likewise.
36264         * modules/unicase/tolower-tests (Files): Likewise.
36265         * modules/unicase/totitle-tests (Files): Likewise.
36266         * modules/unicase/toupper-tests (Files): Likewise.
36267         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36268         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36269         * modules/unicase/u8-casefold-tests (Files): Likewise.
36270         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36271         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36272         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36273         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36274         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36275         * modules/unicase/u8-tolower-tests (Files): Likewise.
36276         * modules/unicase/u8-totitle-tests (Files): Likewise.
36277         * modules/unicase/u8-toupper-tests (Files): Likewise.
36278         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36279         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36280         * modules/unicase/u16-casefold-tests (Files): Likewise.
36281         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36282         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36283         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36284         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36285         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36286         * modules/unicase/u16-tolower-tests (Files): Likewise.
36287         * modules/unicase/u16-totitle-tests (Files): Likewise.
36288         * modules/unicase/u16-toupper-tests (Files): Likewise.
36289         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36290         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36291         * modules/unicase/u32-casefold-tests (Files): Likewise.
36292         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36293         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36294         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36295         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36296         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36297         * modules/unicase/u32-tolower-tests (Files): Likewise.
36298         * modules/unicase/u32-totitle-tests (Files): Likewise.
36299         * modules/unicase/u32-toupper-tests (Files): Likewise.
36300         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36301         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36302         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36303         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36304         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36305         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36306         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36307         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36308         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36309         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36310         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36311         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36312         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36313         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36314         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36315         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36316         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36317         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36318         * modules/unictype/block-list-tests (Files): Likewise.
36319         * modules/unictype/block-of-tests (Files): Likewise.
36320         * modules/unictype/block-test-tests (Files): Likewise.
36321         * modules/unictype/category-C-tests (Files): Likewise.
36322         * modules/unictype/category-Cc-tests (Files): Likewise.
36323         * modules/unictype/category-Cf-tests (Files): Likewise.
36324         * modules/unictype/category-Cn-tests (Files): Likewise.
36325         * modules/unictype/category-Co-tests (Files): Likewise.
36326         * modules/unictype/category-Cs-tests (Files): Likewise.
36327         * modules/unictype/category-L-tests (Files): Likewise.
36328         * modules/unictype/category-Ll-tests (Files): Likewise.
36329         * modules/unictype/category-Lm-tests (Files): Likewise.
36330         * modules/unictype/category-Lo-tests (Files): Likewise.
36331         * modules/unictype/category-Lt-tests (Files): Likewise.
36332         * modules/unictype/category-Lu-tests (Files): Likewise.
36333         * modules/unictype/category-M-tests (Files): Likewise.
36334         * modules/unictype/category-Mc-tests (Files): Likewise.
36335         * modules/unictype/category-Me-tests (Files): Likewise.
36336         * modules/unictype/category-Mn-tests (Files): Likewise.
36337         * modules/unictype/category-N-tests (Files): Likewise.
36338         * modules/unictype/category-Nd-tests (Files): Likewise.
36339         * modules/unictype/category-Nl-tests (Files): Likewise.
36340         * modules/unictype/category-No-tests (Files): Likewise.
36341         * modules/unictype/category-P-tests (Files): Likewise.
36342         * modules/unictype/category-Pc-tests (Files): Likewise.
36343         * modules/unictype/category-Pd-tests (Files): Likewise.
36344         * modules/unictype/category-Pe-tests (Files): Likewise.
36345         * modules/unictype/category-Pf-tests (Files): Likewise.
36346         * modules/unictype/category-Pi-tests (Files): Likewise.
36347         * modules/unictype/category-Po-tests (Files): Likewise.
36348         * modules/unictype/category-Ps-tests (Files): Likewise.
36349         * modules/unictype/category-S-tests (Files): Likewise.
36350         * modules/unictype/category-Sc-tests (Files): Likewise.
36351         * modules/unictype/category-Sk-tests (Files): Likewise.
36352         * modules/unictype/category-Sm-tests (Files): Likewise.
36353         * modules/unictype/category-So-tests (Files): Likewise.
36354         * modules/unictype/category-Z-tests (Files): Likewise.
36355         * modules/unictype/category-Zl-tests (Files): Likewise.
36356         * modules/unictype/category-Zp-tests (Files): Likewise.
36357         * modules/unictype/category-Zs-tests (Files): Likewise.
36358         * modules/unictype/category-and-not-tests (Files): Likewise.
36359         * modules/unictype/category-and-tests (Files): Likewise.
36360         * modules/unictype/category-byname-tests (Files): Likewise.
36361         * modules/unictype/category-name-tests (Files): Likewise.
36362         * modules/unictype/category-none-tests (Files): Likewise.
36363         * modules/unictype/category-of-tests (Files): Likewise.
36364         * modules/unictype/category-or-tests (Files): Likewise.
36365         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36366         * modules/unictype/combining-class-tests (Files): Likewise.
36367         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36368         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36369         * modules/unictype/ctype-blank-tests (Files): Likewise.
36370         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36371         * modules/unictype/ctype-digit-tests (Files): Likewise.
36372         * modules/unictype/ctype-graph-tests (Files): Likewise.
36373         * modules/unictype/ctype-lower-tests (Files): Likewise.
36374         * modules/unictype/ctype-print-tests (Files): Likewise.
36375         * modules/unictype/ctype-punct-tests (Files): Likewise.
36376         * modules/unictype/ctype-space-tests (Files): Likewise.
36377         * modules/unictype/ctype-upper-tests (Files): Likewise.
36378         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36379         * modules/unictype/decimal-digit-tests (Files): Likewise.
36380         * modules/unictype/digit-tests (Files): Likewise.
36381         * modules/unictype/mirror-tests (Files): Likewise.
36382         * modules/unictype/numeric-tests (Files): Likewise.
36383         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36384         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36385         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36386         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36387         Likewise.
36388         * modules/unictype/property-bidi-block-separator-tests (Files):
36389         Likewise.
36390         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36391         Likewise.
36392         * modules/unictype/property-bidi-common-separator-tests (Files):
36393         Likewise.
36394         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36395         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36396         Likewise.
36397         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36398         Likewise.
36399         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36400         Likewise.
36401         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36402         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36403         Likewise.
36404         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36405         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36406         Likewise.
36407         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36408         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36409         * modules/unictype/property-bidi-segment-separator-tests (Files):
36410         Likewise.
36411         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36412         * modules/unictype/property-byname-tests (Files): Likewise.
36413         * modules/unictype/property-combining-tests (Files): Likewise.
36414         * modules/unictype/property-composite-tests (Files): Likewise.
36415         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36416         * modules/unictype/property-dash-tests (Files): Likewise.
36417         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36418         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36419         Likewise.
36420         * modules/unictype/property-deprecated-tests (Files): Likewise.
36421         * modules/unictype/property-diacritic-tests (Files): Likewise.
36422         * modules/unictype/property-extender-tests (Files): Likewise.
36423         * modules/unictype/property-format-control-tests (Files): Likewise.
36424         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36425         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36426         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36427         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36428         * modules/unictype/property-hyphen-tests (Files): Likewise.
36429         * modules/unictype/property-id-continue-tests (Files): Likewise.
36430         * modules/unictype/property-id-start-tests (Files): Likewise.
36431         * modules/unictype/property-ideographic-tests (Files): Likewise.
36432         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36433         * modules/unictype/property-ids-trinary-operator-tests (Files):
36434         Likewise.
36435         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36436         * modules/unictype/property-iso-control-tests (Files): Likewise.
36437         * modules/unictype/property-join-control-tests (Files): Likewise.
36438         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36439         * modules/unictype/property-line-separator-tests (Files): Likewise.
36440         * modules/unictype/property-logical-order-exception-tests (Files):
36441         Likewise.
36442         * modules/unictype/property-lowercase-tests (Files): Likewise.
36443         * modules/unictype/property-math-tests (Files): Likewise.
36444         * modules/unictype/property-non-break-tests (Files): Likewise.
36445         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36446         * modules/unictype/property-numeric-tests (Files): Likewise.
36447         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36448         * modules/unictype/property-other-default-ignorable-code-point-tests
36449         (Files): Likewise.
36450         * modules/unictype/property-other-grapheme-extend-tests (Files):
36451         Likewise.
36452         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36453         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36454         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36455         * modules/unictype/property-other-math-tests (Files): Likewise.
36456         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36457         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36458         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36459         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36460         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36461         * modules/unictype/property-private-use-tests (Files): Likewise.
36462         * modules/unictype/property-punctuation-tests (Files): Likewise.
36463         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36464         * modules/unictype/property-radical-tests (Files): Likewise.
36465         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36466         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36467         * modules/unictype/property-space-tests (Files): Likewise.
36468         * modules/unictype/property-terminal-punctuation-tests (Files):
36469         Likewise.
36470         * modules/unictype/property-test-tests (Files): Likewise.
36471         * modules/unictype/property-titlecase-tests (Files): Likewise.
36472         * modules/unictype/property-unassigned-code-value-tests (Files):
36473         Likewise.
36474         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36475         * modules/unictype/property-uppercase-tests (Files): Likewise.
36476         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36477         * modules/unictype/property-white-space-tests (Files): Likewise.
36478         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36479         * modules/unictype/property-xid-start-tests (Files): Likewise.
36480         * modules/unictype/property-zero-width-tests (Files): Likewise.
36481         * modules/unictype/scripts-tests (Files): Likewise.
36482         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36483         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36484         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36485         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36486         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36487         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36488         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36489         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36490         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36491         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36492         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36493         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36494         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36495         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36496         * modules/uninorm/composition-tests (Files): Likewise.
36497         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36498         * modules/uninorm/decomposition-tests (Files): Likewise.
36499         * modules/uninorm/filter-tests (Files): Likewise.
36500         * modules/uninorm/nfc-tests (Files): Likewise.
36501         * modules/uninorm/nfd-tests (Files): Likewise.
36502         * modules/uninorm/nfkc-tests (Files): Likewise.
36503         * modules/uninorm/nfkd-tests (Files): Likewise.
36504         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36505         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36506         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36507         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36508         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36509         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36510         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36511         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36512         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36513         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36514         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36515         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36516         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36517         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36518         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36519         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36520         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36521         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36522         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36523         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36524         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36525         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36526         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36527         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36528         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36529         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36530         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36531         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36532         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36533         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36534         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36535         * modules/uniwidth/u8-width-tests (Files): Likewise.
36536         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36537         * modules/uniwidth/u16-width-tests (Files): Likewise.
36538         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36539         * modules/uniwidth/u32-width-tests (Files): Likewise.
36540         * modules/uniwidth/width-tests (Files): Likewise.
36541         * modules/unlink-tests (Files): Likewise.
36542         * modules/unsetenv-tests (Files): Likewise.
36543         * modules/usleep-tests (Files): Likewise.
36544         * modules/utimens-tests (Files): Likewise.
36545         * modules/utimensat-tests (Files): Likewise.
36546         * modules/vasnprintf-posix-tests (Files): Likewise.
36547         * modules/vasnprintf-tests (Files): Likewise.
36548         * modules/vasprintf-posix-tests (Files): Likewise.
36549         * modules/vasprintf-tests (Files): Likewise.
36550         * modules/vdprintf-posix-tests (Files): Likewise.
36551         * modules/vfprintf-posix-tests (Files): Likewise.
36552         * modules/vprintf-posix-tests (Files): Likewise.
36553         * modules/vsnprintf-posix-tests (Files): Likewise.
36554         * modules/vsnprintf-tests (Files): Likewise.
36555         * modules/vsprintf-posix-tests (Files): Likewise.
36556         * modules/wcrtomb-tests (Files): Likewise.
36557         * modules/wcsnrtombs-tests (Files): Likewise.
36558         * modules/wcsrtombs-tests (Files): Likewise.
36559         * modules/wctype-tests (Files): Likewise.
36560         * modules/wcwidth-tests (Files): Likewise.
36561         * modules/xmemdup0-tests (Files): Likewise.
36562         * modules/xprintf-posix-tests (Files): Likewise.
36563         * modules/xvasprintf-tests (Files): Likewise.
36564
36565 2009-12-24  Eric Blake  <ebb9@byu.net>
36566
36567         test-nanosleep: fix typo
36568         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36569         patch.
36570         Reported by Bruno Haible.
36571
36572 2009-12-24  Bruno Haible  <bruno@clisp.org>
36573
36574         Reduce namespace pollution on glibc systems.
36575         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36576         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36577         systems.
36578         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36579         <getopt.h> on glibc systems.
36580         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36581         systems.
36582         * lib/fcntl.c: Include <unistd.h> here instead.
36583
36584 2009-12-24  Bruno Haible  <bruno@clisp.org>
36585
36586         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36587
36588 2009-12-24  Eric Blake  <ebb9@byu.net>
36589
36590         tests: add signature checks
36591         * tests/signature.h (SIGNATURE_CHECK): New file.
36592         * modules/atexit-tests (Files): Use it.
36593         * modules/btowc-tests (Files): Likewise.
36594         * modules/canonicalize-lgpl-tests (Files): Likewise.
36595         * modules/ceilf-tests (Files): Likewise.
36596         * modules/ceill-tests (Files): Likewise.
36597         * modules/chown-tests (Files): Likewise.
36598         * modules/dprintf-posix-tests (Files): Likewise.
36599         * modules/dup2-tests (Files): Likewise.
36600         * modules/dup3-tests (Files): Likewise.
36601         * modules/duplocale-tests (Files): Likewise.
36602         * modules/fchdir-tests (Files): Likewise.
36603         * modules/fcntl-tests (Files): Likewise.
36604         * modules/fdopendir-tests (Files): Likewise.
36605         * modules/fflush-tests (Files): Likewise.
36606         * modules/flock-tests (Files): Likewise.
36607         * modules/floorf-tests (Files): Likewise.
36608         * modules/floorl-tests (Files): Likewise.
36609         * modules/fnmatch-tests (Files): Likewise.
36610         * modules/fopen-tests (Files): Likewise.
36611         * modules/fprintf-posix-tests (Files): Likewise.
36612         * modules/freopen-tests (Files): Likewise.
36613         * modules/frexp-nolibm-tests (Files): Likewise.
36614         * modules/frexp-tests (Files): Likewise.
36615         * modules/frexpl-nolibm-tests (Files): Likewise.
36616         * modules/frexpl-tests (Files): Likewise.
36617         * modules/fseek-tests (Files): Likewise.
36618         * modules/fseeko-tests (Files): Likewise.
36619         * modules/fsync-tests (Files): Likewise.
36620         * modules/ftell-tests (Files): Likewise.
36621         * modules/ftello-tests (Files): Likewise.
36622         * modules/futimens-tests (Files): Likewise.
36623         * modules/getaddrinfo-tests (Files): Likewise.
36624         * modules/getcwd-tests (Files): Likewise.
36625         * modules/getdelim-tests (Files): Likewise.
36626         * modules/getdtablesize-tests (Files): Likewise.
36627         * modules/getgroups-tests (Files): Likewise.
36628         * modules/gethostname-tests (Files): Likewise.
36629         * modules/getline-tests (Files): Likewise.
36630         * modules/getopt-posix-tests (Files): Likewise.
36631         * modules/gettimeofday-tests (Files): Likewise.
36632         * modules/glob-tests (Files): Likewise.
36633         * modules/iconv-tests (Files): Likewise.
36634         * modules/inet_ntop-tests (Files): Likewise.
36635         * modules/inet_pton-tests (Files): Likewise.
36636         * modules/isblank-tests (Files): Likewise.
36637         * modules/lchown-tests (Files): Likewise.
36638         * modules/ldexpl-tests (Files): Likewise.
36639         * modules/link-tests (Files): Likewise.
36640         * modules/linkat-tests (Files): Likewise.
36641         * modules/lseek-tests (Files): Likewise.
36642         * modules/lstat-tests (Files): Likewise.
36643         * modules/mbrtowc-tests (Files): Likewise.
36644         * modules/mbsinit-tests (Files): Likewise.
36645         * modules/mbsnrtowcs-tests (Files): Likewise.
36646         * modules/mbsrtowcs-tests (Files): Likewise.
36647         * modules/memchr-tests (Files): Likewise.
36648         * modules/memcmp-tests (Files): Likewise.
36649         * modules/memmem-tests (Files): Likewise.
36650         * modules/memrchr-tests (Files): Likewise.
36651         * modules/mkdir-tests (Files): Likewise.
36652         * modules/mkfifo-tests (Files): Likewise.
36653         * modules/mkfifoat-tests (Files): Likewise.
36654         * modules/mknod-tests (Files): Likewise.
36655         * modules/nanosleep-tests (Files): Likewise.
36656         * modules/nl_langinfo-tests (Files): Likewise.
36657         * modules/obstack-printf-tests (Files): Likewise.
36658         * modules/open-tests (Files): Likewise.
36659         * modules/openat-tests (Files): Likewise.
36660         * modules/perror-tests (Files): Likewise.
36661         * modules/pipe2-tests (Files): Likewise.
36662         * modules/poll-tests (Files): Likewise.
36663         * modules/popen-tests (Files): Likewise.
36664         * modules/posix_spawn-tests (Files): Likewise.
36665         * modules/posix_spawnp-tests (Files): Likewise.
36666         * modules/pread-tests (Files): Likewise.
36667         * modules/printf-posix-tests (Files): Likewise.
36668         * modules/pty-tests (Files): Likewise.
36669         * modules/random_r-tests (Files): Likewise.
36670         * modules/rawmemchr-tests (Files): Likewise.
36671         * modules/readlink-tests (Files): Likewise.
36672         * modules/remove-tests (Files): Likewise.
36673         * modules/rename-tests (Files): Likewise.
36674         * modules/renameat-tests (Files): Likewise.
36675         * modules/rmdir-tests (Files): Likewise.
36676         * modules/round-tests (Files): Likewise.
36677         * modules/roundf-tests (Files): Likewise.
36678         * modules/roundl-tests (Files): Likewise.
36679         * modules/select-tests (Files): Likewise.
36680         * modules/setenv-tests (Files): Likewise.
36681         * modules/sigaction-tests (Files): Likewise.
36682         * modules/sleep-tests (Files): Likewise.
36683         * modules/snprintf-posix-tests (Files): Likewise.
36684         * modules/snprintf-tests (Files): Likewise.
36685         * modules/sprintf-posix-tests (Files): Likewise.
36686         * modules/stat-tests (Files): Likewise.
36687         * modules/strcasestr-tests (Files): Likewise.
36688         * modules/strchrnul-tests (Files): Likewise.
36689         * modules/strerror-tests (Files): Likewise.
36690         * modules/strsignal-tests (Files): Likewise.
36691         * modules/strstr-tests (Files): Likewise.
36692         * modules/strtod-tests (Files): Likewise.
36693         * modules/strverscmp-tests (Files): Likewise.
36694         * modules/symlink-tests (Files): Likewise.
36695         * modules/symlinkat-tests (Files): Likewise.
36696         * modules/times-tests (Files): Likewise.
36697         * modules/trunc-tests (Files): Likewise.
36698         * modules/truncf-tests (Files): Likewise.
36699         * modules/truncl-tests (Files): Likewise.
36700         * modules/tsearch-tests (Files): Likewise.
36701         * modules/uname-tests (Files): Likewise.
36702         * modules/unlink-tests (Files): Likewise.
36703         * modules/unsetenv-tests (Files): Likewise.
36704         * modules/usleep-tests (Files): Likewise.
36705         * modules/utimensat-tests (Files): Likewise.
36706         * modules/vasprintf-tests (Files): Likewise.
36707         * modules/vdprintf-posix-tests (Files): Likewise.
36708         * modules/vfprintf-posix-tests (Files): Likewise.
36709         * modules/vprintf-posix-tests (Files): Likewise.
36710         * modules/vsnprintf-posix-tests (Files): Likewise.
36711         * modules/vsnprintf-tests (Files): Likewise.
36712         * modules/vsprintf-posix-tests (Files): Likewise.
36713         * modules/wcrtomb-tests (Files): Likewise.
36714         * modules/wcsnrtombs-tests (Files): Likewise.
36715         * modules/wcsrtombs-tests (Files): Likewise.
36716         * modules/wcwidth-tests (Files): Likewise.
36717         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36718         * tests/test-isinf.c (isinf): Likewise.
36719         * tests/test-isnan.c (isnan): Likewise.
36720         * tests/test-signbit.c (signbit): Likewise.
36721         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36722         declaration, either as macro or with correct signature.
36723         (select): Ensure function under test is declared with correct
36724         signature in correct header.
36725         * tests/test-atexit.c (atexit): Likewise.
36726         * tests/test-btowc.c (btowc): Likewise.
36727         * tests/test-canonicalize-lgpl.c (realpath)
36728         (canonicalize_file_name): Likewise.
36729         * tests/test-ceilf1.c (ceilf): Likewise.
36730         * tests/test-ceill.c (ceill): Likewise.
36731         * tests/test-chown.c (chown): Likewise.
36732         * tests/test-dprintf-posix.c (dprintf): Likewise.
36733         * tests/test-dup2.c (dup2): Likewise.
36734         * tests/test-dup3.c (dup3): Likewise.
36735         * tests/test-duplocale.c (duplocale): Likewise.
36736         * tests/test-fchdir.c (fchdir): Likewise.
36737         * tests/test-fchownat.c (fchownat): Likewise.
36738         * tests/test-fcntl.c (fcntl): Likewise.
36739         * tests/test-fdopendir.c (fdopendir): Likewise.
36740         * tests/test-fflush.c (fflush): Likewise.
36741         * tests/test-flock.c (flock): Likewise.
36742         * tests/test-floorf1.c (floorf): Likewise.
36743         * tests/test-floorl.c (floorl): Likewise.
36744         * tests/test-fnmatch.c (fnmatch): Likewise.
36745         * tests/test-fopen.c (fopen): Likewise.
36746         * tests/test-fprintf-posix.c (fprintf): Likewise.
36747         * tests/test-freopen.c (freopen): Likewise.
36748         * tests/test-frexp.c (frexp): Likewise.
36749         * tests/test-frexpl.c (frexpl): Likewise.
36750         * tests/test-fseek.c (fseek): Likewise.
36751         * tests/test-fseeko.c (fseeko): Likewise.
36752         * tests/test-fstatat.c (fstatat): Likewise.
36753         * tests/test-fsync.c (fsync): Likewise.
36754         * tests/test-ftell.c (ftell): Likewise.
36755         * tests/test-ftello.c (ftello): Likewise.
36756         * tests/test-futimens.c (futimens): Likewise.
36757         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36758         (gai_strerror): Likewise.
36759         * tests/test-getcwd.c (getcwd): Likewise.
36760         * tests/test-getdelim.c (getdelim): Likewise.
36761         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36762         * tests/test-getgroups.c (getgroups): Likewise.
36763         * tests/test-gethostname.c (gethostname): Likewise.
36764         * tests/test-getline.c (getline): Likewise.
36765         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36766         Likewise.
36767         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36768         * tests/test-glob.c (glob, globfree): Likewise.
36769         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36770         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36771         * tests/test-inet_pton.c (inet_pton): Likewise.
36772         * tests/test-isblank.c (isblank): Likewise.
36773         * tests/test-lchown.c (lchown): Likewise.
36774         * tests/test-ldexpl.c (ldexpl): Likewise.
36775         * tests/test-link.c (link): Likewise.
36776         * tests/test-linkat.c (linkat): Likewise.
36777         * tests/test-lseek.c (lseek): Likewise.
36778         * tests/test-lstat.c (lstat): Likewise.
36779         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36780         * tests/test-mbsinit.c (mbsinit): Likewise.
36781         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36782         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36783         * tests/test-memchr.c (memchr): Likewise.
36784         * tests/test-memcmp.c (memcmp): Likewise.
36785         * tests/test-memmem.c (memmem): Likewise.
36786         * tests/test-memrchr.c (memrchr): Likewise.
36787         * tests/test-mkdir.c (mkdir): Likewise.
36788         * tests/test-mkdirat.c (mkdirat): Likewise.
36789         * tests/test-mkfifo.c (mkfifo): Likewise.
36790         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36791         * tests/test-mknod.c (mknod): Likewise.
36792         * tests/test-nanosleep.c (nanosleep): Likewise.
36793         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36794         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36795         Likewise.
36796         * tests/test-open.c (open): Likewise.
36797         * tests/test-openat.c (openat): Likewise.
36798         * tests/test-perror.c (perror): Likewise.
36799         * tests/test-pipe2.c (pipe2): Likewise.
36800         * tests/test-poll.c (poll): Likewise.
36801         * tests/test-popen.c (popen, pclose): Likewise.
36802         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36803         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36804         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36805         (posix_spawn_file_actions_destroy)
36806         (posix_spawn_file_actions_addclose)
36807         (posix_spawn_file_actions_addopen)
36808         (posix_spawn_file_actions_adddup2): Likewise.
36809         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36810         * tests/test-pread.c (pread): Likewise.
36811         * tests/test-printf-posix.c (printf): Likewise.
36812         * tests/test-pty.c (openpty, forkpty): Likewise.
36813         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36814         (random_r): Likewise.
36815         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36816         * tests/test-readlink.c (readlink): Likewise.
36817         * tests/test-remove.c (remove): Likewise.
36818         * tests/test-rename.c (rename): Likewise.
36819         * tests/test-renameat.c (renameat): Likewise.
36820         * tests/test-rmdir.c (rmdir): Likewise.
36821         * tests/test-round1.c (round): Likewise.
36822         * tests/test-roundf1.c (roundf): Likewise.
36823         * tests/test-roundl.c (roundl): Likewise.
36824         * tests/test-setenv.c (setenv): Likewise.
36825         * tests/test-sigaction.c (sigaction): Likewise.
36826         * tests/test-sleep.c (sleep): Likewise.
36827         * tests/test-snprintf.c (snprintf): Likewise.
36828         * tests/test-sprintf-posix.c (sprintf): Likewise.
36829         * tests/test-stat.c (stat): Likewise.
36830         * tests/test-stpncpy.c (stpncpy): Likewise.
36831         * tests/test-strcasestr.c (strcasestr): Likewise.
36832         * tests/test-strchrnul.c (strchrnul): Likewise.
36833         * tests/test-strerror.c (strerror): Likewise.
36834         * tests/test-strsignal.c (strsignal): Likewise.
36835         * tests/test-strstr.c (strstr): Likewise.
36836         * tests/test-strtod.c (strtod): Likewise.
36837         * tests/test-strverscmp.c (strverscmp): Likewise.
36838         * tests/test-symlink.c (symlink): Likewise.
36839         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36840         * tests/test-times.c (times): Likewise.
36841         * tests/test-trunc1.c (trunc): Likewise.
36842         * tests/test-truncf1.c (truncf): Likewise.
36843         * tests/test-truncl.c (truncl): Likewise.
36844         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36845         Likewise.
36846         * tests/test-uname.c (uname): Likewise.
36847         * tests/test-unlink.c (unlink): Likewise.
36848         * tests/test-unlinkat.c (unlinkat): Likewise.
36849         * tests/test-unsetenv.c (unsetenv): Likewise.
36850         * tests/test-usleep.c (usleep): Likewise.
36851         * tests/test-utimensat.c (utimensat): Likewise.
36852         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36853         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36854         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36855         * tests/test-vprintf-posix.c (vprintf): Likewise.
36856         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36857         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36858         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36859         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36860         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36861         * tests/test-wcwidth.c (wcwidth): Likewise.
36862
36863         build: pull in conditional headers during GNULIB_POSIXCHECK
36864         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36865         definitions from any conditionally-included headers.
36866         * lib/stdlib.in.h (includes): Likewise.
36867         * lib/unistd.in.h (includes): Likewise.
36868
36869 2009-12-24  Bruno Haible  <bruno@clisp.org>
36870
36871         * tests/test-argv-iter.c: Include header file being tested immediately
36872         after config.h.
36873         * tests/test-base64.c: Likewise.
36874         * tests/test-flock.c: Likewise.
36875         * tests/test-fsync.c: Likewise.
36876         * tests/test-getdate.c: Likewise.
36877         * tests/test-getndelim2.c: Likewise.
36878         * tests/test-isfinite.c: Likewise.
36879         * tests/test-isinf.c: Likewise.
36880         * tests/test-strerror.c: Likewise.
36881         * tests/test-strsignal.c: Likewise.
36882
36883 2009-12-23  Eric Blake  <ebb9@byu.net>
36884
36885         unistd: work around cygwin bug
36886         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36887         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36888         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36889
36890 2009-12-23  Bruno Haible  <bruno@clisp.org>
36891
36892         localename: More tests.
36893         * tests/test-localename.c (SIZEOF): New macro.
36894         (categories): New variable.
36895         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36896         test_locale_name_default): Add test w.r.t. thread locale.
36897         (test_locale_name_thread): New function.
36898         (main): Invoke it.
36899
36900         localename: Make aware of thread locale.
36901         * lib/localename.h (gl_locale_name_thread): New declaration.
36902         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36903         behaviour with respect to thread locale.
36904         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36905         <langinfo.h>, glthread/lock.h.
36906         (SIZE_BITS): New macro.
36907         (string_hash): New function.
36908         (struct hash_node): New type.
36909         (HASH_TABLE_SIZE): New macro.
36910         (struniq_hash_table, struniq_lock): New variables.
36911         (struniq): New function.
36912         (gl_locale_name_thread): New function.
36913         (gl_locale_name): Invoke it.
36914         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36915         * modules/localename (Depends-on): Add lock.
36916         Reported by Mike Gran <spk121@yahoo.com>.
36917
36918 2009-12-23  Eric Blake  <ebb9@byu.net>
36919
36920         va-args: new module
36921         * modules/va-args: New file.
36922         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36923         * MODULES.html.sh (Core language properties): Mention it.
36924
36925         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36926         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36927         named alias for __attribute__((__unused__)).
36928         * lib/chown.c: Update client.
36929         * lib/fchmodat.c: Likewise.
36930         * lib/fts.c: Likewise.
36931         * lib/getdate.y: Likewise.
36932         * lib/getgroups.c: Likewise.
36933         * lib/getopt.c: Likewise.
36934         * lib/getugroups.c: Likewise.
36935         * lib/mkdir.c: Likewise.
36936         * lib/mkfifo.c: Likewise.
36937         * lib/mkfifoat.c: Likewise.
36938         * lib/mknod.c: Likewise.
36939         * lib/mknodat.c: Likewise.
36940         * lib/readlink.c: Likewise.
36941         * lib/se-context.in.h: Likewise.
36942         * lib/se-selinux.in.h: Likewise.
36943         * lib/sockets.c: Likewise.
36944         * lib/symlink.c: Likewise.
36945         * lib/symlinkat.c: Likewise.
36946         * lib/unicodeio.c: Likewise.
36947         * lib/unistr.h: Likewise.
36948         * tests/test-areadlink.c: Likewise.
36949         * tests/test-areadlinkat.c: Likewise.
36950         * tests/test-filenamecat.c: Likewise.
36951         * tests/test-fseeko.c: Likewise.
36952         * tests/test-ftello.c: Likewise.
36953         * tests/test-getdate.c: Likewise.
36954         * tests/test-getgroups.c: Likewise.
36955         * tests/test-gethostname.c: Likewise.
36956         * tests/test-quotearg.c: Likewise.
36957         * tests/test-version-etc.c: Likewise.
36958         * tests/test-xalloc-die.c: Likewise.
36959         * tests/test-xfprintf-posix.c: Likewise.
36960         * tests/test-xprintf-posix.c: Likewise.
36961         * tests/test-xvasprintf.c: Likewise.
36962
36963         tests: avoid compiler warnings
36964         * tests/test-fcntl.c (main): Delete unused parameters.
36965         * tests/test-freopen-safer.c (main): Likewise.
36966         * tests/test-xalloc-die.c (main): Mark unused parameters.
36967         * tests/test-fseeko.c (main): Likewise.
36968         * tests/test-ftello.c (main): Likewise.
36969         * tests/test-nanosleep.c (main): Avoid declaration warning.
36970         * tests/test-sleep.c (main): Likewise.
36971         * tests/test-unsetenv.c (main): Silence warning about string
36972         literal.
36973         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36974
36975 2009-12-23  Bruno Haible  <bruno@clisp.org>
36976
36977         * tests/test-localename.c (test_locale_name): New function, extracted
36978         from main. Also test mixed situations.
36979         (test_locale_name_posix, test_locale_name_environ,
36980         test_locale_name_default): New functions.
36981         (main): Invoke them all.
36982         * modules/localename-tests (configure.ac): Test for newlocale.
36983
36984 2009-12-23  Bruno Haible  <bruno@clisp.org>
36985
36986         unistd: Ensure getcwd gets declared before being overridden.
36987         * lib/unistd.in.h: Conditionally include <io.h>.
36988
36989 2009-12-22  Bruno Haible  <bruno@clisp.org>
36990
36991         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36992         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36993         (gl_WCHAR_H): Invoke it.
36994         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36995         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36996         Reported by Karl Berry <karl@freefriends.org>.
36997
36998 2009-12-22  Eric Blake  <ebb9@byu.net>
36999
37000         math, unistd: avoid redundant includes
37001         * lib/math.in.h (isnan): No need to re-include <math.h>.
37002         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37003
37004         getsubopt: work around cygwin bug
37005         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37006         avoid conflicting with system getsubopt.
37007         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37008         bug.
37009
37010         getopt: synchronize from glibc
37011         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37012         parameter order.  Adjust all callers.
37013         (_getopt_internal_r, main): Adjust quoting in error messages.
37014         Drop considerations for outdated POSIX 1003.2 error message.
37015         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37016         callers.
37017         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37018
37019         test-getopt: test stderr behavior
37020         * modules/getopt-posix-tests (Depends-on): Add dup2.
37021         * tests/test-getopt.c (ASSERT): Avoid stderr.
37022         (main): Move stderr to a temporary file.
37023         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37024         Instead, add parameter to inform caller if output occurred.
37025         (test_getopt): Adjust all existing tests to expect silence, and
37026         add new tests of leading ":".
37027         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37028         glibc shortcomings with leading "-:" or "+:" in optstring.
37029         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37030         Likewise.
37031         * doc/posix-functions/getopt.texi (getopt): Likewise.
37032
37033         test-getopt: enhance test
37034         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37035         supports optind=0.
37036         * tests/test-getopt.c (OPTIND_MIN): Move...
37037         * tests/test-getopt.h (OPTIND_MIN): ...here.
37038         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37039         Require that optind=0 works, since modern BSD supports it in
37040         addition to optreset, and since coreutils expects it.
37041         (test_getopt_long_only): New test.
37042         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37043         glibc shortcomings with 'W;', and enforcement of optind=0.
37044         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37045         Likewise.
37046
37047 2009-12-21  Bruno Haible  <bruno@clisp.org>
37048
37049         localename: Improvements for MacOS X and Cygwin.
37050         * lib/localename.h (gl_locale_name_environ): New declaration.
37051         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37052         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37053         (gl_locale_name_posix): Invoke it.
37054         (gl_locale_name_default): Add comments. Use Windows native API also on
37055         Cygwin.
37056
37057 2009-12-21  Bruno Haible  <bruno@clisp.org>
37058
37059         Update list of Win32 locale ids.
37060         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37061         (LANG_SAMI): Renamed from LANG_SAAMI.
37062         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37063         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37064         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37065         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37066         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37067         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37068         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37069         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37070         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37071         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37072         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37073         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37074         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37075         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37076         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37077         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37078         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37079         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37080         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37081         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37082         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37083         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37084         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37085         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37086         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37087         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37088         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37089         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37090         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37091         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37092         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37093         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37094         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37095         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37096         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37097         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37098         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37099         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37100         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37101         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37102         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37103         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37104         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37105         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37106         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37107         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37108         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37109         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37110         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37111         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37112         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37113         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37114         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37115         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37116         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37117         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37118         Add more languages and countries for Sami, Sorbian. Add more countries
37119         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37120         for Pashto. Change country for Syriac, Tswana.
37121
37122 2009-12-21  Eric Blake  <ebb9@byu.net>
37123
37124         test-utimens: avoid spurious failure
37125         * tests/test-chown.h (nap): Factor...
37126         * tests/nap.h: ...into new file.
37127         * tests/test-lchown.h (nap): Avoid duplication.
37128         * tests/test-utimens-common.h (nap): Use shared implementation,
37129         necessary on file systems with 1-second resolution.
37130         * modules/chown-tests (Files): Include new file.
37131         * modules/fdutimensat-tests (Files): Likewise.
37132         * modules/futimens-tests (Files): Likewise.
37133         * modules/lchown-tests (Files): Likewise.
37134         * modules/openat-tests (Files): Likewise.
37135         * modules/utimens-tests (Files): Likewise.
37136         * modules/utimensat-tests (Files): Likewise.
37137
37138 2009-12-19  Eric Blake  <ebb9@byu.net>
37139
37140         futimens, utimensat: work around Linux bug
37141         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37142         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37143         * lib/utimensat.c (rpl_utimensat): Work around it.
37144         * lib/futimens.c (rpl_futimens): Adjust comment.
37145
37146         utimens: work around Linux ctime bug
37147         * lib/utimens.c (detect_ctime_bug): New helper function.
37148         (update_timespec): Differentiate between workaround needed for
37149         this bug vs. what is needed for systems that lack utimensat.
37150         (fdutimens, lutimens): Work around bug.
37151
37152         utimens: check for ctime update
37153         * tests/test-utimens-common.h (check_ctime): Define.
37154         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37155         * tests/test-futimens.h (test_futimens): Likewise.
37156         * tests/test-lutimens.h (test_lutimens): Likewise.
37157         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37158         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37159
37160 2009-12-19  Bruno Haible  <bruno@clisp.org>
37161
37162         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37163         * tests/test-dprintf-posix2.sh: New file.
37164         * tests/test-dprintf-posix2.c: New file.
37165         * modules/dprintf-posix-tests (Files): Add them.
37166         (configure.ac): Check for getrlimit and setrlimit.
37167         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37168
37169 2009-12-19  Bruno Haible  <bruno@clisp.org>
37170
37171         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37172         * tests/test-fprintf-posix3.sh: New file.
37173         * tests/test-fprintf-posix3.c: New file.
37174         * modules/fprintf-posix-tests (Files): Add them.
37175         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37176
37177 2009-12-19  Eric Blake  <ebb9@byu.net>
37178
37179         dirfd: fix prototype
37180         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37181         * lib/dirfd.c (dirfd): Likewise.
37182
37183         canonicalize: reduce memory usage
37184         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37185         allocation to size.
37186         Reported by Solar Designer <solar@openwall.com>.
37187
37188 2009-12-19  Bruno Haible  <bruno@clisp.org>
37189
37190         New module attribute 'Applicability'.
37191         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37192         * gnulib-tool: New option --extract-applicability.
37193         (func_usage): Document it.
37194         (sed_extract_prog): Recognize it.
37195         (func_get_applicability): New function.
37196         (func_import): Generalize handling of 'link-warning' module.
37197         * modules/link-warning (Applicability): New section.
37198         * modules/arg-nonnull (Applicability): New section.
37199         Repoted by Simon Josefsson <simon@josefsson.org>.
37200
37201 2009-12-19  Bruno Haible  <bruno@clisp.org>
37202
37203         fflush: tweak
37204         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37205         * lib/fseeko.c (rpl_fseeko): Likewise.
37206
37207 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37208
37209         * lib/gl_list.h: Fix typo in comment.
37210
37211 2009-12-16  Eric Blake  <ebb9@byu.net>
37212
37213         fcntl: use to simplify other modules
37214         * modules/cloexec (Depends-on): Add fcntl.
37215         * modules/fchdir (Depends-on): Likewise.
37216         * modules/fd-safer-flag (Depends-on): Likewise.
37217         * modules/unistd-safer (Depends-on): Likewise.
37218         * modules/dup3 (configure.ac): Set module indicator.
37219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37220         missing.
37221         * lib/fchdir.c (_gl_register_dup): Fix comment.
37222         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37223         * lib/dup-safer.c (dup_safer): Likewise.
37224         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37225         * lib/dup3.c (dup3): Likewise.
37226         * tests/test-fchdir.c (main): Enhance test.
37227         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37228
37229         fcntl: port portions of fcntl to mingw
37230         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37231         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37232         replacement for mingw.
37233         * modules/fcntl (Description): Update.
37234         (Depends-on): Add dup2.
37235         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37236         * modules/fcntl-h (Makefile.am): Substitute it.
37237         * lib/fcntl.in.h (fcntl): Update declaration.
37238         (F_DUPFD, F_GETFD): New macros, when needed.
37239         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37240         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37241         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37242         we now guarantee.
37243
37244         fcntl: work around cygwin bug in F_DUPFD
37245         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37246         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37247         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37248         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37249         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37250
37251         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37252         * modules/fcntl (Files): List new files.
37253         (configure.ac): Run a test.
37254         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37255         * lib/fcntl.c (rpl_fcntl): Likewise.
37256         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37257         (gl_FCNTL_H): Always replace fcntl.h.
37258         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37259         * lib/fcntl.in.h (fcntl): Declare replacement.
37260         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37261         needed, plus a witness.
37262         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37263         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37264         * tests/test-fcntl.c: New file.
37265         * modules/fcntl-tests: Likewise.
37266
37267         binary-io: avoid potential compilation warning
37268         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37269         directives.
37270
37271         fflush: avoid compilation error on NetBSD
37272         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37273         between off_t and fpos_t, since the latter is sometimes a struct.
37274         * lib/fseeko.c (rpl_fseeko): Likewise.
37275         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37276
37277 2009-12-15  Eric Blake  <ebb9@byu.net>
37278
37279         fcntl-h, stdio, sys_ioctl: fix declarations
37280         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37281         function must not take arguments.
37282         * lib/sys_ioctl.in.h (ioctl): Likewise.
37283         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37284         (open): Add a link warning.
37285
37286 2009-12-15  Jim Meyering  <meyering@redhat.com>
37287
37288         areadlink, areadlink-with-size: relax license to LGPLv2+
37289         * modules/areadlink (License): Relax to LGPLv2+.
37290         * modules/areadlink-with-size (License): Likewise.
37291
37292 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37293             Bruno Haible  <bruno@clisp.org>
37294
37295         *printf: Fix memory leak.
37296         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37297         * lib/vfprintf.c (vfprintf): Likewise.
37298         * lib/dprintf.c (dprintf): Likewise.
37299         * lib/vdprintf.c (vdprintf): Likewise.
37300
37301 2009-12-14  Eric Blake  <ebb9@byu.net>
37302
37303         accept4: adjust module dependencies
37304         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37305
37306         utimens: one more try at avoiding compiler warning
37307         * lib/utimens.c (lutimens): Lower scope of result.
37308
37309 2009-12-13  Bruno Haible  <bruno@clisp.org>
37310
37311         Move the malloc checking from module 'list' to new module 'xlist'.
37312         * modules/xlist: New file.
37313         * lib/gl_xlist.h: New file.
37314         * lib/gl_xlist.c: New file.
37315         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37316         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37317         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37318         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37319         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37320         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37321         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37322         gl_sortedlist_nx_add): New declarations.
37323         (struct gl_list_implementation): Rename and change methods accordingly.
37324         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37325         (gl_list_nx_create): Renamed from gl_list_create.
37326         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37327         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37328         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37329         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37330         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37331         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37332         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37333         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37334         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37335         gl_list_create_empty.
37336         (gl_list_nx_create): Renamed from gl_list_create.
37337         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37338         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37339         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37340         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37341         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37342         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37343         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37344         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37345         * lib/gl_array_list.c: Don't include xalloc.h.
37346         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37347         NULL upon out-of-memory.
37348         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37349         out-of-memory.
37350         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37351         Change return type to 'int'.
37352         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37353         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37354         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37355         upon out-of-memory.
37356         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37357         upon out-of-memory.
37358         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37359         upon out-of-memory.
37360         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37361         upon out-of-memory.
37362         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37363         out-of-memory.
37364         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37365         Update.
37366         (gl_array_list_implementation): Update.
37367         * lib/gl_carray_list.c: Don't include xalloc.h.
37368         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37369         Return NULL upon out-of-memory.
37370         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37371         out-of-memory.
37372         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37373         Change return type to 'int'.
37374         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37375         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37376         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37377         upon out-of-memory.
37378         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37379         upon out-of-memory.
37380         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37381         out-of-memory.
37382         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37383         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37384         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37385         Update.
37386         (gl_carray_list_implementation): Update.
37387         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37388         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37389         gl_linked_create_empty. Return NULL upon out-of-memory.
37390         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37391         out-of-memory.
37392         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37393         Change return type to 'int'. Return -1 upon out-of-memory.
37394         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37395         out-of-memory.
37396         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37397         upon out-of-memory.
37398         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37399         upon out-of-memory.
37400         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37401         NULL upon out-of-memory.
37402         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37403         upon out-of-memory.
37404         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37405         out-of-memory.
37406         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37407         Update.
37408         * lib/gl_linked_list.c: Don't include xalloc.h.
37409         (gl_linked_list_implementation): Update.
37410         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37411         (add_to_bucket): Change return type to 'int'.
37412         (gl_linkedhash_list_implementation): Update.
37413         * lib/gl_anytree_list1.h (free_subtree): New function.
37414         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37415         gl_tree_create_empty. Return NULL upon out-of-memory.
37416         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37417         Change return type to 'int'. Return -1 upon out-of-memory.
37418         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37419         out-of-memory.
37420         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37421         (gl_tree_remove_node): New function, moved here from
37422         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37423         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37424         Update.
37425         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37426         malloc, not xmalloc. Return NULL upon out-of-memory.
37427         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37428         out-of-memory.
37429         (gl_tree_remove_node_from_tree): New function, extracted from
37430         gl_tree_remove_node.
37431         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37432         upon out-of-memory.
37433         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37434         out-of-memory.
37435         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37436         upon out-of-memory.
37437         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37438         upon out-of-memory.
37439         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37440         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37441         not xmalloc. Return NULL upon out-of-memory.
37442         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37443         out-of-memory.
37444         (gl_tree_remove_node_from_tree): New function, extracted from
37445         gl_tree_remove_node.
37446         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37447         upon out-of-memory.
37448         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37449         out-of-memory.
37450         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37451         upon out-of-memory.
37452         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37453         upon out-of-memory.
37454         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37455         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37456         gl_anytree_list1.h before gl_anyavltree_list2.h.
37457         (gl_avltree_list_implementation): Update.
37458         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37459         gl_anytree_list1.h before gl_anyavltree_list2.h.
37460         (gl_rbtree_list_implementation): Update.
37461         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37462         Change return type to 'int'. Return -1 upon out-of-memory. Use
37463         __builtin_expect.
37464         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37465         (gl_avltreehash_list_implementation): Update.
37466         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37467         (gl_rbtreehash_list_implementation): Update.
37468         * modules/array-list (Depends-on): Remove xalloc.
37469         * modules/carray-list (Depends-on): Likewise.
37470         * modules/linked-list (Depends-on): Likewise.
37471         * modules/linkedhash-list (Depends-on): Likewise.
37472         * modules/avltree-list (Depends-on): Likewise.
37473         * modules/rbtree-list (Depends-on): Likewise.
37474         * modules/avltreehash-list (Depends-on): Likewise.
37475         * modules/rbtreehash-list (Depends-on): Likewise.
37476
37477         * modules/xsublist: New file.
37478         * lib/gl_xsublist.h: New file.
37479         * lib/gl_xsublist.c: New file.
37480         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37481         (gl_sublist_nx_create): New declaration.
37482         * lib/gl_sublist.c: Don't include xalloc.h.
37483         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37484         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37485         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37486         Change return type to 'int'. Return -1 upon out-of-memory.
37487         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37488         upon out-of-memory.
37489         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37490         NULL upon out-of-memory.
37491         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37492         upon out-of-memory.
37493         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37494         NULL upon out-of-memory.
37495         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37496         NULL upon out-of-memory.
37497         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37498         upon out-of-memory.
37499         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37500         (gl_sublist_list_implementation): Update.
37501         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37502         upon out-of-memory.
37503         * modules/sublist (Depends-on): Remove xalloc.
37504
37505         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37506         * tests/test-carray_list.c: Likewise.
37507         * tests/test-linked_list.c: Likewise.
37508         * tests/test-linkedhash_list.c: Likewise.
37509         * tests/test-avltree_list.c: Likewise.
37510         * tests/test-rbtree_list.c: Likewise.
37511         * tests/test-avltreehash_list.c: Likewise.
37512         * tests/test-rbtreehash_list.c: Likewise.
37513         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37514         * modules/carray-list-tests (Makefile.am): Likewise.
37515         * modules/linked-list-tests (Makefile.am): Likewise.
37516         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37517         * modules/avltree-list-tests (Makefile.am): Likewise.
37518         * modules/rbtree-list-tests (Makefile.am): Likewise.
37519         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37520         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37521
37522         * NEWS: Mention the changes.
37523
37524         * lib/clean-temp.c: Include gl_xlist.h.
37525         * modules/clean-temp (Depends-on): Add xlist.
37526
37527         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37528         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37529
37530         * tests/test-array_oset.c: Include gl_xlist.h.
37531         * modules/array-oset-tests (Depends-on): Add xlist.
37532
37533         Reported by José E. Marchesi <jemarch@gnu.org>.
37534
37535 2009-12-13  Bruno Haible  <bruno@clisp.org>
37536
37537         Move the malloc checking from module 'oset' to new module 'xoset'.
37538         * modules/xoset: New file.
37539         * lib/gl_xoset.h: New file.
37540         * lib/gl_xoset.c: New file.
37541         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37542         declarations.
37543         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37544         (struct gl_oset_implementation): Rename and change methods accordingly.
37545         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37546         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37547         'int'. Mark as __warn_unused_result__.
37548         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37549         gl_oset_create_empty.
37550         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37551         'int'.
37552         * lib/gl_array_oset.c: Don't include xalloc.h.
37553         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37554         malloc, not xmalloc.
37555         (grow): Change return type to 'int'. Don't call xalloc_die.
37556         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37557         to 'int'.
37558         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37559         'int'.
37560         (gl_array_oset_implementation): Update.
37561         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37562         gl_tree_create_empty.
37563         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37564         'int'.
37565         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37566         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37567         xmalloc.
37568         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37569         not xmalloc.
37570         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37571         xmalloc.
37572         (gl_avltree_oset_implementation): Update.
37573         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37574         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37575         xmalloc.
37576         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37577         not xmalloc.
37578         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37579         xmalloc.
37580         (gl_rbtree_oset_implementation): Update.
37581         * modules/array-oset (Depends-on): Remove xalloc.
37582         * modules/avltree-oset (Depends-on): Likewise.
37583         * modules/rbtree-oset (Depends-on): Likewise.
37584         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37585         * tests/test-avltree_oset.c: Likewise.
37586         * tests/test-rbtree_oset.c: Likewise.
37587         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37588         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37589         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37590         * NEWS: Mention the change.
37591
37592 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37593
37594         maint.mk: allow a project to override release-prep commands
37595         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37596         commands into a new rule.
37597         (release-prep): New rule.
37598         (release-prep-hook): New overridable variable.
37599
37600 2009-12-13  Bruno Haible  <bruno@clisp.org>
37601
37602         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37603
37604 2009-12-13  Jim Meyering  <meyering@redhat.com>
37605
37606         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37607         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37608
37609 2009-12-12  Bruno Haible  <bruno@clisp.org>
37610
37611         duplocale: Tweak.
37612         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37613
37614 2009-12-12  Karl Berry  <karl@gnu.org>
37615
37616         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37617
37618 2009-12-12  Bruno Haible  <bruno@clisp.org>
37619
37620         * m4/po.m4: Undo incorrect untabification.
37621
37622 2009-12-12  Bruno Haible  <bruno@clisp.org>
37623
37624         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37625         * modules/c-strtod (Depends-on): Add locale.
37626         * modules/c-strtold (Depends-on): Likewise.
37627
37628 2009-12-12  Bruno Haible  <bruno@clisp.org>
37629
37630         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37631
37632 2009-12-11  Eric Blake  <ebb9@byu.net>
37633
37634         setenv: relax requirement in light of POSIX ruling
37635         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37636         not NULL.
37637         * tests/test-setenv.c (main): Relax test.
37638         * tests/test-unsetenv.c (main): Likewise.
37639         * doc/posix-functions/setenv.texi (setenv): Document this.
37640         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37641
37642 2009-12-11  Bruno Haible  <bruno@clisp.org>
37643
37644         New module 'fd-safer-flag'.
37645         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37646         * lib/dup-safer.c (dup_safer_flag): Remove function.
37647         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37648         * lib/fd-safer.c (fd_safer_flag): Remove function.
37649         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37650         * modules/cloexec (configure.ac): Drop indicator macro.
37651         * modules/fd-safer-flag: New file.
37652         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37653         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37654         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37655
37656 2009-12-11  Bruno Haible  <bruno@clisp.org>
37657
37658         Tests for module 'nl_langinfo'.
37659         * modules/nl_langinfo-tests: New file.
37660         * tests/test-nl_langinfo.sh: New file.
37661         * tests/test-nl_langinfo.c: New file.
37662
37663         New module 'nl_langinfo'.
37664         * lib/nl_langinfo.c: New file.
37665         * m4/nl_langinfo.m4: New file.
37666         * modules/nl_langinfo: New file.
37667         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37668
37669 2009-12-11  Bruno Haible  <bruno@clisp.org>
37670
37671         Tests for module 'langinfo'.
37672         * modules/langinfo-tests: New file.
37673         * tests/test-langinfo.c: New file.
37674
37675         New module 'langinfo'.
37676         * lib/langinfo.in.h: New file.
37677         * m4/langinfo_h.m4: New file.
37678         * modules/langinfo: New file.
37679         * doc/posix-headers/langinfo.texi: Mention the new module.
37680
37681 2009-12-11  Bruno Haible  <bruno@clisp.org>
37682
37683         * lib/config.charset: Untabify.
37684
37685 2009-12-11  Bruno Haible  <bruno@clisp.org>
37686
37687         * modules/unistd-safer (configure.ac): Drop indicator macro.
37688
37689 2009-12-11  Bruno Haible  <bruno@clisp.org>
37690
37691         Move pipe2-safer code to its own file.
37692         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37693         * lib/pipe-safer.c (pipe2_safer): Remove function.
37694         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37695         (Makefile.am): Add it to lib_SOURCES.
37696
37697 2009-12-10  Bruno Haible  <bruno@clisp.org>
37698
37699         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37700
37701 2009-12-10  Bruno Haible  <bruno@clisp.org>
37702
37703         Declare which arguments expect non-NULL values, for GCC and clang.
37704         * build-aux/arg-nonnull.h: New file.
37705         * modules/arg-nonnull: New file.
37706         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37707         (inet_ntop, inet_pton): Use it.
37708         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37709         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37710         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37711         (open, openat): Use it.
37712         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37713         (fnmatch): Use it.
37714         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37715         (getopt, getopt_long, getopt_long_only): Use it.
37716         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37717         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37718         Use it.
37719         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37720         (iconv_open): Use it.
37721         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37722         (strtoimax, strtoumax): Use it.
37723         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37724         (duplocale): Use it.
37725         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37726         (frexp, frexpl): Use it.
37727         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37728         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37729         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37730         (tsearch, tfind, tdelete, twalk): Use it.
37731         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37732         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37733         sigpending): Use it.
37734         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37735         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37736         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37737         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37738         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37739         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37740         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37741         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37742         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37743         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37744         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37745         Use it.
37746         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37747         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37748         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37749         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37750         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37751         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37752         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37753         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37754         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37755         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37756         strtoull, unsetenv): Use it.
37757         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37758         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37759         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37760         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37761         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37762         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37763         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37764         (strcasecmp, strncasecmp): Use it.
37765         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37766         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37767         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37768         rpl_setsockopt): Use it.
37769         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37770         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37771         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37772         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37773         (gettimeofday): Use it.
37774         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37775         (times): Use it.
37776         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37777         (uname): Use it.
37778         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37779         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37780         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37781         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37782         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37783         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37784         unlinkat, write): Use it.
37785         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37786         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37787         * lib/argv-iter.h: Include arg-nonnull.h.
37788         (_ATTRIBUTE_NONNULL_): Remove macro.
37789         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37790         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37791         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37792         optimization.
37793         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37794         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37795         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37796         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37797         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37798         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37799         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37800         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37801         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37802         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37803         * modules/dirent (Depends-on): Add arg-nonnull.
37804         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37805         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37806         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37807         * modules/fnmatch (Depends-on): Add arg-nonnull.
37808         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37809         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37810         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37811         * modules/glob (Depends-on): Add arg-nonnull.
37812         (Makefile.am): Insert arg-nonnull.h into glob.h.
37813         * modules/iconv_open (Depends-on): Add arg-nonnull.
37814         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37815         * modules/inttypes (Depends-on): Add arg-nonnull.
37816         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37817         * modules/locale (Depends-on): Add arg-nonnull.
37818         (Makefile.am): Insert arg-nonnull.h into locale.h.
37819         * modules/math (Depends-on): Add arg-nonnull.
37820         (Makefile.am): Insert arg-nonnull.h into math.h.
37821         * modules/netdb (Depends-on): Add arg-nonnull.
37822         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37823         * modules/search (Depends-on): Add arg-nonnull.
37824         (Makefile.am): Insert arg-nonnull.h into search.h.
37825         * modules/signal (Depends-on): Add arg-nonnull.
37826         (Makefile.am): Insert arg-nonnull.h into signal.h.
37827         * modules/spawn (Depends-on): Add arg-nonnull.
37828         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37829         * modules/stdio (Depends-on): Add arg-nonnull.
37830         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37831         * modules/stdlib (Depends-on): Add arg-nonnull.
37832         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37833         * modules/string (Depends-on): Add arg-nonnull.
37834         (Makefile.am): Insert arg-nonnull.h into string.h.
37835         * modules/strings (Depends-on): Add arg-nonnull.
37836         (Makefile.am): Insert arg-nonnull.h into strings.h.
37837         * modules/sys_socket (Depends-on): Add arg-nonnull.
37838         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37839         * modules/sys_stat (Depends-on): Add arg-nonnull.
37840         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37841         * modules/sys_time (Depends-on): Add arg-nonnull.
37842         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37843         * modules/sys_times (Depends-on): Add arg-nonnull.
37844         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37845         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37846         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37847         * modules/time (Depends-on): Add arg-nonnull.
37848         (Makefile.am): Insert arg-nonnull.h into time.h.
37849         * modules/unistd (Depends-on): Add arg-nonnull.
37850         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37851         * modules/wchar (Depends-on): Add arg-nonnull.
37852         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37853         * modules/argv-iter (Depends-on): Add arg-nonnull.
37854         * tests/test-canonicalize.c (null_ptr): New function.
37855         (main): Use it.
37856         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37857         (main): Use it.
37858         * tests/test-memmem.c (null_ptr): New function.
37859         (main): Use it.
37860         Reported by Jim Meyering.
37861
37862 2009-12-10  Bruno Haible  <bruno@clisp.org>
37863
37864         Use spaces for indentation, not tabs.
37865         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37866         * m4/*.m4: Untabify.
37867         * build-aux/*.h: Untabify.
37868         * tests/**/*.[hc]: Untabify.
37869         * README: New section "Indent with spaces, not TABs", based on
37870         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37871         * NEWS: Mention the change.
37872
37873 2009-12-10  Bruno Haible  <bruno@clisp.org>
37874
37875         pty test: Fix link error.
37876         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37877         test_pty_LDADD.
37878
37879 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37880
37881         * modules/pty: New file.
37882         * modules/pty-tests: New file.
37883         * m4/pty.m4: New file.
37884         * tests/test-pty.c: New file.
37885         * doc/glibc-headers/pty.texi: Modified.
37886         * doc/glibc-functions/forkpty.texi: Modified.
37887         * doc/glibc-functions/openpty.texi: Modified.
37888
37889 2009-12-10  Bruno Haible  <bruno@clisp.org>
37890
37891         Avoid syntax error in C++ mode.
37892         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37893
37894 2009-12-10  Bruno Haible  <bruno@clisp.org>
37895
37896         Use sed with option -e.
37897         * gnulib-tool (func_version, func_emit_copyright_notice,
37898         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37899         option -e to sed.
37900         * modules/link-warning (Makefile.am): Likewise.
37901
37902 2009-12-10  Jim Meyering  <meyering@redhat.com>
37903
37904         mgetgroups: do not write bytes beyond end of malloc'd buffer
37905         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37906         username, we call getgroups with a one-element-shorter buffer,
37907         but still told it the length was original, max_n_groups.
37908
37909 2009-12-09  Eric Blake  <ebb9@byu.net>
37910
37911         cloexec: relax license
37912         * modules/cloexec (Maintainer): Add myself.
37913         (License): Use LGPL, not GPL.
37914
37915         link-warning: optimize generation
37916         * modules/link-warning (Makefile.am): Reduce process usage.
37917
37918 2009-12-09  Bruno Haible  <bruno@clisp.org>
37919
37920         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37921         workaround was added on 2009-11-17.
37922
37923 2009-12-09  Jim Meyering  <meyering@redhat.com>
37924             Bruno Haible  <bruno@clisp.org>
37925
37926         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37927         * modules/link-warning (Makefile.am): Make the comment-removing sed
37928         command more robust in the face of bootstrap-prepended comment lines.
37929
37930 2009-12-09  Bruno Haible  <bruno@clisp.org>
37931
37932         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37933         most one group.
37934
37935 2009-12-09  Simon Josefsson <simon@josefsson.org>
37936             Bruno Haible  <bruno@clisp.org>
37937
37938         * build-aux/link-warning.h: Add copyright notice.
37939         * modules/link-warning (Makefile.am): Generate link-warning.h from
37940         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37941         * NEWS: Mention change in link-warning module.
37942         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37943         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37944         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37945         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37946         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37947         * modules/math (Makefile.am): Add dependency to math.h.
37948         * modules/search (Makefile.am): Add dependency to search.h.
37949         * modules/signal (Makefile.am): Add dependency to signal.h.
37950         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37951         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37952         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37953         * modules/string (Makefile.am): Add dependency to string.h.
37954         * modules/strings (Makefile.am): Add dependency to strings.h.
37955         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37956         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37957         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37958         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37959         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37960         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37961         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37962         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37963         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37964
37965 2009-12-09  Bruno Haible  <bruno@clisp.org>
37966
37967         fchdir: Optimize away rpl_fstat when possible.
37968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37969         REPLACE_OPEN_DIRECTORY.
37970         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37971
37972 2009-12-09  Bruno Haible  <bruno@clisp.org>
37973
37974         * lib/fchdir.c: Update comment.
37975
37976 2009-12-09  Bruno Haible  <bruno@clisp.org>
37977
37978         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37979
37980 2009-12-08  Eric Blake  <ebb9@byu.net>
37981
37982         fchdir: avoid memory leak on re-registration.
37983         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37984
37985 2009-12-08  Jim Meyering  <meyering@redhat.com>
37986
37987         init.sh: avoid Solaris 10 /bin/sh portability problem
37988         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37989         sourced script:
37990           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37991           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37992           bar
37993         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37994         and two tests used that idiom.
37995         * tests/init.sh: Update suggested usage comments.
37996         (path_prepend_): New function, to be used in place
37997         of the --src-path=DIR option.
37998         (setup_): Move PATH-prepending code into path_prepend_.
37999         * tests/test-pread.sh: Adapt to new usage.
38000         * tests/test-xalloc-die.sh: Likewise.
38001
38002 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38003
38004         * doc/gnulib.texi (Glibc pty.h): Add.
38005         * doc/glibc-functions/forkpty.texi: Add.
38006         * doc/glibc-functions/openpty.texi: Add.
38007         Suggested by Bruno Haible.
38008
38009 2009-12-08  Eric Blake  <ebb9@byu.net>
38010
38011         fchdir: fix logic bugs
38012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38013         * tests/test-fchdir.c (main): Enhance test.
38014         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38015         is in use.
38016
38017         dup2: fix logic bugs
38018         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38019         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38020         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38021         exists.
38022         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38023
38024 2009-12-07  Eric Blake  <ebb9@byu.net>
38025
38026         unlink: fix m4 detection
38027         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38028
38029         unistd-safer: add unit test
38030         * modules/unistd-safer-tests: New file.
38031         * tests/test-dup-safer.c: Likewise.
38032         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38033         * tests/test-dup2.c (setmode): Likewise.
38034         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38035
38036         cloexec: preserve text vs. binary across dup_cloexec
38037         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38038         mode.
38039         * modules/dup2-tests (Depends-on): Add binary-io.
38040         * modules/cloexec-tests (Depends-on): Likewise.
38041         * tests/test-dup2.c (setmode, is_mode): New helpers.
38042         (main): Add tests that translation mode is preserved.
38043         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38044         Reported by Bruno Haible.
38045
38046         mgetgroups: reduce duplicate listings
38047         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38048         resulting array.
38049         * tests/test-chown.h (test_chown): Simplify client.
38050         * tests/test-lchown.h (test_lchown): Likewise.
38051
38052 2009-12-06  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38055         value.
38056
38057 2009-12-06  Bruno Haible  <bruno@clisp.org>
38058
38059         * lib/progname.c: Include stdio.h, stdlib.h.
38060         (set_program_name): Reject a NULL argument.
38061
38062 2009-12-05  Eric Blake  <ebb9@byu.net>
38063
38064         pipe2-safer: new module
38065         * modules/pipe2-safer: New file.
38066         * lib/unistd-safer.h (pipe2_safer): New prototype.
38067         * lib/unistd--.h (pipe2): New wrapper.
38068         * lib/pipe-safer.c (pipe2_safer): New function.
38069         * modules/pipe (Depends-on): Add pipe2-safer.
38070         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38071
38072         stdlib-safer: preserve cloexec flag for mkostemp[s]
38073         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38074         fd_safer_flag.
38075
38076         unistd-safer: allow preservation of cloexec status via flag
38077         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38078         prototypes.
38079         * lib/dup-safer.c (dup_safer_flag): New function.
38080         * lib/fd-safer.c (fd_safer_flag): Likewise.
38081         * modules/cloexec (configure.ac): Set witness.
38082
38083         test-dup2: enhance test
38084         * modules/dup2-tests (Depends-on): Add cloexec.
38085         * tests/test-dup2.c (main): Enhance test.
38086
38087         cloexec: add dup_cloexec
38088         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38089         header and comments.
38090         * lib/cloexec.c (set_cloexec_flag): Add comments.
38091         (dup_cloexec): New function, with mingw implementation borrowed
38092         from...
38093         * lib/w32spawn.h (dup_noinherit): ...here.
38094         * modules/execute (Depends-on): Add cloexec.
38095         * modules/pipe (Depends-on): Likewise.
38096         * modules/cloexec (Depends-on): Add dup2.
38097         * modules/cloexec-tests (Files): New file.
38098         * tests/test-cloexec.c: Likewise.
38099
38100         test-xalloc-die: fix test for mingw
38101         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38102         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38103         directory and .exe suffix off argv[0] output.
38104
38105         test-fseeko: fix test for mingw
38106         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38107         than undefining fseek, so test will pass on mingw.
38108
38109 2009-12-05  Bruno Haible  <bruno@clisp.org>
38110
38111         * lib/progname.h (set_program_name): Clarify specification.
38112         * lib/progname.c (set_program_name): Likewise.
38113         Reported by Jim Meyering.
38114
38115 2009-12-05  Jim Meyering  <meyering@redhat.com>
38116
38117         maint.mk: backslash-escape parens in default regexp
38118         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38119         backslash-escape the literal parentheses.
38120
38121         maint.mk: news-date-check: use grep -E
38122         * top/maint.mk (today): Define a Make variable, not a...
38123         (news-date-check): ...shell variable.
38124         (news-date-regexp): Use the Make variable.
38125         Use grep's -E option.  Change the failing diagnostic to mention
38126         the variable, $(news-date-regexp).
38127
38128 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38129
38130         maintainer-makefile: allow customization of NEWS entry format
38131         * top/maint.mk (news-date-regexp): New overridable variable.
38132         (news-date-check): Use it.
38133
38134 2009-12-04  Eric Blake  <ebb9@byu.net>
38135
38136         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38137         * lib/mgetgroups.h (xgetgroups): New prototype.
38138         * lib/mgetgroups.c (xgetgroups): New wrapper.
38139         (mgetgroups): Handle ENOSYS.
38140         * modules/mgetgroups (Depends-on): Add realloc.
38141         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38142
38143         mgetgroups: avoid argument promotion issues with -1
38144         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38145         for invalid gid_t.
38146         * tests/test-chown.h (getegid, test_chown): Likewise.
38147         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38148
38149 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38150
38151         exclude: Fix header file problems.
38152         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38153
38154 2009-12-01  Jim Meyering  <meyering@redhat.com>
38155
38156         fts: fts_open: do not let an empty string cause immediate failure
38157         This is required in support of GNU rm, for which the command
38158         "rm A '' B" must process and remove both A and B, in spite of
38159         the empty string argument.
38160         * lib/fts.c (fts_open): Do not let the presence of an empty string
38161         cause fts_open to fail immediately.  Most fts-using tools must be
38162         able to process all arguments, in order, and can be expected to
38163         diagnose such arguments themselves.
38164
38165 2009-11-30  Eric Blake  <ebb9@byu.net>
38166
38167         utimens: fix compilation error
38168         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38169         Declare variable at right scope.
38170
38171 2009-11-29  Jim Meyering  <meyering@redhat.com>
38172
38173         bootstrap: handle perl-5.11's changed --version output
38174         * build-aux/bootstrap (get_version): Handle perl separately,
38175         since perl-5.11's --version output is different.
38176
38177 2009-11-28  Jim Meyering  <meyering@redhat.com>
38178
38179         userspec: depend on the inttostr module, too
38180         * modules/userspec (Depends-on): Add inttostr.
38181
38182         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38183         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38184         number of MAXUID when it evaluates to (uid_t) -1.
38185         Likewise for group ID.  Reported by Matt McCutchen in
38186         <http://savannah.gnu.org/bugs/?28113>
38187
38188         userspec: reformat to use spaces, not TABs
38189         * lib/userspec.c: Expand TABs to spaces.
38190         Add Emacs' "indent-tabs-mode: nil" hint.
38191
38192 2009-11-27  Eric Blake  <ebb9@byu.net>
38193
38194         getopt-gnu: flush out another BSD bug
38195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38196         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38197         flush out BSD bug.
38198         * tests/test-getopt.h (test_getopt): End lists with NULL.
38199         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38200         (test_getopt_long_posix): Enhance test.
38201         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38202         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38203         getopt-gnu.
38204         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38205         Likewise.
38206
38207 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38208
38209         * modules/idpriv-droptemp-tests (Notice): Fix text.
38210
38211 2009-11-27  Jim Meyering  <meyering@redhat.com>
38212
38213         test-xalloc-die: avoid spurious failure due to libtool argv difference
38214         In a libtool-enabled project, this test would fail due to a difference
38215         in the emitted program name, e.g.,
38216         -test-xalloc-die: memory exhausted
38217         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38218         Use program to avoid that.
38219         * modules/xalloc-die-tests (Depends-on): Add progname.
38220         * tests/test-xalloc-die.c: Include progname.h".
38221         (program_name): Remove decl.
38222         (main): Call set_program_name.
38223         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38224
38225 2009-11-26  Richard Jones  <rjones@redhat.com>
38226
38227         w32sock: leave win32 error in place.
38228         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38229
38230 2009-11-26  Eric Blake  <ebb9@byu.net>
38231
38232         init.sh: suggest to use skip_ and fail_ functions in comments
38233         * tests/init.sh: Add a sentence.
38234
38235 2009-11-25  Bruno Haible  <bruno@clisp.org>
38236
38237         init.sh: add documentation in comments
38238         * tests/init.sh: Add some developer and user documentation.
38239
38240 2009-11-26  Jim Meyering  <meyering@redhat.com>
38241
38242         init.sh: accommodate even those who specify bogus srcdir manually
38243         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38244         configure-time tests to be sanitized, so that there is no need to
38245         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38246         (with no double quotes) suffices.  However, since tests may be
38247         invoked manually, and since you may explicitly set srcdir to the
38248         name of a directory containing spaces, do quote its uses here.
38249         * tests/test-pread.sh: Likewise.
38250         Suggested by Bruno Haible.
38251
38252         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38253         * tests/test-pread.sh: Write no data into the pipe, because
38254         test-pread actually reads none.  This avoids a diagnostic,
38255         "bash: echo: write error: Broken pipe", that arises in the unusual
38256         event something is ignoring SIGPIPE, and might be interpreted
38257         as some sort of failure.  Reported by Bruno Haible.
38258
38259 2009-11-25  Jim Meyering  <meyering@redhat.com>
38260
38261         test-pread: cover failure with ESPIPE and EINVAL
38262         * tests/test-pread.c (main): Test for failure, too.
38263         * tests/test-pread.sh: Invoke with stdin on a pipe.
38264         Suggested by Eric Blake.
38265
38266         pread: improvement and fix
38267         * modules/pread (Depends-on): Depend on lseek, for portability to
38268         e.g., mingw.  Suggested by Eric Blake.
38269         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38270
38271         unistd.in.h: correct declaration of pread
38272         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38273         Reported by Richard W.M. Jones.
38274
38275         test-pread.sh: distribute the test script
38276         * modules/pread-tests (Files): Include test-pread.sh.
38277
38278         test-pread.sh: clean up
38279         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38280         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38281         That is unnecessary, since it's always ".".
38282         Suggestion from Eric Blake.
38283
38284         test-pread.sh: make executable
38285         * tests/test-pread.sh: Set executable bit.
38286         Reported by Eric Blake.
38287
38288         correct typo in test-pread.sh
38289         * tests/test-pread.sh: Add #! line.
38290
38291         test pread
38292         * tests/test-pread.c: New file.
38293         * tests/test-pread.sh: Likewise.
38294         * modules/pread-tests: Likewise.
38295
38296         pread: new module
38297         * modules/pread: New file.
38298         * lib/unistd.in.h (pread): Define/declare.
38299         * lib/pread.c (pread): New file.
38300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38301         * modules/unistd (Makefile.am): Substitute witnesses.
38302         * doc/posix-functions/pread.texi (pread): Update.
38303         * MODULES.html.sh: Add pread.
38304
38305 2009-11-25  Jim Meyering  <meyering@redhat.com>
38306
38307         tests/init.sh: new file to be used via most *.sh tests
38308         * tests/init.sh: New file.
38309
38310 2009-11-25  Eric Blake  <ebb9@byu.net>
38311
38312         utimens: work around older Linux failure with symlinks
38313         * lib/utimens.c (lutimensat_works_really): New variable.
38314         (fdutimens, lutimens): Use it to manage kernels that support
38315         nanosecond times on files, but not on symlinks.
38316         Reported by OndÅ™ej Vašík.
38317
38318         utimes: fix configure grammar
38319         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38320
38321 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38322
38323         regex: Fix fastmap for multibyte character ranges.
38324         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38325         characters when a multibyte character range is included.
38326
38327 2009-11-22  Andy Wingo  <wingo@pobox.com>
38328
38329         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38330         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38331
38332 2009-11-24  Bruno Haible  <bruno@clisp.org>
38333
38334         doc: Most *_l functions exist in MacOS X 10.5.
38335         * doc/posix-functions/duplocale.texi: Update platforms list.
38336         * doc/posix-functions/freelocale.texi: Likewise.
38337         * doc/posix-functions/newlocale.texi: Likewise.
38338         * doc/posix-functions/uselocale.texi: Likewise.
38339         * doc/posix-functions/isalnum_l.texi: Likewise.
38340         * doc/posix-functions/isalpha_l.texi: Likewise.
38341         * doc/posix-functions/isblank_l.texi: Likewise.
38342         * doc/posix-functions/iscntrl_l.texi: Likewise.
38343         * doc/posix-functions/isdigit_l.texi: Likewise.
38344         * doc/posix-functions/isgraph_l.texi: Likewise.
38345         * doc/posix-functions/islower_l.texi: Likewise.
38346         * doc/posix-functions/isprint_l.texi: Likewise.
38347         * doc/posix-functions/ispunct_l.texi: Likewise.
38348         * doc/posix-functions/isspace_l.texi: Likewise.
38349         * doc/posix-functions/isupper_l.texi: Likewise.
38350         * doc/posix-functions/iswalnum_l.texi: Likewise.
38351         * doc/posix-functions/iswalpha_l.texi: Likewise.
38352         * doc/posix-functions/iswblank_l.texi: Likewise.
38353         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38354         * doc/posix-functions/iswctype_l.texi: Likewise.
38355         * doc/posix-functions/iswdigit_l.texi: Likewise.
38356         * doc/posix-functions/iswgraph_l.texi: Likewise.
38357         * doc/posix-functions/iswlower_l.texi: Likewise.
38358         * doc/posix-functions/iswprint_l.texi: Likewise.
38359         * doc/posix-functions/iswpunct_l.texi: Likewise.
38360         * doc/posix-functions/iswspace_l.texi: Likewise.
38361         * doc/posix-functions/iswupper_l.texi: Likewise.
38362         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38363         * doc/posix-functions/isxdigit_l.texi: Likewise.
38364         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38365         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38366         * doc/posix-functions/strcoll_l.texi: Likewise.
38367         * doc/posix-functions/strfmon_l.texi: Likewise.
38368         * doc/posix-functions/strftime_l.texi: Likewise.
38369         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38370         * doc/posix-functions/strxfrm_l.texi: Likewise.
38371         * doc/posix-functions/tolower_l.texi: Likewise.
38372         * doc/posix-functions/toupper_l.texi: Likewise.
38373         * doc/posix-functions/towctrans_l.texi: Likewise.
38374         * doc/posix-functions/towlower_l.texi: Likewise.
38375         * doc/posix-functions/towupper_l.texi: Likewise.
38376         * doc/posix-functions/wcscoll_l.texi: Likewise.
38377         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38378         * doc/posix-functions/wctrans_l.texi: Likewise.
38379         * doc/posix-functions/wctype_l.texi: Likewise.
38380         * doc/glibc-functions/strptime_l.texi: Likewise.
38381         * doc/glibc-functions/strtod_l.texi: Likewise.
38382         * doc/glibc-functions/strtof_l.texi: Likewise.
38383         * doc/glibc-functions/strtol_l.texi: Likewise.
38384         * doc/glibc-functions/strtold_l.texi: Likewise.
38385         * doc/glibc-functions/strtoll_l.texi: Likewise.
38386         * doc/glibc-functions/strtoul_l.texi: Likewise.
38387         * doc/glibc-functions/strtoull_l.texi: Likewise.
38388         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38389         * doc/glibc-functions/wcstod_l.texi: Likewise.
38390         * doc/glibc-functions/wcstof_l.texi: Likewise.
38391         * doc/glibc-functions/wcstol_l.texi: Likewise.
38392         * doc/glibc-functions/wcstold_l.texi: Likewise.
38393         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38394         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38395         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38396
38397 2009-11-24  Bruno Haible  <bruno@clisp.org>
38398
38399         duplocale: Fix logic bug.
38400         * lib/duplocale.c: Don't include <langinfo.h>.
38401         (_NL_LOCALE_NAME): Remove macro.
38402         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38403         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38404
38405 2009-11-23  Jim Meyering  <meyering@redhat.com>
38406
38407         test-update-copyright: don't hard-code /usr/bin/perl
38408         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38409         perl to print the current year.  Gilles Espinasse reported that
38410         the replaced use of perl was hard-coded as /usr/bin/perl.
38411
38412 2009-11-23  Bruno Haible  <bruno@clisp.org>
38413
38414         duplocale: Add support for glibc 2.3.x.
38415         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38416
38417 2009-11-22  Bruno Haible  <bruno@clisp.org>
38418
38419         vasnprintf: Tiny optimization.
38420         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38421         MacOS X.
38422
38423 2009-11-22  Bruno Haible  <bruno@clisp.org>
38424
38425         Tests for module 'duplocale'.
38426         * modules/duplocale-tests: New file.
38427         * tests/test-duplocale.c: New file.
38428
38429         New module 'duplocale'.
38430         * m4/duplocale.m4: New file.
38431         * lib/locale.in.h (duplocale): New declaration.
38432         * lib/duplocale.c: New file.
38433         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38434         gl_LOCALE_H_DEFAULTS): New macros.
38435         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38436         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38437         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38438         REPLACE_DUPLOCALE.
38439         * modules/duplocale: New file.
38440         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38441
38442 2009-11-22  Bruno Haible  <bruno@clisp.org>
38443
38444         * modules/locale-tests (configure.ac): Test for newlocale function.
38445         * tests/test-locale.c: When the system has extended locale functions,
38446         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38447
38448         locale: Make locale_t available when possible.
38449         * lib/locale.in.h: Include <xlocale.h> when it exists.
38450         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38451         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38452         * modules/locale (Depends-on): Add extensions.
38453         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38454         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38455
38456 2009-11-22  Bruno Haible  <bruno@clisp.org>
38457
38458         Add comments.
38459         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38460         invocation.
38461         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38462         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38463         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38464
38465 2009-11-22  Bruno Haible  <bruno@clisp.org>
38466
38467         error: account for the possibility of freopen (stdout).
38468         * lib/error.c: Include <unistd.h>.
38469         (flush_stdout): New function, extracted from error and error_at_line.
38470         Determine stdout's fd dynamically.
38471         (error, error_at_line): Invoke flush_stdout.
38472         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38473         * modules/error (Depends-on): Add unistd.
38474
38475 2009-11-22  Bruno Haible  <bruno@clisp.org>
38476
38477         diffseq: Add comment.
38478         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38479
38480 2009-11-22  Jim Meyering  <meyering@redhat.com>
38481
38482         c-stack: avoid defining an unused static function
38483         * lib/c-stack.c (find_stack_direction): Do not define this function
38484         when it will not be used.
38485
38486         diffseq: avoid spurious gcc warnings
38487         * lib/diffseq.h (IF_LINT2): Define.
38488         (compareseq): Use it to initialize two members of "part".
38489         This avoids two used-uninitialized warnings.
38490
38491 2009-11-21  Jim Meyering  <meyering@redhat.com>
38492
38493         c-stack: avoid "ignoring return value of `write'" warning
38494         * lib/c-stack.c: Include "ignore-value.h".
38495         (die): Explicitly ignore each write return value.
38496         * modules/c-stack (Depends-on): Add ignore-value.
38497
38498 2009-11-21  Bruno Haible  <bruno@clisp.org>
38499
38500         diffseq: reduce scope of variable 'best'.
38501         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38502         variable, earlier used for two different purposes.
38503
38504 2009-11-21  Jim Meyering  <meyering@redhat.com>
38505
38506         diffseq: remove useless assignment to "best"
38507         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38508         assignment.  At that point "best" is already guaranteed to be zero.
38509
38510 2009-11-20  Eric Blake  <ebb9@byu.net>
38511
38512         build: mention ftp redirector in release announcements
38513         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38514         values that used to come from cfg.mk; mention FTP redirect URL.
38515         * build-aux/announce-gen: Mention the mirror list.
38516         Suggested by Karl Berry.
38517
38518         nanosleep: improve port to mingw
38519         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38521         LIB_NANOSLEEP, but only when needed.
38522         * modules/select (Link): Document LIBSOCKET.
38523         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38524         enough.
38525
38526         nanosleep: work around cygwin bug
38527         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38528         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38529         bug.
38530         (getnow): Delete, not needed.
38531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38532         LIB_CLOCK_GETTIME.
38533         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38534         clock-time, gettime.
38535         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38536         bug.
38537         * modules/nanosleep-tests: New test.
38538         * tests/test-nanosleep.c: New file.
38539
38540         sleep: work around cygwin bug
38541         * lib/sleep.c (rpl_sleep): Work around the bug.
38542         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38543         (gl_PREREQ_SLEEP): Delete unused macro.
38544         * modules/sleep (Depends-on): Add verify.
38545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38546         * modules/unistd (Makefile.am): Substitute witness.
38547         * lib/unistd.in.h (sleep): Update prototype.
38548         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38549         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38550         * modules/sleep-tests (Depends-on): Check for alarm.
38551
38552 2009-11-20  Jim Meyering  <meyering@redhat.com>
38553
38554         maint.mk: improve sc_prohibit_magic_number_exit
38555         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38556         so it does not match uses like System.exit(1).
38557         Add comments showing how to correct all offenders.
38558
38559 2009-11-19  Eric Blake  <ebb9@byu.net>
38560
38561         xalloc-die-tests: add missing library
38562         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38563
38564         test-xvasprintf: silence compiler warnings
38565         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38566         empty string from gcc.
38567
38568 2009-11-19  Jim Meyering  <meyering@redhat.com>
38569
38570         xfreopen: new module, from coreutils
38571         * modules/xfreopen: New module.
38572         * lib/xfreopen.c: New file.
38573         * lib/xfreopen.h: New file.
38574         * MODULES.html.sh (File stream based Input/Output"): Add it.
38575
38576 2009-11-19  Eric Blake  <ebb9@byu.net>
38577
38578         manywarnings: depend on warnings
38579         * modules/manywarnings (Depends-on): Add warnings.
38580
38581         build: avoid compiler warnings
38582         * lib/select.c (rpl_select): Delete unused variable.
38583         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38584
38585 2009-11-18  Eric Blake  <ebb9@byu.net>
38586
38587         tests: avoid false negative with --with-packager
38588         * tests/test-version-etc.sh: Discard packager information.
38589         * tests/test-argp-version-etc-1.sh: Likewise.
38590         Reported by Mike Frysinger.
38591
38592         utimens: fix regression on Solaris
38593         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38594         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38595         can only change fd timestamps via futimesat.  Instead, use an
38596         additional witness macro to avoid BSD bug.
38597         Reported by Jim Meyering.
38598
38599 2009-11-17  Eric Blake  <ebb9@byu.net>
38600
38601         usleep: use it to simplify tests
38602         * modules/stat-time-tests (Depends-on): Add usleep.
38603         (configure.ac): Drop usleep check.
38604         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38605         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38606         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38607         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38608         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38609         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38610         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38611         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38612         Likewise.
38613         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38614         * tests/test-lchown.h (nap): Likewise.
38615         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38616         * tests/test-stat-time.c (nap): Likewise.
38617         * tests/test-utimens-common.h (nap): Update comments.
38618
38619         usleep: new module
38620         * modules/usleep: New file.
38621         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38622         * lib/usleep.c (usleep): Likewise.
38623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38624         * modules/unistd (Makefile.am): Substitute witnesses.
38625         * lib/unistd.in.h (usleep): Add declaration.
38626         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38627         * MODULES.html.sh (Date and time): Likewise.
38628         * modules/usleep-tests (Depends-on): New test.
38629         * tests/test-usleep.c: New file.
38630
38631         chown: work around OpenBSD bug
38632         * lib/chown.c (rpl_chown): Work around the bug.
38633         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38634         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38635         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38636         * modules/chown (Depends-on): Add stdbool.
38637         * modules/lchown (Depends-on): Likewise.
38638         * doc/posix-functions/chown.texi (chown): Document the bug.
38639         * doc/posix-functions/lchown.texi (lchown): Likewise.
38640         * tests/test-lchown.h (test_chown): Relax test.
38641
38642         mkstemp: avoid conflict with C++ keyword template
38643         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38644         * lib/mkostemp.c (mkostemp): Likewise.
38645         * lib/mkostemps.c (mkostemps): Likewise.
38646         * lib/mkstemp.c (mkstemp): Likewise.
38647         * lib/mkstemps.c (mkstemps): Likewise.
38648
38649         xalloc-die-tests: optimize
38650         * tests/test-xalloc-die.sh: Reduce number of processes.
38651
38652 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38653
38654         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38655         patch from ludo@gnu.org (Ludovic Courtès).
38656
38657 2009-11-17  Jim Meyering  <meyering@redhat.com>
38658
38659         version-etc: use proper license string
38660         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38661         * modules/version-etc-fsf: Likewise.
38662
38663 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38664
38665         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38666         printed to stdout.  Deal with EOL differences.
38667
38668 2009-11-17  Eric Blake  <ebb9@byu.net>
38669
38670         unsetenv: work around Solaris bug
38671         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38672         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38673         Reported by Jim Meyering.
38674
38675         vasnprintf: avoid compiler warnings
38676         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38677         variables.
38678         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38679
38680 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38681
38682         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38683         settings since xalloc-die is no longer the self test,
38684         xalloc-die.sh is.
38685
38686 2009-11-17  Jim Meyering  <meyering@redhat.com>
38687
38688         test-xalloc-die.sh: make the code agree with the commit log
38689         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38690         at the end, just in case you happen to have a test-xalloc-die
38691         program in some other PATH directory.
38692
38693         test-xalloc-die.sh: fix a portability bug
38694         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38695         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38696         Otherwise, argv[0] (as often seen in diagnostics) would be too
38697         system-dependent, sometimes with, and sometimes without the leading "./".
38698
38699         version-etc-fsf: relax license to LGPLv3+
38700         * modules/version-etc-fsf (License): Relax license.
38701
38702 2009-11-16  Eric Blake  <ebb9@byu.net>
38703
38704         xalloc-die-tests: avoid printing null pointer
38705         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38706         shell script.
38707         * tests/test-xalloc-die.c (program_name): Declare.
38708         * tests/test-xalloc-die.sh (tmpfiles): New file.
38709
38710         setenv, unsetenv: work around various bugs
38711         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38712         (setenv) [HAVE_SETENV]: Work around bugs.
38713         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38714         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38715         for bugs.
38716         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38717         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38719         * modules/stdlib (Makefile.am): Update substitutions.
38720         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38721         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38722         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38723         * modules/setenv-tests: New test.
38724         * modules/unsetenv-tests: Likewise.
38725         * tests/test-setenv.c: New file.
38726         * tests/test-unsetenv.c: Likewise.
38727
38728 2009-11-16  Jim Meyering  <meyering@redhat.com>
38729
38730         version-etc: relax license to LGPLv3+
38731         * modules/version-etc (License): Relax license.
38732
38733         better AC_REQUIRE expanded-before-required-warning avoidance
38734         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38735         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38736         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38737         which is no longer needed.
38738
38739 2009-11-16  Eric Blake  <ebb9@byu.net>
38740
38741         test-freading: clean up temporary file
38742         * tests/test-freading.c (main): Remove file on success, and use
38743         ASSERT more liberally.
38744         Reported by Jim Meyering.
38745
38746 2009-11-16  Jim Meyering  <meyering@redhat.com>
38747
38748         avoid new AC_REQUIRE expanded-before-required warnings
38749         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38750         merely using it.
38751         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38752         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38753
38754 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38755
38756         * tests/test-xalloc-die.c: New file.
38757         * modules/xalloc-die-tests: New file.
38758         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38759         XFAIL_TESTS so it can be appended by modules.
38760
38761 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38762
38763         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38764         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38765
38766 2009-11-14  Eric Blake  <ebb9@byu.net>
38767
38768         fnmatch: avoid compiler warning
38769         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38770         to silence compiler warning about mismatch signedness in ?:.
38771         Reported by Robert Millan.
38772
38773         intprops: add double-inclusion guard
38774         * lib/intprops.h: Allow idempotent includes.
38775         Suggested by Bruce Korb.
38776
38777         openat: detect Solaris fchownat bug
38778         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38779         penalizing glibc chownat when only lchownat is broken.
38780         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38781         trailing slash bugs.
38782         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38783         * modules/openat-tests (Files): Include more files.
38784         (Depends-on): Add mgetgroups, sleep, stat-time.
38785         (configure.ac): Add additional checks.
38786         (Makefile.am): Build new test.
38787         * tests/test-fchownat.c: New file.
38788
38789         lchown: detect Solaris and FreeBSD bug
38790         * lib/lchown.c (rpl_lchown): Work around bug.
38791         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38793         * modules/unistd (Makefile.am): Populate it.
38794         * lib/unistd.in.h (lchown): Update declaration.
38795         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38796         * modules/lchown-tests: New file.
38797         * tests/test-lchown.h (test_lchown): Likewise.
38798         * tests/test-lchown.c (main): Likewise.
38799
38800         chown: detect Solaris and FreeBSD bug
38801         * lib/chown.c (rpl_chown): Work around bug.
38802         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38803         (gl_PREREQ_CHOWN): Delete.
38804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38805         * modules/unistd (Makefile.am): Populate it.
38806         * lib/unistd.in.h (chown): Update declaration.
38807         * lib/lchown.c (chown): Update client.
38808         * modules/lchown (Depends-on): Add lstat.
38809         * doc/posix-functions/chown.texi (chown): Document the bug.
38810         * doc/posix-functions/getgroups.texi (getgroups): Document
38811         getgroups pitfall.
38812         * modules/chown-tests: New file.
38813         * tests/test-chown.h (test_chown): Likewise.
38814         * tests/test-chown.c (main): Likewise.
38815
38816 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38817
38818         gnulib-tool: correctly detect absence of m4 directories
38819         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38820
38821 2009-11-14  Jim Meyering  <meyering@redhat.com>
38822
38823         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38824         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38825
38826 2009-11-14  John W. Eaton  <jwe@gnu.org>
38827
38828         strftime.h: wrap funtion declaration in extern "C" block
38829         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38830
38831 2009-11-13  Eric Blake  <ebb9@byu.net>
38832
38833         getgroups: avoid compiler warning
38834         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38835
38836         getgroups: work around FreeBSD bug
38837         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38838         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38839         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38840         * tests/test-getgroups.c (main): Fix buffer overrun.
38841
38842         getgroups: avoid compilation failure
38843         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38844         * modules/getgroups (Depends-on): Add stdint.
38845
38846 2009-11-13  Jim Meyering  <meyering@redhat.com>
38847
38848         test-getgroups: avoid compilation failure
38849         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38850
38851 2009-11-13  Eric Blake  <ebb9@byu.net>
38852
38853         mgetgroups: new module, taken from coreutils
38854         * modules/mgetgroups: New file.
38855         * lib/mgetgroups.h: Likewise.
38856         * lib/mgetgroups.c (mgetgroups): Likewise.
38857         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38858         * MODULES.html.sh (Users and groups): Mention it.
38859
38860         getgroups: don't expose GETGROUPS_T to user
38861         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38862         an element at a time if GETGROUPS_T is wrong size.
38863         * lib/getugroups.h (getugroups): Change signature.
38864         * lib/unistd.in.h (getgroups): Likewise.
38865         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38866         signature needs fixing.
38867         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38868         AC_TYPE_GETGROUPS.
38869         * modules/group-member (Depends-on): Add getgroups.
38870         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38871         (group_member): Rely on getgroups replacement.
38872         * lib/getugroups.c (getugroups): Use gid_t.
38873         * tests/test-getgroups.c (main): Likewise.
38874         * NEWS: Mention the signature change.
38875         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38876         problem with signature.
38877         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38878         GETGROUPS_T is still useful for setgroups.
38879
38880         getgroups, getugroups: provide stubs for mingw
38881         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38882         * lib/getugroups.c (getugroups): Likewise.
38883         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38884         function.  Modernize replacement scheme.
38885         (gl_PREREQ_GETGROUPS): Delete.
38886         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38887         * modules/getgroups (configure.ac): Declare witness.
38888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38889         * modules/unistd (Depends-on): Substitute witness.
38890         * lib/unistd.in.h (getgroups): Declare replacement.
38891
38892         getgroups: avoid calling exit
38893         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38894         drop xalloc.
38895         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38896         dependencies.
38897         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38898         exiting, in the rare case of malloc failure.
38899
38900         getgroups: fix logic error
38901         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38902         has more than 20 groups.
38903         * modules/getgroups-tests: New test.
38904         * tests/test-getgroups.c: New file.
38905
38906 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38907
38908         * tests/test-base64.c: Improve.
38909
38910 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38911
38912         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38913         Blake <ebb9@byu.net>.
38914
38915 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38916
38917         * tests/test-xvasprintf.c: Add %s%s related checks.
38918
38919 2009-11-12  Eric Blake  <ebb9@byu.net>
38920
38921         version-etc: match standards.texi style
38922         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38923         and use <> only for URLs.
38924
38925 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38926
38927         fts: do not fail on a submount during traversal
38928         * lib/fts.c (fts_build): Read the stat info again after opening
38929         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38930         Original report at http://bugzilla.redhat.com/501848.
38931
38932 2009-11-12  Jim Meyering  <meyering@redhat.com>
38933
38934         bootstrap: sync from coreutils
38935         * build-aux/bootstrap (bootstrap_epilogue): New function.
38936         Use git_modules_config in one more place.  This make bootstrap's
38937         --gnulib-srcdir option more useful for testing.
38938
38939         bootstrap: generalize autoheader check
38940         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38941         AC_CONFIG_HEADERS.
38942
38943 2009-11-11  Eric Blake  <ebb9@byu.net>
38944
38945         mkfifoat: use new modules for Solaris and BSD bugs
38946         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38947         * lib/mkfifoat.c (mknodat): Split...
38948         * lib/mknodat.c (mknodat): ...into new file.
38949         * modules/mkfifoat (Files): Ship new file.
38950         (Depends-on): Add mkfifo, mknod.
38951         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38952         (Depends-on): Add symlink.
38953         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38954         redundant with test_mkfifo.h.
38955         (do_mkfifoat, do_mknodat): New helpers.
38956
38957         mknod: new module
38958         * modules/mknod: New file.
38959         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38960         * lib/mknod.c (mknod): Likewise.
38961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38962         defaults.
38963         * modules/sys_stat (Makefile.am): Substitute them.
38964         * lib/sys_stat.in.h (mknod): Declare replacement.
38965         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38966         Document it.
38967         * doc/posix-functions/mknod.texi (mknod): Likewise.
38968         * modules/mknod-tests: New test.
38969         * tests/test-mknod.c: Likewise.
38970
38971         mkfifo: new module
38972         * modules/mkfifo: New file.
38973         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38974         * lib/mkfifo.c (mkfifo): Likewise.
38975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38976         defaults.
38977         * modules/sys_stat (Makefile.am): Substitute them.
38978         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38979         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38980         Document it.
38981         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38982         * modules/mkfifo-tests: New test.
38983         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38984         from test-mkfifoat.c.
38985         * tests/test-mkfifo.c: New file.
38986
38987         readlink: detect FreeBSD bug
38988         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38989         slash on symlink.
38990         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38991         * tests/test-readlink.h (test_readlink): Enhance test.
38992
38993         symlink: detect FreeBSD bug
38994         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38995         slash on symlink.
38996         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38997         * tests/test-symlink.h (test_symlink): Enhance test.
38998
38999 2009-11-10  Eric Blake  <ebb9@byu.net>
39000
39001         link: detect FreeBSD bug
39002         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39003         symlink.
39004         * doc/posix-functions/link.texi (link): Document the bug.
39005         * tests/test-link.h (test_link): Enhance test.
39006         * tests/test-linkat.c (main): Update caller.
39007
39008         unlink, remove: detect FreeBSD bug
39009         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39010         slash on symlink.
39011         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39012         * doc/posix-functions/remove.texi (remove): Likewise.
39013         * tests/test-unlink.h (test_unlink): Enhance test.
39014         * tests/test-remove.c (main): Likewise.
39015
39016 2009-11-09  Eric Blake  <ebb9@byu.net>
39017
39018         rename: detect FreeBSD bug
39019         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39020         slash on symlink.
39021         * modules/renameat-tests (Depends-on): Add filenamecat.
39022         * tests/test-rename.h (test_rename): Allow one more errno.
39023         * tests/test-renameat.c (main): Likewise.
39024         * doc/posix-functions/rename.texi (rename): Document the bug.
39025
39026         open: detect FreeBSD bug
39027         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39028         symlink.
39029         * doc/posix-functions/open.texi (open): Document the bug.
39030         * doc/posix-functions/utimes.texi (utimes): Likewise.
39031         * tests/test-open.h (test_open): Add parameters, and test symlink
39032         handling.
39033         * tests/test-open.c (main): Adjust caller.
39034         * tests/test-fcntl-safer.c (main): Likewise.
39035         * modules/open-tests (Depends-on): Add stdbool, symlink.
39036         * modules/fcntl-safer-tests (Depends-on): Likewise.
39037         * tests/test-openat.c (main): Add test-open tests.
39038
39039         stat: detect FreeBSD bug
39040         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39041         symlink.
39042         * doc/posix-functions/stat.texi (stat): Document the bug.
39043         * tests/test-stat.h (test_stat_func): Add argument.
39044         * tests/test-stat.c (main): Adjust caller.
39045         * tests/test-fstatat.c (main): Likewise.
39046         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39047         Reported by Jim Meyering.
39048
39049 2009-11-09  James Youngman  <jay@gnu.org>
39050
39051         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39052         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39053
39054 2009-11-08  Jim Meyering  <meyering@redhat.com>
39055
39056         utimens: remove invalid futimesat call
39057         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39058         It used the file descriptor of the target file as the DIR_FD
39059         parameter and NULL as the file name.  That caused failure with
39060         errno == EFAULT on FreeBSD-8.0-rc2
39061
39062 2009-11-07  Eric Blake  <ebb9@byu.net>
39063
39064         fflush, freadseek: use fseeko, not fseek
39065         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39066         (clear_ungetc_buffer): Avoid potential problems on large files.
39067         * lib/freadseek.c (freadseek): Likewise.
39068         * modules/freadseek (Depends-on): Add fseeko.
39069         * modules/fseek (configure.ac): Set a witness.
39070         * tests/test-fflush.c (main): Use fseeko.
39071         * tests/test-fpurge.c (fseek): Disable link warning.
39072         * tests/test-freadable.c (fseek): Likewise.
39073         * tests/test-freading.c (fseek): Likewise.
39074         * tests/test-fseeko.c (fseek): Likewise.
39075         * tests/test-ftell.c (fseek): Likewise.
39076         * tests/test-ftello.c (fseek): Likewise.
39077         * tests/test-fwritable.c (fseek): Likewise.
39078         * tests/test-fwriting.c (fseek): Likewise.
39079
39080 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39081
39082         * modules/memchr (Depends-on): Drop getpagesize dependency.
39083
39084 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39085
39086         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39087         Reported by Ludovic Courtès.
39088         * build-aux/pmccabe2html: Improve example usage.
39089         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39090
39091 2009-11-06  Jim Meyering  <meyering@redhat.com>
39092
39093         do-release-commit-and-tag: New module.
39094         Automate the release-commit and tag process.
39095         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39096         * modules/do-release-commit-and-tag: New file.
39097         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39098
39099 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39100
39101         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39102         because test-select.c uses inet_pton.
39103
39104 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39105
39106         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39107         GETADDRINFO_LIB.  Bump serial number.
39108         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39109         Suggested by Eric Blake <ebb9@byu.net>.
39110
39111 2009-11-05  Eric Blake  <ebb9@byu.net>
39112
39113         strtod: detect darwin bug
39114         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39115         Reported by Leo Davis.
39116
39117         freopen-safer: new module
39118         * modules/freopen-safer: New module.
39119         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39120         * lib/freopen-safer.c (freopen_safer): New file.
39121         * lib/stdio-safer.h (freopen_safer): New declaration.
39122         * lib/stdio--.h (freopen): New override.
39123         * MODULES.html.sh (File stream based Input/Output): Mention it.
39124         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39125         freopen-safer module.
39126         * doc/posix-functions/stderr.texi (stderr): Likewise.
39127         * doc/posix-functions/stdin.texi (stdin): Likewise.
39128         * doc/posix-functions/stdout.texi (stdout): Likewise.
39129         * modules/freopen-safer-tests: New test.
39130         * tests/test-reopen-safer.c: New file.
39131
39132 2009-11-05  Jim Meyering  <meyering@redhat.com>
39133
39134         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39135         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39136
39137 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39138
39139         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39140
39141 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39142
39143         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39144
39145 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39146
39147         Fix link error.
39148         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39149         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39150
39151 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39152
39153         * tests/test-func.c: Also test value of __func__.
39154
39155 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39156
39157         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39158         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39159
39160 2009-11-05  Bruno Haible  <bruno@clisp.org>
39161
39162         Fix link error.
39163         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39164         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39165         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39166
39167 2009-11-05  Bruno Haible  <bruno@clisp.org>
39168
39169         Tests for module 'inet_pton'.
39170         * modules/inet_pton-tests: New file.
39171         * tests/test-inet_pton.c: New file.
39172
39173 2009-11-05  Bruno Haible  <bruno@clisp.org>
39174
39175         Tests for module 'inet_ntop'.
39176         * modules/inet_ntop-tests: New file.
39177         * tests/test-inet_ntop.c: New file.
39178
39179 2009-11-04  Eric Blake  <ebb9@byu.net>
39180
39181         stdlib-safer: wrap all mkstemp variants
39182         * modules/mkostemp (configure.ac): Set witness.
39183         * modules/mkostemps (configure.ac): Likewise.
39184         * modules/mkstemps (configure.ac): Likewise.
39185         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39186         (mkstemps_safer): Wrap more functions.
39187         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39188         wrapping.
39189         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39190         (mkstemps_safer): Implement the wrappers.
39191
39192         mkstemps, mkostemps: new modules
39193         * modules/mkostemps: New module.
39194         * modules/mkstemps: Likewise.
39195         * lib/mkostemps.c (mkostemps): New file.
39196         * lib/mkstemps.c (mkstemps): Likewise.
39197         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39198         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39200         * modules/stdlib (Makefile.am): Substitute them.
39201         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39202         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39203         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39204         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39205         * MODULES.html.sh (File system functions): Mention them.
39206
39207         tempname: resync from glibc
39208         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39209         same values for __GT_FILE as glibc.  Abort even when assertions
39210         are disabled.
39211         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39212         match its value otherwise.  Allow idempotent inclusion.
39213         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39214         * lib/mkostemp.c (mkostemp): Likewise.
39215         * lib/mkstemp.c (mkstemp): Likewise.
39216         * lib/tmpfile.c (tmpfile): Likewise.
39217         * NEWS: Document this.
39218
39219         utimens: fix use of futimens on older Linux
39220         * lib/utimens.c (fdutimens): Use updated, rather than original,
39221         timespec to avoid bug in older Linux kernel.
39222         Reported by Simon Josefsson.
39223
39224 2009-11-04  Bruno Haible  <bruno@clisp.org>
39225
39226         Make num_processors more flexible and consistent.
39227         * lib/nproc.h (enum nproc_query): New type.
39228         (num_processors): Add a 'query' argument.
39229         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39230         (num_processors): Add a 'query' argument. Test the value of the
39231         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39232         mingw, count the number of CPUs available for the current process.
39233         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39234         Check for sched_getaffinity and sched_getaffinity_np.
39235         * modules/nproc (Depends-on): Add c-ctype, extensions.
39236         * NEWS: Mention the change.
39237
39238 2009-11-03  Bruno Haible  <bruno@clisp.org>
39239
39240         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39241
39242 2009-11-03  Jim Meyering  <meyering@redhat.com>
39243
39244         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39245         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39246         if it is defined.
39247
39248 2009-11-02  Eric Blake  <ebb9@byu.net>
39249
39250         mktime, timegm: share common declaration
39251         * lib/mktime-internal.h: New file.
39252         * lib/mktime.c: Use it rather than open-coding a declaration.
39253         * lib/timegm.c: Likewise.
39254         * modules/mktime (Files): Ship it.
39255         * modules/timegm (Files): Likewise.
39256         Suggested by Bruno Haible.
39257
39258         test-update-copyright: update test to match script changes
39259         * tests/test-update-copyright.sh: Avoid hard-coding perl
39260         location.  Don't update *.bak created by earlier runs.
39261
39262 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39263             Simon Josefsson  <simon@josefsson.org>
39264             Bruno Haible  <bruno@clisp.org>
39265
39266         Fix link error on Solaris 8.
39267         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39268         also in libnsl. Define also INET_PTON_LIB.
39269         * modules/inet_pton (Link): New section.
39270
39271 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39272             Bruno Haible  <bruno@clisp.org>
39273
39274         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39275         * modules/inet_ntop (Link): New section.
39276         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39277
39278 2009-11-02  Eric Blake  <ebb9@byu.net>
39279
39280         maint: avoid compiler warnings in m4 macros
39281         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39282         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39283
39284 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39285
39286         * m4/pmccabe2html.m4: Remove file.
39287         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39288         function.  Change maintainer.
39289         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39290         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39291         Courtès).
39292
39293 2009-10-31  Eric Blake  <ebb9@byu.net>
39294
39295         fseeko: fix m4 regression
39296         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39297         regression from 2009-10-27.
39298         Reported by Ralf Wildenhues.
39299
39300 2009-10-31  Jim Meyering  <meyering@redhat.com>
39301
39302         inttostr: aesthetics and improved (compile-time) safety
39303         Define inttype_is_signed rather than inttype_is_unsigned,
39304         since the sole use is via "#if inttype_is_signed".
39305         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39306         inttype_is_unsigned.
39307         * lib/offtostr.c (inttype_is_signed): Likewise.
39308         * lib/uinttostr.c (inttype_is_signed): Likewise.
39309         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39310         * lib/inttostr.c (inttostr): Use verify to cross-check the
39311         inttype_is_signed value and the signedness of the actual type.
39312         * modules/inttostr (Depends-on): Add verify.
39313
39314 2009-10-30  Eric Blake  <ebb9@byu.net>
39315
39316         build: avoid compiler warnings
39317         * lib/fchmodat.c (lchmod): Mark unused variables.
39318         * lib/getopt.c (_getopt_initialize): Likewise.
39319         * lib/mktime.c (__mktime_internal): Provide prototype.
39320         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39321         older gcc that do not understand #pragma GCC diagnostic.
39322         * lib/uinttostr.c (inttype_is_unsigned): Define.
39323         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39324
39325 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39326
39327         stat: fix compilation on AIX
39328         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39329         only see struct stat64.
39330
39331 2009-10-30  Eric Blake  <ebb9@byu.net>
39332
39333         exclude: make more robust
39334         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39335         rather than masking a coding bug.
39336         Suggested by Bruno Haible.
39337
39338 2009-10-30  Jim Meyering  <meyering@redhat.com>
39339
39340         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39341         Rather than putting #!/usr/bin/perl on the first line,
39342         start with a variant of what's recommended by "man perlrun" that
39343         invokes the first "perl" program from your shell's search path.
39344         * build-aux/gitlog-to-changelog: Replace #!... as above.
39345         Add a "Local Variables" perl mode setting.
39346         Prompted by a patch from Ludovic Courtès.
39347         Improved by Eric Blake.
39348         * build-aux/useless-if-before-free: Likewise.
39349         * build-aux/announce-gen: Likewise.
39350         * build-aux/update-copyright: Likewise.
39351
39352 2009-10-29  Eric Blake  <ebb9@byu.net>
39353
39354         filenamecat-lgpl: adjust clients
39355         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39356         filenamecat.
39357         * modules/renameat (Depends-on): Likewise.
39358
39359         filenamecat: split into filenamecat-lgpl
39360         * modules/filenamecat-lgpl: New module.
39361         * modules/filenamecat (Files): Move library-safe files into
39362         filenamecat-lgpl.
39363         (Depends-on): Add filenamecat-lgpl.
39364         (configure.ac): Declare witness.
39365         * lib/filenamecat.h (file_name_concat): Only declare when using
39366         GPL module.
39367         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39368         Move...
39369         * lib/filenamecat-lgpl.c: ...into new file.
39370         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39371         (gl_FILE_NAME_CONCAT): Use it.
39372         * MODULES.html.sh (File system functions): Mention new module.
39373
39374         argp: avoid memory leak
39375         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39376         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39377         base_name, since the latter malloc()s and can call exit().
39378         Leak introduced 2006-07-03.
39379
39380         dirname-lgpl: adjust clients that don't need full dirname
39381         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39382         * modules/filenamecat (Depends-on): Likewise.
39383         * modules/linkat (Depends-on): Likewise.
39384         * modules/mkancesdirs (Depends-on): Likewise.
39385         * modules/mkdir (Depends-on): Likewise.
39386         * modules/openat (Depends-on): Likewise.
39387         * modules/savewd (Depends-on): Likewise.
39388         * modules/rename (Depends-on): Likewise.
39389         (License): Relax license.
39390         * modules/mkdir-tests (Depends-on): Drop progname.
39391         (Makefile.am): Delete unneeded LDADD.
39392         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39393
39394         dirname: split into dirname-lgpl
39395         * modules/dirname-lgpl: New module.
39396         * modules/dirname (Files): Move library-safe files into
39397         dirname-lgpl.
39398         (Depends-on): Add dirname-lgpl.
39399         (configure.ac): Declare witness.
39400         * modules/double-slash-root (License): Relax license.
39401         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39402         module.
39403         * lib/dirname.c (dir_len, mdir_name): Move...
39404         * lib/dirname-lgpl.c: ...into new file.
39405         * lib/basename.c (last_component, base_len): Move...
39406         * lib/basename-lgpl.c: ...into new file.
39407         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39408         (gl_DIRNAME): Use it.
39409         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39410         Mention new module.
39411         * modules/dirname-tests (Depends-on): Add progname.
39412         * tests/test-dirname.c (program_name): Delete.
39413
39414         mkdir: make safe for libraries
39415         * modules/mkdir (Depends-on): Drop xalloc.
39416         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39417         exit.
39418
39419         tests: avoid some compiler warnings
39420         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39421         literals.
39422         * tests/test-memchr.c (main): Avoid type mismatch.
39423         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39424         * tests/test-base64.c (main): Likewise.
39425         * tests/test-getdelim.c (main): Likewise.
39426         * tests/test-gethostname.c (main): Likewise.
39427         * tests/test-getline.c (main): Likewise.
39428         * tests/test-netinet_in.c (main): Likewise.
39429         * tests/test-select.c (open_server_socket, main): Likewise.
39430         * tests/test-select-stdin.c (main): Likewise.
39431         * tests/test-sockets.c (main): Likewise.
39432         * tests/test-strsignal.c (main): Likewise.
39433         * tests/test-sys_select.c (main): Likewise.
39434         * tests/test-sys_socket.c (main): Likewise.
39435         * tests/test-u64.c (main): Likewise.
39436         * tests/test-xfprintf-posix.c (main): Likewise.
39437         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39438
39439         sockets: avoid compiler warning
39440         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39441
39442         maint: detect usage(1) and other suspicious exits
39443         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39444
39445 2009-10-29  Jim Meyering  <meyering@redhat.com>
39446
39447         timespec: long-to-int truncation could make timespec_cmp malfunction
39448         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39449         a multiple of 2^32 nanoseconds as no difference.
39450
39451 2009-10-28  Jim Meyering  <meyering@redhat.com>
39452
39453         fprintftime: wrap macro code argument in "do {...} while(0)"
39454         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39455         cpy macro must be a statement that can be followed by a semicolon.
39456         Now that the else clause contains a comment and is hence longer
39457         than one line, I require curly braces.  That in turn requires
39458         that we wrap this code block in the standard do...while(0).
39459
39460         fprintftime: remove stray semicolon from previous change
39461         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39462
39463         fprintftime: avoid a warning about ignored fwrite return value
39464         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39465         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39466         that is unsafe.
39467         * modules/fprintftime (Depends-on): Add ignore-value.
39468
39469         exclude: avoid an unwarranted warning
39470         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39471
39472 2009-10-27  Eric Blake  <ebb9@byu.net>
39473
39474         fseek: avoid compilation failure when fflush is replaced
39475         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39476         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39477         module is in use.
39478         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39479         module is not in use; since REPLACE_FSEEK worked otherwise.
39480         (GNULIB_FTELLO): Likewise for ftell.
39481         Reported by Ian Beckwith and others.
39482
39483 2009-10-27  Bruno Haible  <bruno@clisp.org>
39484
39485         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39486         Reported by Jim Meyering.
39487
39488 2009-10-27  Jim Meyering  <jim@meyering.net>
39489             Bruno Haible  <bruno@clisp.org>
39490
39491         Avoid warning despite dropping the return value of fwrite.
39492         * lib/unicodeio.c: Include ignore-value.h.
39493         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39494         * modules/unicodeio (Depends-on): Add ignore-value.
39495
39496 2009-10-26  Eric Blake  <ebb9@byu.net>
39497
39498         areadlinkat: fix fallback path
39499         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39500         pointer and zero.
39501
39502 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39503
39504         Use a better IO block size for modern systems
39505         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39506         * lib/md2.c: Likewise.
39507         * lib/md4.c: Likewise.
39508         * lib/md5.c: Likewise.
39509         * lib/sha1.c: Likewise.
39510         * lib/sha256.c: Likewise.
39511         * lib/sha512.c: Likewise.
39512
39513 2009-10-22  Eric Blake  <ebb9@byu.net>
39514
39515         tests: avoid several compiler warnings
39516         * tests/test-getcwd.c (main): Avoid buffer underflow.
39517         * tests/test-getdate.c (main): String literals are not safe with
39518         putenv, so use setenv.  Declare unused argument.
39519         * modules/getdate-tests (Depends-on): Add setenv.
39520         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39521         problems with string literals in char *.
39522         * tests/test-hash.c (main): Avoid shadowing declaration.
39523         (insert_new): Treat string literals as char const *.
39524         * tests/test-getopt.h (test_getopt): Likewise.
39525         (getopt_loop): Alter types to minimize casting elsewhere.
39526         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39527         (test_getopt_long_posix): Likewise.
39528         (do_getopt_long): Add wrapper to minimize casting.
39529         * tests/test-atexit.c (clear_temp_file): Use void.
39530         * tests/test-areadlink-with-size.c (main): Declare unused
39531         arguments.
39532         * tests/test-areadlink.c (main): Likewise.
39533         * tests/test-areadlinkat-with-size.c (main): Likewise.
39534         * tests/test-areadlinkat.c (main): Likewise.
39535         * tests/test-canonicalize-lgpl.c (main): Likewise.
39536         * tests/test-canonicalize.c (main): Likewise.
39537         * tests/test-dirent-safer.c (main): Likewise.
39538         * tests/test-dirname.c (main): Likewise.
39539         * tests/test-dup2.c (main): Likewise.
39540         * tests/test-fchdir.c (main): Likewise.
39541         * tests/test-fcntl-h.c (main): Likewise.
39542         * tests/test-fcntl-safer.c (main): Likewise.
39543         * tests/test-fdopendir.c (main): Likewise.
39544         * tests/test-fdutimensat.c (main): Likewise.
39545         * tests/test-fflush.c (main): Likewise.
39546         * tests/test-filenamecat.c (main): Likewise.
39547         * tests/test-filevercmp.c (main): Likewise.
39548         * tests/test-fopen-safer.c (main): Likewise.
39549         * tests/test-fopen.c (main): Likewise.
39550         * tests/test-fpending.c (main): Likewise.
39551         * tests/test-fpurge.c (main): Likewise.
39552         * tests/test-freading.c (main): Likewise.
39553         * tests/test-fstatat.c (main): Likewise.
39554         * tests/test-fsync.c (main): Likewise.
39555         * tests/test-futimens.c (main): Likewise.
39556         * tests/test-getndelim2.c (main): Likewise.
39557         * tests/test-gettimeofday.c (main): Likewise.
39558         * tests/test-getopt.c (main): Likewise.
39559         * tests/test-i-ring.c (main): Likewise.
39560         * tests/test-inttypes.c (main): Likewise.
39561         * tests/test-link.c (main): Likewise.
39562         * tests/test-lstat.c (main): Likewise.
39563         * tests/test-math.c (main): Likewise.
39564         * tests/test-md5.c (main): Likewise.
39565         * tests/test-memchr2.c (main): Likewise.
39566         * tests/test-memrchr.c (main): Likewise.
39567         * tests/test-mkdir.c (main): Likewise.
39568         * tests/test-mkdirat.c (main): Likewise.
39569         * tests/test-mkfifoat.c (main): Likewise.
39570         * tests/test-open.c (main): Likewise.
39571         * tests/test-openat-safer.c (main): Likewise.
39572         * tests/test-openat.c (main): Likewise.
39573         * tests/test-quotearg.c (main): Likewise.
39574         * tests/test-rawmemchr.c (main): Likewise.
39575         * tests/test-readlink.c (main): Likewise.
39576         * tests/test-remove.c (main): Likewise.
39577         * tests/test-rename.c (main): Likewise.
39578         * tests/test-renameat.c (main): Likewise.
39579         * tests/test-rmdir.c (main): Likewise.
39580         * tests/test-sha1.c (main): Likewise.
39581         * tests/test-signal.c (main): Likewise.
39582         * tests/test-sigaction.c (main): Likewise.
39583         * tests/test-stat.c (main): Likewise.
39584         * tests/test-stat-time.c (main): Likewise.
39585         * tests/test-stddef.c (main): Likewise.
39586         * tests/test-stdint.c (main): Likewise.
39587         * tests/test-stdio.c (main): Likewise.
39588         * tests/test-stdlib.c (main): Likewise.
39589         * tests/test-strchrnul.c (main): Likewise.
39590         * tests/test-strerror.c (main): Likewise.
39591         * tests/test-string.c (main): Likewise.
39592         * tests/test-strtod.c (main): Likewise.
39593         * tests/test-strverscmp.c (main): Likewise.
39594         * tests/test-symlink.c (main): Likewise.
39595         * tests/test-symlinkat.c (main): Likewise.
39596         * tests/test-sys_stat.c (main): Likewise.
39597         * tests/test-sys_time.c (main): Likewise.
39598         * tests/test-time.c (main): Likewise.
39599         * tests/test-unistd.c (main): Likewise.
39600         * tests/test-unlink.c (main): Likewise.
39601         * tests/test-unlinkat.c (main): Likewise.
39602         * tests/test-utimens.c (main): Likewise.
39603         * tests/test-utimensat.c (main): Likewise.
39604         * tests/test-version-etc.c (main): Likewise.
39605         * tests/test-wchar.c (main): Likewise.
39606         * tests/test-wctype.c (main): Likewise.
39607         * tests/test-xprintf-posix.c (main): Likewise.
39608         * tests/test-posixtm.c (main): Likewise.
39609         (STREQ): Delete unused macro.
39610         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39611         shadowed variables.
39612         * tests/test-memchr.c (main): Likewise.
39613
39614 2009-10-21  Eric Blake  <ebb9@byu.net>
39615
39616         areadlinkat: avoid failure on older glibc
39617         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39618         rather than mis-comparing 0 against FUNC_RESULT of char*.
39619
39620 2009-10-21  Bruno Haible  <bruno@clisp.org>
39621
39622         * modules/stpncpy (License): Relicense under LGPLv2+.
39623         Reported by David Lutterkort <lutter@redhat.com>.
39624
39625 2009-10-20  Eric Blake  <ebb9@byu.net>
39626
39627         utimensat: work around Solaris 9 bug
39628         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39629         has trailing slash bugs.
39630         * tests/test-lutimens.h (test_lutimens): Enhance test.
39631         * tests/test-utimens.h (test_utimens): Likewise.
39632         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39633         * doc/posix-functions/utimes.texi (utimes): Likewise.
39634         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39635         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39636         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39637         * doc/posix-functions/futimens.texi (futimens): Likewise.
39638
39639         fdutimensat: new module
39640         * modules/fdutimensat: New file.
39641         * lib/fdutimensat.c (fdutimensat): Likewise.
39642         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39643         * MODULES.html.sh (File system functions): Mention module.
39644         * modules/fdutimensat-tests: New test.
39645         * tests/test-fdutimensat.c: Likewise.
39646
39647         doc: regenerate INSTALL
39648         * doc/INSTALL: Reflect recent autoconf update.
39649         * doc/INSTALL.ISO: Likewise.
39650         * doc/INSTALL.UTF-8: Likewise.
39651
39652 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39653
39654         acl: warn if ACL support is not detected
39655         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39656
39657 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39658
39659         * lib/nproc.h: Add extern "C" block for C++.
39660
39661 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39662             Bruno Haible  <bruno@clisp.org>
39663
39664         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39665         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39666         * doc/posix-functions/isalpha.texi: Likewise.
39667         * doc/posix-functions/isblank.texi: Likewise.
39668         * doc/posix-functions/iscntrl.texi: Likewise.
39669         * doc/posix-functions/isdigit.texi: Likewise.
39670         * doc/posix-functions/isgraph.texi: Likewise.
39671         * doc/posix-functions/islower.texi: Likewise.
39672         * doc/posix-functions/isprint.texi: Likewise.
39673         * doc/posix-functions/ispunct.texi: Likewise.
39674         * doc/posix-functions/isspace.texi: Likewise.
39675         * doc/posix-functions/isupper.texi: Likewise.
39676         * doc/posix-functions/isxdigit.texi: Likewise.
39677
39678 2009-10-18  Bruno Haible  <bruno@clisp.org>
39679
39680         Tests for module 'isblank'.
39681         * modules/isblank-tests: New file.
39682         * tests/test-isblank.c: New file.
39683
39684         New module 'isblank'.
39685         * lib/isblank.c: New file.
39686         * m4/isblank.m4: New file.
39687         * modules/isblank: New file.
39688         * doc/posix-functions/isblank.texi: Mention the new module.
39689
39690 2009-10-18  Bruno Haible  <bruno@clisp.org>
39691
39692         New module 'ctype'.
39693         * lib/ctype.in.h: New file.
39694         * m4/ctype.m4: New file.
39695         * modules/ctype: New file.
39696         * doc/posix-headers/ctype.texi: Mention the new module.
39697
39698 2009-10-18  Jim Meyering  <meyering@redhat.com>
39699
39700         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39701         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39702         right after its initialization, rather than farther down.
39703         Keeping these in close proximity makes it easier to ensure
39704         that each such variable is initialized.  E.g.,
39705
39706             LIB_CLOCK_GETTIME=
39707             AC_SUBST([LIB_CLOCK_GETTIME])
39708
39709         This change also increments these serial numbers.
39710         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39711         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39713
39714 2009-10-18  Bruno Haible  <bruno@clisp.org>
39715
39716         Don't let environment variables perturb build.
39717         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39718         (gl_PREREQ_GETHRXTIME): ... not here.
39719
39720 2009-10-18  Bruno Haible  <bruno@clisp.org>
39721
39722         Avoid symlink attack in localcharset module.
39723         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39724         (O_NOFOLLOW): Define fallback.
39725         (get_charset_aliases): Don't open the file if it is a symbolic link.
39726         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39727         gl_FCNTL_H.
39728         (gl_FCNTL_H): Require it.
39729         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39730         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39731         Reported by Fergal Glynn <fglynn@veracode.com>.
39732
39733 2009-10-18  Bruno Haible  <bruno@clisp.org>
39734
39735         Implement nproc for mingw.
39736         * lib/nproc.c: Include <windows.h>
39737         (num_processors): On native Windows platforms, try GetSystemInfo.
39738
39739 2009-10-18  Bruno Haible  <bruno@clisp.org>
39740
39741         Implement nproc for IRIX.
39742         * lib/nproc.c: Include <sys/sysmp.h>.
39743         (num_processors): On IRIX systems, try sysmp.
39744         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39745
39746 2009-10-18  Bruno Haible  <bruno@clisp.org>
39747
39748         Implement nproc for HP-UX.
39749         * lib/nproc.c: Include <sys/pstat.h>
39750         (num_processors): On HP-UX systems, try pstat_getdynamic.
39751         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39752         pstat_getdynamic.
39753
39754 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39755             Bruno Haible  <bruno@clisp.org>
39756
39757         Implement nproc for NetBSD, OpenBSD.
39758         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39759         (ARRAY_SIZE): New macro.
39760         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39761         * m4/nproc.m4: New file.
39762         * modules/nproc (Files): Add m4/nproc.m4.
39763         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39764         (Makefile.am): Instead, augment lib_SOURCES.
39765
39766 2009-10-18  Bruno Haible  <bruno@clisp.org>
39767
39768         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39769         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39770         sys/param.h.
39771
39772 2009-10-16  Eric Blake  <ebb9@byu.net>
39773
39774         utimensat: new module
39775         * modules/utimensat: New file.
39776         * lib/utimensat.c (utimensat): Likewise.
39777         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39778         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39779         so we can work around Linux bugs.
39780         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39781         * modules/sys_stat (Makefile.am): Substitute them.
39782         * lib/sys_stat.in.h (utimensat): Declare it.
39783         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39784         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39785         * modules/utimensat-tests: New test.
39786         * tests/test-utimensat.c: Likewise.
39787
39788         utimens: let lutimens work on non-symlinks
39789         * lib/utimens.c (lutimens): Fall back to utimens rather than
39790         failing with ENOSYS, when file is not a symlink.
39791         (utimens): Reduce redirection.
39792         * tests/test-lutimens.h (test_lutimens): Update test to cover
39793         non-symlinks.
39794         * tests/test-utimens.h (test_utimens): Update test to cover
39795         symlinks.
39796         * tests/test-utimens.c (main): Update caller.
39797
39798         utimens: cache whether utimensat syscall works
39799         * lib/utimens.c (utimensat_works_really): New cache variable.
39800         (fdutimens, lutimens): Use it to avoid failing syscall.
39801
39802         test-stat-time, test-utimens: improve portability
39803         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39804         ext4 on alpha, and for cygwin.
39805         * tests/test-utimens-common.h: New file.
39806         (nap): Factor delays into single function.
39807         * tests/test-lutimens.h (test_lutimens): Use new header.
39808         * tests/test-futimens.h (test_futimens): Likewise.
39809         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39810         timestamps to occur from same machine, as was done previously for
39811         test_utimens.
39812         * modules/utimens-tests (Files): Ship new file.
39813         * modules/futimens-tests (Files): Likewise.
39814         Reported in part by Jim Meyering.
39815
39816         sys_stat: sort replacement declarations
39817         * lib/sys_stat.in.h: Sort declarations.
39818         * lib/futimens.c (futimens): Fix typo.
39819
39820 2009-10-15  Jim Meyering  <meyering@redhat.com>
39821
39822         don't let environment settings perturb build
39823         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39824         could cause a configure-time and/or build-time malfunction.
39825         Typically, a configure-time function-in-library test is performed
39826         via code like this:
39827
39828           LIB_VAR=
39829           AC_SUBST([LIB_VAR])
39830           prefix_saved_LIBS=$LIBS
39831             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39832                        [test "$ac_cv_search_FUNC" = "none required" ||
39833                         LIB_VAR=$ac_cv_search_FUNC])
39834           LIBS=$prefix_saved_LIBS
39835
39836         However, in each of the files affected by this change, the LIB_VAR=
39837         initialization was omitted.  Thus, when set in the environment, its
39838         value would propagate into generated Makefiles when FUNC is not found
39839         in LIB_NAME.
39840         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39841         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39843
39844 2009-10-14  Eric Blake  <ebb9@byu.net>
39845
39846         fchdir: avoid infinite recursion in mingw
39847         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39848         recursing.
39849
39850         test-stat-time: port to mingw
39851         * tests/test-stat-time.c (force_unlink): Return a value.
39852         (test_ctime) [W32]: Fix compilation error.
39853         (nap): Don't call usleep with too large an argument.  Use
39854         force_unlink.
39855         * doc/pastposix-functions/usleep.texi (usleep): Document the
39856         portability issue.
39857
39858 2009-10-13  Jim Meyering  <meyering@redhat.com>
39859
39860         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39861         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39862         * modules/pipe-filter-ii: Likewise.
39863         * modules/sys_socket-tests: Likewise.
39864         * modules/tsearch-tests: Likewise.
39865         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39866         (check): Depend on it.
39867
39868 2009-10-12  Eric Blake  <ebb9@byu.net>
39869
39870         utimens-tests: port to NFS file systems
39871         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39872         comparisons to avoid spurious failures from timestamp drift
39873         between NFS machines.
39874
39875 2009-10-12  Eric Blake  <ebb9@byu.net>
39876
39877         stat-time-tests: minor cleanups
39878         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39879         * tests/test-stat-time.c (nap): Separate assignment from call.
39880         Suggested by Paolo Bonzini and Bruno Haible.
39881
39882         sys_stat: guarantee struct timespec
39883         * lib/sys_stat.in.h (includes): Always include <time.h>
39884         * modules/sys_stat (Depends-on): Add time.
39885         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39886         mode_t permission values.
39887         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39888         get at subsecond timestamps.
39889
39890 2009-10-10  Eric Blake  <ebb9@byu.net>
39891
39892         futimens: new module
39893         * modules/futimens: New file.
39894         * lib/futimens.c (futimens): Likewise.
39895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39896         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39897         we can work around Linux bugs.
39898         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39899         * modules/sys_stat (Makefile.am): Substitute them.
39900         * lib/sys_stat.in.h (futimens): Declare it.
39901         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39902         * doc/posix-functions/futimens.texi (futimens): Likewise.
39903         * modules/futimens-tests: New test.
39904         * tests/test-futimens.c: Likewise.
39905
39906         utimens: introduce fdutimens
39907         * lib/utimens.h (fdutimens): New prototype.
39908         * lib/utimens.c (gl_futimens): Move guts...
39909         (fdutimens): ...to new interface.
39910         * tests/test-utimens.c (do_fdutimens): Use it.
39911
39912         utimens: add UTIME_NOW and UTIME_OMIT support
39913         * lib/utimens.c (validate_timespec, update_timespec): New helper
39914         functions.
39915         (gl_futimens, lutimens): Use them.
39916         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39917         stdbool, sys_stat.
39918         (Link): Mention resulting library dependency.
39919         * modules/utimecmp (Link): Likewise.
39920         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39921         (Makefile.am): Pick up library dependency.
39922         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39923         definition.
39924         * tests/test-sys_stat.c: Test the definitions.
39925         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39926         * NEWS: Document library dependency.
39927
39928         utimecmp: support symlink timestamps
39929         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39930         hashing when possible.  Use pathconf when available.
39931         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39932         * modules/utimecmp (Depends-on): Add lstat.
39933
39934         utimens: add lutimens interface
39935         * lib/utimens.c (lutimens): New function.
39936         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39937         * lib/utimens.h (lutimens): Declare new interface.
39938         * tests/test-utimens.c (main): Enhance test.
39939         * tests/test-lutimens.h (test_lutimens): New file.
39940         * modules/utimens-tests (Files): Distribute it.
39941         (Depends-on): Add symlink.
39942         (configure.ac): Check for usleep.
39943
39944         utimens: validate futimens usage
39945         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39946         fewer syscalls on failure later on.  Avoid compiler warning on
39947         mingw.
39948         * modules/utimens (Depends-on): Add dup2.
39949
39950         utimens: add test
39951         * modules/utimens-tests: New test.
39952         * tests/test-utimens.h: New file.
39953         * tests/test-futimens.h: Likewise.
39954         * tests/test-utimens.c: Likewise.
39955
39956         doc: mention timestamp portability issues
39957         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39958         instead.
39959         * doc/posix-functions/utime.texi (utime): Likewise.
39960         * doc/posix-functions/utimes.texi (utimes): Likewise.
39961         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39962         instead.
39963         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39964         module.
39965         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39966         Mention weakness with symlink timestamps.
39967         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39968         to utimensat/futimens instead.
39969         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39970
39971         test-dup2: enhance test
39972         * tests/test-dup2.c (main): Also check AT_FDCWD.
39973
39974         test-stat-time: avoid more spurious failures
39975         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39976         xfs; and avoid race if the two timestamps cross quantization edge.
39977
39978         relocatable: prefer 'file system' over 'filesystem'
39979         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39980         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39981         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39982         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39983         * lib/relocatable.c (compute_curr_prefix): Likewise.
39984
39985 2009-10-10  Jim Meyering  <meyering@redhat.com>
39986
39987         stat-time-tests: check for the usleep function
39988         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39989
39990 2009-10-10  Bruno Haible  <bruno@clisp.org>
39991
39992         * modules/xnanosleep: Put the Link section after the Include section.
39993
39994 2009-10-09  Eric Blake  <ebb9@byu.net>
39995
39996         dup2: work around FreeBSD 6.1 bug
39997         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39998         * doc/posix-functions/dup2.texi (dup2): Document it.
39999         Reported by Nelson H. F. Beebe and Jim Meyering.
40000
40001         test-stat-time: port to buggy NFS clients
40002         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40003         (test_ctime): Also skip test if mtime and ctime are skewed.
40004
40005         maint: prefer 'file system' over 'filesystem'
40006         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40007         * doc/posix-functions/lstat.texi (lstat): Likewise.
40008         * lib/file-has-acl.c (file_has_acl): Likewise.
40009         * lib/fwriteerror.c [TEST]: Likewise.
40010         * tests/test-areadlink.h (test_areadlink): Likewise.
40011         * tests/test-areadlinkat-with-size.c (main): Likewise.
40012         * tests/test-areadlinkat.c (main): Likewise.
40013         * tests/test-canonicalize-lgpl.c (main): Likewise.
40014         * tests/test-canonicalize.c (main): Likewise.
40015         * tests/test-fstatat.c (main): Likewise.
40016         * tests/test-linkat.c (main): Likewise.
40017         * tests/test-lstat.h (test_lstat_func): Likewise.
40018         * tests/test-mkdir.h (test_mkdir): Likewise.
40019         * tests/test-readlink.h (test_readlink): Likewise.
40020         * tests/test-remove.c (main): Likewise.
40021         * tests/test-rename.h (test_rename): Likewise.
40022         * tests/test-renameat.c (main): Likewise.
40023         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40024         * tests/test-symlink.h (test_symlink): Likewise.
40025         * tests/test-symlinkat.c (main): Likewise.
40026         * tests/test-unlink.h (test_unlink_func): Likewise.
40027         * tests/test-unlinkat.c (main): Likewise.
40028
40029         maint: make realtime library usage explicit
40030         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40031         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40032         * modules/settime (Link): Likewise.
40033         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40034
40035         test-stat-time: speed up execution
40036         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40037         warning on mingw.
40038         (nap): New helper function.
40039         (prepare_test): Use it to reduce sleep time.
40040         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40041         execution.
40042         * modules/stat-time-tests (configure.ac): Check for usleep.
40043
40044 2009-10-09  Jim Meyering  <meyering@redhat.com>
40045
40046         selinux-h: always use getfilecon wrappers
40047         * lib/getfilecon.c: New file.
40048         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40049         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40050         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40051         (fgetfilecon): Provide a stub.
40052         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40053         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40054         file unconditionally.
40055         When <selinux/selinux.h> is found, arrange to use wrappers.
40056         * modules/selinux-h (Files): Add getfilecon.c.
40057         (Makefile.am): Substitute include-next-related bits
40058         into the now-always-generated selinux/selinux.h file.
40059         * doc/glibc-functions/lgetfilecon.texi: New file.
40060         * doc/glibc-functions/fgetfilecon.texi: New file.
40061         * doc/glibc-functions/getfilecon.texi: New file.
40062         * doc/glibc-functions/getfilecon-desc.texi: New file.
40063         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40064         which to pull in the new files.
40065         * MODULES.html.sh (Misc): Add selinux-h.
40066
40067 2009-10-08  Jim Meyering  <meyering@redhat.com>
40068
40069         unistd: fix comment typo
40070         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40071
40072 2009-10-08  Eric Blake  <ebb9@byu.net>
40073
40074         areadlink: use SIZE_MAX consistently
40075         * modules/areadlink (Depends-on): Add stdint.
40076         * modules/areadlink-with-size (Depends-on): Likewise.
40077         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40078         gives NULL; drop sys/types, since unistd gives size_t; and add
40079         stdint for SIZE_MAX.
40080         (SIZE_MAX): Rely on headers.
40081         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40082         and add stdint.
40083         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40084         (SIZE_MAX): Likewise.
40085         (INITIAL_BUF_SIZE): Turn into enum.
40086         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40087
40088 2009-10-08  Jim Meyering  <meyering@redhat.com>
40089
40090         areadlinkat: avoid compilation failure
40091         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40092         Fix typo in comment.
40093
40094 2009-10-07  Eric Blake  <ebb9@byu.net>
40095
40096         areadlinkat-with-size: new module
40097         * modules/areadlinkat-with-size: New module.
40098         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40099         * lib/areadlink.h (areadlinkat): Declare it.
40100         * MODULES.html.sh (File system functions): Mention it.
40101         * modules/areadlinkat-with-size-tests: New test.
40102         * tests/test-areadlinkat-with-size.c: New file.
40103
40104         xreadlinkat: new module
40105         * modules/xreadlinkat: New module.
40106         * lib/xreadlinkat.c (xreadlinkat): New file.
40107         * lib/xreadlink.h (xreadlinkat): Declare it.
40108         * MODULES.html.sh (File system functions): Mention it.
40109
40110         areadlinkat: new module
40111         * lib/at-func.c (FUNC_FAIL): New define.
40112         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40113         * modules/areadlinkat: New module.
40114         * lib/linkat.c (areadlinkat): Move...
40115         * lib/areadlinkat.c (areadlinkat): ...to new file.
40116         * lib/areadlink.h (areadlinkat): Declare it.
40117         * modules/linkat (Depends-on): Add areadlinkat.
40118         * MODULES.html.sh (File system functions): Mention it.
40119         * modules/areadlinkat-tests: New test.
40120         * tests/test-areadlinkat.c: New file.
40121
40122         areadlink, areadlink-with-size: add tests
40123         * modules/areadlink-tests: New test.
40124         * modules/areadlink-with-size-tests: Likewise.
40125         * tests/test-areadlink.h: New file.
40126         * tests/test-areadlink.c: Likewise.
40127         * tests/test-areadlink-with-size.c: Likewise.
40128
40129         maint: minor cleanups
40130         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40131         _UNUSED_PARAMETER_ instead.
40132         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40133         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40134         * modules/linkat-tests (Files): Distribute test-link.h.
40135
40136         openat, utimens: whitespace cleanup
40137         * lib/openat.c: Prefer space throughout, rather than mix of 8
40138         spaces vs. tabs.
40139         * lib/at-func.c: Likewise.
40140         * lib/utimens.c: Likewise.
40141
40142         openat: avoid using wrong fd
40143         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40144         working directory chooses same fd.
40145         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40146
40147         mkdir, mkdirat: fix cygwin 1.5.x bug
40148         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40149         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40150         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40151         bug.
40152         (gl_PREREQ_MKDIR): Delete unused macro.
40153         * modules/mkdir (Files): Track file rename.
40154         (configure.ac): Update macro name.
40155         * modules/openat (Depends-on): Add mkdir.
40156         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40157
40158         mkdir, mkdirat: add tests
40159         * modules/mkdir-tests: New test.
40160         * tests/test-mkdir.h: New file.
40161         * tests/test-mkdir.c: Likewise.
40162         * tests/test-mkdirat.c: Likewise.
40163         * modules/openat-tests (Files): Add new files.
40164         (Makefile.am): Run new test.
40165
40166 2009-10-06  Eric Blake  <ebb9@byu.net>
40167
40168         doc: tweak *at function documentation
40169         * doc/posix-functions/faccessat.texi (faccessat): Mention
40170         known issue with replacement.
40171         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40172         * doc/posix-functions/linkat.texi (linkat): Likewise.
40173         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40174         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40175         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40176         * doc/posix-functions/renameat.texi (renameat): Likewise.
40177         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40178
40179         openat: fix GNU/Hurd bug in unlinkat
40180         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40181         broken.
40182         * doc/posix-functions/unlink.texi (unlink): Document this.
40183         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40184
40185         fdopendir: fix GNU/Hurd bug
40186         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40187         allowing non-directory fds.
40188         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40189         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40190         * modules/dirent (Makefile.am): Substitute it.
40191         * lib/dirent.in.h (fdopendir): Declare replacement.
40192         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40193         * tests/test-fdopendir.c (main): Test something other than
40194         /dev/null, since on Hurd that behaves like a directory.
40195
40196         test-symlink: port to GNU/Hurd
40197         * tests/test-symlink.h (test_symlink): Relax expected errno.
40198
40199         doc: tweak more cygwin information
40200         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40201         now compatible with glibc.
40202         * doc/posix-functions/getopt.texi (getopt): Likewise.
40203
40204         getopt-gnu: add another test
40205         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40206         guarantee behavior relied on by m4.
40207         * tests/test-getopt.c (main): Use it.
40208         * modules/getopt-posix-tests (Depends-on): Add setenv.
40209         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40210
40211         getopt: fix compilation on darwin
40212         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40213         include.
40214         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40215         Reported by Ludovic Courtès.
40216
40217 2009-10-06  Bruno Haible  <bruno@clisp.org>
40218
40219         * modules/size_max (Description): Discourage its use.
40220         Reported by Simon Josefsson.
40221
40222 2009-10-06  Jim Meyering  <meyering@redhat.com>
40223
40224         linkat: avoid compilation failure
40225         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40226
40227 2009-10-05  Eric Blake  <ebb9@byu.net>
40228
40229         linkat: support Linux 2.6.17
40230         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40231         linkat on Linux, but allow cache variable override.
40232         * lib/linkat.c (rpl_linkat): Define override.
40233         * modules/linkat (Depends-on): Add symlinkat.
40234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40235         * modules/unistd (Makefile.am): Substitute it.
40236         * lib/unistd.in.h (linkat): Declare replacement.
40237         Reported by Pádraig Brady.
40238
40239         quotearg: port test to systems with C.UTF-8 locale
40240         * tests/test-quotearg.c (struct result_strings): Add another
40241         member, differentiating between C.ASCII and C.UTF-8 handling.
40242         (compare_strings): Add parameter.
40243         (main): Adjust all callers.
40244
40245         getopt: avoid clash with FreeBSD _getopt_internal
40246         * lib/getopt.in.h (_getopt_internal): Override the name.
40247         * lib/getopt_int.h (includes): Pick up any overrides.
40248         Reported by Reuben Thomas.
40249
40250         hash: allow C89 compilation
40251         * lib/hash.c (check_tuning): Move declaration before statement.
40252         Reported by Reuben Thomas.
40253
40254 2009-10-05  Karl Berry  <karl@gnu.org>
40255
40256         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40257
40258 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40259             Bruno Haible  <bruno@clisp.org>
40260
40261         * lib/uname.c (uname): Use a table-driven algorithm to compute
40262         Windows NT versions.
40263
40264 2009-10-04  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40267         program_invocation_short_name.
40268         * modules/progname (configure.ac): Test for presence of
40269         program_invocation_short_name.
40270         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40271
40272 2009-10-04  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/progname.c (set_program_name): Fix comment.
40275         Reported by Jim Meyering.
40276
40277 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40278             Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/uname.c: Include <string.h>.
40281         (uname): Do only one call to GetVersionEx in the common case.
40282
40283 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40284             Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40287         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40288         (uname): Add support for Windows CE and various non-x86 CPU types.
40289
40290 2009-10-03  Bruno Haible  <bruno@clisp.org>
40291
40292         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40293         invocation to tests/configure.ac.
40294         Reported by Ian Beckwith <ianb@erislabs.net>.
40295
40296 2009-10-02  Eric Blake  <ebb9@byu.net>
40297
40298         fchdir: avoid compiler warning
40299         * lib/fchdir.c (canonicalize_file_name)
40300         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40301
40302         test-open: support mingw errno values
40303         * tests/test-open.h (test_open): Relax test.
40304         * tests/test-fopen.h (test_fopen): Likewise.
40305         * tests/test-openat-safer.c (main): Likewise.
40306
40307         open: fix opening directory on mingw
40308         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40309
40310         test-open: on GNU/Hurd, /dev/null is a directory
40311         * tests/test-fopen.h (main): Rename...
40312         (test_fopen): ...to this.  Use a guaranteed non-directory when
40313         confirming open behavior on trailing slash.
40314         * tests/test-openat-safer.c (main): Likewise.
40315         * tests/test-open.h (main): Likewise....
40316         (test_open): ...to this.
40317         * tests/test-fopen.c (main): Adjust caller.
40318         * tests/test-fopen-safer.c (main): Likewise.
40319         * tests/test-open.c (main): Likewise.
40320         * tests/test-fcntl-safer.c (main): Likewise.
40321         Reported by Samuel Thibault.
40322
40323         rename, fchdir: don't ignore chdir failure
40324         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40325         * lib/rename.c (rpl_rename) [W32]: Likewise.
40326         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40327         an empty destination directory if source cannot be renamed,
40328         although there is still possibility for failure.
40329         * doc/posix-functions/rename.texi (rename): Document the race.
40330         Reported by Jim Meyering.
40331
40332         maint: cleanup whitespace in recent commits
40333         * lib/rename.c (rpl_rename): Remove tabs.
40334         * tests/test-link.h (test_link): Likewise.
40335         * lib/fchdir.c (get_name): Likewise.
40336         Reported by Jim Meyering.
40337
40338 2009-10-02  Ben Pfaff  <blp@gnu.org>
40339
40340         relocatable-prog-wrapper: Add missing dependency on
40341         double-slash-root.
40342         * modules/relocatable-prog-wrapper: Add dependency.
40343         Reported by Ian Beckwith <ianb@erislabs.net>.
40344
40345 2009-10-02  Eric Blake  <ebb9@byu.net>
40346
40347         renameat: fix Solaris bugs
40348         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40349         needed fixing.
40350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40351         * modules/stdio (Makefile.am): Substitute it.
40352         * lib/stdio.in.h (renameat): Declare replacement.
40353         * lib/renameat.c (rpl_renameat): Implement fix.
40354
40355         renameat: new module
40356         * modules/renameat: New file.
40357         * lib/renameat.c (renameat): Likewise.
40358         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40360         * modules/stdio (Makefile.am): Substitute them.
40361         * lib/stdio.in.h (renameat): Declare it.
40362         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40363         * doc/posix-functions/renameat.texi (renameat): Likewise.
40364         * modules/renameat-tests: New test.
40365         * tests/test-renameat.c: Likewise.
40366
40367         rename: fix mingw bugs
40368         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40369         directory overwrite bugs.
40370
40371         rename: fix another cygwin 1.5 bug
40372         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40373         checks.
40374         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40375         unnecessary cygwin workarounds.  Also work around bug with moving
40376         full directory onto an empty one.
40377         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40378
40379         rename-dest-slash: merge into rename module
40380         * modules/rename-dest-slash (Status): Mark obsolete.
40381         (Depends-on): Add rename.
40382         (Files): Let rename do it all.
40383         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40384         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40385         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40386         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40387         * lib/rename.c (rpl_rename): Update comments.
40388
40389         rename: fix cygwin 1.5.x bugs
40390         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40391         * lib/rename.c (rpl_rename): Work around them.
40392         * modules/rename (Depends-on): Add same-inode.
40393
40394         rename: fix Solaris 10 bug
40395         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40396         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40397         was the only bug.
40398
40399         rename: fix Solaris 9 bug
40400         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40401         on non-directory.  Avoid calling exit.
40402         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40403         strdup.
40404         * modules/rename-tests (Depends-on): Drop lstat.
40405         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40406         (gl_PREREQ_RENAME): Delete unused macro.
40407
40408         rename-dest-slash: fix NetBSD bug
40409         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40410         links.
40411         * modules/rename-dest-slash (Depends-on): Add same-inode.
40412
40413         rename-tests: new test, exposes several platform bugs
40414         * modules/rename-tests: New file.
40415         * tests/test-rename.h: Likewise.
40416         * tests/test-rename.c: Likewise.
40417         * doc/posix-functions/rename.texi (rename): Improve documentation,
40418         including bugs that will eventually be fixed in gnulib.
40419
40420 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40421
40422         * lib/uname.c: Include <stdlib.h>
40423         (uname): Assume version info is available.
40424
40425 2009-10-02  Jim Meyering  <meyering@redhat.com>
40426
40427         gnu-web-doc-update: correct --help output
40428         * build-aux/gnu-web-doc-update: Make --help output relevant.
40429
40430         gnu-web-doc-update: add standard options
40431         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40432
40433         gnu-web-doc-update: New module.
40434         Use this script to automatically update the on-line web documentation
40435         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40436         * modules/gnu-web-doc-update: New file, from coreutils.
40437         * build-aux/gnu-web-doc-update: New script.
40438
40439 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40440
40441         link: LoadLibrary is not needed.
40442         * lib/link.c: Use GetModuleHandle.
40443
40444 2009-10-01  Eric Blake  <ebb9@byu.net>
40445
40446         getopt: bump serial number
40447         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40448         change.
40449
40450         tests: tighten link, rmdir, and remove tests
40451         * tests/test-link.h (includes): No need to use <config.h> here.
40452         Clean up if directory hard link was created, otherwise test for
40453         trailing '.'.
40454         * tests/test-linkat.c (main): Simplify.
40455         * tests/test-remove.c (main): Enhance test for trailing '.'.
40456         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40457
40458 2009-10-01  Jim Meyering  <meyering@redhat.com>
40459
40460         maint.mk: requiring "make major" was annoying, for a "minor" release.
40461         What is intended is "stable", to contrast with alpha and beta,
40462         so require "make stable", not "make major".
40463         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40464         (get_tool_versions): Likewise.
40465         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40466
40467 2009-09-30  Ben Pfaff  <blp@gnu.org>
40468
40469         Fix broken build of replacement for Windows tmpfile().
40470         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40471         flags argument added along with the 'mkostemp' module.
40472
40473 2009-09-28  Bruno Haible  <bruno@clisp.org>
40474
40475         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40476         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40477         to 'remove_elt'.
40478         (gl_list_remove): Update.
40479         * lib/gl_list.c (gl_list_remove): Update.
40480         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40481         to 'remove_elt'.
40482         (gl_oset_remove): Update.
40483         * lib/gl_list.c (gl_oset_remove): Update.
40484         Reported by Eric Blake.
40485
40486 2009-09-28  Eric Blake  <ebb9@byu.net>
40487
40488         doc: mention yet more cygwin 1.7 status
40489         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40490         cygwin.
40491         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40492         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40493
40494         argp: fix test failure
40495         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40496         that are not upper-case.  Pass correct range to tolower.
40497
40498 2009-09-27  Jim Meyering  <meyering@redhat.com>
40499
40500         test-yesno: work around sparc-dash here-document infelicity
40501         Without this change, the literal \177 byte in a here document
40502         would make dash 0.5.5.1-3 access uninitialized memory.
40503         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40504         Instead, use a marker, "@", and filter through tr to create the desired
40505         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40506
40507 2009-09-27  Bruno Haible  <bruno@clisp.org>
40508
40509         Disable untested support for new flavours of ACLs on AIX.
40510         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40511         progress.
40512         * lib/set-mode-acl.c (qset_acl): Likewise.
40513
40514 2008-12-07  Bruno Haible  <bruno@clisp.org>
40515
40516         Add support for new flavours of ACLs on AIX. (Untested.)
40517         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40518         (file_has_acl): Add support for newer AIX.
40519         * lib/set-mode-acl.c (qset_acl): Likewise.
40520         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40521         Rainer Tammer <tammer@tammer.net>.
40522
40523 2009-09-26  Eric Blake  <ebb9@byu.net>
40524
40525         argp: fix compilation of getopt
40526         * lib/getopt.in.h (includes): Use different guard than glibc.
40527         Reported by Sergey Poznyakoff.
40528
40529         doc: mention more cygwin 1.7 status
40530         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40531         bug.
40532         * doc/posix-functions/execl.texi (execl): Likewise.
40533         * doc/posix-functions/execle.texi (execle): Likewise.
40534         * doc/posix-functions/execlp.texi (execlp): Likewise.
40535         * doc/posix-functions/execv.texi (execv): Likewise.
40536         * doc/posix-functions/execve.texi (execve): Likewise.
40537         * doc/posix-functions/execvp.texi (execvp): Likewise.
40538         * doc/glibc-functions/canonicalize_file_name.texi
40539         (canonicalize_file_name): Cygwin 1.7 now provides this.
40540         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40541         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40542         on AT_SYMLINK_NOFOLLOW.
40543
40544 2009-09-24  Eric Blake  <ebb9@byu.net>
40545
40546         test-linkat: make test more robust
40547         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40548
40549         getopt: fix inclusion guards for cygwin
40550         * modules/getopt-posix (Depends-on): Add include-next.
40551         (Makefile.am): Substitute more items in replacement header.
40552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40553         <getopt.h>.
40554         * lib/getopt.in.h (includes): Use split inclusion guard, and
40555         prefer <getopt.h> over include <unistd.h> when one is present.
40556         (option): Also override name of 'struct option'.
40557
40558         same-inode: revert prior change; it is not yet ready
40559         * NEWS: Undo mention of this change.
40560         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40561         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40562         * lib/cycle-check.c (cycle_check): Likewise.
40563         * lib/same.c (same_name): Likewise.
40564         * lib/at-func2.c (at_func2): Likewise.
40565
40566 2009-09-23  Eric Blake  <ebb9@byu.net>
40567
40568         linkat: new module
40569         * modules/linkat: New file.
40570         * lib/at-func2.c (at_func2): Likewise.
40571         * lib/linkat.c (linkat): Likewise.
40572         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40573         * lib/openat-priv.h (at_func2): Add declaration.
40574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40575         * modules/unistd (Makefile.am): Substitute them.
40576         * lib/unistd.in.h (linkat): Declare it.
40577         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40578         * doc/posix-functions/linkat.texi (linkat): Likewise.
40579         * doc/posix-functions/link.texi (link): Tweak wording.
40580         * tests/test-link.c (main): Move guts...
40581         * tests/test-link.h (test_link): ...into new file.
40582         * modules/linkat-tests: New test.
40583         * tests/test-linkat.c: Likewise.
40584         * modules/link-tests (Files): Ship new file.
40585         (Depends-on): Add stdbool.
40586
40587         dirname: add library-safe mdir_name
40588         * lib/dirname.h (mdir_name): New prototype.
40589         * lib/dirname.c (dir_name): Move guts...
40590         (mdir_name): ...to new function that avoids xalloc_die.
40591
40592         fchdir: another mingw fix
40593         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40594         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40595         on mingw (where it has not yet been ported), and make it optional
40596         elsewhere.
40597         (_gl_register_fd): Use it.
40598
40599         same-inode: make SAME_INODE tri-state, to port to mingw
40600         * NEWS: Mention this change.
40601         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40602         st_ino always being 0.
40603         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40604         * lib/cycle-check.c (cycle_check): Likewise.
40605         * lib/same.c (same_name): Likewise.
40606
40607         lstat: avoid mingw compilation error
40608         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40609         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40610         lstat ourselves.
40611         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40612         was adequate.
40613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40614         the checks for lstat.
40615         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40616
40617         link: fix test failure on Solaris 9
40618         * lib/link.c (rpl_link): Don't assume link will catch bogus
40619         trailing slash on source.
40620
40621         test-symlinkat: enhance test
40622         * tests/test-readlink.c (main): Move guts...
40623         * tests/test-readlink.h (test_readlink): ...into new file.
40624         * tests/test-symlink.c (main): Move guts...
40625         * tests/test-symlink.h (test_symlink): ...into new file.
40626         * tests/test-symlinkat.c (main): Use new files for further
40627         coverage.
40628         (do_symlink, do_readlink): New helper functions.
40629         * modules/symlink-tests (Files): Ship new file.
40630         (Depends-on): Add stdbool.
40631         * modules/readlink-tests (Files): Ship new file.
40632         (Depends-on): Add stdbool.
40633         * modules/symlinkat-tests (Files): Use new files.
40634
40635 2009-09-23  Eric Blake  <ebb9@byu.net>
40636
40637         readlink: document portability issue with symlink length
40638         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40639         systems have bogus st_size on symlinks, and mention the
40640         areadlink-with-size module.
40641         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40642         * doc/posix-functions/readlink.texi (readlink): Mention the
40643         areadlink module, and ERANGE failure.
40644         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40645         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40646
40647         readlink: fix Solaris 9 bug with trailing slash
40648         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40649         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40650         * doc/posix-functions/readlink.texi (readlink): Document this.
40651         * modules/readlink-tests: New test.
40652         * tests/test-readlink.c: Likewise.
40653
40654         readlink: fix cygwin 1.5.x bug with return type
40655         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40656         * lib/unistd.in.h (readlink): Use ssize_t.
40657         * lib/readlink.c (readlink): Likewise.
40658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40659         * modules/unistd (Makefile.am): Substitute it.
40660         * lib/unistd.in.h (readlink): Declare replacement.
40661         * doc/posix-functions/readlink.texi (readlink): Document this.
40662
40663         symlink: use throughout gnulib
40664         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40665         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40666         symlink is not used.
40667         * modules/symlinkat (Depends-on): Add symlink.
40668         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40669         * modules/canonicalize-tests (Depends-on): Likewise.
40670         * modules/lstat-tests (Depends-on): Likewise.
40671         * modules/openat-tests (Depends-on): Likewise.
40672         * modules/remove-tests (Depends-on): Likewise.
40673         * modules/rmdir-tests (Depends-on): Likewise.
40674         * modules/unlink-tests (Depends-on): Likewise.
40675         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40676         * tests/test-canonicalize.c (symlink): Likewise.
40677         * tests/test-fstatat.c (symlink): Likewise.
40678         * tests/test-lstat.c (symlink): Likewise.
40679         * tests/test-remove.c (symlink): Likewise.
40680         * tests/test-rmdir.c (symlink): Likewise.
40681         * tests/test-unlink.c (symlink): Likewise.
40682         * tests/test-unlinkat.c (symlink): Likewise.
40683
40684         symlink: new module, for Solaris 9 bug
40685         * modules/symlink: New file.
40686         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40687         * lib/symlink.c: Likewise.
40688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40689         * modules/unistd (Makefile.am): Substitute them.
40690         * lib/unistd.in.h (symlink): Declare replacement.
40691         * MODULES.html.sh (File system functions): Mention it.
40692         * doc/posix-functions/symlink.texi (symlink): Likewise.
40693         * modules/symlink-tests: New test.
40694         * tests/test-symlink.c: Likewise.
40695
40696 2009-09-23  Bruno Haible  <bruno@clisp.org>
40697
40698         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40699         when needed.
40700         Test case: gnulib-tool --import --with-tests atexit inttypes.
40701         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40702
40703 2009-09-23  Bruno Haible  <bruno@clisp.org>
40704
40705         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40706         subcommand, not in a subshell.
40707
40708 2009-09-22  Eric Blake  <ebb9@byu.net>
40709
40710         unistd: sort replacement declarations
40711         * lib/unistd.in.h: Sort declarations.
40712
40713         open, openat: minor optimization
40714         * lib/open.c (open): If open succeeded, len is non-zero.
40715         * lib/openat.c (rpl_openat): Likewise.
40716
40717         link-follow: ensure correct result
40718         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40719         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40720         distinguish between possible failures.
40721
40722 2009-09-21  Eric Blake  <ebb9@byu.net>
40723
40724         fts: avoid compiler warning
40725         * lib/fts.c (dirent_inode_sort_may_be_useful)
40726         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40727
40728 2009-09-19  Bruno Haible  <bruno@clisp.org>
40729
40730         * lib/progreloc.c (canonicalize_file_name): New declaration.
40731
40732 2009-09-19  Eric Blake  <ebb9@byu.net>
40733
40734         link: fix quoting
40735         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40736
40737         openat: fix openat bugs on Solaris 9
40738         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40739         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40740         * modules/openat (Depends-on): Add open.
40741         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40742         * modules/fcntl-h (Makefile.am): Substitute it.
40743         * lib/fcntl.in.h (openat): Declare replacement.
40744         * doc/posix-functions/openat.texi (openat): Document this.
40745
40746         openat: move fstatat and unlinkat into correct files
40747         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40748         compiled.
40749         * lib/openat.c (fstatat, unlinkat): Move...
40750         * lib/fstatat.c (fstatat): ...into correct files.
40751         * lib/unlinkat.c (unlinkat): Likewise.
40752
40753         openat: fix unlinkat bugs on Solaris 9
40754         * lib/unlinkat.c (unlinkat): New file.
40755         * modules/openat (Depends-on): Add unlink.
40756         (Files): Distribute it.
40757         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40758         trailing slash behavior is broken.
40759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40760         * modules/unistd (Makefile.am): Substitute it.
40761         * lib/unistd.in.h (unlinkat): Declare replacement.
40762         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40763
40764         openat: fix fstatat bugs on Solaris 9
40765         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40766         stat.
40767         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40768
40769         test-unlinkat: enhance test, to expose Solaris 9 bug
40770         * tests/test-unlink.c (main): Factor guts...
40771         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40772         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40773         * tests/test-rmdir.c (main): Adjust caller.
40774         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40775         (unlinker): New helper function.
40776         (rmdirat): Enhance check.
40777         * modules/rmdir-tests (Depends-on): Add stdbool.
40778         * modules/unlink-tests (Depends-on): Likewise.
40779         (Files): Add test-unlink.h.
40780         * modules/openat-tests (Files): Likewise.
40781         (Depends-on): Add unlinkdir.
40782
40783         test-fstatat: new test, to expose Solaris 9 bugs
40784         * tests/test-stat.c (main): Factor guts...
40785         * tests/test-stat.h (test_stat_func): ...into new file.
40786         * tests/test-lstat.c (main): Factor guts...
40787         * tests/test-lstat.h (test_lstat_func): ...into new file.
40788         * tests/test-fstatat.c: New file.
40789         * modules/stat-tests (Files): Add test-stat.h.
40790         * modules/lstat-tests (Files): Add test-lstat.h.
40791         (Depends-on): Add stdbool.
40792         * modules/openat-tests (Depends-on): Add pathmax.
40793         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40794         (Makefile.am): Run new test.
40795
40796         remove: new module, for mingw and Solaris 9 bugs
40797         * modules/remove: New file.
40798         * lib/remove.c: Likewise.
40799         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40801         * modules/stdio (Makefile.am): Use them.
40802         * lib/stdio.in.h (remove): Declare replacement.
40803         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40804         * doc/posix-functions/remove.texi (remove): Likewise.
40805         * modules/remove-tests: New test.
40806         * tests/test-remove.c: Likewise.
40807
40808         unlink: new module, for Solaris 9 bug
40809         * modules/unlink: New file.
40810         * lib/unlink.c: Likewise.
40811         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40813         * modules/unistd (Makefile.am): Use them.
40814         * lib/unistd.in.h (stat): Declare replacement.
40815         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40816         * doc/posix-functions/unlink.texi (unlink): Likewise.
40817         * modules/unlink-tests: New test.
40818         * tests/test-unlink.c: Likewise.
40819
40820         lstat: fix Solaris 9 bug
40821         * lib/lstat.c (lstat): Also check for trailing slash on
40822         non-symlink, non-directories.  Use stat module to simplify logic.
40823         * doc/posix-functions/lstat.texi (lstat): Document it.
40824         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40825         (configure.ac): Check for symlink.
40826         * tests/test-lstat.c (main): Add more tests.
40827
40828         stat: add as dependency to other modules
40829         * modules/chown (Depends-on): Add stat.
40830         * modules/euidaccess (Depends-on): Likewise.
40831         * modules/fchdir (Depends-on): Likewise.
40832         * modules/isdir (Depends-on): Likewise.
40833         * modules/link (Depends-on): Likewise.
40834         * modules/lstat (Depends-on): Likewise.
40835         * modules/mkdir-p (Depends-on): Likewise.
40836         * modules/modechange (Depends-on): Likewise.
40837         * modules/open (Depends-on): Likewise.
40838         * modules/readlink (Depends-on): Likewise.
40839         * modules/same (Depends-on): Likewise.
40840
40841         stat: fix Solaris 9 bug
40842         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40843         slash.
40844         * lib/stat.c (rpl_stat): Work around it.
40845         * doc/posix-functions/stat.texi (stat): Update documentation.
40846
40847         stat: new module, for mingw bug
40848         * modules/stat: New file.
40849         * lib/stat.c: Likewise.
40850         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40852         * modules/sys_stat (Makefile.am): Use them.
40853         * lib/sys_stat.in.h (stat): Declare replacement.
40854         * lib/openat.c (fstatat): Deal with lstat and stat being function
40855         macros.
40856         * modules/openat (Depends-on): Add inline.
40857         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40858         * doc/posix-functions/stat.texi (stat): Likewise.
40859         * modules/stat-tests: New test.
40860         * tests/test-stat.c: Likewise.
40861
40862 2009-09-19  Jim Meyering  <meyering@redhat.com>
40863
40864         syntax-check: detect unnecessary inclusion of canonicalize.h
40865         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40866
40867 2009-09-19  Eric Blake  <ebb9@byu.net>
40868
40869         canonicalize-lgpl: adjust clients to use correct header
40870         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40871         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40872         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40873         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40874         * lib/progreloc.c (includes): Likewise.
40875
40876 2009-09-19  Jim Meyering  <meyering@redhat.com>
40877
40878         test-posixtm.c: correct a comment
40879         * tests/test-posixtm.c: Correct first-line comment.
40880         Spotted by Eric Blake.
40881
40882 2009-09-16  Jim Meyering  <meyering@redhat.com>
40883
40884         posixtm-tests: make T const-correct; add a test case
40885         * tests/test-posixtm.c (T): Declare const.
40886         Add a test for -(2^31+1).
40887         Remove useless can-succeed-only-in-2002 test.
40888
40889         posixtm-tests: adjust the sole failing test
40890         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40891         expected output matches what mktime now produces.  Cross-checked via
40892         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40893
40894         posixtm: move #ifdef'd tests into a new module
40895         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40896         * tests/test-posixtm.c: ... this new file.
40897         * modules/posixtm-tests: New module.
40898
40899 2009-09-19  Eric Blake  <ebb9@byu.net>
40900
40901         openat: simplify use of at-func.c
40902         * lib/at-func.c (includes): Include prerequisites here, to
40903         simplify requirements on client files.
40904         * lib/openat-priv.h: Add double-inclusion guard.
40905         * lib/faccessat.c (includes): Simplify.
40906         * lib/fchmodat.c (includes): Likewise.
40907         * lib/fchownat.c (includes): Likewise.
40908         * lib/mkdirat.c (includes): Likewise.
40909         * lib/mkfifoat.c (includes): Likewise.
40910         * lib/symlinkat.c (includes): Likewise.
40911
40912         openat: allow return of fd 0
40913         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40914         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40915         unistd-safer.
40916         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40917         <fcntl.h>; this module does not leak fds.
40918         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40919         must be allowed to return 0, leaving openat_safer to add the
40920         safety.
40921         (openat_permissive): Avoid writing to just-opened fd 2 if
40922         restoring the current directory fails.
40923         * lib/openat-die.c (openat_restore_fail): Add comment.
40924         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40925         (save_cwd): Guarantee safe fd, but without use of open_safer.
40926         * tests/test-openat.c: New test.
40927         * modules/openat-tests (Files, Makefile.am): Distribute and build
40928         new file.
40929
40930         relocatable-prog-wrapper: fix build
40931         * modules/relocatable-prog-wrapper (Files): Update name of
40932         canonicalize m4 file, broken on 2009-09-17.
40933         Reported by emad hajjar <aleppos@hotmail.com>.
40934
40935 2009-09-19  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40938         * lib/safe-alloc.c: Likewise.
40939         Reported by Ian Beckwith <ianb@erislabs.net>.
40940
40941 2009-09-18  Bruno Haible  <bruno@clisp.org>
40942
40943         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40944         Reported by <erobles@sensacd.com.mx>.
40945
40946 2009-09-17  Eric Blake  <ebb9@byu.net>
40947
40948         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40949         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40950         slashes when checking if last component is missing.
40951         * tests/test-canonicalize.c (main): Test this.
40952
40953         canonicalize, canonicalize-lgpl: honor // if distinct from /
40954         * modules/canonicalize (Files): Add double-slash-root.m4.
40955         * modules/canonicalize-lgpl (Files): Likewise.
40956         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40957         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40958         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40959         fallback definition.
40960         (canonicalize_filename_mode): Use it to protect //.
40961         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40962         (__realpath): Likewise.
40963         * tests/test-canonicalize.c (main): Test this.
40964         * tests/test-canonicalize-lgpl.c (main): Likewise.
40965         * modules/canonicalize-tests (Depends-on): Add same-inode.
40966         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40967
40968         canonicalize-lgpl: fix glibc bug with trailing slash
40969         * m4/canonicalize-lgpl.m4: Move contents...
40970         * m4/canonicalize.m4: ...here.
40971         (gl_CANONICALIZE_LGPL): Factor realpath check...
40972         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40973         glibc 2.3.5 bug, fixed 2005-04-27.
40974         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40975         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40976         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40977         * modules/canonicalize-lgpl (Files): Manage file rename.
40978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40979         * modules/stdlib (Makefile.am): Substitute witness.
40980         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40981         is needed.
40982         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40983         replacement is required.
40984         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40985         * doc/glibc-functions/canonicalize_file_name.texi
40986         (canonicalize_file_name): Document this.
40987         * doc/posix-functions/realpath.texi (realpath): Likewise.
40988
40989         canonicalize-lgpl: reject non-directory with trailing slash
40990         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40991         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40992         catches failures in glibc 2.3.5.
40993         * tests/test-canonicalize.c (main): Likewise.
40994
40995         canonicalize-lgpl: use native realpath if it works
40996         * lib/canonicalize-lgpl.c (realpath): Guard with
40997         FUNC_REALPATH_WORKS.
40998         * lib/stdlib.in.h (realpath): Make declaration optional based on
40999         HAVE_REALPATH.
41000         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41001         native realpath works.
41002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41003         * modules/stdlib (Makefile.am): Substitute witness.
41004
41005         canonicalize, canonicalize-lgpl: use <stdlib.h>
41006         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41007         (Include): Mention <stdlib.h>.
41008         (configure.ac): Mention functions we provide.
41009         * modules/canonicalize (configure.ac): Likewise.
41010         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41011         realpath if canonicalize_file_name is missing.
41012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41013         * modules/stdlib (Makefile.am): Substitute witnesses.
41014         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41015         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41016         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41017         * NEWS: Document this.
41018         * doc/glibc-functions/canonicalize_file_name.texi
41019         (canonicalize_file_name): Likewise.
41020         * doc/posix-functions/realpath.texi (realpath): Likewise.
41021         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41022
41023         test-canonicalize: consolidate into single C program
41024         * tests/test-canonicalize.sh: Delete; move setup into...
41025         * tests/test-canonicalize.c (main): ...the program, making it
41026         easier to run in debugger.  Add some tests.
41027         * modules/canonicalize-tests (Files): Remove unused file.
41028         (Depends-on): Add progname.
41029         (configure.ac, Makefile.am): Simplify.
41030
41031         test-canonicalize-lgpl: consolidate into single C program
41032         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41033         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41034         easier to run in debugger.  Add some tests.
41035         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41036         (configure.ac, Makefile.am): Simplify.
41037
41038         canonicalize: avoid resolvepath
41039         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41040         unnecessary checks.
41041         * lib/canonicalize.c (includes): Simplify.
41042         (canonicalize_file_name): Drop resolvepath implementation.
41043         * modules/canonicalize (Depends-on): Drop filenamecat.
41044
41045         canonicalize: don't lose errno
41046         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41047         over calls to free.
41048
41049         canonicalize: simplify errno handling
41050         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41051         assignment.
41052
41053         canonicalize, canonicalize-lgpl: update module dependencies
41054         * modules/canonicalize (Depends-on): Add extensions, lstat,
41055         pathmax, stdlib.
41056         (Files): Drop pathmax.h.
41057         (configure.ac): Adjust macro name.
41058         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41059         lstat, stdlib, sys_stat.
41060         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41061         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41062         extensions.
41063         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41064         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41065         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41066         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41067         declaration, if available.
41068         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41069         we can rely on the readlink module.
41070         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41071         (includes): Use <unistd.h> unconditionally.
41072
41073 2009-09-17  Eric Blake  <ebb9@byu.net>
41074
41075         maint: make Include sections of modules consistent
41076         * modules/alloca: Use only header name; no need to list #include.
41077         * modules/alloca-opt: Likewise.
41078         * modules/arpa_inet: Likewise.
41079         * modules/canon-host: Likewise.
41080         * modules/configmake: Likewise.
41081         * modules/dirent: Likewise.
41082         * modules/eealloc: Likewise.
41083         * modules/environ: Likewise.
41084         * modules/fchdir: Likewise.
41085         * modules/fcntl: Likewise.
41086         * modules/fcntl-h: Likewise.
41087         * modules/gethrxtime: Likewise.
41088         * modules/gettime: Likewise.
41089         * modules/ignore-value: Likewise.
41090         * modules/inet_ntop: Likewise.
41091         * modules/inet_pton: Likewise.
41092         * modules/inttypes: Likewise.
41093         * modules/isnand-nolibm: Likewise.
41094         * modules/isnanf-nolibm: Likewise.
41095         * modules/mbchar: Likewise.
41096         * modules/mbfile: Likewise.
41097         * modules/mbiter: Likewise.
41098         * modules/mbuiter: Likewise.
41099         * modules/netdb: Likewise.
41100         * modules/netinet_in: Likewise.
41101         * modules/nproc: Likewise.
41102         * modules/pagealign_alloc: Likewise.
41103         * modules/poll: Likewise.
41104         * modules/printf-frexp: Likewise.
41105         * modules/pthread: Likewise.
41106         * modules/putenv: Likewise.
41107         * modules/random_r: Likewise.
41108         * modules/relocatable-prog: Likewise.
41109         * modules/search: Likewise.
41110         * modules/select: Likewise.
41111         * modules/selinux-h: Likewise.
41112         * modules/settime: Likewise.
41113         * modules/signal: Likewise.
41114         * modules/size_max: Likewise.
41115         * modules/socklen: Likewise.
41116         * modules/ssize_t: Likewise.
41117         * modules/stdarg: Likewise.
41118         * modules/stdbool: Likewise.
41119         * modules/stddef: Likewise.
41120         * modules/stdint: Likewise.
41121         * modules/stdio: Likewise.
41122         * modules/stdlib: Likewise.
41123         * modules/string: Likewise.
41124         * modules/strings: Likewise.
41125         * modules/sys_file: Likewise.
41126         * modules/sys_ioctl: Likewise.
41127         * modules/sys_select: Likewise.
41128         * modules/sys_socket: Likewise.
41129         * modules/sys_stat: Likewise.
41130         * modules/sys_time: Likewise.
41131         * modules/sys_times: Likewise.
41132         * modules/sys_utsname: Likewise.
41133         * modules/sys_wait: Likewise.
41134         * modules/sysexits: Likewise.
41135         * modules/time: Likewise.
41136         * modules/times: Likewise.
41137         * modules/tmpfile: Likewise.
41138         * modules/trim: Likewise.
41139         * modules/unistd: Likewise.
41140         * modules/wchar: Likewise.
41141         * modules/wctype: Likewise.
41142
41143 2009-09-17  Bruno Haible  <bruno@clisp.org>
41144
41145         Make getdate.y compile on QNX and NetBSD 5 / i386.
41146         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41147         TIME_T_FITS_IN_LONG_INT.
41148         * lib/getdate.y (long_time_t): New type.
41149         (relative_time): Change type of 'seconds' field to long_time_t.
41150         (get_date): Update types of local variables. Check against overflow
41151         during conversion from long_time_t to time_t.
41152         Reported by Matt Kraai <kraai@ftbfs.org>
41153         and Hasso Tepper <hasso@netbsd.org>.
41154
41155 2009-09-17  Bruno Haible  <bruno@clisp.org>
41156
41157         * modules/COPYING: Update copyright years.
41158         * modules/README: Likeiwse.
41159         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41160         Reported by Ian Beckwith <ianb@erislabs.net>.
41161
41162 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41163
41164         * users.txt: Update references for gnuit package.
41165
41166 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41167
41168         * m4/getdelim.m4: Fix typo in copyright line.
41169
41170 2009-09-17  Bruno Haible  <bruno@clisp.org>
41171
41172         * lib/atoll.c: Use the standard header with GPL copyright.
41173         * lib/argz.in.h: Likewise.
41174         * lib/glob.c: Likewise.
41175         * lib/glob-libc.h: Likewise.
41176         * lib/random_r.c: Likewise.
41177         * lib/siglist.h: Likewise.
41178         * lib/strsignal.c: Likewise.
41179         Reported by Ian Beckwith <ianb@erislabs.net>.
41180
41181 2009-09-17  Eric Blake  <ebb9@byu.net>
41182
41183         rmdir: ensure correct dependency order
41184         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41185
41186 2009-09-17  Bruno Haible  <bruno@clisp.org>
41187
41188         Disable assertion that fails on NetBSD 5 / i386.
41189         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41190         Reported by Sam Steingold <sds@gnu.org>
41191         and Hasso Tepper <hasso@netbsd.org>.
41192
41193 2009-09-16  Eric Blake  <ebb9@byu.net>
41194
41195         unlinkdir: port to mingw
41196         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41197         on which no one can unlink a directory.
41198
41199         stdlib: sort witness names
41200         * modules/stdlib (Makefile.am): Sort replacements.
41201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41202         * lib/stdlib.in.h: Likewise.
41203
41204         parse-duration-tests: avoid link failure
41205         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41206         LIBINTL.
41207         Reported by Tom G. Christensen.
41208
41209         openat-tests: ensure unlinkat behaves like rmdir
41210         * tests/test-rmdir.c (main): Factor guts...
41211         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41212         * modules/rmdir-tests (Files): Ship new file.
41213         * modules/openat-tests: New test.
41214         * tests/test-unlinkat.c: Likewise.
41215
41216         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41217         * modules/rmdir-errno (Status, Notice): Now obsolete.
41218
41219         rmdir: work around cygwin 1.5.x and mingw bugs
41220         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41221         * lib/rmdir.c (rmdir): Work around it.
41222         * modules/rmdir (Status, Notice): No longer obsolete.
41223         (Files): Add dos.m4.
41224         (Depends-on): Add unistd.
41225         (configure.ac): Set witnesses.
41226         (License): Relax to LGPLv2+.
41227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41228         * modules/unistd (Makefile.am): Substitute witnesses.
41229         * lib/unistd.in.h (rmdir): Declare replacement.
41230         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41231         * modules/rmdir-tests: New tests.
41232         * tests/test-rmdir.c: Likewise.
41233
41234 2009-09-15  Eric Blake  <ebb9@byu.net>
41235
41236         fchdir: improve use of replacement functions
41237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41239         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41240         REPLACE_CLOSEDIR.
41241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41242         * modules/sys_stat (Makefile.am): Substitute correct witness.
41243         * modules/dirent (Makefile.am): Likewise.
41244         * modules/unistd (Makefile.am): Likewise.
41245         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41246         * lib/unistd.in.h (dup): Likewise.
41247         * lib/sys_stat.in.h (fstat): Likewise.
41248
41249         maint: ignore gnulib-tool temp files
41250         * .gitignore: Ignore files created during gnulib-tool --test.
41251
41252 2009-09-13  Jim Meyering  <meyering@redhat.com>
41253
41254         posixtm: don't reject a time that specify "60" as the number of seconds
41255         * lib/posixtm.c (posixtime): The code to reject invalid dates
41256         would also reject a time specified with the .60 suffix.
41257         But POSIX allows that, in order to accommodate leap seconds.
41258         So don't reject it.
41259         (main): Adjust tests accordingly.
41260         * modules/posixtm (Depends-on): Add stpcpy.
41261
41262 2009-09-11  Jim Meyering  <meyering@redhat.com>
41263
41264         announce-gen: include [$release_type] in emitted Subject:
41265         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41266         e.g., [stable] in the emitted Subject: line.
41267
41268 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41269
41270         Remove obsolete macros from several modules.
41271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41272         obsolete Autoconf macros with their modern counterparts.
41273         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41274         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41275         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41276         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41277         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41278         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41280         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41281         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41282         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41283         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41284         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41285         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41286         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41287         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41288         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41289         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41290         * m4/time_r.m4 (gl_TIME_R): Likewise.
41291         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41292         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41293         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41294
41295         Fix copyright header in build-aux scripts.
41296         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41297         recommendation.
41298         * build-aux/ncftpput-ftp: Likewise.
41299         * build-aux/update-copyright: Likewise.
41300
41301 2009-09-09  Eric Blake  <ebb9@byu.net>
41302
41303         test-link: allow Linux choice of errno
41304         * tests/test-link.c (main): Relax test for alternate error.
41305
41306         strndup: fix improper m4 caching
41307         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41308         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41309         (gl_PREREQ_STRNDUP): Delete.
41310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41311         * modules/string (Makefile.am): Substitute it.
41312         * lib/string.in.h (strndup): Modernize prototype.
41313
41314         getcwd: port to mingw
41315         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41316         different from the POSIX assumptions made throughout the getcwd
41317         module; fortunately, the mingw getcwd does not need replacement.
41318         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41319         * modules/getcwd-tests: New test.
41320         * tests/test-getcwd.c: Likewise.
41321
41322         link: fix platform bugs
41323         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41324         * lib/link.c (link): Work around them.  Fix related mingw bug.
41325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41326         * modules/unistd (Makefile.am): Substitute it.
41327         * lib/unistd.in.h (link): Declare replacement.
41328         * doc/posix-functions/link.texi (link): Document this.
41329         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41330
41331         test-link: consolidate into single C program, test more cases
41332         * tests/test-link.sh: Delete.
41333         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41334         at least Cygwin and Solaris.
41335         * modules/link-tests (Files): Remove unused file.
41336         (Depends-on): Add errno, sys_stat.
41337         (Makefile.am): Simplify.
41338
41339 2009-09-08  Bruno Haible  <bruno@clisp.org>
41340
41341         Work around towlower, towupper bug on mingw.
41342         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41343         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41344         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41345         * doc/posix-functions/towupper.texi: Likewise.
41346         Reported by Eric Blake.
41347
41348 2009-09-08  Jim Meyering  <meyering@redhat.com>
41349
41350         build: don't try to run autoheader if we don't use it
41351         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41352         is not used in configure.ac.
41353
41354 2009-09-08  Eric Blake  <ebb9@byu.net>
41355
41356         euidaccess: fix compilation error
41357         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41358
41359         rawmemchr: relax license
41360         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41361         okay.
41362         Reported by Jim Meyering.
41363
41364         mkfifoat: new module
41365         * modules/mkfifoat: New file.
41366         * lib/mkfifoat.c: Likewise.
41367         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41368         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41369         * modules/sys_stat (Makefile.am): Use them.
41370         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41371         * MODULES.html.sh (File system functions): Mention module.
41372         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41373         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41374         * modules/mkfifoat-tests: New test.
41375         * tests/test-mkfifoat.c: Likewise.
41376
41377         strchrnul: relax license
41378         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41379         okay.
41380         Reported by Jim Meyering.
41381
41382 2009-09-08  Eric Blake  <ebb9@byu.net>
41383
41384         fstatat: fix compilation on Solaris
41385         * lib/fstatat.c (includes): Add fcntl.h.
41386         Reported by Pádraig Brady.
41387
41388 2009-09-07  Eric Blake  <ebb9@byu.net>
41389
41390         rename: modernize replacement
41391         * modules/rename (Depends-on): Add stdio.
41392         (configure.ac): Declare witness.
41393         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41394         stdio take care of replacement.
41395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41396         * modules/stdio (Makefile.am): Substitute them.
41397         * lib/stdio.in.h (rename): Declare replacement.
41398         * lib/rename.c (includes): Allow cross-compilation to non-windows
41399         machines.
41400         * doc/posix-functions/rename.texi (rename): Improve
41401         documentation.
41402
41403         stdio: sort witness names
41404         * modules/stdio (Makefile.am): Sort replacements.
41405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41406         * lib/stdio.in.h: Likewise.
41407
41408         getcwd: minor cleanups
41409         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41410         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41411
41412         openat: provide more convenience names
41413         * modules/faccessat (configure.ac): Add C witness.
41414         * lib/unistd.in.h (readlinkat): Fix typo.
41415         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41416         convenience wrappers.
41417         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41418         wrappers in syntax checks.
41419
41420 2009-09-06  Eric Blake  <ebb9@byu.net>
41421
41422         doc: fix comments in recent patches
41423         * lib/faccessat.c: Mention correct function.
41424         * lib/fchmodat.c: Likewise.
41425         * lib/fchownat.c: Likewise.
41426         * lib/symlinkat.c: Likewise.
41427         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41428         constants.
41429
41430         faccessat, symlinkat: continue cleanup of previous patch
41431         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41432         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41433         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41435         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41436         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41437         set.
41438
41439 2009-09-06  Bruno Haible  <bruno@clisp.org>
41440
41441         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41442         (fstatat): Declare if GNULIB_FSTATAT is set.
41443         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41444         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41445         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41446         * modules/fcntl-h (Files): Remove m4/openat.m4.
41447         * modules/sys_stat (Files): Remove m4/openat.m4.
41448         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41449         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41450         * modules/unistd (Files): Remove m4/openat.m4.
41451         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41452         GNULIB_OPENAT.
41453         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41454         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41455         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41456         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41457         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41458         gl_OPENAT_DEFAULTS.
41459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41460         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41461         Don't require gl_OPENAT_DEFAULTS.
41462         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41463         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41464         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41465         (gl_OPENAT_DEFAULTS): Remove macro.
41466
41467 2009-09-06  Bruno Haible  <bruno@clisp.org>
41468
41469         * modules/openat (configure.ac): Remove unneeded witness.
41470
41471 2009-09-06  Bruno Haible  <bruno@clisp.org>
41472
41473         Set errno to ENOSYS when a function is entirely unsupported.
41474         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41475         EOPNOTSUPP.
41476         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41477         * modules/chown (Depends-on): Remove errno.
41478
41479 2009-09-06  Bruno Haible  <bruno@clisp.org>
41480
41481         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41482
41483 2009-09-06  Bruno Haible  <bruno@clisp.org>
41484
41485         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41486
41487 2009-09-06  Ben Pfaff  <blp@gnu.org>
41488             Bruno Haible  <bruno@clisp.org>
41489
41490         Work around a glibc bug in strtok_r.
41491         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41492         Undefine if UNDEFINE_STRTOK_R is set.
41493         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41495         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41497         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41498         UNDEFINE_STRTOK_R.
41499         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41500
41501 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41502
41503         exclude: minor fix
41504         * lib/exclude.c: Include wctype.h
41505
41506 2009-09-06  Akim Demaille  <demaille@gostai.com>
41507
41508         bootstrap: improve error message
41509         * build-aux/bootstrap (find_tool): Upon failure, report the list
41510         of candidates.
41511         Honor the initial value of the envvar.
41512
41513 2009-09-05  Eric Blake  <ebb9@byu.net>
41514
41515         symlinkat: new module
41516         * modules/symlinkat: New file.
41517         * lib/symlinkat.c: Likewise.
41518         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41520         * modules/unistd (Makefile.am): Use them.
41521         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41522         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41523         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41524         * MODULES.html.sh (File system functions): Mention module.
41525         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41526         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41527         * modules/symlinkat-tests: New test.
41528         * tests/test-symlinkat.c: Likewise.
41529
41530         test-openat-safer: add more checks
41531         * tests/test-openat-safer.c (main): Check more code paths.
41532
41533 2009-09-05  Jim Meyering  <meyering@redhat.com>
41534
41535         syntax-check: detect unnecessary inclusion of openat.h
41536         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41537
41538 2009-09-05  Bruno Haible  <bruno@clisp.org>
41539
41540         Support towlower, towupper.
41541         * doc/posix-functions/towlower.texi: Mention module wctype.
41542         * doc/posix-functions/towupper.texi: Likewise.
41543         * lib/wctype.in.h (towlower, towupper): New functions.
41544         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41545         (ASSERT): New macro.
41546         (e): New variable.
41547         (main): Test also towlower, towupper. Test WEOF argument.
41548         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41549
41550 2009-09-05  Bruno Haible  <bruno@clisp.org>
41551
41552         Fix conversion behaviour when the input is invalid.
41553         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41554         mark occurring in first pass of indirect conversion.
41555         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41556         input.
41557         Found by clang's static analyzer.
41558
41559 2009-09-05  Bruno Haible  <bruno@clisp.org>
41560
41561         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41562         where direct conversion is possible.
41563
41564 2009-09-04  Eric Blake  <ebb9@byu.net>
41565
41566         openat: fail with ENOENT on empty name
41567         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41568         buffer.
41569
41570         link-follow: fix logic bug in prior patch
41571         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41572         reversed sense of yes and no in prior patch.  Avoid confusing
41573         compilation failure with desired semantics.
41574
41575         link-follow: accomodate mingw and cross-compilation
41576         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41577         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41578         cross-compilation results to -1, to make linkat easier to
41579         implement when cross-compiling.  Trivially support mingw.
41580         * modules/link-follow (configure.ac): Call new name.
41581         * NEWS: Mention this.
41582
41583 2009-09-03  Eric Blake  <ebb9@byu.net>
41584
41585         faccessat: compile replacement
41586         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41587         needed.
41588
41589         fts: fix compilation error
41590         * lib/fts.c (includes): Re-add "openat.h", for
41591         openat_needs_fchdir.
41592
41593         faccessat: new module
41594         * modules/faccessat: New file.
41595         * lib/faccessat.c: Likewise.
41596         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41598         * modules/unistd (Makefile.am): Use it.
41599         * lib/unistd.in.h (faccessat): Declare it.
41600         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41601         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41602         * MODULES.html.sh (File system functions): Mention it.
41603         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41604         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41605
41606         euidaccess: prefer POSIX over non-standard implementation
41607         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41608         * lib/euidaccess.c (euidaccess): Use it if available.
41609
41610         openat: make template easier to use
41611         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41612         AT_FUNC_F2 to be undefined.
41613         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41614         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41615         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41616         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41617         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41618         Likewise.
41619         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41620         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41621         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41622         Likewise.
41623
41624         openat: declare in POSIX headers
41625         * NEWS: Mention this.
41626         * modules/openat (configure.ac): Declare witnesses.
41627         (Depends-on): Add fcntl-h, sys_stat, unistd.
41628         (Include): Mention correct headers.
41629         * modules/fcntl-h (Depends-on): Add link-warning.
41630         (Files): Add openat.m4.
41631         (Makefile.am): Substitute witnesses.
41632         * modules/sys_stat (Files, Makefile.am): Likewise.
41633         * modules/unistd (Files, Makefile.am): Likewise.
41634         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41635         (gl_OPENAT_DEFAULTS): New macro.
41636         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41638         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41639         (SYS_STAT_H): Remove unused variable.
41640         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41641         * lib/fcntl--.h (includes): Remove unneeded header.
41642         * lib/openat-safer.c (includes): Likewise.
41643         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41644         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41645         appropriate headers.
41646         (__OPENAT_PREFIX): Delete.
41647         * lib/fcntl.in.h (openat): Provide declaration.
41648         (AT_FDCWD): Fix Solaris bug.
41649         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41650         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41651         * lib/fchmodat.c (includes):  Adjust to find declaration.
41652         * lib/fchownat.c (includes): Likewise.
41653         * lib/mkdirat.c (includes): Likewise.
41654         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41655         still visible.
41656
41657 2009-09-02  Eric Blake  <ebb9@byu.net>
41658
41659         errno: use consistently
41660         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41661         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41662         * lib/canonicalize.c (ELOOP): Likewise.
41663         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41664         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41665         * lib/lchown.c (EOPNOTSUPP): Likewise.
41666         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41667         * lib/savewd.c (ESTALE): Likewise.
41668         * lib/settime.c (ENOSYS): Likewise.
41669         * lib/utimens.c (ENOSYS): Likewise.
41670         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41671         * lib/chdir-safer.c (ELOOP): Likewise.
41672         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41673         * modules/c-stack (Depends-on): Add errno.
41674         * modules/canonicalize (Depends-on): Likewise.
41675         * modules/chdir-safer (Depends-on): Likewise.
41676         * modules/fdopendir (Depends-on): Likewise.
41677         * modules/inet_ntop (Depends-on): Likewise.
41678         * modules/inet_pton (Depends-on): Likewise.
41679         * modules/lchown (Depends-on): Likewise.
41680         * modules/openat (Depends-on): Likewise.
41681         * modules/savewd (Depends-on): Likewise.
41682         * modules/settime (Depends-on): Likewise.
41683         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41684
41685         fts: avoid leaking fds
41686         * modules/fts (Depends-on): Add cloexec.
41687         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41688         flag.
41689
41690         fts: make directory fds more robust
41691         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41692         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41693
41694         backupfile, chdir-long, fts, savedir: make safer
41695         * lib/backupfile.c (includes): Use "dirent--.h", since
41696         numbered_backup can write to stderr during readdir.
41697         * lib/savedir.c (includes): Likewise.
41698         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41699         emulation can write to stderr on failure.
41700         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41701         * lib/getcwd.c: Document why opendir_safer is unused.
41702         * lib/glob.c: Likewise.
41703         * lib/scandir.c: Likewise.
41704         * lib/openat-proc.c: Likewise, for open_safer.
41705         * modules/backupfile (Depends-on): Add dirent-safer.
41706         * modules/savedir (Depends-on): Likewise.
41707         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41708         * modules/chdir-long (Depends-on): Add openat-safer.
41709
41710         openat-safer: new module
41711         * modules/openat-safer: New file.
41712         * lib/openat-safer.c: Likewise.
41713         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41714         * lib/fcntl-safer.h (openat_safer): Declare.
41715         * lib/fcntl--.h (openat): Override.
41716         * MODULES.html.sh (File descriptor based I/O): Mention it.
41717         * lib/openat.h: Add double-inclusion guards.
41718         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41719         "fcntl--.h", so we can implement openat.
41720         * modules/openat-safer-tests: New test.
41721         * tests/test-openat-safer.c: New file.
41722
41723         dirent-safer: new module
41724         * modules/dirent-safer: New file.
41725         * lib/dirent--.h: Likewise.
41726         * lib/dirent-safer.h: Likewise.
41727         * lib/opendir-safer.c: Likewise.
41728         * m4/dirent-safer.m4: Likewise.
41729         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41730         * modules/dirent-safer-tests: New test.
41731         * tests/test-dirent-safer.c: New file.
41732         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41733
41734         fdopendir: optimize on mingw
41735         * lib/unistd.in.h (_gl_directory_name): New prototype.
41736         * lib/fchdir.c (_gl_directory_name): Implement it.
41737         (fchdir): Use it to simplify implementation.
41738         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41739         fchdir, when available, to avoid calling [f]chdir().
41740
41741         fdopendir: split into its own module
41742         * lib/openat.c (fdopendir): Move...
41743         * lib/fdopendir.c: ...into new file.
41744         * modules/fdopendir: New module.
41745         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41746         * modules/openat (Depends-on): Add fdopendir.
41747         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41748         fdopendir here.
41749         * modules/savedir (Depends-on): Only need fdopendir, not full
41750         openat.
41751         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41752         * lib/openat.h (fdopendir): Drop prototype.
41753         * lib/dirent.in.h (fdopendir): Provide prototype.
41754         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41755         * modules/dirent (Makefile.am): Substitute them.
41756         * MODULES.html.sh (File system functions): Mention it.
41757         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41758         * modules/fdopendir-tests: New file.
41759         * tests/test-fdopendir.c: Likewise.
41760
41761         fchdir: use more consistent macro convention
41762         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41763         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41764         REPLACE_FCHDIR, rather than relying on config.h macros.
41765         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41766         inside a single make-time REPLACE_FCHDIR block, rather than using
41767         the config.h FCHDIR_REPLACEMENT.
41768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41769         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41770         Manage fstat replacement.
41771         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41772         REPLACE_FCHDIR.
41773         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41774         (Makefile.am): Substitute REPLACE_FCHDIR.
41775         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41776         FCHDIR_REPLACEMENT.
41777         * lib/dup-safer.c (dup_safer): Likewise.
41778         * lib/dup2.c (rpl_dup2): Likewise.
41779         * lib/dup3.c (rpl_dup3): Likewise.
41780         * lib/open.c (rpl_open): Likewise.
41781
41782         fchdir: simplify error handling, and support dup3
41783         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41784         stdbool, malloc-posix, realloc-posix.
41785         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41786         (ensure_dirs_slot): Return false on allocation failure.
41787         (rpl_dup2): Delete.
41788         (_gl_register_dup): New function.
41789         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41790         (_gl_register_fd): Close fd on allocation failure.
41791         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41792         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41793         prototype.
41794         (rpl_dup2_fchdir): Delete prototype.
41795         * lib/open.c (open): Update caller.
41796         * lib/dup2.c (dup2): Track fchdir metadata.
41797         * lib/dup3.c (dup3): Likewise.
41798         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41799         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41800
41801 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41802
41803         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41804         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41805         don't pass arguments to AC_OUTPUT.
41806
41807 2009-09-02  Bruno Haible  <bruno@clisp.org>
41808
41809         * modules/mkdtemp (License): Relicense under LGPLv2+.
41810         Reported by Paolo Bonzini.
41811
41812 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41813
41814         Replace uses of obsolete autoconf macros in Jim's modules.
41815         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41816         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41817         can evoke a warning from autoconf when run with -Wobsolete
41818         enabled.  They were declared obsolete for good reasons (see
41819         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41820         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41821         should not continue using the deprecated macros.
41822         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41823         obsolete Autoconf macros with modern counterparts.
41824         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41825         * m4/dos.m4 (gl_AC_DOS): Likewise.
41826         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41828         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41829         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41830         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41831         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41832         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41833         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41834         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41835         Likewise.
41836         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41837         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41838         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41839         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41840         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41841         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41842
41843 2009-09-01  Eric Blake  <ebb9@byu.net>
41844
41845         fchdir: fix off-by-one bug in previous patch
41846         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41847         (_gl_unregister_fd): Delete useless if.
41848
41849 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41850
41851         maint.mk: sort the list of syntax-check rules
41852         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41853         easier to get a sense of progress when the rules are run sequentially
41854         and take a long time.
41855
41856 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41857
41858         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41859         * modules/netinet_in: Likewise.
41860         * modules/sys_file: Likewise.
41861         * modules/sys_ioctl: Likewise.
41862         * modules/sys_select: Likewise.
41863         * modules/sys_socket: Likewise.
41864         * modules/sys_stat: Likewise.
41865         * modules/sys_time: Likewise.
41866         * modules/sys_times: Likewise.
41867         * modules/sys_utsname: Likewise.
41868         * modules/sys_wait: Likewise.
41869
41870 2009-09-01  Jim Meyering  <meyering@redhat.com>
41871
41872         fts: help ensure that return values are not ignored
41873         * lib/fts_.h (__GNUC_PREREQ): Define.
41874         (__attribute_warn_unused_result__): Define.
41875         (fts_children, fts_close, fts_open, fts_read): Declare with
41876         __attribute_warn_unused_result__.
41877
41878         fts: fts_close now fails also when closing a dir file descriptor fails
41879         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41880         and propagate to caller, along with errno.
41881
41882         announce-gen: correct formatting in --help output
41883         * build-aux/announce-gen (usage): Move the one-line description in
41884         --help output "up", to where it belongs, just after Usage:.
41885
41886 2009-08-31  Eric Blake  <ebb9@byu.net>
41887
41888         fchdir: port to mingw
41889         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41890         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41891         opened, then use a substitute.
41892         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41893         replacement.
41894         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41895         (_gl_register_fd): No need to check stat if open already filters
41896         all directories.
41897         (fchdir): Fix error condition to match POSIX.
41898         * modules/fchdir (Depends-on): Add sys_stat.
41899         * doc/posix-functions/open.texi (open): Document the limitation.
41900         * modules/fchdir-tests: New file.
41901         * tests/test-fchdir.c: Likewise.
41902
41903         canonicalize: allow cross-testing from cygwin to mingw
41904         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41905         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41906         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41907         Likewise.
41908         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41909         target does not support symlinks.
41910         * tests/test-canonicalize-lgpl.sh: Likewise.
41911
41912         chown: avoid compilation warning on mingw
41913         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41914         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41915         mingw.
41916         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41917         * modules/chown (Depends-on): Add errno.
41918
41919 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41920
41921         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41922         command.
41923
41924 2009-08-31  Jim Meyering  <meyering@redhat.com>
41925
41926         canonicalize: remove useless initialization
41927         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41928         initialization of local, "end".
41929
41930 2009-08-30  Bruno Haible  <bruno@clisp.org>
41931
41932         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41933         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41934         ENOSYS.
41935
41936 2009-08-30  Bruno Haible  <bruno@clisp.org>
41937
41938         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41939         /usr/xpg4/bin/tr when it exists.
41940         * tests/test-pipe-filter-gi1.sh: Likewise.
41941
41942 2009-08-30  Bruno Haible  <bruno@clisp.org>
41943
41944         Work around deficient /usr/bin/id program on Solaris.
41945         * tests/test-file-has-acl.sh (ID): New variable.
41946         * tests/test-set-mode-acl.sh (ID): Likewise.
41947         * tests/test-copy-acl.sh (ID): Likewise.
41948         * tests/test-copy-file.sh (ID): Likewise.
41949
41950 2009-08-30  Bruno Haible  <bruno@clisp.org>
41951
41952         New module 'xstriconveh'.
41953         * lib/xstriconveh.h: New file.
41954         * lib/xstriconveh.c: New file.
41955         * modules/xstriconveh: New file.
41956
41957 2009-08-30  Bruno Haible  <bruno@clisp.org>
41958
41959         Make it easier to use mem_cd_iconveh.
41960         * lib/striconveh.h (iconveh_t): New type.
41961         (iconveh_open, iconveh_close): New declarations.
41962         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41963         with a single 'const iconveh_t *' argument.
41964         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41965         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41966         with a single 'const iconveh_t *' argument.
41967         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41968         * tests/test-striconveh.c (main): Update.
41969         * NEWS: Mention the change.
41970
41971 2009-08-30  Bruno Haible  <bruno@clisp.org>
41972
41973         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41974         problem.
41975
41976 2009-08-30  Bruno Haible  <bruno@clisp.org>
41977
41978         Work around iconv_open problem on Solaris.
41979         * lib/iconv_open-solaris.gperf: New file.
41980         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41981         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41982         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41983         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41984         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41985         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41986
41987 2009-08-29  Jim Meyering  <meyering@redhat.com>
41988
41989         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41990         * top/maint.mk (cvs-check): Remove target; it was just an alias
41991         to the better-named vc-diff-check.
41992         (maintainer-distcheck): Remove rule.  It was used only from
41993         the (alpha/beta/major) target, and all of its commands but one
41994         were coreutils-specific.
41995         (vc-dist): Remove rule.
41996         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41997         Run vc-diff-check, not vc-dist.
41998         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41999
42000 2009-08-27  Bruno Haible  <bruno@clisp.org>
42001
42002         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42003         of 0.
42004
42005 2009-08-27  Bruno Haible  <bruno@clisp.org>
42006
42007         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42008         compilers.
42009         * doc/func.texi: Document the SunPRO C bug.
42010
42011 2009-08-27  Bruno Haible  <bruno@clisp.org>
42012
42013         Fix link error on Solaris.
42014         * tests/test-parse-duration.c (xstrdup): Remove function.
42015
42016 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42017
42018         ignore-value: handle pointer types, too
42019         * lib/ignore-value.h (__attribute__): Remove definition.
42020         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42021         of a more concise and more-often effective "(void) i" statement.
42022         (ignore_ptr): New function to suppress warnings from functions that
42023         return pointers, and to make it explicit that one function doesn't
42024         handle all cases.
42025
42026 2009-08-25  Bruno Haible  <bruno@clisp.org>
42027
42028         dup2: work around a Linux bug.
42029         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42030         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42031         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42032         Reported by Simon Josefsson.
42033
42034 2009-08-25  Jim Meyering  <meyering@redhat.com>
42035
42036         libguestfs uses gnulib
42037         * users.txt: Add libguestfs.
42038
42039 2009-08-24  Eric Blake  <ebb9@byu.net>
42040
42041         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42042         * lib/pipe2.c (includes): Add binary-io.h.
42043         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42044
42045 2009-08-24  Bruno Haible  <bruno@clisp.org>
42046
42047         Tolerate declared but missing accept4 syscall.
42048         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42049         available.
42050         * lib/sys_socket.in.h (accept4): If the function is already present,
42051         override it.
42052         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42053         * modules/accept4 (Makefile.am): Compile accept4.c always.
42054         Reported by Paolo Bonzini and Eric Blake.
42055
42056 2009-08-23  Bruno Haible  <bruno@clisp.org>
42057
42058         New module 'accept4'.
42059         * lib/sys_socket.in.h (accept4): New declaration.
42060         * lib/accept4.c: New file.
42061         * m4/accept4.m4: New file.
42062         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42063         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42064         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42065         HAVE_ACCEPT4.
42066         * modules/accept4: New file.
42067         * doc/glibc-functions/accept4.texi: Mention the new module.
42068
42069 2009-08-24  Jim Meyering  <meyering@redhat.com>
42070
42071         progname: also set global program_invocation_name, when possible
42072         Before this change, a libtool-enabled program that calls glibc's
42073         error function would report the program name as
42074         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42075         * modules/progname (configure.ac): Check for a declaration of
42076         program_invocation_name.
42077         * lib/progname.c:  Include <errno.h>.
42078         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42079         Set program_invocation_name.
42080
42081 2009-08-23  Bruno Haible  <bruno@clisp.org>
42082
42083         * lib/dup3.c: Include <string.h>.
42084
42085 2009-08-23  Bruno Haible  <bruno@clisp.org>
42086
42087         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42088         * lib/pipe2.c (pipe2): Likewise.
42089         Suggested by Eric Blake.
42090
42091 2009-08-23  Bruno Haible  <bruno@clisp.org>
42092
42093         Tolerate declared but missing dup3 syscall.
42094         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42095         * lib/unistd.in.h (dup3): If the function is already present,
42096         override it.
42097         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42098         * modules/dup3 (Makefile.am): Compile dup3.c always.
42099         Reported by Paolo Bonzini.
42100
42101 2009-08-23  Bruno Haible  <bruno@clisp.org>
42102
42103         Tolerate declared but missing pipe2 syscall.
42104         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42105         available.
42106         * lib/unistd.in.h (pipe2): If the function is already present,
42107         override it.
42108         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42109         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42110         Reported by Paolo Bonzini.
42111
42112 2009-08-23  Bruno Haible  <bruno@clisp.org>
42113
42114         * lib/pipe2.c (pipe2): Move #ifs inside function.
42115
42116 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42117
42118         quotearg: document limitations of quote_these_too
42119         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42120         those limitations are created.
42121         * lib/quotearg.h (set_char_quoting): Document that digits and
42122         letters that are special after backslash are not permitted.
42123         (quotearg_char): Cross-reference set_char_quoting documentation.
42124
42125 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42126
42127         quotearg: implement custom_quoting_style
42128         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42129         right_quote fields.
42130         (set_custom_quoting): New public function.
42131         (quotearg_buffer_restyled): Add left_quote and right_quote
42132         arguments, handle them very much like locale quoting, and update
42133         all uses.
42134         (quotearg_n_custom): New public function.
42135         (quotearg_n_custom_mem): New public function.
42136         (quotearg_custom): New public function.
42137         (quotearg_custom_mem): New public function.
42138         * lib/quotearg.h: Prototype and document new public functions.
42139         (enum quoting_style): For escape_quoting_style and
42140         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42141         ignored even though they're otherwise like c_quoting_style.
42142         Add custom_quoting_style member and document with comparison to
42143         clocale_quoting_style.
42144         * tests/test-quotearg.c (custom_quotes): New array.
42145         (custom_results): New array.
42146         (main): Extend to test custom quoting.
42147
42148 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42149
42150         quotearg: fix right quote escaping when it's in quote_these_too
42151         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42152         quote, be sure to prepend only one backslash.
42153         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42154         (main): Test it.
42155
42156 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42157
42158         quotearg-tests: test escaping of embedded locale quotes
42159         * tests/test-quotearg.c (struct result_strings): Add member for
42160         new input.
42161         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42162         (inputs): Add new input.
42163         (results_g): Add expected results.
42164         (flag_results): Likewise.
42165         (locale_results): Likewise.
42166         (compare_strings): Check those.
42167
42168 2009-08-23  Bruno Haible  <bruno@clisp.org>
42169
42170         Tests for module 'dup3'.
42171         * modules/dup3-tests: New file.
42172         * tests/test-dup3.c: New file.
42173
42174         New module 'dup3'.
42175         * lib/unistd.in.h (dup3): New declaration.
42176         * lib/dup3.c: New file.
42177         * m4/dup3.m4: New file.
42178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42179         HAVE_DUP3.
42180         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42181         * modules/dup3: New file.
42182         * doc/glibc-functions/dup3.texi: Mention the new module.
42183
42184 2009-08-23  Bruno Haible  <bruno@clisp.org>
42185
42186         Tweak the dup2 test.
42187         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42188         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42189         the test file is still empty. Fix argument order of lseek.
42190
42191 2009-08-23  Bruno Haible  <bruno@clisp.org>
42192
42193         Avoid test link errors when the modules getopt-gnu, gettext are used.
42194         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42196
42197 2009-08-23  Bruno Haible  <bruno@clisp.org>
42198
42199         Fix getdtablesize() on mingw.
42200         * lib/getdtablesize.c (getdtablesize): Implement differently.
42201         * lib/unistd.in.h (getdtablesize): Improve comment.
42202
42203 2009-08-23  Bruno Haible  <bruno@clisp.org>
42204
42205         New module 'mkostemp'.
42206         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42207         * lib/stdlib.in.h (mksotemp): New declaration.
42208         * lib/mkostemp.c: New file, from glibc with modifications.
42209         * lib/tempname.h (GT_FILE): Remove outdated comment.
42210         (gen_tempname): Add flags argument.
42211         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42212         (__GT_FILE): Map to 1.
42213         (small_open, large_open): Remove macros.
42214         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42215         * lib/mkstemp.c (mkstemp): Update.
42216         * lib/mkdtemp.c (mkdtemp): Likewise.
42217         * m4/mkostemp.m4: New file.
42218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42219         HAVE_MKOSTEMP.
42220         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42221         HAVE_MKOSTEMP.
42222         * modules/mkostemp: New file, based on modules/mkstemp.
42223         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42224         * NEWS: Mention the change.
42225
42226 2009-08-23  Bruno Haible  <bruno@clisp.org>
42227
42228         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42229         Reported by Eric Blake.
42230
42231 2009-08-23  Bruno Haible  <bruno@clisp.org>
42232
42233         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42234         Reported by Eric Blake.
42235
42236 2009-08-23  Bruno Haible  <bruno@clisp.org>
42237
42238         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42239         * modules/pipe2 (Depends-on): Likewise.
42240
42241 2009-08-23  Eric Blake  <ebb9@byu.net>
42242
42243         fcntl-h: add O_TTY_INIT support
42244         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42245         * tests/test-fcntl-h.c (o): Test it.
42246         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42247
42248         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42249         * modules/fcntl: Move <fcntl.h> header replacement...
42250         * modules/fcntl-h: ...to new name, so as not to collide with
42251         like-named function.
42252         * tests/test-fcntl.c: Rename...
42253         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42254         * modules/fcntl-tests: Rename...
42255         * modules/fcntl-h-tests: ...to this.  Update test file name.
42256         * modules/chdir-long (Depends-on): Update clients.
42257         * modules/chdir-safer (Depends-on): Likewise.
42258         * modules/fcntl-safer (Depends-on): Likewise.
42259         * modules/fts (Depends-on): Likewise.
42260         * modules/mkancesdirs (Depends-on): Likewise.
42261         * modules/mkdir-p (Depends-on): Likewise.
42262         * modules/open (Depends-on): Likewise.
42263         * modules/savewd (Depends-on): Likewise.
42264         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42265         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42266
42267 2009-08-22  Bruno Haible  <bruno@clisp.org>
42268
42269         * modules/binary-io (License): Relicense under LGPL.
42270         * modules/pipe2 (License): Likewise.
42271
42272 2009-08-22  Bruno Haible  <bruno@clisp.org>
42273
42274         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42275         return value.
42276         * lib/pipe-filter-gi.c (filter_init): Likewise.
42277         Reported by Eric Blake.
42278
42279 2009-08-22  Bruno Haible  <bruno@clisp.org>
42280
42281         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42282         * modules/pipe (Depends-on): Add pipe2.
42283
42284 2009-08-22  Bruno Haible  <bruno@clisp.org>
42285
42286         Tests for module 'pipe2'.
42287         * modules/pipe2-tests: New file.
42288         * tests/test-pipe2.c: New file.
42289
42290         New module 'pipe2'.
42291         * lib/unistd.in.h (pipe2): New declaration.
42292         * lib/pipe2.c: New file.
42293         * m4/pipe2.m4: New file.
42294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42295         HAVE_PIPE2.
42296         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42297         * modules/pipe2: New file.
42298         * doc/glibc-functions/pipe2.texi: Mention the new module.
42299
42300 2009-08-22  Bruno Haible  <bruno@clisp.org>
42301
42302         Reference some new glibc functions.
42303         * doc/glibc-functions/accept4.texi: New file.
42304         * doc/glibc-functions/dup3.texi: New file.
42305         * doc/glibc-functions/mkostemp.texi: New file.
42306         * doc/glibc-functions/pipe2.texi: New file.
42307         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42308         (Glibc sys/socket.h): Refer to accept4.
42309         (Glibc unistd.h): Refer to dup3, pipe2.
42310         Reported by Eric Blake.
42311
42312 2009-08-22  Jim Meyering  <meyering@redhat.com>
42313             Bruno Haible  <bruno@clisp.org>
42314
42315         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42316         This makes it so packages using automake-1.11's silent-rules option
42317         can print e.g., a single "GEN    configmake.h" line, rather than
42318         the 30+ statements that perform the job.  If you want to see the
42319         actual commands, you can still run "make V=1".
42320         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42321         so that make output is abbreviated when those variables are defined
42322         appropriately.
42323         * modules/argz: Likewise.
42324         * modules/arpa_inet: Likewise.
42325         * modules/byteswap: Likewise.
42326         * modules/configmake: Likewise.
42327         * modules/dirent: Likewise.
42328         * modules/errno: Likewise.
42329         * modules/fcntl: Likewise.
42330         * modules/float: Likewise.
42331         * modules/fnmatch: Likewise.
42332         * modules/getopt-posix: Likewise.
42333         * modules/glob: Likewise.
42334         * modules/iconv_open: Likewise.
42335         * modules/inttypes: Likewise.
42336         * modules/localcharset: Likewise.
42337         * modules/locale: Likewise.
42338         * modules/math: Likewise.
42339         * modules/netdb: Likewise.
42340         * modules/netinet_in: Likewise.
42341         * modules/poll: Likewise.
42342         * modules/posix_spawnp-tests: Likewise.
42343         * modules/sched: Likewise.
42344         * modules/search: Likewise.
42345         * modules/selinux-h: Likewise.
42346         * modules/signal: Likewise.
42347         * modules/spawn: Likewise.
42348         * modules/stdarg: Likewise.
42349         * modules/stdbool: Likewise.
42350         * modules/stddef: Likewise.
42351         * modules/stdint: Likewise.
42352         * modules/stdio: Likewise.
42353         * modules/stdlib: Likewise.
42354         * modules/string: Likewise.
42355         * modules/strings: Likewise.
42356         * modules/sys_file: Likewise.
42357         * modules/sys_ioctl: Likewise.
42358         * modules/sys_select: Likewise.
42359         * modules/sys_socket: Likewise.
42360         * modules/sys_stat: Likewise.
42361         * modules/sys_time: Likewise.
42362         * modules/sys_times: Likewise.
42363         * modules/sys_utsname: Likewise.
42364         * modules/sys_wait: Likewise.
42365         * modules/sysexits: Likewise.
42366         * modules/time: Likewise.
42367         * modules/unistd: Likewise.
42368         * modules/wchar: Likewise.
42369         * modules/wctype: Likewise.
42370
42371 2009-08-22  Jim Meyering  <meyering@redhat.com>
42372
42373         announce-gen: detect write failure
42374         * build-aux/announce-gen: Add Coda at end.
42375         Remove equivalent-but-more-verbose block at top.
42376
42377 2009-08-19  Akim Demaille  <demaille@gostai.com>
42378
42379         bootstrap: --help to stdout.
42380         * bootstrap (usage): Don't send --help to stderr.
42381         Use a here doc instead of a long string.
42382
42383 2009-08-21  Eric Blake  <ebb9@byu.net>
42384
42385         test-popen-safer: split from test-popen
42386         * tests/test-popen.c (main): Move...
42387         * tests/test-popen.h: ...into new file.
42388         * tests/test-popen-safer2.c: New file.
42389         * modules/popen-tests (Files): Add test-popen.h.
42390         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42391         Suggested by Bruno Haible.
42392
42393         test-fcntl-safer: split from test-open
42394         * tests/test-open.c (main): Move...
42395         * tests/test-open.h: ...into new file.
42396         * tests/test-fcntl-safer.c: New file.
42397         * modules/open-tests (Files): Add test-open.h.
42398         * modules/fcntl-safer-tests: New file.
42399         Suggested by Bruno Haible.
42400
42401         test-fopen-safer: split from test-fopen
42402         * tests/test-fopen.c (main): Move...
42403         * tests/test-fopen.h: ...into new file.
42404         * tests/test-fopen-safer.c: New file.
42405         * modules/fopen-tests (Files): Add test-fopen.h.
42406         * modules/fopen-safer-tests: New file.
42407         Suggested by Bruno Haible.
42408
42409 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42410
42411         popen-safer: test O_CLOEXEC at run-time.
42412         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42413
42414 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42415
42416         fcntl: move more flags to the header
42417         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42418         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42419         * lib/fcntl.in.h: Do both things here.
42420
42421 2009-08-21  Jim Meyering  <meyering@redhat.com>
42422
42423         consistently remove $@-t before redirecting to it
42424         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42425         * modules/alloca-opt: Likewise.
42426         * modules/byteswap: Likewise.
42427         * modules/fnmatch: Likewise.
42428         * modules/getopt-posix: Likewise.
42429         * modules/glob: Likewise.
42430         * modules/poll: Likewise.
42431         * modules/posix_spawnp-tests: Likewise.
42432         * modules/sys_socket: Likewise.
42433         * modules/sysexits: Likewise.
42434
42435 2009-08-21  Eric Blake  <ebb9@byu.net>
42436
42437         popen: simplify access to original popen
42438         * lib/popen.c (rpl_popen): No need to worry about popen being a
42439         macro.
42440         Reported by Bruno Haible.
42441
42442 2009-08-20  Eric Blake  <ebb9@byu.net>
42443
42444         build: avoid some compiler warnings
42445         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42446         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42447         type.
42448         (new_exclude_segment, excluded_file_pattern_p)
42449         (excluded_file_name_p): Reduce scope.
42450         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42451         old-style declaration.
42452
42453 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42454
42455         * tests/test-exclude1.sh: Handle Windows EOL.
42456         * tests/test-exclude2.sh: Likewise.
42457         * tests/test-exclude3.sh: Likewise.
42458         * tests/test-exclude4.sh: Likewise.
42459         * tests/test-exclude5.sh: Likewise.
42460         * tests/test-exclude6.sh: Likewise.
42461         * tests/test-exclude7.sh: Likewise.
42462
42463 2009-08-19  Akim Demaille  <demaille@gostai.com>
42464
42465         bootstrap: find sha1sum when named gsha1sum.
42466         * bootstrap (find_tool): New.
42467         ($SHA1SUM): New.
42468         Use it.
42469
42470 2009-08-20  Jim Meyering  <meyering@redhat.com>
42471
42472         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42473         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42474         expression that converts "." in a file name to "\." in the resulting
42475         regexp.  Start with a dummy statement, so that prior shell variable
42476         definitions are expanded portably.  Reported by Simon Josefsson.
42477
42478 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42479
42480         Fix polling for writeability of a screen buffer.
42481         * lib/poll.c: Distinguish input and screen buffers for the
42482         Win32 implementation.
42483         * lib/select.c: Likewise.
42484
42485 2009-08-19  Eric Blake  <ebb9@byu.net>
42486
42487         popen-safer: prevent popen from clobbering std descriptors
42488         * modules/popen-safer: New file.
42489         * lib/popen-safer.c: Likewise.
42490         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42491         * lib/stdio--.h (popen): Provide override.
42492         * lib/stdio-safer.h (popen_safer): Provide declaration.
42493         * tests/test-popen.c (includes): Partially test this.
42494         * modules/popen-safer-tests: New file, for more tests.
42495         * tests/test-popen-safer.c: Likewise.
42496         * MODULES.html.sh (file stream based Input/Output): Mention it.
42497
42498         tests: test some of the *-safer modules
42499         * modules/fopen-safer (Depends-on): Add fopen.
42500         * modules/fcntl-safer (Depends-on): Add fcntl.
42501         * modules/stdlib-safer (Depends-on): Add stdlib.
42502         (configure.ac): Set indicator.
42503         * modules/unistd-safer (configure.ac): Likewise.
42504         * modules/tmpfile-safer (configure.ac): Likewise.
42505         (Depends-on): Add tmpfile.
42506         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42507         active.
42508         * tests/test-fopen.c (includes): Test safer versions when they are
42509         in use.
42510         * tests/test-open.c (includes): Likewise.
42511
42512         popen: fix cygwin 1.5 bug when stdin closed
42513         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42514         * modules/popen: New file.
42515         * modules/popen-tests: Likewise.
42516         * tests/test-popen.c: Likewise.
42517         * m4/popen.m4: Likewise.
42518         * lib/popen.c: Likewise.
42519         * lib/stdio.in.h (popen): New declaration.
42520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42521         * modules/stdio (Makefile.am): Likewise.
42522         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42523
42524 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42525
42526         maint.mk: give full control over update-copyright exclusions
42527         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42528         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42529         (update-copyright): Don't force inclusion of top-level
42530         ChangeLog.  Don't force exclusion of all COPYING files, but make
42531         them the default exclusion instead.
42532
42533 2009-08-16  Bruno Haible  <bruno@clisp.org>
42534
42535         Fix test failures on Solaris 10.
42536         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42537         tests when Solaris iconv() is used.
42538         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42539         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42540         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42541         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42542         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42543
42544 2009-08-16  Bruno Haible  <bruno@clisp.org>
42545
42546         Fix test failures on Solaris 10.
42547         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42548         'tr' program and pass it as first argument.
42549         * tests/test-pipe-filter-gi1.sh: Likewise.
42550         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42551         program as first argument.
42552         * tests/test-pipe-filter-gi1.c (main): Likewise.
42553
42554 2009-08-16  Eric Blake  <ebb9@byu.net>
42555
42556         fpurge: fix previous commits
42557         * modules/fpurge (Makefile.am): Make replacement conditional,
42558         partially reverting 2007-04-29 change; missed in previous
42559         attempt.
42560         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42561         is missing.
42562
42563 2009-08-16  Bruno Haible  <bruno@clisp.org>
42564
42565         Clarify fpurge's effect on the file position.
42566         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42567         * tests/test-fpurge.c (main): Make a second pass for checking the file
42568         position.
42569
42570 2009-08-16  Bruno Haible  <bruno@clisp.org>
42571
42572         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42573         declaration of fpurge is missing.
42574         * tests/test-fpurge.c (main): Check that the file has not more contents
42575         than expected. Close the file before removing it.
42576
42577 2009-08-15  Eric Blake  <ebb9@byu.net>
42578
42579         fpurge: don't wrap working cygwin implementation
42580         * lib/fpurge.c (fpurge): Fix comment typo.
42581         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42582         1.7 to avoid replacement.
42583         * tests/test-fpurge.c (main): Enhance test.
42584
42585 2009-08-15  Eric Blake  <ebb9@byu.net>
42586         and Jim Meyering  <meyering@redhat.com>
42587
42588         test-update-copyright: skip if perl is insufficient
42589         * tests/test-update-copyright.sh: Failure to run maintainer tool
42590         should not cause testsuite failure on cygwin 1.5.
42591
42592 2009-08-14  Eric Blake  <ebb9@byu.net>
42593
42594         doc: mention more functions added in cygwin 1.7.0
42595         * doc/posix-headers/limits.texi (limits.h): Update for recent
42596         cygwin additions.
42597         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42598         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42599         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42600         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42601         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42602
42603 2009-08-14  Eric Blake  <ebb9@byu.net>
42604
42605         maint.mk: simplify update-copyright rule
42606         * top/maint.mk (update-copyright-local): Delete, and document how
42607         to do it in cfg.mk instead.
42608         (update-copyright-exclude-regexp): Delete, and document how to do
42609         it in .x-update-copyright instead.
42610         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42611         exclude ChangeLog.
42612
42613 2009-08-14  Bruno Haible  <bruno@clisp.org>
42614
42615         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42616
42617 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42618
42619         maint.mk: support update-copyright-env
42620         * top/maint.mk (update-copyright-env): Define place-holder.
42621         (update-copyright): Expand $(update-copyright-env) before
42622         invoking update-copyright.
42623
42624 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42625
42626         update-copyright: implement forced reformatting
42627         * build-aux/update-copyright: Implement and document
42628         UPDATE_COPYRIGHT_FORCE.
42629         * tests/test-update-copyright.sh: Test it.
42630
42631 2009-08-14  Eric Blake  <ebb9@byu.net>
42632         and Bruno Haible  <bruno@clisp.org>
42633
42634         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42635         * tests/test-locale.c: Revert previous patch related to NULL.
42636         * tests/test-stdio.c: Likewise.
42637         * tests/test-stdlib.c: Likewise.
42638         * tests/test-string.c: Likewise.
42639         * tests/test-unistd.c: Likewise.
42640         * modules/time-tests (Depends-on): Add verify.
42641         * modules/wchar-tests (Depends-on): Likewise.
42642         * tests/test-time.c: Test for NULL compliance.
42643         * tests/test-wchar.c: Likewise.
42644         * modules/locale (Depends-on): Add stddef.
42645         * modules/stdio (Depends-on): Likewise.
42646         * modules/stdlib (Depends-on): Likewise.
42647         * modules/string (Depends-on): Likewise.
42648         * modules/time (Depends-on): Likewise.
42649         * modules/unistd (Depends-on): Likewise.
42650         * modules/wchar (Depends-on): Likewise.
42651         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42652         * lib/stdlib.in.h (includes): Likewise.
42653         * lib/string.in.h (includes): Likewise.
42654         * lib/time.in.h (includes): Likewise.
42655         * lib/unistd.in.h (includes): Likewise.
42656         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42657         replaced.
42658         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42659         * m4/stddef_h.m4: New file.
42660         * modules/stddef: Likewise.
42661         * lib/stddef.in.h: Likewise.
42662         * modules/stddef-tests: Likewise.
42663         * tests/test-stddef.c: Likewise.
42664         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42665         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42666         * doc/posix-headers/locale.texi (locale.h): Likewise.
42667         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42668         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42669         * doc/posix-headers/string.texi (string.h): Likewise.
42670         * doc/posix-headers/time.texi (time.h): Likewise.
42671         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42672         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42673
42674 2009-08-14  Eric Blake  <ebb9@byu.net>
42675
42676         doc: improve git diff of texinfo files
42677         * .gitattributes: Add rule for *.texi files, with hint on how to
42678         use it.
42679         Copied from m4, and based on a report by Bruno Haible.
42680
42681 2009-08-14  Bruno Haible  <bruno@clisp.org>
42682
42683         Disable multithread support by default on Cygwin 1.5.x for real.
42684         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42685
42686 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42687
42688         update-copyright: much ado about intervals
42689         * build-aux/update-copyright: Implement and document
42690         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42691         of copyright year intervals.
42692         Also, document UPDATE_COPYRIGHT_YEAR.
42693         * tests/test-update-copyright.sh: Test it.
42694
42695         update-copyright: convert 2-digit to 4-digit years
42696         * build-aux/update-copyright: Implement and document.
42697         * tests/test-update-copyright.sh: Update.
42698
42699 2009-08-14  Jim Meyering  <meyering@redhat.com>
42700
42701         test-exclude: avoid coreutils "make check" failure
42702         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42703         just as in test-argmatch.c.
42704
42705 2009-08-13  Eric Blake  <ebb9@byu.net>
42706
42707         test-dup2: fix bad assumption
42708         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42709         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42710
42711         test-version-etc: fix CRLF portability issue
42712         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42713         recognize \r.
42714         * tests/test-argp-version-etc-1.sh: Likewise.
42715
42716         getopt: update client modules
42717         * modules/argp (Depends-on): Use getopt-gnu.
42718         * modules/git-merge-changelog (Depends-on): Likewise.
42719         * modules/long-options (Depends-on): Likewise.
42720         * modules/xstrtol (Depends-on): Likewise.
42721
42722 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42723
42724         * tests/test-version-etc.sh: Don't fail on different
42725         project/version.  Don't fail on CRLF differences.  Rewrite to use
42726         multiple -e instead of multiple sed forks, suggested by Eric Blake
42727         <ebb9@byu.net>.
42728         * tests/test-argp-version-etc-1.sh: Likewise.
42729
42730 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42731
42732         * tests/test-version-etc.sh: Don't fail on different
42733         project/version.
42734
42735 2009-08-12  Bruno Haible  <bruno@clisp.org>
42736
42737         Tests for modules 'getopt-posix', 'getopt-gnu'.
42738         * modules/getopt-posix-tests: New file.
42739         * tests/test-getopt.c: New file.
42740         * tests/test-getopt.h: New file.
42741         * tests/test-getopt_long.h: New file.
42742
42743         New modules 'getopt-posix', 'getopt-gnu'.
42744         * modules/getopt-gnu: New file, renamed from modules/getopt.
42745         * modules/getopt-posix: New file.
42746         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42747         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42748         (gl_GETOPT): Remove macro.
42749         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42750         Disable the test against BSD systems that declare optreset. Test
42751         against mingw bug. Test against lack of support of optional arguments
42752         on many platforms.
42753         * doc/glibc-headers/getopt.texi: Update module name and list of
42754         relevant platforms.
42755         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42756         'getopt-gnu' and more portability problems.
42757         * NEWS: Mention the changes.
42758
42759 2009-08-12  Bruno Haible  <bruno@clisp.org>
42760
42761         Ensure that optarg etc. get declared by <unistd.h>.
42762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42763         AC_USE_SYSTEM_EXTENSIONS.
42764         * modules/getopt (Depends-on): Add 'extensions'.
42765
42766 2009-08-12  Bruno Haible  <bruno@clisp.org>
42767
42768         Avoid test link errors.
42769         * modules/pipe-filter-ii-tests (Makefile.am): Define
42770         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42771         * modules/pipe-filter-gi-tests (Makefile.am): Define
42772         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42774
42775 2009-08-12  Bruno Haible  <bruno@clisp.org>
42776
42777         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42778         gl_GETOPT_SUBSTITUTE before.
42779         (gl_GETOPT): Use it.
42780         * m4/argp.m4 (gl_ARGP): Update.
42781         Reported by Sergey Poznyakoff.
42782
42783         * m4/getopt.m4: Reorder macros.
42784         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42785         (gl_GETOPT_SUBSTITUTE): Remove macro.
42786
42787 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42788
42789         Minor improvement in gitlog-to-changelog
42790
42791         * build-aux/gitlog-to-changelog: New option `--format' makes
42792         output format string configurable.
42793
42794 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42795
42796         Optimize exclude: use hash tables for non-wildcard patterns.
42797
42798         * lib/exclude.c: Include hash.h and mbuiter.h
42799         (struct exclude_pattern, exclude_segment): New data types.
42800         (struct exclude): Rewrite.
42801         (fnmatch_pattern_has_wildcards): New function.
42802         (new_exclude_segment, free_exclude_segment): New functions.
42803         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42804         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42805         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42806         * modules/exclude: Depend on hash and mbuiter.
42807
42808         * modules/exclude-tests: New file.
42809         * tests/test-exclude.c: New file.
42810         * tests/test-exclude1.sh: New file.
42811         * tests/test-exclude2.sh: New file.
42812         * tests/test-exclude3.sh: New file.
42813         * tests/test-exclude4.sh: New file.
42814         * tests/test-exclude5.sh: New file.
42815         * tests/test-exclude6.sh: New file.
42816         * tests/test-exclude7.sh: New file.
42817
42818 2009-08-12  Bruno Haible  <bruno@clisp.org>
42819
42820         Ensure that getopt() gets declared by <unistd.h>.
42821         * lib/unistd.in.h: Conditionally include getopt.h.
42822         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42823         Set GNULIB_UNISTD_H_GETOPT.
42824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42825         GNULIB_UNISTD_H_GETOPT.
42826         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42827
42828 2009-08-12  Bruno Haible  <bruno@clisp.org>
42829
42830         Clarify logic.
42831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42832         gl_replace_getopt instead of GETOPT_H.
42833
42834 2009-08-12  Bruno Haible  <bruno@clisp.org>
42835
42836         * m4/getopt.m4: Add comments.
42837
42838 2009-08-12  Bruno Haible  <bruno@clisp.org>
42839
42840         Disable multithread support by default on Cygwin 1.5.x.
42841         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42842         set gl_use_threads=no if not specified otherwise.
42843
42844 2009-08-11  Bruno Haible  <bruno@clisp.org>
42845
42846         Avoid compilation error on NetBSD 5.0.
42847         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42848         * tests/test-stdio.c: Likewise.
42849         * tests/test-stdlib.c: Likewise.
42850         * tests/test-string.c: Likewise.
42851         * tests/test-unistd.c: Likewise.
42852         Reported by Greg Troxel <gdt@ir.bbn.com>
42853         at <https://savannah.gnu.org/support/?106973>.
42854
42855 2009-08-11  Bruno Haible  <bruno@clisp.org>
42856
42857         * modules/dup2-tests (Depends-on): Remove close.
42858
42859         Undo 2009-07-19 commit.
42860         * modules/acl-tests (Depends-on): Remove close.
42861         * modules/binary-io-tests (Depends-on): Likewise.
42862         * modules/closein-tests (Depends-on): Likewise.
42863         * modules/flock-tests (Depends-on): Likewise.
42864         * modules/fsync-tests (Depends-on): Likewise.
42865         * modules/lseek-tests (Depends-on): Likewise.
42866         * modules/pipe-tests (Depends-on): Likewise.
42867         * modules/posix_spawn-tests (Depends-on): Likewise.
42868         * modules/posix_spawnp-tests (Depends-on): Likewise.
42869         * modules/stat-time-tests (Depends-on): Likewise.
42870         * modules/yesno-tests (Depends-on): Likewise.
42871
42872 2009-08-10  Bruno Haible  <bruno@clisp.org>
42873
42874         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42875
42876 2009-08-10  Bruno Haible  <bruno@clisp.org>
42877
42878         Fix a gcc warning.
42879         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42880
42881 2009-08-10  Bruno Haible  <bruno@clisp.org>
42882
42883         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42884         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42885         not only the first time.
42886         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42887         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42888         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42889         is 1, not only the the first time.
42890
42891 2009-08-10  Bruno Haible  <bruno@clisp.org>
42892
42893         Make it possible to use module 'gethostname' without module 'close'.
42894         * lib/unistd.in.h (close): Evoke a link error only if
42895         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42897         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42898         * modules/unistd (Makefile.am): Substitute
42899         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42900         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42901         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42902         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42903         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42904         * modules/sys_ioctl (Makefile.am): Substitute
42905         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42906         * modules/socket (configure.ac): On native Windows, set
42907         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42908         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42909         Reported by Sam Steingold <sds@gnu.org>.
42910
42911 2009-08-10  Bruno Haible  <bruno@clisp.org>
42912
42913         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42914         * modules/ioctl (configure.ac): Likewise.
42915
42916 2009-08-10  Bruno Haible  <bruno@clisp.org>
42917
42918         Avoid collision between gnulib wrapper and libintl wrapper.
42919         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42920         already defined in intl/printf.c.
42921         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42922         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42923
42924 2009-08-09  Bruno Haible  <bruno@clisp.org>
42925
42926         Make <sys/select.h> really self-contained, also on Solaris 10.
42927         * lib/sys_select.in.h: Include <string.h>.
42928         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42929         Solaris 10 problem.
42930         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42931         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42932         Reported by Jim Meyering.
42933
42934 2009-08-09  Bruno Haible  <bruno@clisp.org>
42935
42936         Avoid warnings from 'aclocal' that are due to a use of macro name
42937         AM_XGETTEXT_OPTION that is not defined in automake.
42938         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42939         automake.
42940         * modules/error (configure.ac): Likewise.
42941         * modules/propername (configure.ac): Likewise.
42942         * modules/vasprintf (configure.ac): Likewise.
42943         * modules/verror (configure.ac): Likewise.
42944         * modules/xprintf (configure.ac): Likewise.
42945         * modules/xvasprintf (configure.ac): Likewise.
42946
42947 2009-08-08  Bruno Haible  <bruno@clisp.org>
42948
42949         Avoid compilation error in C++ mode.
42950         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42951         Reported by Sam Steingold <sds@gnu.org>.
42952
42953 2009-08-08  Bruno Haible  <bruno@clisp.org>
42954
42955         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42956         for the various Unix platforms.
42957         * doc/posix-headers/limits.texi: Update platforms list regarding
42958         HOST_NAME_MAX.
42959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42960
42961 2009-08-07  Jim Meyering  <meyering@redhat.com>
42962
42963         selinux-at: fix typo in a comment
42964         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42965         Spotted by Paolo Bonzini.
42966
42967         selinux-at: remove redundant m4 code, add documentation
42968         * modules/selinux-at (configure.ac): Remove redundant code.
42969         LIB_SELINUX is already set via the dependent module, selinux-h.
42970         (Include): Add quotes around selinux-at.h.
42971         * lib/selinux-at.h: Add documentation.
42972         Reported by Bruno Haible in
42973         http://marc.info/?l=gnulib-bug&m=124958988300749
42974
42975 2009-08-07  Bruno Haible  <bruno@clisp.org>
42976
42977         Avoid link error on MacOS X 10.3 and 10.4.
42978         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42979         on non-ELF systems.
42980         * lib/argp-pv.c (argp_program_version): Likewise.
42981         Reported by Simon Josefsson.
42982
42983 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42984
42985         * tests/test-version-etc.sh: Use $EXEEXT.
42986
42987 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42988
42989         update-copyright: update documentation to point to maint.mk
42990         * build-aux/update-copyright: Here.
42991
42992 2009-08-06  Jim Meyering  <meyering@redhat.com>
42993
42994         maint.mk: support update-copyright-local
42995         * top/maint.mk (update-copyright-local): Define place-holder.
42996         (update-copyright): Depend on $(update-copyright-local).
42997
42998 2009-08-06  Jim Meyering  <meyering@redhat.com>
42999
43000         selinux-at: new module
43001         Initially written for coreutils, this module will soon be
43002         used by findutils, too.
43003         * MODULES.html.sh [Misc]: Add selinux-at.
43004         * lib/selinux-at.h: New file, from coreutils.
43005         * lib/selinux-at.c: Likewise.
43006         * modules/selinux-at: Likewise.
43007         (License): Change from LGPL to GPL, since it depends
43008         on the GPL'd openat module.
43009
43010         doc: update README
43011         * README: Remove references to cogito.
43012         Remove cvs-repo-updating instructions from 2007.
43013         Don't imply that CVS is better if you have limited disk space.
43014
43015 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43016
43017         update-copyright: support C-style comments
43018         * build-aux/update-copyright: Implement and document.
43019         * tests/test-update-copyright.sh: Test.
43020
43021 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43022
43023         update-copyright: support omitted "(C)"
43024         * build-aux/update-copyright: Implement and document.  Also,
43025         allow variable whitespace before "(C)".
43026         * tests/test-update-copyright.sh: Test.
43027
43028 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43029
43030         update-copyright: don't trip on non-FSF copyright statements
43031         * build-aux/update-copyright: Fix so that the first correctly
43032         formatted FSF copyright statement is recognized no matter what
43033         appears before it.  Update documentation.
43034         * tests/test-update-copyright.sh: Test that.
43035
43036 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43037
43038         update-copyright: clean up code a little
43039         * build-aux/update-copyright: Append "_re" to the name of any
43040         variable holding a regular expression.
43041         Replace "old" and "new" with "stmt" in variable names.
43042         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43043         handled correctly.
43044         Format code more consistently.
43045
43046 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43047
43048         update-copyright-tests: improve portability
43049         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43050         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43051
43052 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43053
43054         update-copyright: support @copyright{} and &copy;
43055         * build-aux/update-copyright: Implement and document.
43056         * tests/test-update-copyright.sh: Test.
43057
43058 2009-08-04  Jim Meyering  <meyering@redhat.com>
43059
43060         update-copyright-tests: correctly test EOL=\r\n handling
43061         * tests/test-update-copyright.sh: Put \r at the end of some lines
43062         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43063
43064         maint.mk: make update-copyright exclusion list more configurable
43065         * top/maint.mk (update-copyright): Default to excluding COPYING,
43066         but allow an override, in case someone does want to update that file.
43067
43068         maint.mk: don't update copyright date in COPYING
43069         * top/maint.mk (update-copyright): Exclude COPYING.
43070
43071         maint.mk: add a copyright-updating rule
43072         * top/maint.mk (update-copyright): New rule.
43073         Derived from coreutils/Makefile.am.
43074
43075         update-copyright: rename some variables
43076         * build-aux/update-copyright: Rename a few variables for clarity.
43077         Tweak syntax.  List Joel E. Denny as coauthor.
43078
43079 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43080
43081         update-copyright: fix bug for 2-digit last year and add tests
43082         * build-aux/update-copyright: Fix bug.
43083         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43084         specified.
43085         * modules/update-copyright-tests: New
43086         * tests/test-update-copyright.sh: New.
43087
43088 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43089
43090         update-copyright: handle leading tabs in line prefix
43091         * build-aux/update-copyright: Count leading tabs as 8 spaces
43092         when computing margin.  This helps with the formatting of
43093         ChangeLogs, for example.
43094         Fix documentation a little.
43095
43096 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43097
43098         update-copyright: support EOL=\r\n
43099         * build-aux/update-copyright: Implement that.
43100
43101 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43102
43103         update-copyright: automatically format copyright statements
43104         * build-aux/update-copyright: Implement that.
43105         Also, be a little more predictable and safer by always failing
43106         when the full copyright format is not perfectly recognized as an
43107         unbroken whole.  Discussed at
43108         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43109         Rewrite documentation.
43110
43111 2009-08-03  Bruno Haible  <bruno@clisp.org>
43112
43113         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43114
43115 2009-08-02  Bruno Haible  <bruno@clisp.org>
43116
43117         Tests for module 'uname'.
43118         * modules/uname-tests: New file.
43119         * tests/test-uname.c: New file.
43120
43121         New module 'uname'.
43122         * lib/uname.c: New file.
43123         * m4/uname.m4: New file.
43124         * modules/uname: New file.
43125         * doc/posix-functions/uname.texi: Mention the new module.
43126
43127 2009-08-02  Bruno Haible  <bruno@clisp.org>
43128
43129         Tests for module 'sys_utsname'.
43130         * modules/sys_utsname-tests: New file.
43131         * tests/test-sys_utsname.c: New file.
43132
43133         New module 'sys_utsname'.
43134         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43135         * m4/sys_utsname_h.m4: New file.
43136         * modules/sys_utsname: New file.
43137         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43138
43139 2009-08-02  Bruno Haible  <bruno@clisp.org>
43140
43141         Implicitly initialize the sockets library.
43142         * lib/gethostname.c: Include sockets.h.
43143         (rpl_gethostname): Invoke gl_sockets_startup.
43144         * lib/socket.c: Include sockets.h.
43145         (rpl_socket): Invoke gl_sockets_startup.
43146         * modules/gethostname (Depends-on): Add sockets.
43147         * modules/socket (Depends-on): Likewise.
43148         * tests/test-poll.c: Don't include sockets.h.
43149         (main): Don't invoke gl_sockets_startup.
43150         * tests/test-select.c: Don't include sockets.h.
43151         (main): Don't invoke gl_sockets_startup.
43152
43153 2009-08-02  Bruno Haible  <bruno@clisp.org>
43154
43155         Allow multiple calls to gl_sockets_startup.
43156         * lib/sockets.c (initialized_sockets_version): New variable.
43157         (gl_sockets_startup): Do nothing if already called for this or a higher
43158         version.
43159         (gl_sockets_cleanup): Reset initialized_sockets_version.
43160
43161 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43162
43163         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43164         different project/version.
43165
43166 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43167             Bruno Haible  <bruno@clisp.org>
43168
43169         Tests for module 'pipe-filter-gi'.
43170         * modules/pipe-filter-gi-tests: New file.
43171         * tests/test-pipe-filter-gi1.sh: New file.
43172         * tests/test-pipe-filter-gi1.c: New file.
43173         * tests/test-pipe-filter-gi2.sh: New file.
43174         * tests/test-pipe-filter-gi2-main.c: New file.
43175         * tests/test-pipe-filter-gi2-child.c: New file.
43176
43177         New module 'pipe-filter-gi'.
43178         * lib/pipe-filter-gi.c: New file.
43179         * modules/pipe-filter-gi: New file.
43180
43181 2009-08-02  Bruno Haible  <bruno@clisp.org>
43182             Paolo Bonzini  <bonzini@gnu.org>
43183
43184         Tests for module 'pipe-filter-ii'.
43185         * modules/pipe-filter-ii-tests: New file.
43186         * tests/test-pipe-filter-ii1.sh: New file.
43187         * tests/test-pipe-filter-ii1.c: New file.
43188         * tests/test-pipe-filter-ii2.sh: New file.
43189         * tests/test-pipe-filter-ii2-main.c: New file.
43190         * tests/test-pipe-filter-ii2-child.c: New file.
43191
43192         New module 'pipe-filter-ii'.
43193         * lib/pipe-filter.h: New file.
43194         * lib/pipe-filter-ii.c: New file.
43195         * lib/pipe-filter-aux.h: New file.
43196         * modules/pipe-filter-ii: New file.
43197
43198 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43199
43200         * lib/gc-libgcrypt.c: Change copyright to FSF.
43201         * lib/gc-gnulib.c: Likewise.
43202
43203 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43204
43205         * lib/gethostname.c: Include limits.h.
43206
43207 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43208             Bruno Haible  <bruno@clisp.org>
43209
43210         Ensure HOST_NAME_MAX as part of the gethostname module.
43211         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43212         define also HOST_NAME_MAX.
43213         * tests/test-gethostname.c: Include <limits.h>.
43214         (main): Check also HOST_NAME_MAX.
43215         * doc/posix-headers/limits.texi: Document the mingw problem.
43216
43217 2009-08-02  Bruno Haible  <bruno@clisp.org>
43218
43219         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43220         Add comments.
43221
43222 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43223
43224         * lib/gethostname.c: Add Windows wrapper.
43225         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43226         * modules/gethostname: Depend on sys_socket & errno, for also
43227         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43228         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43229
43230 2009-07-31  Jim Meyering  <meyering@redhat.com>
43231
43232         getloadavg: fix symbol name in comment
43233         * lib/getloadavg.c: Correct a typo I introduced when adding
43234         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43235         Matt Kraai spotted the problem.
43236
43237 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43238
43239         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43240         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43241         code also if ! defined N_NAME_POINTER.
43242         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43243         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43244         but the n_name member is a 12-byte array.
43245
43246 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43247
43248         update-copyright: generalize comment handling
43249         * build-aux/update-copyright: Handle copyright statements
43250         within more comment styles.
43251         Document usage.
43252         Report any file with an external copyright holder or parse failure.
43253
43254 2009-07-29  Jim Meyering  <meyering@redhat.com>
43255
43256         mktime: correct setting of REPLACE_MKTIME
43257         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43258
43259         update-copyright: new module
43260         * modules/update-copyright: New file.
43261         * build-aux/update-copyright: New file.
43262         * MODULES.html.sh (maint+release support): Add update-copyright.
43263
43264 2009-07-27  Bruno Haible  <bruno@clisp.org>
43265
43266         Fix compilation error when <ctime> is used and mktime is replaced.
43267         * lib/time.in.h (mktime): New declaration.
43268         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43269         REPLACE_MKTIME instead of defining mktime in config.h.
43270         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43271         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43272         Reported by Ross McFarland <rwmcfa1@neces.com>.
43273
43274 2009-07-27  Bruno Haible  <bruno@clisp.org>
43275
43276         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43277         Reported by Matt Kraai <mkraai@beckman.com>.
43278
43279 2009-07-25  Jim Meyering  <meyering@redhat.com>
43280
43281         maint.mk: avoid warnings about missing files
43282         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43283         diagnostic when .prev-version does not exist.
43284         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43285         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43286         nonexistent cfg.mk.
43287         Suggestions from Simon Josefsson.
43288
43289 2009-07-25  Bruno Haible  <bruno@clisp.org>
43290
43291         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43292         defined as macros. Needed on QNX 6.4.1.
43293         Reported by Matt Kraai <mkraai@beckman.com>.
43294
43295 2009-07-23  Jim Meyering  <meyering@redhat.com>
43296
43297         maint.mk: invoke "make dist" with a working value of XZ_OPT
43298         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43299
43300 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43301
43302         Make fseeko.c compile on QNX.
43303         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43304
43305 2009-07-22  Peter Simons  <simons@cryp.to>
43306
43307         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43308         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43309         * lib/md4.h: Likewise.
43310         * lib/md5.h: Likewise.
43311         * lib/sha1.h: Likewise.
43312         * lib/sha256.h: Likewise.
43313         * lib/sha512.h: Likewise.
43314
43315         tests-sha1: don't assign literal string to 'char *' variable
43316         * tests/test-sha1.c (main): Declare locals with "const" to match
43317         attributes of the right hand side.
43318
43319 2009-07-21  Eric Blake  <ebb9@byu.net>
43320
43321         dup2: fix more mingw problems
43322         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43323         fd to itself.
43324         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43325         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43326         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43327         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43328         care of mingw bugs.
43329
43330 2009-07-21  Jim Meyering  <meyering@redhat.com>
43331
43332         vc-list-files: avoid failure when /bin/sh is dash
43333         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43334         On some Debian based systems, /bin/sh is a symlink to dash, and running
43335         this command would omit the "/" following each 'tests' prefix:
43336           dash -x build-aux/vc-list-files -C . tests
43337         That is because bash and dash work differently:
43338           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43339           bash ok
43340           dash odd
43341
43342 2009-07-21  Eric Blake  <ebb9@byu.net>
43343
43344         dup2-tests: test previous patch
43345         * modules/dup2-tests: New file.
43346         * tests/test-dup2.c: Likewise.
43347         * tests/test-open.c (main): Avoid unspecified behavior.
43348         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43349         test.
43350
43351         dup2: work around mingw and cygwin 1.5 bug
43352         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43354         * modules/unistd (Makefile.am): Substitute it.
43355         * lib/unistd.in.h (dup2): Declare the replacement.
43356         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43357         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43358         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43359         * modules/execute (Depends-on): Add dup2.
43360         * modules/fseterr (Depends-on): Likewise.
43361         * modules/pipe (Depends-on): Likewise.
43362         * modules/posix_spawn-internal (Depends-on): Likewise.
43363
43364 2009-07-21  Bruno Haible  <bruno@clisp.org>
43365
43366         * modules/.gitattributes: New file.
43367
43368 2009-07-20  Bruno Haible  <bruno@clisp.org>
43369
43370         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43371         (main): Use it.
43372
43373 2009-07-20  Eric Blake  <ebb9@byu.net>
43374
43375         test-pipe: make a bit more robust.
43376         * tests/test-pipe.c (myerr): Allow error messages regardless of
43377         what we do to stderr.
43378         (test_pipe): Rearrange to avoid deadlock.
43379         (child_main): Try a larger read, to ensure we avoided deadlock.
43380         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43381         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43382         if misused.
43383
43384 2009-07-19  Jim Meyering  <meyering@redhat.com>
43385
43386         fts: avoid false-positive cycle-detection
43387         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43388         for each new command line argument.
43389
43390 2009-07-19  Bruno Haible  <bruno@clisp.org>
43391
43392         Fix build error on mingw with the modules sys_select and unistd.
43393         * modules/acl-tests (Depends-on): Add close.
43394         * modules/binary-io-tests (Depends-on): Likewise.
43395         * modules/closein-tests (Depends-on): Likewise.
43396         * modules/flock-tests (Depends-on): Likewise.
43397         * modules/fsync-tests (Depends-on): Likewise.
43398         * modules/lseek-tests (Depends-on): Likewise.
43399         * modules/pipe-tests (Depends-on): Likewise.
43400         * modules/posix_spawn-tests (Depends-on): Likewise.
43401         * modules/posix_spawnp-tests (Depends-on): Likewise.
43402         * modules/stat-time-tests (Depends-on): Likewise.
43403         * modules/yesno-tests (Depends-on): Likewise.
43404
43405 2009-07-19  Bruno Haible  <bruno@clisp.org>
43406
43407         Unify conditionals.
43408         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43409         macros, not at the compiler macros.
43410         * lib/pipe.c: Likewise.
43411         * lib/execute.c: Likewise.
43412         * lib/spawni.c: Likewise.
43413
43414 2009-07-19  Bruno Haible  <bruno@clisp.org>
43415
43416         Fix handling of closed stdin/stdout/stderr on mingw.
43417         * lib/w32spawn.h: Include unistd.h.
43418         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43419         file descriptor with O_NOINHERIT flag.
43420         (fd_safer_noinherit): New function, based on fd-safer.c.
43421         (dup_safer_noinherit): New function, based on dup-safer.c.
43422         (undup_safer_noinherit): New function.
43423         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43424         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43425         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43426         instead of fd_safer.
43427         * tests/test-pipe.c: Include <windows.h>.
43428         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43429         result.
43430
43431         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43432         from main.
43433         (test_pipe): Pass an extra argument for disambiguation.
43434         (main): Invoke parent_main or child_main.
43435
43436         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43437         consistently.
43438
43439 2009-07-18  Eric Blake  <ebb9@byu.net>
43440
43441         test-pipe: fix mingw build
43442         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43443
43444 2009-07-18  Bruno Haible  <bruno@clisp.org>
43445
43446         * modules/pipe-tests (Makefile.am): Fix typo.
43447
43448 2009-07-18  Eric Blake  <ebb9@byu.net>
43449
43450         error: fix mingw build
43451         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43452         Reported by Bruno Haible.
43453
43454         error: avoid undefined use of stdout
43455         * lib/error.c (error, error_at_line): Check that fd 1 is open
43456         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43457         is handling faults and the close_stdout module wants to report the
43458         detection of closed stdout as an error.
43459
43460 2009-07-17  Eric Blake  <ebb9@byu.net>
43461
43462         pipe: be robust in face of closed fds
43463         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43464         should cause child to misbehave.
43465         * modules/pipe-tests: New module.
43466         * tests/test-pipe.c: New file.
43467         * tests/test-pipe.sh: New file.
43468         Reported by Akim Demaille.
43469
43470 2009-07-14  Bruno Haible  <bruno@clisp.org>
43471
43472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43473         Reported by anonymous kc.
43474
43475 2009-07-07  Jim Meyering  <meyering@redhat.com>
43476
43477         maint.mk: don't look for translatable strings in *.m4 or *.mk
43478         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43479         when searching for translatable strings.
43480
43481 2009-07-05  Jim Meyering  <meyering@redhat.com>
43482
43483         remove superfluous parentheses in STREQ definition
43484         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43485         * lib/getugroups.c (STREQ): Likewise.
43486         * lib/fnmatch.c (STREQ): Likewise.
43487         Spotted by Bruno Haible.
43488
43489 2009-07-04  Jim Meyering  <meyering@redhat.com>
43490
43491         argv-iter: new module
43492         * MODULES.html.sh: Add argv-iter.
43493         * lib/argv-iter.c, lib/argv-iter.h: New files.
43494         * modules/argv-iter: New file.
43495         * modules/argv-iter-tests: New file.
43496         * tests/test-argv-iter.c: Test it.
43497
43498 2009-07-04  Bruno Haible  <bruno@clisp.org>
43499
43500         Fix assertion.
43501         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43502         contains more exact copies of a given entry than file2, leave the extra
43503         copies unpaired rather than aborting.
43504         Reported by Eric Blake.
43505
43506 2009-07-02  Bruno Haible  <bruno@clisp.org>
43507
43508         Speedup git-merge-changelog for git cherry-pick.
43509         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43510         (entries_mapping_get): New function, extracted from compute_mapping.
43511         (entries_mapping_reverse_get): New function.
43512         (compute_mapping): Add a 'full' argument. Return the result in a
43513         'struct entries_mapping'.
43514         (main): Update. Access the mappings through entries_mapping_get.
43515         Reported by Eric Blake.
43516
43517 2009-07-02  Bruno Haible  <bruno@clisp.org>
43518
43519         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43520         best_i.
43521
43522 2009-07-02  Bruno Haible  <bruno@clisp.org>
43523
43524         Speed up approximate search for matching ChangeLog entries.
43525         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43526         argument. Call fstrcmp_bounded instead of fstrcmp.
43527         (compute_mapping, try_split_merged_entry, main): Update callers.
43528
43529 2009-07-02  Bruno Haible  <bruno@clisp.org>
43530
43531         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43532
43533 2009-06-30  Bruno Haible  <bruno@clisp.org>
43534
43535         Reduce the number of uc_is_cased calls.
43536         * lib/unicase.h (casing_suffix_context_t): Add
43537         'first_char_except_ignorable' field.
43538         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43539         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43540         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43541         Update initializer.
43542         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43543         case-ignorable characters.
43544         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43545         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43546         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43547         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43548         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43549
43550 2009-06-30  Bruno Haible  <bruno@clisp.org>
43551
43552         Tests for module 'unicase/ignorable'.
43553         * modules/unicase/ignorable-tests: New file.
43554         * tests/unicase/test-ignorable.c: New file, generated by
43555         gen-uni-tables.
43556
43557         Tests for module 'unicase/cased'.
43558         * modules/unicase/cased-tests: New file.
43559         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43560         * tests/unicase/test-predicate-part1.h: New file, derived from
43561         tests/unictype/test-predicate-part1.h.
43562         * tests/unicase/test-predicate-part2.h: New file, same as
43563         tests/unictype/test-predicate-part2.h.
43564
43565         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43566         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43567         (output_casing_properties): New function.
43568         (main): Call it.
43569         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43570         * lib/unicase/cased.c: Include unictype/bitmap.h.
43571         (uc_is_cased): Define through a bitmap lookup.
43572         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43573         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43574         (uc_is_case_ignorable): Define through a bitmap lookup.
43575         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43576         lib/unictype/bitmap.h.
43577         (Depends-on): Add inline. Clean up.
43578         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43579         lib/unictype/bitmap.h.
43580         (Depends-on): Add inline. Clean up.
43581         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43582         recognition.
43583         * tests/unicase/test-u16-tolower.c (main): Likewise.
43584         * tests/unicase/test-u32-tolower.c (main): Likewise.
43585
43586 2009-06-30  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43589         * lib/unicase/u16-casemap.c: Likewise.
43590         * lib/unicase/u32-casemap.c: Likewise.
43591
43592 2009-06-29  Bruno Haible  <bruno@clisp.org>
43593
43594         Define u32_casefold as a wrapper around u32_ct_casefold.
43595         * lib/unicase/u32-casefold.c: Update.
43596         * modules/unicase/u32-casefold (Depends-on): Add
43597         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43598         unicase/empty-suffix-context. Clean up.
43599
43600         Define u16_casefold as a wrapper around u16_ct_casefold.
43601         * lib/unicase/u16-casefold.c: Update.
43602         * modules/unicase/u16-casefold (Depends-on): Add
43603         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43604         unicase/empty-suffix-context. Clean up.
43605
43606         Define u8_casefold as a wrapper around u8_ct_casefold.
43607         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43608         * lib/unicase/u8-casefold.c: Update.
43609         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43610         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43611
43612         Define u32_totitle as a wrapper around u32_ct_totitle.
43613         * lib/unicase/u32-totitle.c: Update.
43614         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43615         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43616
43617         Define u16_totitle as a wrapper around u16_ct_totitle.
43618         * lib/unicase/u16-totitle.c: Update.
43619         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43620         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43621
43622         Define u8_totitle as a wrapper around u8_ct_totitle.
43623         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43624         functions.
43625         (FUNC): Delegate to U_CT_TOTITLE.
43626         * lib/unicase/u8-totitle.c: Update.
43627         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43628         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43629
43630         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43631         invocation.
43632         * modules/unicase/u32-tolower (Depends-on): Add
43633         unicase/empty-prefix-context, unicase/empty-suffix-context.
43634
43635         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43636         invocation.
43637         * modules/unicase/u16-tolower (Depends-on): Add
43638         unicase/empty-prefix-context, unicase/empty-suffix-context.
43639
43640         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43641         * modules/unicase/u8-tolower (Depends-on): Add
43642         unicase/empty-prefix-context, unicase/empty-suffix-context.
43643
43644         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43645         invocation.
43646         * modules/unicase/u32-toupper (Depends-on): Add
43647         unicase/empty-prefix-context, unicase/empty-suffix-context.
43648
43649         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43650         invocation.
43651         * modules/unicase/u16-toupper (Depends-on): Add
43652         unicase/empty-prefix-context, unicase/empty-suffix-context.
43653
43654         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43655         * modules/unicase/u8-toupper (Depends-on): Add
43656         unicase/empty-prefix-context, unicase/empty-suffix-context.
43657
43658         New module 'unicase/u32-ct-casefold'.
43659         * lib/unicase/u32-ct-casefold.c: New file.
43660         * modules/unicase/u32-ct-casefold: New file.
43661
43662         New module 'unicase/u16-ct-casefold'.
43663         * lib/unicase/u16-ct-casefold.c: New file.
43664         * modules/unicase/u16-ct-casefold: New file.
43665
43666         New module 'unicase/u8-ct-casefold'.
43667         * lib/unicase/u8-ct-casefold.c: New file.
43668         * lib/unicase/u-ct-casefold.h: New file, derived from
43669         lib/unicase/u-casefold.h.
43670         * modules/unicase/u8-ct-casefold: New file.
43671
43672         New module 'unicase/u32-ct-totitle'.
43673         * lib/unicase/u32-ct-totitle.c: New file.
43674         * modules/unicase/u32-ct-totitle: New file.
43675
43676         New module 'unicase/u16-ct-totitle'.
43677         * lib/unicase/u16-ct-totitle.c: New file.
43678         * modules/unicase/u16-ct-totitle: New file.
43679
43680         New module 'unicase/u8-ct-totitle'.
43681         * lib/unicase/u8-ct-totitle.c: New file.
43682         * lib/unicase/u-ct-totitle.h: New file, derived from
43683         lib/unicase/u-totitle.h.
43684         * modules/unicase/u8-ct-totitle: New file.
43685
43686         New module 'unicase/u32-ct-tolower'.
43687         * lib/unicase/u32-ct-tolower.c: New file.
43688         * modules/unicase/u32-ct-tolower: New file.
43689
43690         New module 'unicase/u16-ct-tolower'.
43691         * lib/unicase/u16-ct-tolower.c: New file.
43692         * modules/unicase/u16-ct-tolower: New file.
43693
43694         New module 'unicase/u8-ct-tolower'.
43695         * lib/unicase/u8-ct-tolower.c: New file.
43696         * modules/unicase/u8-ct-tolower: New file.
43697
43698         New module 'unicase/u32-ct-toupper'.
43699         * lib/unicase/u32-ct-toupper.c: New file.
43700         * modules/unicase/u32-ct-toupper: New file.
43701
43702         New module 'unicase/u16-ct-toupper'.
43703         * lib/unicase/u16-ct-toupper.c: New file.
43704         * modules/unicase/u16-ct-toupper: New file.
43705
43706         New module 'unicase/u8-ct-toupper'.
43707         * lib/unicase/u8-ct-toupper.c: New file.
43708         * modules/unicase/u8-ct-toupper: New file.
43709
43710         Add context arguments to u*_casemap functions.
43711         * lib/unicase/unicasemap.h: Include unicase.h.
43712         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43713         suffix_context arguments.
43714         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43715         functions.
43716         (FUNC): Add prefix_context and suffix_context arguments. Use
43717         uc_is_cased and uc_is_case_ignorable.
43718         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43719         * lib/unicase/u16-casemap.c: Likewise.
43720         * lib/unicase/u32-casemap.c: Likewise.
43721         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43722         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43723         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43724         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43725         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43726         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43727
43728         New module 'unicase/u32-suffix-context'.
43729         * lib/unicase/u32-suffix-context.c: New file.
43730         * modules/unicase/u32-suffix-context: New file.
43731
43732         New module 'unicase/u16-suffix-context'.
43733         * lib/unicase/u16-suffix-context.c: New file.
43734         * modules/unicase/u16-suffix-context: New file.
43735
43736         New module 'unicase/u8-suffix-context'.
43737         * lib/unicase/u8-suffix-context.c: New file.
43738         * lib/unicase/u-suffix-context.h: New file.
43739         * modules/unicase/u8-suffix-context: New file.
43740
43741         New module 'unicase/empty-suffix-context'.
43742         * lib/unicase/empty-suffix-context.c: New file.
43743         * modules/unicase/empty-suffix-context: New file.
43744
43745         New module 'unicase/u32-prefix-context'.
43746         * lib/unicase/u32-prefix-context.c: New file.
43747         * modules/unicase/u32-prefix-context: New file.
43748
43749         New module 'unicase/u16-prefix-context'.
43750         * lib/unicase/u16-prefix-context.c: New file.
43751         * modules/unicase/u16-prefix-context: New file.
43752
43753         New module 'unicase/u8-prefix-context'.
43754         * lib/unicase/u8-prefix-context.c: New file.
43755         * lib/unicase/u-prefix-context.h: New file.
43756         * lib/unicase/context.h: New file.
43757         * modules/unicase/u8-prefix-context: New file.
43758
43759         New module 'unicase/empty-prefix-context'.
43760         * lib/unicase/empty-prefix-context.c: New file.
43761         * modules/unicase/empty-prefix-context: New file.
43762
43763         New module 'unicase/ignorable'.
43764         * lib/unicase/ignorable.c: New file.
43765         * modules/unicase/ignorable: New file.
43766
43767         New module 'unicase/cased'.
43768         * lib/unicase/caseprop.h: New file.
43769         * lib/unicase/cased.c: New file.
43770         * modules/unicase/cased: New file.
43771
43772         New functions for case mapping of substrings.
43773         * lib/unicase.h (casing_prefix_context_t): New type.
43774         (unicase_empty_prefix_context): New variable.
43775         (u8_casing_prefix_context, u16_casing_prefix_context,
43776         u32_casing_prefix_context, u8_casing_prefixes_context,
43777         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43778         declarations.
43779         (casing_suffix_context_t): New type.
43780         (unicase_empty_suffix_context): New variable.
43781         (u8_casing_suffix_context, u16_casing_suffix_context,
43782         u32_casing_suffix_context, u8_casing_suffixes_context,
43783         u16_casing_suffixes_context, u32_casing_suffixes_context,
43784         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43785         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43786         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43787         declarations.
43788
43789 2009-06-28  Jim Meyering  <meyering@redhat.com>
43790
43791         boostrap: indent only with spaces
43792         * build-aux/bootstrap: Indent only with spaces, never TABs.
43793
43794         bootstrap: split long lines
43795         * build-aux/bootstrap: Keep line length < 80.
43796
43797         bootstrap: sync from coreutils
43798         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43799         just as autoreconf does.  Verify a list of prerequisite
43800         package-name,version-number pairs if defined in bootstrap.conf.
43801         Refer to README-prereq, if prerequisites are not satisfied.
43802
43803 2009-06-27  Eric Blake  <ebb9@byu.net>
43804
43805         tests: add test for bogus NULL definition
43806         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43807         * tests/test-stdlib.c: Likewise.
43808         * tests/test-string.c: Likewise.
43809         * tests/test-locale.c: Likewise.
43810         * tests/test-unistd.c: Likewise.
43811         * modules/stdio-tests (Depends-on): Add verify.
43812         * modules/stdlib-tests (Depends-on): Likewise.
43813         * modules/string-tests (Depends-on): Likewise.
43814         * modules/locale-tests (Depends-on): Likewise.
43815         * modules/unistd-tests (Depends-on): Likewise.
43816
43817 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43818
43819         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43820         self-explaining comment.
43821         * m4/selinux-selinux-h: Update serial.
43822         (gl_LIBSELINUX): New macro, adding a warning for missing development
43823         packages to code extracted from...
43824         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43825         Add warning for missing development packages here, too.
43826
43827 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43828
43829         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43830
43831 2009-06-25  Eric Blake  <ebb9@byu.net>
43832
43833         version-etc: fix regression
43834         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43835         gcc.
43836         (version_etc): Use it, to catch bugs with trailing NULL.
43837         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43838         (version_etc_va): Fix logic bug.
43839         * modules/version-etc-tests: Add test.
43840         * tests/test-version-etc.c: New file.
43841         * tests/test-version-etc.sh: Likewise.
43842
43843 2009-06-25  Sam Steingold  <sds@gnu.org>
43844
43845         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43846         mbtowc declaration.
43847
43848 2009-06-25  Eric Blake  <ebb9@byu.net>
43849
43850         fpurge: migrate into <stdio.h>
43851         * lib/fpurge.h: Delete...
43852         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43853         * lib/fpurge.c (fpurge): Change declaring header.
43854         * modules/fpurge (Files): Drop deleted file.
43855         (Depends-on): Add stdio.
43856         (configure.ac): Set witness.
43857         * modules/stdio (Makefile.am): Support fpurge macros.
43858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43859         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43860         * lib/fflush.c: Update client.
43861         * tests/test-fpurge.c: Likewise.
43862         * NEWS: Mention the change.
43863
43864 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43865
43866         * lib/argp-version-etc.c (program_authors): Add const
43867         qualifier.
43868         * lib/version-etc.c: Fix typos in the comments.
43869         * modules/argp-version-etc: Depends on version-etc.
43870
43871 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43872
43873         argp-version-etc: new module.
43874
43875         * lib/argp-version-etc.c: New file.
43876         * lib/argp-version-etc.h: New file.
43877         * modules/argp-version-etc: New file.
43878         * modules/argp-version-etc-tests: New file.
43879         * tests/test-argp-version-etc.c: New test.
43880         * tests/test-argp-version-etc-1.sh: New test.
43881
43882 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43883
43884         Provide additional interfaces and documentation for version-etc
43885         module.
43886
43887         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43888         interfaces.
43889         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43890         prototypes.
43891
43892 2009-06-24  Bruno Haible  <bruno@clisp.org>
43893
43894         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43895         HAVE_LIB${NAME} macro.
43896         Reported by Sam Steingold <sds@gnu.org>.
43897
43898 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43899
43900         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43901         needed.
43902
43903 2009-06-21  Bruno Haible  <bruno@clisp.org>
43904
43905         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43906         work.
43907         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43908         together with LIB${NAME}, LTLIB${NAME}.
43909         Reported by Sam Steingold <sds@gnu.org>.
43910
43911 2009-06-20  Jim Meyering  <meyering@redhat.com>
43912
43913         tests: make sc_require_test_exit_idiom more generic
43914         * top/maint.mk (Exit_witness_file): New overridable variable.
43915         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43916         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43917
43918 2009-06-19  Jim Meyering  <meyering@redhat.com>
43919
43920         hash: reverse order of src/dst parameters in an internal interface
43921         * lib/hash.c (transfer_entries): Reverse order of parameters to
43922         put DST before SRC.  Adjust callers.
43923
43924         tests: test-hash: avoid wholesale duplication
43925         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43926         Instead, use a loop and add a single conditional.
43927
43928         tests: test-hash: allow seed selection via a command line argument
43929         * tests/test-hash.c (get_seed): New function.
43930         (main): Use it.
43931
43932 2009-06-19  Eric Blake  <ebb9@byu.net>
43933
43934         hash: avoid memory leak on allocation failure
43935         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43936         failure.  Factor repeated algorithm...
43937         (transfer_entries): ...into new helper routine.
43938         (hash_delete): React to hash_rehash return value.
43939
43940         hash: reduce memory pressure in hash_rehash no-op case
43941         * lib/hash.c (next_prime): Avoid overflow.
43942         (hash_initialize): Factor bucket size computation...
43943         (compute_bucket_size): ...into new helper function.
43944         (hash_rehash): Use new function and open coding to reduce memory
43945         pressure, and avoid a memory leak in USE_OBSTACK code.
43946         Reported by Jim Meyering.
43947
43948 2009-06-18  Eric Blake  <ebb9@byu.net>
43949
43950         hash: make rotation more obvious
43951         * modules/hash (Depends-on): Add bitrotate and stdint.
43952         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43953         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43954         (SIZE_MAX): Rely on headers for definition.
43955         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43956         (raw_hasher): Use rotr_sz.
43957         Suggested by Jim Meyering.
43958
43959         hash: fix memory leak in last patch
43960         * lib/hash.c (hash_rehash): Avoid memory leak.
43961
43962         hash: avoid no-op rehashing
43963         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43964
43965         hash: provide default callback functions
43966         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43967         (hash_initialize): Use them as defaults.
43968         * tests/test-hash.c (main): Test this.
43969
43970         hash: minor optimization
43971         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43972         when possible.
43973         (hash_initialize): Document this promise.
43974         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43975         * tests/test-hash.c (hash_compare_strings): Test this.
43976
43977 2009-06-18  Bruno Haible  <bruno@clisp.org>
43978
43979         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43980         going to be replaced anyway.
43981
43982 2009-06-18  Bruno Haible  <bruno@clisp.org>
43983
43984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43985         in one place.
43986         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43987         be replaced anyway.
43988
43989 2009-06-18  Eric Blake  <ebb9@byu.net>
43990
43991         hash: check for resize before insertion
43992         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43993         threshold before insertion, so that a pathological hash_rehash
43994         that fills every bucket can still trigger another rehash.
43995
43996 2009-06-18  Jim Meyering  <meyering@redhat.com>
43997
43998         hash-tests: add a loop around the small tests
43999         * tests/test-hash.c (main): Repeat small tests with selected
44000         small initial table sizes.
44001
44002 2009-06-17  Eric Blake  <ebb9@byu.net>
44003
44004         hash: minor cleanups
44005         * lib/hash.h (hash_entry): Make opaque, by moving...
44006         * lib/hash.c (hash_entry): ...here.
44007         (hash_insert): Clarify restrictions on what can be inserted.
44008         (hash_get_next): Clarify when it is safe to remove an element
44009         during traversal.
44010         (check_tuning): Skip verification when tuning is known safe.
44011         (hash_initialize): Clarify restrictions on tuning.
44012
44013 2009-06-17  Jim Meyering  <jim@meyering.net>
44014         and Eric Blake  <ebb9@byu.net>
44015
44016         hash-tests: new module
44017         * modules/hash-tests: New file.
44018         * tests/test-hash.c: New file.
44019
44020 2009-06-17  Eric Blake  <ebb9@byu.net>
44021
44022         strstr-simple: document new module
44023         * MODULES.html.sh: Document new module.
44024
44025         strstr, strcasestr: replace on platforms with broken memchr
44026         * modules/strstr: Split into...
44027         * modules/strstr-simple: ...new module that does not care about
44028         performance, but does care about glibc bug.
44029         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44030         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44031         if platform memchr is broken, per Debian bug 521737.
44032         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44033         memchr.
44034         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44035         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44036         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44037         * modules/mountlist (Depends-on): Add strstr-simple.
44038         * modules/gen-uni-tables (Depends-on): Likewise.
44039         * modules/argz (Depends-on): Add strstr.
44040
44041 2009-06-17  Bruno Haible  <bruno@clisp.org>
44042
44043         * modules/posix_spawn-internal (Depends-on): Add errno.
44044
44045 2009-06-17  Bruno Haible  <bruno@clisp.org>
44046
44047         Define missing ESTALE on Interix 3.5.
44048         * lib/errno.in.h (ESTALE): Assign a value if missing.
44049         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44050         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44051         missing.
44052         * doc/posix-headers/errno.texi: Mention the Interix bug.
44053         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44054
44055 2009-06-15  Eric Blake  <ebb9@byu.net>
44056
44057         memchr, memchr2: add valgrind exception
44058         * lib/memchr.valgrind: New file.
44059         * lib/memchr2.valgrind: New file.
44060         * modules/memchr (Files): Distribute valgrind file.
44061         * modules/memchr2 (Files): Likewise.
44062
44063         docs: memchr is no longer obsolete
44064         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44065         * lib/string.in.h (memchr): Simplify logic.
44066
44067 2009-06-14  Jim Meyering  <meyering@redhat.com>
44068
44069         link-follow: fix the "checking..." message to not mention trailing slash
44070         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44071         never considered trailing slashes.
44072
44073 2009-06-14  Bruno Haible  <bruno@clisp.org>
44074
44075         * m4/memchr.m4: Mention also the bug on IA-64.
44076         * doc/posix-functions/memchr.texi: Likewise.
44077
44078 2009-06-12  Eric Blake  <ebb9@byu.net>
44079
44080         memchr: detect broken x86_64 and alpha implementations
44081         * modules/memchr-tests (Depends-on): Move mmap detection...
44082         * modules/memchr (Depends-on): ...here.
44083         (configure.ac): Set indicator.
44084         * lib/string.in.h (memchr): Declare replacement.
44085         * modules/string (Makefile.am): Trigger replacement.
44086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44087         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44088         bugs.
44089         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44090         * modules/getpagesize (License): Relax license.
44091
44092 2009-06-11  Bruno Haible  <bruno@clisp.org>
44093
44094         * lib/idpriv.h: Add more references.
44095
44096 2009-06-08  Bruno Haible  <bruno@clisp.org>
44097
44098         Tests for module 'idpriv-droptemp'.
44099         * modules/idpriv-droptemp-tests: New file.
44100         * tests/test-idpriv-droptemp.sh: New file.
44101         * tests/test-idpriv-droptemp.su.sh: New file.
44102         * tests/test-idpriv-droptemp.c: New file.
44103
44104         New module 'idpriv-droptemp'.
44105         * lib/idpriv-droptemp.c: New file.
44106         * modules/idpriv-droptemp: New file.
44107
44108 2009-06-08  Bruno Haible  <bruno@clisp.org>
44109
44110         Tests for module 'idpriv-drop'.
44111         * modules/idpriv-drop-tests: New file.
44112         * tests/test-idpriv-drop.sh: New file.
44113         * tests/test-idpriv-drop.su.sh: New file.
44114         * tests/test-idpriv-drop.c: New file.
44115
44116         New module 'idpriv-drop'.
44117         * lib/idpriv.h: New file.
44118         * lib-idpriv-drop.c: New file.
44119         * m4/idpriv.m4: New file.
44120         * modules/idpriv-drop: New file.
44121
44122 2009-06-08  Bruno Haible  <bruno@clisp.org>
44123
44124         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44125         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44126         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44127         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44128         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44129         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44130         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44131
44132 2009-06-08  Eric Blake  <ebb9@byu.net>
44133
44134         test-strstr: use memory fence, when possible
44135         * tests/test-strstr.c (main): Use memory fence, in order to be
44136         more likely to trigger Debian bug 521737.
44137         * modules/strstr-tests (Files): Pull in additional files.
44138
44139         memchr: no longer obsolete, for wider field testing
44140         * modules/memchr (Status, Notice): Delete, this module is no
44141         longer obsolete.
44142         * modules/vasnprintf (Depends-on): Add memchr.
44143
44144 2009-06-07  Jim Meyering  <meyering@redhat.com>
44145
44146         hash: declare some functions with the warn_unused_result attribute
44147         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44148
44149 2009-06-07  Bruno Haible  <bruno@clisp.org>
44150
44151         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44152         Reported by Eric Blake.
44153
44154 2009-06-06  Eric Blake  <ebb9@byu.net>
44155
44156         test-alignof: fix typo with long double
44157         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44158         compiler error.
44159
44160 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44161
44162         Escape non-texinfo { and }s.
44163         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44164         markup error.
44165
44166 2009-06-04  Jim Meyering  <meyering@redhat.com>
44167
44168         gitlog-to-changelog: don't infloop on an empty commit log
44169         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44170         Reported by Boris Petersen <transacid@centerim.org>.
44171
44172 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44173
44174         version-etc: extend for packagers
44175         Add three new configure options, intended for packagers:
44176           --with-packager="packager name"
44177           --with-packager-version="packager-specific version"
44178           --with-packager-bug-reports="packager bug reporting"
44179         An example with coreutils:
44180           $ ./configure \
44181             --with-packager=Gentoo \
44182             --with-packager-bug-report=http://bugs.gentoo.org/ \
44183             --with-packager-version="patchset 1.6"
44184           $ ./src/ls --version | head -n2
44185           ls (GNU coreutils) 7.1-dirty
44186           Packaged by Gentoo (patchset 1.6)
44187         Note that the bug reporting info via --help doesn't show up because
44188         coreutils uses its own custom emit_bug_reporting_address() implementation
44189         in src/system.h.  If it didn't, it'd look like:
44190           $ ./src/ls --help | tail -n4
44191           Report bugs to <bug-coreutils@gnu.org>.
44192           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44193           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44194           General help using GNU software: <http://www.gnu.org/gethelp/>.
44195         * lib/version-etc.c: Print new information, if provided.
44196         * m4/version-etc.m4: New file.
44197         * modules/version-etc (Files): Add m4/version-etc.m4.
44198         (configure.ac): Add gl_VERSION_ETC.
44199
44200 2009-05-31  Bruno Haible  <bruno@clisp.org>
44201
44202         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44203         and 'int64_t'.
44204         * modules/alignof-tests (Dependencies): Add stdint.
44205         Reported by Eric Blake.
44206
44207 2009-05-31  Bruno Haible  <bruno@clisp.org>
44208
44209         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44210         restriction due to compiler bugs.
44211         Reported by Eric Blake.
44212
44213 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44214             Bruno Haible  <bruno@clisp.org>
44215
44216         Fix test-alignof failure.
44217         * lib/alignof.h (alignof_slot): New macro.
44218         (alignof_type): New macro, with the same semantics as the previous
44219         'alignof'.
44220         (alignof): Alias to alignof_slot.
44221         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44222         check that the results are usable as constant expressions.
44223
44224 2009-05-31  Bruno Haible  <bruno@clisp.org>
44225
44226         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44227         * tests/test-memchr.c (main): Check that memchr does not read past the
44228         first occurrence of the byte.
44229         * tests/test-strstr.c (main): Update comment.
44230         Suggested by Eric Blake.
44231
44232 2009-05-30  Bruno Haible  <bruno@clisp.org>
44233
44234         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44235         detail how to use dumpbin.
44236         Reported by David Byron <dbyron@dbyron.com>.
44237
44238 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44239
44240         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44241
44242 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44243
44244         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44245
44246 2009-05-28  Bruno Haible  <bruno@clisp.org>
44247
44248         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44249         build-aux/ files.
44250
44251 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44252
44253         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44254
44255 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44256
44257         * gnulib-tool (sed_transform_main_lib_file)
44258         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44259         regexps.
44260
44261 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44262
44263         * tests/test-strstr.c: Add another self-test.
44264         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44265         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44266
44267 2009-05-23  Bruno Haible  <bruno@clisp.org>
44268
44269         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44270         change.
44271
44272 2009-05-21  Bruno Haible  <bruno@clisp.org>
44273
44274         Simplify use of mode_t varargs.
44275         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44276         uses 'mode_t' or 'int'.
44277         * lib/openat.c (openat): Likewise.
44278         * lib/open-safer.c (open_safer): Likewise.
44279         * m4/mode_t.m4: New file.
44280         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44281         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44282         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44283         * modules/open (Files): Add m4/mode_t.m4.
44284         * modules/openat (Files): Likewise.
44285         * modules/fcntl-safer (Files): Likewise.
44286         Suggested by Eric Blake.
44287
44288 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44289
44290         * doc/glibc-functions/fallocate.texi: New file.
44291         * doc/gnulib.texi: Include it.
44292
44293 2009-05-21  Eric Blake  <ebb9@byu.net>
44294             Bruno Haible  <bruno@clisp.org>
44295
44296         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44297         invocations.
44298         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44299
44300 2009-05-21  Eric Blake  <ebb9@byu.net>
44301             Bruno Haible  <bruno@clisp.org>
44302
44303         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44304         include_next. Fix of 2008-11-20 commit.
44305         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44306         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44307         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44308         NEXT_MATH_H.
44309         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44310         instead of NEXT_MATH_H.
44311
44312 2009-05-21  Bruno Haible  <bruno@clisp.org>
44313
44314         Avoid redefinition warnings for SIZE_MAX.
44315         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44316         Reported by Simon Josefsson.
44317
44318 2009-05-21  Bruno Haible  <bruno@clisp.org>
44319
44320         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44321         AC_CACHE_VAL.
44322
44323 2009-05-20  Bruno Haible  <bruno@clisp.org>
44324
44325         Make zeroptr.h work on mingw.
44326         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44327         mprotect.
44328         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44329         * modules/memchr2-tests (configure.ac): Likewise.
44330         * modules/memcmp-tests (configure.ac): Likewise.
44331         * modules/memmem-tests (configure.ac): Likewise.
44332         * modules/memrchr-tests (configure.ac): Likewise.
44333         Reported by Simon Josefsson.
44334
44335 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44336
44337         * tests/test-glob.c: Include string.h for strcmp prototype.
44338
44339 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44340
44341         * modules/getdelim (Depends-on): Add explicit stdint, although it
44342         was implicitly already pulled in via realloc-posix.
44343         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44344
44345 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44346
44347         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44348         G. Christensen" <tgc@jupiterrise.com>.
44349         * m4/sys_socket_h.m4: Check for sa_family_t.
44350         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44351         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44352         * tests/test-sys_socket.c: Check that sa_family_t works.
44353
44354 2009-05-18  Eric Blake  <ebb9@byu.net>
44355
44356         maint.mk: allow gnulib_dir in VPATH build
44357         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44358
44359 2009-05-15  Jim Meyering  <meyering@redhat.com>
44360
44361         maint.mk: Give gnulib_dir a default definition.
44362         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44363         Thus, most packages no longer need to specify this variable in cfg.mk
44364
44365 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44366
44367         rename.m4: fix typos that would make non-mingw cross-configure fail
44368         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44369
44370 2009-05-13  Eric Blake  <ebb9@byu.net>
44371
44372         mmap-anon: avoid out-of-order autoconf expansion
44373         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44374         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44375         * modules/memchr-tests (Depends-on): Add extensions.
44376         * modules/memchr2-tests (Depends-on): Add extensions.
44377         * modules/memcmp-tests (Depends-on): Add extensions.
44378         * modules/memmem-tests (Depends-on): Add extensions.
44379         * modules/memrchr-tests (Depends-on): Add extensions.
44380
44381 2009-05-13  Bruno Haible  <bruno@clisp.org>
44382
44383         Make some tests ISO C 99 compliant.
44384         * tests/zerosize-ptr.h: New file.
44385         * tests/test-memchr.c: Include zerosize-ptr.h.
44386         (main): Use a zero-size object pointer instead of NULL.
44387         * tests/test-memchr2.c: Include zerosize-ptr.h.
44388         (main): Use a zero-size object pointer instead of NULL.
44389         * tests/test-memcmp.c: Include zerosize-ptr.h.
44390         (main): Use a zero-size object pointer instead of NULL.
44391         * tests/test-memmem.c: Include zerosize-ptr.h.
44392         (main): Use a zero-size object pointer instead of NULL.
44393         * tests/test-memrchr.c: Include zerosize-ptr.h.
44394         (main): Use a zero-size object pointer instead of NULL.
44395         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44396         m4/mmap-anon.m4.
44397         (Depends-on): Add getpagesize.
44398         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44399         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44400         m4/mmap-anon.m4.
44401         (Depends-on): Add getpagesize.
44402         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44403         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44404         m4/mmap-anon.m4.
44405         (Depends-on): Add getpagesize.
44406         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44407         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44408         m4/mmap-anon.m4.
44409         (Depends-on): Add getpagesize.
44410         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44411         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44412         m4/mmap-anon.m4.
44413         (Depends-on): Add getpagesize.
44414         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44415
44416 2009-05-12  Bruno Haible  <bruno@clisp.org>
44417
44418         Tests for module 'alignof'.
44419         * modules/alignof-tests: New file.
44420         * tests/test-alignof.c: New file.
44421
44422 2009-05-12  Bruno Haible  <bruno@clisp.org>
44423
44424         Fix alignof macro.
44425         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44426         vendor compilers that are always correct.
44427
44428 2009-05-12  Bruno Haible  <bruno@clisp.org>
44429
44430         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44431         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44432         not whether its fully works.
44433
44434 2009-05-12  Bruno Haible  <bruno@clisp.org>
44435
44436         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44437
44438 2009-05-12  Jim Meyering  <meyering@redhat.com>
44439
44440         * top/maint.mk: Adjust backslash alignment.
44441
44442 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44443
44444         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44445
44446 2009-05-11  Eric Blake  <ebb9@byu.net>
44447
44448         argp: avoid undefined behavior
44449         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44450         macros.
44451
44452 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44453
44454         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44455         user.name to prevent git commit from complaining.
44456
44457 2009-05-10  Bruno Haible  <bruno@clisp.org>
44458
44459         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44460         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44461         it rewrites every file name only once.
44462         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44463
44464 2009-05-08  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44467         instead of 'max'.
44468
44469 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44470
44471         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44472         sockaddr_storage test.
44473
44474 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44475
44476         * modules/sys_socket (Makefile.am): Substitute
44477         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44478         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44479         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44480         * tests/test-sys_socket.c: Check sockaddr_storage.
44481
44482 2009-05-08  Bruno Haible  <bruno@clisp.org>
44483
44484         New module 'alignof'.
44485         * lib/alignof.h: New file.
44486         * modules/alignof: New file.
44487
44488 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44489             Bruno Haible  <bruno@clisp.org>
44490
44491         Fix test-file-has-acl on FreeBSD.
44492         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44493         mask is implicitly added.
44494         * tests/test-file-has-acl.c: Include <signal.h>.
44495         (main): Terminate the test after 5 seconds.
44496         * modules/acl-tests (configure.ac): Check for alarm function.
44497
44498 2009-05-04  Bruno Haible  <bruno@clisp.org>
44499
44500         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44501         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44502         * modules/errno (configure.ac): Drop AC_REQUIRE.
44503         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44504         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44505
44506 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44507
44508         * modules/glob-tests: New module.
44509         * tests/test-glob.c: Add.
44510
44511 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44512
44513         * modules/fnmatch-tests: New module.
44514         * tests/test-fnmatch.c: Add.
44515
44516 2009-05-04  Eric Blake  <ebb9@byu.net>
44517
44518         maint: make the new no-submodule-changes rule VPATH-safe
44519         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44520
44521 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44522             Bruno Haible  <bruno@clisp.org>
44523
44524         acl: Fix infinite loop on FreeBSD.
44525         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44526         of return value from acl_get_entry.
44527         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44528         Likewise.
44529
44530 2009-05-03  Bruno Haible  <bruno@clisp.org>
44531
44532         * lib/acl-internal.h (acl_entries): Clarify return value.
44533         * lib/acl_entries.c (acl_entries): Likewise.
44534
44535 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44536
44537         Bug fix in acl module.
44538         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44539
44540 2009-05-03  Bruno Haible  <bruno@clisp.org>
44541
44542         Create gperf-generated file in the source dir, not in the build dir.
44543         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44544         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44545         * modules/unicase/locale-language (unicase/locale-languages.h):
44546         Likewise.
44547         * modules/unicase/special-casing (unicase/special-casing-table.h):
44548         Likewise.
44549         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44550         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44551         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44552         Reported by Ralf Wildenhues.
44553
44554 2009-05-03  Bruno Haible  <bruno@clisp.org>
44555
44556         * modules/fnmatch (Description, configure.ac): Taken from
44557         fnmatch-posix.
44558         * modules/fnmatch-posix: Turn into a symbolic reference to the
44559         'fnmatch' module, and deprecate.
44560         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44561
44562 2009-05-03  Bruno Haible  <bruno@clisp.org>
44563
44564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44565         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44566         Reported by Ralf Wildenhues.
44567
44568 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44569
44570         * m4/fnmatch.m4: Fix fnmatch re-define.
44571
44572 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44573
44574         priv-set: new module and tests; adapt write-any-file
44575         * lib/priv-set.c: New file.
44576         * lib/priv-set.h: New file.
44577         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44578         * lib/write-any-file.c: Simplify by using priv-set module.
44579         * m4/priv-set.m4: New file.
44580         * modules/priv-set: New file.
44581         * modules/unlinkdir: Add dependency on priv-set module.
44582         * modules/write-any-file: Likewise.
44583
44584         Tests for module 'priv-set'.
44585         * modules/priv-set-tests: New file.
44586         * tests/test-priv-set.c: New file.
44587
44588 2009-05-03  Jim Meyering  <meyering@redhat.com>
44589             Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44592         use the converted UTF-8 variant of the name instead.
44593
44594 2009-05-03  Jim Meyering  <meyering@redhat.com>
44595
44596         tests: tighten some getdate tests
44597         * tests/test-getdate.c (main): Tighten tests: require equality,
44598         not just greater than.  Set TZ envvar to UTC0.
44599
44600 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44601
44602         getdate: correctly interpret "next monday" when run on a Monday
44603         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44604         that e.g., "next tues" (when run on a tuesday) results in a date
44605         that is one week in the future, and not today's date.
44606         I.e., add a week when the wday is the same as the current one.
44607         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44608         and earlier by Martin Bernreuther and Jan Minář.
44609         * tests/test-getdate.c (main): Check that "next DAY" is always in
44610         the future and that "last DAY" is always in the past.
44611
44612 2009-05-02  Jim Meyering  <meyering@redhat.com>
44613
44614         build: ensure that a release build fails when a submodule is unclean
44615         * top/maint.mk (no-submodule-changes): New rule.
44616         (alpha beta major): Depend on it.
44617
44618 2009-05-02  Bruno Haible  <bruno@clisp.org>
44619
44620         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44621         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44622         shell variable gl_fnmatch_required to detect which variant is
44623         requested.
44624         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44625         gl_FUNC_FNMATCH_POSIX.
44626         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44627         exclude fnmatch-posix.
44628
44629 2009-05-02  Bruno Haible  <bruno@clisp.org>
44630
44631         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44632         * modules/mbsrtowcs (License): Change to LGPLv2+.
44633         * modules/strnlen1 (License): Likewise.
44634         Reported by Simon Josefsson.
44635
44636 2009-05-02  Bruno Haible  <bruno@clisp.org>
44637
44638         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44639         "cross".
44640         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44641         gnulib-tool was called with option --source-base=lib.
44642
44643 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44644
44645         Use automake *-local hooks without commands, for extensibility.
44646         * modules/localcharset (Makefile.am): Rename install-exec-local
44647         rule to install-exec-localcharset, and make it a prerequisite of
44648         install-exec-local.  Likewise, rename the uninstall-local rule to
44649         uninstall-localcharset, and make it a prerequisite of the former.
44650
44651 2009-05-01  Bruno Haible  <bruno@clisp.org>
44652
44653         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44654         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44655         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44657         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44658         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44659         m4/locale-zh.m4, m4/codeset.m4.
44660
44661         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44662         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44663         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44664         m4/locale-zh.m4.
44665
44666         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44667         REPLACE_WCRTOMB if mbstate_t must be replaced.
44668         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44669         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44670
44671 2009-05-01  Bruno Haible  <bruno@clisp.org>
44672
44673         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44674         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44675         dngettext, dcngettext, textdomain, bindtextdomain,
44676         bind_textdomain_codeset): Undefine before redefining.
44677
44678 2009-04-30  Bruno Haible  <bruno@clisp.org>
44679
44680         Fix bug introduced on 2009-04-25.
44681         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44682         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44683         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44684         is defined.
44685         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44686         is defined.
44687         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44688         is defined.
44689         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44690
44691 2009-04-28  Bruno Haible  <bruno@clisp.org>
44692
44693         Comment tweaks.
44694         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44695         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44696         * lib/unicase.h (u*_casexfrm): Likewise.
44697         Reported by Paolo Bonzini.
44698
44699 2009-04-28  Bruno Haible  <bruno@clisp.org>
44700
44701         Fix a compilation error.
44702         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44703         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44704         Reported by Jim Meyering.
44705
44706 2009-04-27  Bruno Haible  <bruno@clisp.org>
44707
44708         New module 'libunistring'.
44709         * modules/libunistring: New file.
44710         * m4/libunistring.m4: New file.
44711         * MODULES.html.sh (Unicode string functions): Add it.
44712
44713 2009-04-27  Eric Blake  <ebb9@byu.net>
44714
44715         maint.mk: allow package-specific header to provide <config.h>
44716         * top/maint.mk (sc_require_config_h): New variable.
44717         (sc_require_config_h, sc_require_config_h_first): Use it.
44718
44719 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44720
44721         * top/maint.mk (sc_avoid_if_before_free): Except
44722         useless-if-before-free script.
44723
44724 2009-04-27  Eric Blake  <ebb9@byu.net>
44725
44726         maintainer-makefile: depend on all required helper scripts
44727         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44728         useless-if-before-free.
44729         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44730         version, rather than assuming gnulib checkout is available.
44731         Reported by Simen Josefsson.
44732
44733 2009-04-26  Bruno Haible  <bruno@clisp.org>
44734
44735         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44736         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44737         "../" or "..".
44738
44739 2009-04-26  Bruno Haible  <bruno@clisp.org>
44740
44741         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44742         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44743         AC_LIB_HAVE_LINKFLAGS.
44744
44745 2009-04-26  Bruno Haible  <bruno@clisp.org>
44746
44747         Simplify calling convention of u*_conv_from_encoding.
44748         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44749         u32_conv_from_encoding): Expect a resultbuf argument and return the
44750         result directly as a pointer.
44751         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44752         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44753         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44754         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44755         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44756         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44757         Update.
44758         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44759         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44760         * lib/vasnprintf.c (VASNPRINTF): Update.
44761         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44762         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44763         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44764         * NEWS: Mention the change.
44765
44766 2009-04-26  Bruno Haible  <bruno@clisp.org>
44767
44768         Simplify calling convention of u*_conv_to_encoding.
44769         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44770         u32_conv_to_encoding): Expect a resultbuf argument and return the
44771         result directly as a pointer.
44772         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44773         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44774         freeing scaled_offsets if mem_iconveha failed.
44775         * lib/unicase/u-casexfrm.h (FUNC): Update.
44776         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44777         * lib/vasnprintf.c (VASNPRINTF): Update.
44778         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44779         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44780         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44781         * NEWS: Mention the change.
44782
44783 2009-04-26  Bruno Haible  <bruno@clisp.org>
44784
44785         Avoid test failures on AIX and OSF/1.
44786         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44787         malloc(0).
44788         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44789         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44790         Likewise.
44791         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44792         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44793         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44794         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44795         * doc/posix-functions/malloc.texi: Document the portability problem
44796         related to malloc(0).
44797
44798 2009-04-26  Bruno Haible  <bruno@clisp.org>
44799
44800         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44801         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44802         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44803
44804 2009-04-25  Bruno Haible  <bruno@clisp.org>
44805
44806         Avoid link error when creating a namespace clean library.
44807         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44808         as macro with arguments if already defined as an alias.
44809         * lib/signbitf.c (gl_signbitf): Don't undefine.
44810         * lib/signbitd.c (gl_signbitd): Don't undefine.
44811         * lib/signbitl.c (gl_signbitl): Don't undefine.
44812
44813 2009-04-25  Jim Meyering  <meyering@redhat.com>
44814
44815         vc-list-files: fix another quoting bug
44816         * build-aux/vc-list-files: Avoid sed backslash expansion
44817         of pathological directory names.
44818
44819 2009-04-25  Eric Blake  <ebb9@byu.net>
44820
44821         vc-list-files: fix shell quoting error
44822         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44823         timestamp.
44824
44825 2009-04-25  Jim Meyering  <meyering@redhat.com>
44826
44827         vc-list-files: restore lost functionality with subdir argument
44828         * build-aux/vc-list-files: When given a non-"." sub-directory
44829         argument, substitute the $dir/ prefix back onto each resulting name.
44830         Otherwise, coreutils' root_tests check would fail.
44831
44832 2009-04-24  Eric Blake  <ebb9@byu.net>
44833
44834         vc-list-files: ignore git symlinks
44835         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44836         than ls-files, to ignore git symlinks.
44837
44838         maint.mk: import improvements from m4
44839         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44840         (move_if_change): Delete unused macro.
44841         (news-date-check, vc-diff-check): Support VPATH builds.
44842         (announcement): Likewise.  Split --bootstrap-tools list...
44843         (boostrap-tools): ...into separate list, which can be overridden
44844         in cfg.mk.
44845         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44846         requiring dependency on useless-if-before-free module.
44847         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44848         Support VPATH builds.
44849
44850 2009-04-24  Jim Meyering  <meyering@redhat.com>
44851
44852         maint.mk: remove coreutils-specific rules and variables
44853         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44854         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44855         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44856
44857         maint.mk: remove obsolete rule
44858         * top/maint.mk (rel-check): Remove rule.
44859         (WGET, WGETFLAGS): Remove now-unused variables.
44860
44861 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44862
44863         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44864         consistency.
44865
44866         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44867         '$(PATH_SEPARATOR)' instead of ':'.
44868
44869 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44870
44871         * lib/getopt1.c (main): Use 'const' for static array.
44872
44873 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44874
44875         * top/maint.mk: Sync with coreutils.
44876         * NEWS: Explain incompatibilities.
44877
44878 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44879             Bruno Haible  <bruno@clisp.org>
44880
44881         Fix cross-compilation results.
44882         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44883         statement, as third argument of AC_TRY_RUN.
44884         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44885         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44886         Likewise.
44887         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44888         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44889         Likewise.
44890         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44891         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44892         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44893
44894 2009-04-20  Bruno Haible  <bruno@clisp.org>
44895
44896         Avoid test failure on mingw.
44897         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44898
44899 2009-04-20  Bruno Haible  <bruno@clisp.org>
44900
44901         Avoid compilation error on mingw.
44902         * modules/localename-tests (Depends-on): Add locale.
44903
44904 2009-04-19  Bruno Haible  <bruno@clisp.org>
44905
44906         Support for building a shared library on Windows platforms.
44907         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44908         (main): Test the presence of UNINORM_NFC here.
44909         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44910         (main): Test the presence of UNINORM_NFD here.
44911         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44912         (main): Test the presence of UNINORM_NFKC here.
44913         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44914         (main): Test the presence of UNINORM_NFKD here.
44915
44916 2009-04-19  Bruno Haible  <bruno@clisp.org>
44917
44918         Avoid a compiler warning.
44919         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44920         Change type of variable 'sequence'.
44921
44922 2009-04-19  Bruno Haible  <bruno@clisp.org>
44923
44924         * modules/configmake (Makefile.am): When the contents of configmake.h
44925         does not change, arrange to preserve its modification time.
44926
44927 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44928
44929         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44930         gettext domain.
44931
44932 2009-04-16  Jim Meyering  <meyering@redhat.com>
44933
44934         useless-if-before-free: improve conversion code
44935         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44936         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44937
44938 2009-04-14  Bruno Haible  <bruno@clisp.org>
44939
44940         * modules/fcntl (Depends-on): Add extensions.
44941         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44942
44943 2009-04-12  Ben Pfaff  <blp@gnu.org>
44944
44945         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44946         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44947
44948 2009-03-20  Ben Pfaff  <blp@gnu.org>
44949
44950         Make rename replace existing destinations on Windows.
44951         * m4/rename.m4: Add test for Mingw.
44952         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44953         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44954         * doc/posix-functions/rename.texi: Document.
44955
44956 2009-04-10  Bruno Haible  <bruno@clisp.org>
44957
44958         New include file "iconveh.h".
44959         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44960         * lib/striconveh.h: Include it.
44961         (enum iconv_ilseq_handler): Remove definition.
44962         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44963         striconveh.h.
44964         * lib/striconveha.c: Include striconveh.h.
44965         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44966         * modules/striconveh (Files): Add lib/iconveh.h.
44967         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44968         lib/striconveh.h.
44969
44970 2009-04-10  Bruno Haible  <bruno@clisp.org>
44971
44972         * lib/uniconv.h: Update comment.
44973
44974 2009-04-10  Bruno Haible  <bruno@clisp.org>
44975
44976         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44977         always.
44978         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44979         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44980         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44981         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44982         "unistring-notinline.h", so that the function gets defined always.
44983         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44984         * lib/unistr/u8-uctomb.c: Likewise.
44985         * lib/unistr/u16-mbtouc.c: Likewise.
44986         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44987         * lib/unistr/u16-uctomb.c: Likewise.
44988         * lib/unistr/u32-mbtouc.c: Likewise.
44989         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44990         * lib/unistr/u32-uctomb.c: Likewise.
44991
44992 2009-04-10  Bruno Haible  <bruno@clisp.org>
44993
44994         Mark 'utime' obsolete.
44995         * modules/utime (Status, Notice): New sections.
44996         Suggested by Jim Meyering.
44997
44998         Fix cross-compile guess for utime test.
44999         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45000         autoconf.
45001         * doc/posix-functions/utime.texi: Give more precisions.
45002         Reported by Jan <ipif@ymail.com>.
45003
45004 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45005
45006         filevercmp: correct today's change
45007         * lib/filevercmp.c: Also handle coreutils' test inputs.
45008         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45009
45010         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45011         for reporting it.
45012         * lib/filevercmp.c: Special handle for "", "." and "..".
45013         * tests/test-filevercmp.c: Enlarge the set suite.
45014
45015 2009-04-07  Jim Meyering  <meyering@redhat.com>
45016
45017         useless-if-before-free: show how to remove braced useless free, too
45018         * build-aux/useless-if-before-free: still only in a comment, though.
45019
45020 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45021
45022         maint.mk: import changes to syntax-check macros from coreutils
45023         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45024         Use them in the relevant macros.
45025
45026 2009-04-06  Bruno Haible  <bruno@clisp.org>
45027
45028         Fix unportable use of bit-fields.
45029         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45030         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45031         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45032
45033 2009-04-06  Bruno Haible  <bruno@clisp.org>
45034
45035         Avoid test failures on AIX and OSF/1.
45036         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45037         that malloc(0) = NULL.
45038         * tests/unicase/test-u8-tolower.c (check): Likewise.
45039         * tests/unicase/test-u8-totitle.c (check): Likewise.
45040         * tests/unicase/test-u8-toupper.c (check): Likewise.
45041         * tests/unicase/test-u16-casefold.c (check): Likewise.
45042         * tests/unicase/test-u16-tolower.c (check): Likewise.
45043         * tests/unicase/test-u16-totitle.c (check): Likewise.
45044         * tests/unicase/test-u16-toupper.c (check): Likewise.
45045         * tests/unicase/test-u32-casefold.c (check): Likewise.
45046         * tests/unicase/test-u32-tolower.c (check): Likewise.
45047         * tests/unicase/test-u32-totitle.c (check): Likewise.
45048         * tests/unicase/test-u32-toupper.c (check): Likewise.
45049         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45050         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45051         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45052         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45053         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45054         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45055         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45056         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45057         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45058         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45059         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45060         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45061
45062 2009-04-05  Bruno Haible  <bruno@clisp.org>
45063
45064         Work around an autoconf limitation.
45065         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45066         comment line if it would be longer than 3 KB.
45067
45068 2009-04-05  Bruno Haible  <bruno@clisp.org>
45069
45070         Avoid test failure with libiconv-1.13.
45071         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45072         of the expected test results.
45073
45074 2009-04-05  Bruno Haible  <bruno@clisp.org>
45075
45076         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45077         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45078         that it should be installed.
45079
45080 2009-04-05  Bruno Haible  <bruno@clisp.org>
45081
45082         * gnulib-tool: New option --copy-file.
45083         (func_usage): Document it.
45084         (func_dest_tmpfilename): Moved out of func_import.
45085         (func_add_file, func_update_file): New functions, extracted from
45086         func_import.
45087         (func_import): Update.
45088
45089 2009-04-05  Karl Berry  <karl@gnu.org>
45090
45091         * README: prominently mention gnulib-tool.
45092         Rearrange sections so getting the code is near the top.
45093
45094 2009-04-05  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/unicase.h: Mention u*_cmp2.
45097         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45098         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45099         * lib/unicase/ulc-casecmp.c: Likewise.
45100         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45101         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45102         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45103         unistr/u8-cmp.
45104         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45105         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45106         unistr/u16-cmp.
45107         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45108         unistr/u32-cmp.
45109
45110         * lib/uninorm.h: Mention u*_cmp2.
45111         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45112         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45113         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45114         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45115         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45116         unistr/u8-cmp.
45117         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45118         unistr/u16-cmp.
45119         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45120         unistr/u32-cmp.
45121
45122         New module 'unistr/u32-cmp2'.
45123         * lib/unistr/u32-cmp2.c: New file.
45124         * modules/unistr/u32-cmp2: New file.
45125
45126         New module 'unistr/u16-cmp2'.
45127         * lib/unistr/u16-cmp2.c: New file.
45128         * modules/unistr/u16-cmp2: New file.
45129
45130         New module 'unistr/u8-cmp2'.
45131         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45132         * lib/unistr/u8-cmp2.c: New file.
45133         * lib/unistr/u-cmp2.h: New file.
45134         * modules/unistr/u8-cmp2: New file.
45135
45136 2009-04-05  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/unictype.h (uc_property_is_valid): New macro.
45139         * tests/unictype/test-pr_byname.c (main): Use it.
45140
45141         * lib/unistr.h: Doc fixes.
45142         * lib/uniconv.h: Doc fixes.
45143         * lib/unictype.h: Doc fixes.
45144
45145 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45146
45147         Port coreutils 7.2 to Solaris 8.
45148
45149         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45150         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45151         for Solaris 8.  This is a bit of a hack, as it means it's the
45152         caller's responsibility to add -lnsl if needed, but most likely it
45153         won't be needed since only getaddrinfo uses this and getaddrinfo
45154         isn't needed on Solaris 8.
45155
45156         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45157         problem to Solaris 8 encountered with coreutils 7.2, which
45158         resulted in a message "fnmatch.c:292: warning: passing argument 4
45159         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45160         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45161
45162 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45163
45164         * m4/ld-version-script.m4: Add FIXME comment.
45165
45166 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45167
45168         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45169         SOVERSION variable.
45170
45171 2009-04-02  Bruno Haible  <bruno@clisp.org>
45172
45173         * Makefile (info, html, dvi, pdf): Combine the rules.
45174         Suggested by Jim Meyering.
45175
45176 2009-04-01  Bruno Haible  <bruno@clisp.org>
45177
45178         * Makefile (info, html, dvi, pdf): New targets.
45179         Reported by Reuben Thomas <rrt@sc3d.org>.
45180
45181 2009-04-01  Bruno Haible  <bruno@clisp.org>
45182
45183         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45184         can be put into PATH.
45185         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45186
45187 2009-04-01  Bruno Haible  <bruno@clisp.org>
45188
45189         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45190
45191 2009-04-01  Bruno Haible  <bruno@clisp.org>
45192
45193         Rename module 'visibility'.
45194         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45195         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45196         * doc/gnulib.texi: Update.
45197         * MODULES.html.sh (Misc): Update.
45198         * NEWS: Mention the change.
45199
45200 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45201
45202         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45203         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45204         Eric Blake <ebb9@byu.net> for review.
45205         * MODULES.html.sh: Add lib-msvc-compat.
45206         * doc/gnulib.texi: Link to new section.
45207         * m4/ld-output-def.m4: New file.
45208         * doc/ld-output-def.texi: New file.
45209
45210 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45211
45212         Rename ld-version-script to lib-symbol-versions.  Suggested by
45213         Bruno Haible <bruno@clisp.org>.
45214         * modules/ld-version-script: Renamed to lib-symbol-versions.
45215         * doc/ld-version-script.texi: Fix module name.
45216         * MODULES.html.sh: Add lib-symbol-versions.
45217
45218 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45219
45220         * modules/u64-tests: New file.
45221         * tests/test-u64.c: New file.
45222
45223 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45224
45225         * MODULES.html.sh: Mention u64.
45226         * modules/u64: New module.
45227         * modules/crypto/sha512: Depend on u64 module instead of providing
45228         u64.h.
45229
45230 2009-03-27  Eric Blake  <ebb9@byu.net>
45231
45232         test-strerror: make debugging EAI_SYSTEM easier
45233         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45234         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45235         failure was EAI_SYSTEM.
45236
45237 2009-03-25  Bruno Haible  <bruno@clisp.org>
45238
45239         Fix a problem with --enable-relocatable on Solaris 7.
45240         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45241         since 2008-02-24.
45242
45243 2009-03-25  Eric Blake  <ebb9@byu.net>
45244
45245         test-sockets: avoid gcc warning
45246         * tests/test-sockets.c (main): Silence compiler warning.
45247
45248 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45249
45250         New modules nproc, pthread, contributed by Glen Lenker.
45251
45252         * MODULES.html.sh: Add pthread, nproc.
45253         * lib/nproc.c: New file.
45254         * lib/nproc.h: New file.
45255         * lib/pthread.in.h: New file.
45256         * m4/pthread.m4: New file.
45257         * modules/nproc: New file.
45258         * modules/pthread: New file.
45259
45260 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45261
45262         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45263         New variable.
45264
45265 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45266
45267         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45268         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45269         * tests/test-filevercmp.c: Add tests for backup suffixes.
45270
45271 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45272
45273         * modules/stdlib (Depends-on): Add stdint, needed when defining
45274         struct random_data on, for example, HP-UX 10.20.  Reported by
45275         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45276
45277 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45278
45279         * lib/readline.c (readline): Call fflush on stdout after printing
45280         prompt.
45281
45282 2009-03-20  Bruno Haible  <bruno@clisp.org>
45283
45284         Remove dependency from 'close' module to -lws2_32 on native Windows.
45285         * lib/close-hook.h: New file.
45286         * lib/close-hook.c: New file.
45287         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45288         w32sock.h.
45289         (_gl_close_fd_maybe_socket): Remove function.
45290         (rpl_close): Invoke execute_all_close_hooks instead of
45291         _gl_close_fd_maybe_socket.
45292         * lib/sockets.c: Include close-hook.h, w32sock.h.
45293         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45294         (close_sockets_hook): New variable.
45295         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45296         (gl_sockets_cleanup): Unregister it.
45297         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45298         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45299         * modules/close-hook: New file.
45300         * modules/close (Files): Remove lib/w32sock.h.
45301         (Depends-on): Add close-hook.
45302         (Link): Remove section.
45303         * modules/sockets (Files): Add lib/w32sock.h.
45304         (Depends-on): Add close-hook.
45305         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45306         invocation.
45307         * NEWS: Mention that LIB_CLOSE is gone.
45308
45309 2009-03-23  Eric Blake  <ebb9@byu.net>
45310
45311         signal-tests: test previous patch
45312         * tests/test-signal.c: New file.
45313         * modules/signal-tests: Likewise.
45314
45315         signal.h: always support 'volatile sig_atomic_t'
45316         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45317         (gl_SIGNAL_H_DEFAULTS): Add a default.
45318         * modules/signal (Makefile.am): Substitute if needed.
45319         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45320         users can blindly add volatile.
45321         * doc/posix-headers/signal.texi (signal.h): Document it.
45322         Reported by Matthew Woehlke.
45323
45324 2009-03-23  Jim Meyering  <meyering@redhat.com>
45325
45326         pathmax: PATH_MAX: use pathconf only when available
45327         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45328         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45329         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45330         This avoids a link failure in a PSP cross-compilation environment
45331         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45332
45333         * lib/vasnprintf.c (divide): Fix typo in comment.
45334
45335 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45336
45337         * gnulib-tool (func_filter_filelist): Fix comment.
45338
45339 2009-03-20  Bruno Haible  <bruno@clisp.org>
45340
45341         Make sockets.h self-contained.
45342         * lib/sockets.c: Include sockets.h first.
45343         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45344
45345 2009-03-19  Eric Blake  <ebb9@byu.net>
45346
45347         doc: mention more functions added in cygwin 1.7.0
45348         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45349         addition.
45350         * doc/posix-functions/log2f.texi: Likewise.
45351
45352 2009-03-19  Jim Meyering  <meyering@redhat.com>
45353
45354         fsusage: avoid syntax error due to statement-before-declaration
45355         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45356         after all declarations.  Reported by Matthew Woehlke in
45357         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45358
45359 2009-03-18  Eric Blake  <ebb9@byu.net>
45360
45361         build-aux/compile: sync from automake
45362         * build-aux/compile: New file, from automake.
45363         * config/srclist.txt: Mention build-aux/compile.
45364
45365 2009-03-17  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/git-merge-changelog.c: Fix typo in comment.
45368         Reported by Reuben Thomas <rrt@sc3d.org>.
45369
45370 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45371
45372         * m4/regex.m4: update and improve help for
45373         --without-included-regex.
45374
45375 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45376
45377         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45378         failure on missing include files.
45379
45380 2009-03-17  Eric Blake  <ebb9@byu.net>
45381
45382         doc: mention more functions added in cygwin 1.7.0
45383         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45384         addition.
45385         * doc/posix-functions/fwscanf.texi: Likewise.
45386         * doc/posix-functions/swprintf.texi: Likewise.
45387         * doc/posix-functions/swscanf.texi: Likewise.
45388         * doc/posix-functions/vfwprintf.texi: Likewise.
45389         * doc/posix-functions/vfwscanf.texi: Likewise.
45390         * doc/posix-functions/vswprintf.texi: Likewise.
45391         * doc/posix-functions/vswscanf.texi: Likewise.
45392         * doc/posix-functions/vwprintf.texi: Likewise.
45393         * doc/posix-functions/vwscanf.texi: Likewise.
45394         * doc/posix-functions/wcscasecmp.texi: Likewise.
45395         * doc/posix-functions/wcsdup.texi: Likewise.
45396         * doc/posix-functions/wcsftime.texi: Likewise.
45397         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45398         * doc/posix-functions/wprintf.texi: Likewise.
45399         * doc/posix-functions/wscanf.texi: Likewise.
45400         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45401
45402 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45403
45404         maint.mk: really add $(AM_MAKEFLAGS)
45405         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45406         was inadvertently omitted in the last commit.
45407         Spotted by Bruno Haible.
45408
45409         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45410         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45411         $(AM_MAKEFLAGS)' rather than plain `make'.
45412
45413         gnulib-tool: execute $MAKE not make
45414         * gnulib-tool: Default $MAKE to 'make'.
45415         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45416         than make.  Initialize $MAKE in the do-autobuild script.
45417
45418         gnulib-tool: use $MAKE not make in generated files
45419         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45420         make, in generated files.  Initialize $MAKE in the do-autobuild
45421         script.
45422
45423         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45424
45425         GNUmakefile: disable parallelism only for multiple, recursive targets
45426         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45427         additions in the Makefile.
45428         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45429         by Automake.
45430         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45431         are listed on the command line and at least one of them is
45432         listed in $(ALL_RECURSIVE_TARGETS).
45433
45434 2009-03-14  Bruno Haible  <bruno@clisp.org>
45435
45436         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45437         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45438         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45439         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45440         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45441         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45442         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45443         unistr/u8-uctomb.
45444         * modules/unistr/u8-strchr (Depends-on): Likewise.
45445         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45446         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45447         unistr/u16-uctomb.
45448         * modules/unistr/u16-strchr (Depends-on): Likewise.
45449         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45450
45451 2009-03-12  Bruno Haible  <bruno@clisp.org>
45452
45453         Work around select() bug on Interix 3.5.
45454         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45455         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45456         * m4/select.m4: New file.
45457         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45458         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45459         * modules/select (Files): Add m4/select.m4.
45460         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45461         * modules/nanosleep (Depends-on): Add select.
45462         * modules/poll (Depends-on): Likewise.
45463         * doc/posix-functions/select.texi: Mention the Interix bug.
45464         Reported by Markus Duft <mduft@gentoo.org>.
45465
45466         * lib/select.c: Renamed from lib/winsock-select.c.
45467         * modules/select (Files): Add lib/select.c, remove
45468         lib/winsock-select.c.
45469         (configure.ac): Update.
45470
45471 2009-03-12  Jim Meyering  <meyering@redhat.com>
45472
45473         avoid gcc warnings about unused macro definitions
45474         * lib/readtokens.c (STREQ): Remove unused definition.
45475         * lib/xmalloc.c (SIZE_MAX): Likewise.
45476         * lib/openat-die.c (N_): Likewise.
45477         * lib/mountlist.c (SIZE_MAX): Remove definition.
45478         Instead, include <stdint.h>.
45479         * lib/readutmp.c: Likewise.
45480         * modules/readutmp (Depends-on): Add stdint.
45481         * modules/mountlist (Depends-on): Add stdint.
45482         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45483
45484 2009-03-10  Bruno Haible  <bruno@clisp.org>
45485
45486         Tests for module 'mbmemcasecoll'.
45487         * modules/mbmemcasecoll-tests: New file.
45488         * tests/test-mbmemcasecoll1.sh: New file.
45489         * tests/test-mbmemcasecoll2.sh: New file.
45490         * tests/test-mbmemcasecoll3.sh: New file.
45491         * tests/test-mbmemcasecoll.c: New file.
45492
45493         New module 'mbmemcasecoll'.
45494         * lib/mbmemcasecoll.h: New file.
45495         * lib/mbmemcasecoll.c: New file.
45496         * modules/mbmemcasecoll: New file.
45497
45498         * tests/test-mbmemcasecmp.h: New file, extracted from
45499         tests/test-mbmemcasecmp.c.
45500         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45501         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45502         (main): Update.
45503         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45504
45505 2009-03-09  Bruno Haible  <bruno@clisp.org>
45506
45507         Tests for module 'mbmemcasecmp'.
45508         * modules/mbmemcasecmp-tests: New file.
45509         * tests/test-mbmemcasecmp1.sh: New file.
45510         * tests/test-mbmemcasecmp2.sh: New file.
45511         * tests/test-mbmemcasecmp3.sh: New file.
45512         * tests/test-mbmemcasecmp.c: New file.
45513
45514         New module 'mbmemcasecmp'.
45515         * lib/mbmemcasecmp.h: New file.
45516         * lib/mbmemcasecmp.c: New file.
45517         * modules/mbmemcasecmp: New file.
45518
45519 2009-03-09  Bruno Haible  <bruno@clisp.org>
45520
45521         Tests for module 'unicase/ulc-casecoll'.
45522         * modules/unicase/ulc-casecoll-tests: New file.
45523         * tests/unicase/test-ulc-casecoll1.sh: New file.
45524         * tests/unicase/test-ulc-casecoll2.sh: New file.
45525         * tests/unicase/test-ulc-casecoll.c: New file.
45526
45527         New module 'unicase/ulc-casecoll'.
45528         * lib/unicase.h (ulc_casecoll): New declaration.
45529         * lib/unicase/ulc-casecoll.c: New file.
45530         * modules/unicase/ulc-casecoll: New file.
45531
45532         New module 'unicase/ulc-casexfrm'.
45533         * lib/unicase.h (ulc_casexfrm): New declaration.
45534         * lib/unicase/ulc-casexfrm.c: New file.
45535         * modules/unicase/ulc-casexfrm: New file.
45536
45537 2009-03-09  Bruno Haible  <bruno@clisp.org>
45538
45539         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45540         invocations.
45541
45542         * m4/mbscasecmp.m4: Remove file.
45543         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45544         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45545
45546         * m4/mbscasestr.m4: Remove file.
45547         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45548         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45549
45550         * m4/mbschr.m4: Remove file.
45551         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45552         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45553
45554         * m4/mbscspn.m4: Remove file.
45555         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45556         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45557
45558         * m4/mbslen.m4: Remove file.
45559         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45560         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45561
45562         * m4/mbsncasecmp.m4: Remove file.
45563         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45564         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45565
45566         * m4/mbsnlen.m4: Remove file.
45567         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45568         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45569
45570         * m4/mbspbrk.m4: Remove file.
45571         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45572         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45573
45574         * m4/mbspcasecmp.m4: Remove file.
45575         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45576         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45577
45578         * m4/mbsrchr.m4: Remove file.
45579         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45580         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45581
45582         * m4/mbssep.m4: Remove file.
45583         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45584         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45585
45586         * m4/mbsspn.m4: Remove file.
45587         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45588         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45589
45590         * m4/mbsstr.m4: Remove file.
45591         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45592         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45593
45594         * m4/mbstok_r.m4: Remove file.
45595         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45596         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45597
45598         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45599
45600         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45601         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45602
45603         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45604
45605 2009-03-08  Bruno Haible  <bruno@clisp.org>
45606
45607         Tests for module 'unicase/ulc-casecmp'.
45608         * modules/unicase/ulc-casecmp-tests: New file.
45609         * tests/unicase/test-ulc-casecmp1.sh: New file.
45610         * tests/unicase/test-ulc-casecmp2.sh: New file.
45611         * tests/unicase/test-ulc-casecmp.c: New file.
45612
45613         New module 'unicase/ulc-casecmp'.
45614         * lib/unicase.h (ulc_casecmp): New declaration.
45615         * lib/unicase/ulc-casecmp.c: New file.
45616         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45617         'const SRC_UNIT *'.
45618         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45619         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45620         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45621         * modules/unicase/ulc-casecmp: New file.
45622
45623         Tests for module 'unicase/u32-is-cased'.
45624         * modules/unicase/u32-is-cased-tests: New file.
45625         * tests/unicase/test-u32-is-cased.c: New file.
45626
45627         Tests for module 'unicase/u16-is-cased'.
45628         * modules/unicase/u16-is-cased-tests: New file.
45629         * tests/unicase/test-u16-is-cased.c: New file.
45630
45631         Tests for module 'unicase/u8-is-cased'.
45632         * modules/unicase/u8-is-cased-tests: New file.
45633         * tests/unicase/test-u8-is-cased.c: New file.
45634         * tests/unicase/test-is-cased.h: New file.
45635
45636         New module 'unicase/u32-is-cased'.
45637         * lib/unicase/u32-is-cased.c: New file.
45638         * modules/unicase/u32-is-cased: New file.
45639
45640         New module 'unicase/u16-is-cased'.
45641         * lib/unicase/u16-is-cased.c: New file.
45642         * modules/unicase/u16-is-cased: New file.
45643
45644         New module 'unicase/u8-is-cased'.
45645         * lib/unicase/u8-is-cased.c: New file.
45646         * lib/unicase/u-is-cased.h: New file.
45647         * modules/unicase/u8-is-cased: New file.
45648
45649         Tests for module 'unicase/u32-is-casefolded'.
45650         * modules/unicase/u32-is-casefolded-tests: New file.
45651         * tests/unicase/test-u32-is-casefolded.c: New file.
45652
45653         Tests for module 'unicase/u16-is-casefolded'.
45654         * modules/unicase/u16-is-casefolded-tests: New file.
45655         * tests/unicase/test-u16-is-casefolded.c: New file.
45656
45657         Tests for module 'unicase/u8-is-casefolded'.
45658         * modules/unicase/u8-is-casefolded-tests: New file.
45659         * tests/unicase/test-u8-is-casefolded.c: New file.
45660         * tests/unicase/test-is-casefolded.h: New file.
45661
45662         New module 'unicase/u32-is-casefolded'.
45663         * lib/unicase/u32-is-casefolded.c: New file.
45664         * modules/unicase/u32-is-casefolded: New file.
45665
45666         New module 'unicase/u16-is-casefolded'.
45667         * lib/unicase/u16-is-casefolded.c: New file.
45668         * modules/unicase/u16-is-casefolded: New file.
45669
45670         New module 'unicase/u8-is-casefolded'.
45671         * lib/unicase/u8-is-casefolded.c: New file.
45672         * modules/unicase/u8-is-casefolded: New file.
45673
45674         Tests for module 'unicase/u32-is-titlecase'.
45675         * modules/unicase/u32-is-titlecase-tests: New file.
45676         * tests/unicase/test-u32-is-titlecase.c: New file.
45677
45678         Tests for module 'unicase/u16-is-titlecase'.
45679         * modules/unicase/u16-is-titlecase-tests: New file.
45680         * tests/unicase/test-u16-is-titlecase.c: New file.
45681
45682         Tests for module 'unicase/u8-is-titlecase'.
45683         * modules/unicase/u8-is-titlecase-tests: New file.
45684         * tests/unicase/test-u8-is-titlecase.c: New file.
45685         * tests/unicase/test-is-titlecase.h: New file.
45686
45687         New module 'unicase/u32-is-titlecase'.
45688         * lib/unicase/u32-is-titlecase.c: New file.
45689         * modules/unicase/u32-is-titlecase: New file.
45690
45691         New module 'unicase/u16-is-titlecase'.
45692         * lib/unicase/u16-is-titlecase.c: New file.
45693         * modules/unicase/u16-is-titlecase: New file.
45694
45695         New module 'unicase/u8-is-titlecase'.
45696         * lib/unicase/u8-is-titlecase.c: New file.
45697         * modules/unicase/u8-is-titlecase: New file.
45698
45699         Tests for module 'unicase/u32-is-lowercase'.
45700         * modules/unicase/u32-is-lowercase-tests: New file.
45701         * tests/unicase/test-u32-is-lowercase.c: New file.
45702
45703         Tests for module 'unicase/u16-is-lowercase'.
45704         * modules/unicase/u16-is-lowercase-tests: New file.
45705         * tests/unicase/test-u16-is-lowercase.c: New file.
45706
45707         Tests for module 'unicase/u8-is-lowercase'.
45708         * modules/unicase/u8-is-lowercase-tests: New file.
45709         * tests/unicase/test-u8-is-lowercase.c: New file.
45710         * tests/unicase/test-is-lowercase.h: New file.
45711
45712         New module 'unicase/u32-is-lowercase'.
45713         * lib/unicase/u32-is-lowercase.c: New file.
45714         * modules/unicase/u32-is-lowercase: New file.
45715
45716         New module 'unicase/u16-is-lowercase'.
45717         * lib/unicase/u16-is-lowercase.c: New file.
45718         * modules/unicase/u16-is-lowercase: New file.
45719
45720         New module 'unicase/u8-is-lowercase'.
45721         * lib/unicase/u8-is-lowercase.c: New file.
45722         * modules/unicase/u8-is-lowercase: New file.
45723
45724         Tests for module 'unicase/u32-is-uppercase'.
45725         * modules/unicase/u32-is-uppercase-tests: New file.
45726         * tests/unicase/test-u32-is-uppercase.c: New file.
45727
45728         Tests for module 'unicase/u16-is-uppercase'.
45729         * modules/unicase/u16-is-uppercase-tests: New file.
45730         * tests/unicase/test-u16-is-uppercase.c: New file.
45731
45732         Tests for module 'unicase/u8-is-uppercase'.
45733         * modules/unicase/u8-is-uppercase-tests: New file.
45734         * tests/unicase/test-u8-is-uppercase.c: New file.
45735         * tests/unicase/test-is-uppercase.h: New file.
45736
45737         New module 'unicase/u32-is-uppercase'.
45738         * lib/unicase/u32-is-uppercase.c: New file.
45739         * modules/unicase/u32-is-uppercase: New file.
45740
45741         New module 'unicase/u16-is-uppercase'.
45742         * lib/unicase/u16-is-uppercase.c: New file.
45743         * modules/unicase/u16-is-uppercase: New file.
45744
45745         New module 'unicase/u8-is-uppercase'.
45746         * lib/unicase/u8-is-uppercase.c: New file.
45747         * modules/unicase/u8-is-uppercase: New file.
45748
45749         New module 'unicase/u32-is-invariant'.
45750         * lib/unicase/u32-is-invariant.c: New file.
45751         * modules/unicase/u32-is-invariant: New file.
45752
45753         New module 'unicase/u16-is-invariant'.
45754         * lib/unicase/u16-is-invariant.c: New file.
45755         * modules/unicase/u16-is-invariant: New file.
45756
45757         New module 'unicase/u8-is-invariant'.
45758         * lib/unicase/u8-is-invariant.c: New file.
45759         * lib/unicase/invariant.h: New file.
45760         * lib/unicase/u-is-invariant.h: New file.
45761         * modules/unicase/u8-is-invariant: New file.
45762
45763         Tests for module 'unicase/u32-casecoll'.
45764         * modules/unicase/u32-casecoll-tests: New file.
45765         * tests/unicase/test-u32-casecoll.c: New file.
45766
45767         Tests for module 'unicase/u16-casecoll'.
45768         * modules/unicase/u16-casecoll-tests: New file.
45769         * tests/unicase/test-u16-casecoll.c: New file.
45770
45771         Tests for module 'unicase/u8-casecoll'.
45772         * modules/unicase/u8-casecoll-tests: New file.
45773         * tests/unicase/test-u8-casecoll.c: New file.
45774
45775         New module 'unicase/u32-casecoll'.
45776         * lib/unicase/u32-casecoll.c: New file.
45777         * modules/unicase/u32-casecoll: New file.
45778
45779         New module 'unicase/u16-casecoll'.
45780         * lib/unicase/u16-casecoll.c: New file.
45781         * modules/unicase/u16-casecoll: New file.
45782
45783         New module 'unicase/u8-casecoll'.
45784         * lib/unicase/u8-casecoll.c: New file.
45785         * lib/unicase/u-casecoll.h: New file.
45786         * modules/unicase/u8-casecoll: New file.
45787
45788         New module 'unicase/u32-casexfrm'.
45789         * lib/unicase/u32-casexfrm.c: New file.
45790         * modules/unicase/u32-casexfrm: New file.
45791
45792         New module 'unicase/u16-casexfrm'.
45793         * lib/unicase/u16-casexfrm.c: New file.
45794         * modules/unicase/u16-casexfrm: New file.
45795
45796         New module 'unicase/u8-casexfrm'.
45797         * lib/unicase/u8-casexfrm.c: New file.
45798         * lib/unicase/u-casexfrm.h: New file.
45799         * modules/unicase/u8-casexfrm: New file.
45800
45801         Tests for module 'unicase/u32-casecmp'.
45802         * modules/unicase/u32-casecmp-tests: New file.
45803         * tests/unicase/test-u32-casecmp.c: New file.
45804
45805         Tests for module 'unicase/u16-casecmp'.
45806         * modules/unicase/u16-casecmp-tests: New file.
45807         * tests/unicase/test-u16-casecmp.c: New file.
45808
45809         Tests for module 'unicase/u8-casecmp'.
45810         * modules/unicase/u8-casecmp-tests: New file.
45811         * tests/unicase/test-u8-casecmp.c: New file.
45812         * tests/unicase/test-casecmp.h: New file.
45813
45814         New module 'unicase/u32-casecmp'.
45815         * lib/unicase/u32-casecmp.c: New file.
45816         * modules/unicase/u32-casecmp: New file.
45817
45818         New module 'unicase/u16-casecmp'.
45819         * lib/unicase/u16-casecmp.c: New file.
45820         * modules/unicase/u16-casecmp: New file.
45821
45822         New module 'unicase/u8-casecmp'.
45823         * lib/unicase/u8-casecmp.c: New file.
45824         * lib/unicase/u-casecmp.h: New file.
45825         * modules/unicase/u8-casecmp: New file.
45826
45827         Tests for module 'unicase/u32-casefold'.
45828         * modules/unicase/u32-casefold-tests: New file.
45829         * tests/unicase/test-u32-casefold.c: New file.
45830
45831         Tests for module 'unicase/u16-casefold'.
45832         * modules/unicase/u16-casefold-tests: New file.
45833         * tests/unicase/test-u16-casefold.c: New file.
45834
45835         Tests for module 'unicase/u8-casefold'.
45836         * modules/unicase/u8-casefold-tests: New file.
45837         * tests/unicase/test-u8-casefold.c: New file.
45838
45839         New module 'unicase/u32-casefold'.
45840         * lib/unicase/u32-casefold.c: New file.
45841         * modules/unicase/u32-casefold: New file.
45842
45843         New module 'unicase/u16-casefold'.
45844         * lib/unicase/u16-casefold.c: New file.
45845         * modules/unicase/u16-casefold: New file.
45846
45847         New module 'unicase/u8-casefold'.
45848         * lib/unicase/u8-casefold.c: New file.
45849         * lib/unicase/u-casefold.h: New file.
45850         * modules/unicase/u8-casefold: New file.
45851
45852         New module 'unicase/tocasefold'.
45853         * lib/unicase/casefold.h: New file.
45854         * lib/unicase/tocasefold.c: New file.
45855         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45856         * modules/unicase/tocasefold: New file.
45857
45858         Tests for module 'unicase/u32-totitle'.
45859         * modules/unicase/u32-totitle-tests: New file.
45860         * tests/unicase/test-u32-totitle.c: New file.
45861
45862         Tests for module 'unicase/u16-totitle'.
45863         * modules/unicase/u16-totitle-tests: New file.
45864         * tests/unicase/test-u16-totitle.c: New file.
45865
45866         Tests for module 'unicase/u8-totitle'.
45867         * modules/unicase/u8-totitle-tests: New file.
45868         * tests/unicase/test-u8-totitle.c: New file.
45869
45870         New module 'unicase/u32-totitle'.
45871         * lib/unicase/u32-totitle.c: New file.
45872         * modules/unicase/u32-totitle: New file.
45873
45874         New module 'unicase/u16-totitle'.
45875         * lib/unicase/u16-totitle.c: New file.
45876         * modules/unicase/u16-totitle: New file.
45877
45878         New module 'unicase/u8-totitle'.
45879         * lib/unicase/u8-totitle.c: New file.
45880         * lib/unicase/u-totitle.h: New file.
45881         * modules/unicase/u8-totitle: New file.
45882
45883         Tests for module 'unicase/u32-tolower'.
45884         * modules/unicase/u32-tolower-tests: New file.
45885         * tests/unicase/test-u32-tolower.c: New file.
45886
45887         Tests for module 'unicase/u16-tolower'.
45888         * modules/unicase/u16-tolower-tests: New file.
45889         * tests/unicase/test-u16-tolower.c: New file.
45890
45891         Tests for module 'unicase/u8-tolower'.
45892         * modules/unicase/u8-tolower-tests: New file.
45893         * tests/unicase/test-u8-tolower.c: New file.
45894
45895         New module 'unicase/u32-tolower'.
45896         * lib/unicase/u32-tolower.c: New file.
45897         * modules/unicase/u32-tolower: New file.
45898
45899         New module 'unicase/u16-tolower'.
45900         * lib/unicase/u16-tolower.c: New file.
45901         * modules/unicase/u16-tolower: New file.
45902
45903         New module 'unicase/u8-tolower'.
45904         * lib/unicase/u8-tolower.c: New file.
45905         * modules/unicase/u8-tolower: New file.
45906
45907         Tests for module 'unicase/u32-toupper'.
45908         * modules/unicase/u32-toupper-tests: New file.
45909         * tests/unicase/test-u32-toupper.c: New file.
45910
45911         Tests for module 'unicase/u16-toupper'.
45912         * modules/unicase/u16-toupper-tests: New file.
45913         * tests/unicase/test-u16-toupper.c: New file.
45914
45915         Tests for module 'unicase/u8-toupper'.
45916         * modules/unicase/u8-toupper-tests: New file.
45917         * tests/unicase/test-u8-toupper.c: New file.
45918
45919         New module 'unicase/u32-toupper'.
45920         * lib/unicase/u32-toupper.c: New file.
45921         * modules/unicase/u32-toupper: New file.
45922
45923         New module 'unicase/u16-toupper'.
45924         * lib/unicase/u16-toupper.c: New file.
45925         * modules/unicase/u16-toupper: New file.
45926
45927         New module 'unicase/u8-toupper'.
45928         * lib/unicase/u8-toupper.c: New file.
45929         * modules/unicase/u8-toupper: New file.
45930
45931         New module 'unicase/u32-casemap'.
45932         * lib/unicase/u32-casemap.c: New file.
45933         * modules/unicase/u32-casemap: New file.
45934
45935         New module 'unicase/u16-casemap'.
45936         * lib/unicase/u16-casemap.c: New file.
45937         * modules/unicase/u16-casemap: New file.
45938
45939         New module 'unicase/u8-casemap'.
45940         * lib/unicase/unicasemap.h: New file.
45941         * lib/unicase/u8-casemap.c: New file.
45942         * lib/unicase/u-casemap.h: New file.
45943         * modules/unicase/u8-casemap: New file.
45944
45945         New module 'unicase/special-casing'.
45946         * lib/unicase/special-casing.h: New file.
45947         * lib/unicase/special-casing.c: New file.
45948         * lib/unicase/special-casing-table.gperf: New file, generated by
45949         gen-uni-tables.c.
45950         * modules/unicase/special-casing: New file.
45951
45952         Tests for module 'unicase/locale-language'.
45953         * modules/unicase/locale-language-tests: New file.
45954         * tests/unicase/test-locale-language.sh: New file.
45955         * tests/unicase/test-locale-language.c: New file.
45956
45957         New module 'unicase/locale-language'.
45958         * lib/unicase/locale-language.c: New file.
45959         * lib/unicase/locale-languages.gperf: New file.
45960         * modules/unicase/locale-language: New file.
45961
45962         Generate more tables for case conversion and case folding.
45963         * lib/gen-uni-tables.c (SCC_*): New enum items.
45964         (struct special_casing_rule): New type.
45965         (casing_rules, num_casing_rules, allocated_casing_rules): New
45966         variables.
45967         (add_casing_rule, fill_casing_rules): New functions.
45968         (struct casefold_rule): New type.
45969         (casefolding_rules, num_casefolding_rules,
45970         allocated_casefolding_rules): New variables.
45971         (fill_casefolding_rules): New function.
45972         (unicode_casefold): New variable.
45973         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45974         sort_casing_rules, output_casing_rules): New functions.
45975         (main): Accept to more arguments: SpecialCasing.txt and
45976         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45977         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45978         Output mapping for casefolding.
45979
45980         * lib/unicase.h: Include stdbool.h, uninorm.h.
45981         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45982         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45983         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45984         arguments.
45985         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45986         resultp arguments.
45987         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45988         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45989         resultp arguments.
45990         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45991         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45992         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45993         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45994         declarations.
45995         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45996
45997 2009-03-08  Bruno Haible  <bruno@clisp.org>
45998
45999         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46000         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46001         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46002         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46003
46004 2009-03-07  Bruno Haible  <bruno@clisp.org>
46005
46006         Adjust u*_normcmp, u*_normcoll API.
46007         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46008         u16_normcoll, u32_normcoll): Change failure conventions.
46009         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46010         errno and return -1.
46011         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46012
46013 2009-03-07  Bruno Haible  <bruno@clisp.org>
46014
46015         Tests for module 'uninorm/u32-normcoll'.
46016         * modules/uninorm/u32-normcoll-tests: New file.
46017         * tests/uninorm/test-u32-normcoll.c: New file.
46018
46019         Tests for module 'uninorm/u16-normcoll'.
46020         * modules/uninorm/u16-normcoll-tests: New file.
46021         * tests/uninorm/test-u16-normcoll.c: New file.
46022
46023         Tests for module 'uninorm/u8-normcoll'.
46024         * modules/uninorm/u8-normcoll-tests: New file.
46025         * tests/uninorm/test-u8-normcoll.c: New file.
46026
46027 2009-03-07  Bruno Haible  <bruno@clisp.org>
46028
46029         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46030         tests/uninorm/test-u32-normcmp.c.
46031         * tests/uninorm/test-u32-normcmp.c: Include it.
46032         (test_nonascii): New function, extracted from main. Add some more
46033         tests.
46034         (main): Invoke test_ascii and test_nonascii.
46035         * modules/uninorm/u32-normcmp-tests (Files): Add
46036         tests/uninorm/test-u32-normcmp.h.
46037         (Depends-on): Remove uninorm/u32-normcmp.
46038
46039         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46040         tests/uninorm/test-u16-normcmp.c.
46041         * tests/uninorm/test-u16-normcmp.c: Include it.
46042         (test_nonascii): New function, extracted from main. Add some more
46043         tests.
46044         (main): Invoke test_ascii and test_nonascii.
46045         * modules/uninorm/u16-normcmp-tests (Files): Add
46046         tests/uninorm/test-u16-normcmp.h.
46047         (Depends-on): Remove uninorm/u16-normcmp.
46048
46049         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46050         tests/uninorm/test-u8-normcmp.c.
46051         * tests/uninorm/test-u8-normcmp.c: Include it.
46052         (test_nonascii): New function, extracted from main. Add some more
46053         tests.
46054         (main): Invoke test_ascii and test_nonascii.
46055         * modules/uninorm/u8-normcmp-tests (Files): Add
46056         tests/uninorm/test-u8-normcmp.h.
46057         (Depends-on): Remove uninorm/u8-normcmp.
46058
46059 2009-03-07  Bruno Haible  <bruno@clisp.org>
46060
46061         New module 'uninorm/u32-normcoll'.
46062         * lib/uninorm/u32-normcoll.c: New file.
46063         * modules/uninorm/u32-normcoll: New file.
46064
46065         New module 'uninorm/u16-normcoll'.
46066         * lib/uninorm/u16-normcoll.c: New file.
46067         * modules/uninorm/u16-normcoll: New file.
46068
46069         New module 'uninorm/u8-normcoll'.
46070         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46071         declarations.
46072         * lib/uninorm/u8-normcoll.c: New file.
46073         * lib/uninorm/u-normcoll.h: New file.
46074         * modules/uninorm/u8-normcoll: New file.
46075
46076         New module 'uninorm/u32-normxfrm'.
46077         * lib/uninorm/u32-normxfrm.c: New file.
46078         * modules/uninorm/u32-normxfrm: New file.
46079
46080         New module 'uninorm/u16-normxfrm'.
46081         * lib/uninorm/u16-normxfrm.c: New file.
46082         * modules/uninorm/u16-normxfrm: New file.
46083
46084         New module 'uninorm/u8-normxfrm'.
46085         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46086         declarations.
46087         * lib/uninorm/u8-normxfrm.c: New file.
46088         * lib/uninorm/u-normxfrm.h: New file.
46089         * modules/uninorm/u8-normxfrm: New file.
46090
46091 2009-03-07  Bruno Haible  <bruno@clisp.org>
46092
46093         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46094         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46095         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46096
46097 2009-03-07  Bruno Haible  <bruno@clisp.org>
46098
46099         New module 'memxfrm'.
46100         * lib/memxfrm.h: New file.
46101         * lib/memxfrm.c: New file.
46102         * modules/memxfrm: New file.
46103
46104 2009-03-07  Bruno Haible  <bruno@clisp.org>
46105
46106         New module 'memcmp2'.
46107         * lib/memcmp2.h: New file.
46108         * lib/memcmp2.c: New file.
46109         * modules/memcmp2: New file.
46110
46111 2009-03-07  Bruno Haible  <bruno@clisp.org>
46112
46113         Tests for module 'uninorm/decomposing-form'.
46114         * modules/uninorm/decomposing-form-tests: New file.
46115         * tests/uninorm/test-decomposing-form.c: New file.
46116
46117         New module 'uninorm/decomposing-form'.
46118         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46119         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46120         Add 'decomposing_variant' field.
46121         * lib/uninorm/decomposing-form.c: New file.
46122         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46123         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46124         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46125         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46126         * modules/uninorm/decomposing-form: New file.
46127         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46128         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46129
46130 2009-03-07  Bruno Haible  <bruno@clisp.org>
46131
46132         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46133         strings.
46134
46135 2009-03-06  Bruno Haible  <bruno@clisp.org>
46136
46137         Tests for module 'uninorm/u32-normcmp'.
46138         * tests/uninorm/test-u32-normcmp.c: New file.
46139         * modules/uninorm/u32-normcmp-tests: New file.
46140
46141         Tests for module 'uninorm/u16-normcmp'.
46142         * tests/uninorm/test-u16-normcmp.c: New file.
46143         * modules/uninorm/u16-normcmp-tests: New file.
46144
46145         Tests for module 'uninorm/u8-normcmp'.
46146         * tests/uninorm/test-u8-normcmp.c: New file.
46147         * modules/uninorm/u8-normcmp-tests: New file.
46148
46149         New module 'uninorm/u32-normcmp'.
46150         * lib/uninorm/u32-normcmp.c: New file.
46151         * modules/uninorm/u32-normcmp: New file.
46152
46153         New module 'uninorm/u16-normcmp'.
46154         * lib/uninorm/u16-normcmp.c: New file.
46155         * modules/uninorm/u16-normcmp: New file.
46156
46157         New module 'uninorm/u8-normcmp'.
46158         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46159         declarations.
46160         * lib/uninorm/u8-normcmp.c: New file.
46161         * lib/uninorm/u-normcmp.h: New file.
46162         * modules/uninorm/u8-normcmp: New file.
46163
46164 2009-03-06  Bruno Haible  <bruno@clisp.org>
46165
46166         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46167         Reported by Eric Blake.
46168
46169 2009-03-06  Eric Blake  <ebb9@byu.net>
46170             Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46173         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46174         condition.
46175         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46176         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46177         condition.
46178         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46179
46180 2009-03-06  Eric Blake  <ebb9@byu.net>
46181
46182         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46183         to avoid compiler warnings.
46184         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46185
46186 2009-03-05  Bruno Haible  <bruno@clisp.org>
46187
46188         * tests/test-ftell.c (main): Disable test beyond end of file on
46189         FreeMiNT.
46190         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46191
46192 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46193
46194         * lib/filevercmp.c: Move hidden files up in ordering.
46195         * tests/test-filevercmp.c: Add tests for hidden files.
46196
46197 2009-03-04  Bruno Haible  <bruno@clisp.org>
46198
46199         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46200         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46201         AM_CFLAGS.
46202         Reported by Simon Josefsson.
46203
46204 2009-03-03  Bruno Haible  <bruno@clisp.org>
46205
46206         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46207         Reported by Simon Josefsson.
46208
46209         * doc/ld-version-script.texi: Update node reference.
46210
46211 2009-03-03  Bruno Haible  <bruno@clisp.org>
46212
46213         * modules/visibility (License): Change to 'unlimited'.
46214         Suggested by Simon Josefsson.
46215
46216 2009-03-03  Jim Meyering  <meyering@redhat.com>
46217
46218         unlinkdir: cannot_unlink_dir may modify process state
46219         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46220         it's neither thread-safe nor appropriate for use in a library.
46221
46222 2009-03-03  Eric Blake  <ebb9@byu.net>
46223
46224         test-closein: silence test under Darwin
46225         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46226         care if it dies from EPIPE or EBADF.
46227
46228 2009-03-03  Bruno Haible  <bruno@clisp.org>
46229
46230         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46231         earlier.
46232         * doc/visibility.texi: Fix @node and @section.
46233
46234 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46235
46236         * doc/gnulib.texi: Link to sections for ld version script and
46237         visibility.
46238         * doc/visibility.texi: Add @node and @section.
46239         * modules/ld-version-script: New module.
46240         * m4/ld-version-script.m4: New file.
46241         * doc/ld-version-script.texi: New file.
46242
46243 2009-03-02  David Lutterkort  <lutter@redhat.com>
46244
46245         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46247
46248 2009-03-02  Bruno Haible  <bruno@clisp.org>
46249
46250         * doc/visibility.texi: Mention libtool's -export-symbols option.
46251
46252 2009-03-02  Jim Meyering  <meyering@redhat.com>
46253
46254         announce-gen: new option: --no-print-checksums
46255         * build-aux/announce-gen (usage): Describe it.
46256         (print_checksums): Print a newline here, not in the [*] footnote.
46257         (main): Honor it.
46258
46259 2009-03-01  Bruno Haible  <bruno@clisp.org>
46260
46261         Use socklen_t in the native Windows replacements prototypes.
46262         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46263         instead of 'int'.
46264         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46265         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46266         * modules/getsockopt (Depends-on): Add socklen.
46267         * modules/setsockopt (Depends-on): Add socklen.
46268
46269 2009-03-01  Bruno Haible  <bruno@clisp.org>
46270
46271         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46272         least 4.2.
46273
46274 2009-03-01  Eric Blake  <ebb9@byu.net>
46275             Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46278         error messages.
46279         * lib/wait-process.c (wait_subprocess): Omit error message about
46280         deadly signal sent to the child of termsigp != NULL.
46281
46282 2009-03-01  Eric Blake  <ebb9@byu.net>
46283
46284         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46285
46286 2009-03-01  Bruno Haible  <bruno@clisp.org>
46287
46288         Avoid a gcc warning.
46289         * tests/test-sched.c (b): Make global.
46290         Reported by Eric Blake.
46291
46292 2009-01-19  Martin Lambers  <marlam@marlam.de>
46293
46294         Provide POSIX semantics for socket timeout options on W32.
46295         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46296         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46297         * modules/setsockopt: Depend on sys_time module for struct timeval.
46298         * modules/getsockopt: Depend on sys_time module for struct timeval.
46299
46300 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46301
46302         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46303         __USE_GNU, for consistency with netdb.in.h.
46304         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46305
46306 2009-03-01  Bruno Haible  <bruno@clisp.org>
46307
46308         More support for FreeMiNT.
46309         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46310         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46311
46312 2009-03-01  Bruno Haible  <bruno@clisp.org>
46313
46314         More support for FreeMiNT.
46315         * lib/fpurge.c (fpurge): Correct last commit.
46316         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46317
46318 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46319
46320         Fix unportable awk script in vc-list-files.
46321         * build-aux/vc-list-files: In the replacement awk script, use
46322         substr with a second argument of 1, not zero.
46323         Report by Simon Josefsson.
46324
46325 2009-02-28  Bruno Haible  <bruno@clisp.org>
46326
46327         More support for FreeMiNT.
46328         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46329         to FreeMiNT today.
46330         * lib/fwriting.c (fwriting): Likewise.
46331         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46332
46333 2009-02-28  Bruno Haible  <bruno@clisp.org>
46334
46335         * tests/test-freadseek.c (main): Disable test beyond end of file on
46336         FreeMiNT.
46337         * tests/test-ftello.c (main): Likewise.
46338         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46339
46340 2009-02-28  Bruno Haible  <bruno@clisp.org>
46341
46342         Add tentative support for FreeMiNT.
46343         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46344         * lib/fpurge.c (fpurge): Likewise.
46345         * lib/freadable.c (freadable): Likewise.
46346         * lib/freading.c (freading): Likewise.
46347         * lib/freadptr.c (freadptr): Likewise.
46348         * lib/freadseek.c (freadptrinc): Likewise.
46349         * lib/fseeko.c (rpl_fseeko): Likewise.
46350         * lib/fseterr.c (fseterr): Likewise.
46351         * lib/fwritable.c (fwritable): Likewise.
46352         * lib/fwriting.c (fwriting): Likewise.
46353         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46354         Hourihane.
46355         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46356
46357 2009-02-28  Bruno Haible  <bruno@clisp.org>
46358
46359         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46360         SIGCHLD.
46361         Reported by Jim Meyering.
46362
46363 2009-02-28  Bruno Haible  <bruno@clisp.org>
46364
46365         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46366         Mention the results of these tests on various platforms.
46367         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46368         order.
46369         * doc/posix-functions/printf.texi: Likewise.
46370         * doc/posix-functions/snprintf.texi: Likewise.
46371         * doc/posix-functions/sprintf.texi: Likewise.
46372         * doc/posix-functions/vfprintf.texi: Likewise.
46373         * doc/posix-functions/vprintf.texi: Likewise.
46374         * doc/posix-functions/vsnprintf.texi: Likewise.
46375         * doc/posix-functions/vsprintf.texi: Likewise.
46376         * doc/glibc-functions/obstack_printf.texi: Likewise.
46377         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46378
46379 2009-02-28  Bruno Haible  <bruno@clisp.org>
46380
46381         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46382         Reported by Loïc Minier <lool@dooz.org>.
46383
46384 2009-02-27  Bruno Haible  <bruno@clisp.org>
46385
46386         * gnulib-tool (func_import): Make the sed expression used to create the
46387         sed script for updating the .gitignore file POSIX compliant.
46388         Reported by Eric Blake.
46389
46390 2009-02-27  Bruno Haible  <bruno@clisp.org>
46391
46392         * gnulib-tool (sed): Don't alias as "sed --posix".
46393         Reported by Eric Blake.
46394
46395 2009-02-27  Bruno Haible  <bruno@clisp.org>
46396
46397         Avoid test link errors.
46398         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46399         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46400         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46401         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46403
46404 2009-02-27  Bruno Haible  <bruno@clisp.org>
46405
46406         Avoid spurious "(cached)" in configure output.
46407         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46408         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46409         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46410         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46411         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46412         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46413         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46414         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46415         Reported by Eric Blake.
46416
46417 2009-02-27  Eric Blake  <ebb9@byu.net>
46418
46419         printf: fix regression in previous patch
46420         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46421
46422 2009-02-27  Bruno Haible  <bruno@clisp.org>
46423
46424         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46425         value.
46426         * lib/stdint.in.h: Likewise.
46427         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46428
46429 2009-02-27  Eric Blake  <ebb9@byu.net>
46430
46431         doc: mention more functions added in cygwin 1.7.0
46432         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46433         addition.
46434         * doc/posix-functions/open_wmemstream.texi: Likewise.
46435         * doc/posix-functions/wcsnlen.texi: Likewise.
46436         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46437         * doc/posix-functions/wcstod.texi: Likewise.
46438         * doc/posix-functions/wcstof.texi: Likewise.
46439         * doc/posix-functions/wcstoimax.texi: Likewise.
46440         * doc/posix-functions/wcstok.texi: Likewise.
46441         * doc/posix-functions/wcstoumax.texi: Likewise.
46442
46443         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46444         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46445         * doc/posix-functions/fprintf.texi: Update.
46446         * doc/posix-functions/printf.texi: Update.
46447         * doc/posix-functions/snprintf.texi: Update.
46448         * doc/posix-functions/sprintf.texi: Update.
46449         * doc/posix-functions/vfprintf.texi: Update.
46450         * doc/posix-functions/vprintf.texi: Update.
46451         * doc/posix-functions/vsnprintf.texi: Update.
46452         * doc/posix-functions/vsprintf.texi: Update.
46453         * doc/glibc-functions/obstack_printf.texi: Update.
46454         * doc/glibc-functions/obstack_vprintf.texi: Update.
46455
46456 2009-02-26  Eric Blake  <ebb9@byu.net>
46457
46458         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46459         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46460         compilation bug by using runtime conversion.
46461         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46462         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46463         * modules/ceill-tests (Files): Use nan.h.
46464         * modules/floorl-tests (Files): Likewise.
46465         * modules/frexpl-tests (Files): Likewise.
46466         * modules/isnanl-tests (Files): Likewise.
46467         * modules/ldexpl-tests (Files): Likewise.
46468         * modules/roundl-tests (Files): Likewise.
46469         * modules/truncl-tests (Files): Likewise.
46470         * tests/test-ceill.c (main): Use a working NaN.
46471         * tests/test-floorl.c (main): Likewise.
46472         * tests/test-frexpl.c (main): Likewise.
46473         * tests/test-isnan.c (test_long_double): Likewise.
46474         * tests/test-isnanl.h (main): Likewise.
46475         * tests/test-ldexpl.h (main): Likewise.
46476         * tests/test-roundl.h (main): Likewise.
46477         * tests/test-truncl.h (main): Likewise.
46478         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46479
46480 2009-02-26  Eric Blake  <ebb9@byu.net>
46481             Bruno Haible  <bruno@clisp.org>
46482
46483         Work around a *printf bug with %ls on Solaris.
46484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46485         precision is specified, sprintf stops converting the wide string
46486         argument when the number of bytes that have been produced by this
46487         conversion equals or exceeds the precision.
46488         * doc/posix-functions/fprintf.texi: Update.
46489         * doc/posix-functions/printf.texi: Update.
46490         * doc/posix-functions/snprintf.texi: Update.
46491         * doc/posix-functions/sprintf.texi: Update.
46492         * doc/posix-functions/vfprintf.texi: Update.
46493         * doc/posix-functions/vprintf.texi: Update.
46494         * doc/posix-functions/vsnprintf.texi: Update.
46495         * doc/posix-functions/vsprintf.texi: Update.
46496         * doc/glibc-functions/obstack_printf.texi: Update.
46497         * doc/glibc-functions/obstack_vprintf.texi: Update.
46498
46499 2009-02-26  Eric Blake  <ebb9@byu.net>
46500
46501         stdlib: favor compiler check of random.h
46502         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46503         to avoid an ObjC random.h installed by Swarm.
46504
46505 2009-02-26  Bruno Haible  <bruno@clisp.org>
46506
46507         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46508         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46509         Reported by Gary V. Vaughan <gary@gnu.org>.
46510
46511 2009-02-26  Bruno Haible  <bruno@clisp.org>
46512
46513         Fix *printf behaviour regarding the %ls directive.
46514         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46515         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46516         NEED_PRINTF_DIRECTIVE_LS.
46517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46518         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46520         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46521         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46522         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46523         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46524         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46526         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46528         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46529         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46531         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46532         * doc/posix-functions/fprintf.texi: Update.
46533         * doc/posix-functions/printf.texi: Update.
46534         * doc/posix-functions/snprintf.texi: Update.
46535         * doc/posix-functions/sprintf.texi: Update.
46536         * doc/posix-functions/vfprintf.texi: Update.
46537         * doc/posix-functions/vprintf.texi: Update.
46538         * doc/posix-functions/vsnprintf.texi: Update.
46539         * doc/posix-functions/vsprintf.texi: Update.
46540         * doc/glibc-functions/obstack_printf.texi: Update.
46541         * doc/glibc-functions/obstack_vprintf.texi: Update.
46542         Reported by Eric Blake.
46543
46544 2009-02-25  Bruno Haible  <bruno@clisp.org>
46545
46546         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46547         with known value.
46548         Reported by Gary V. Vaughan <gary@gnu.org>.
46549
46550 2009-02-25  Bruno Haible  <bruno@clisp.org>
46551
46552         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46553         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46554         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46555         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46556         Reported by Gary V. Vaughan <gary@gnu.org>.
46557
46558 2009-02-25  Bruno Haible  <bruno@clisp.org>
46559
46560         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46561         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46562         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46563         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46564         Reported by Gary V. Vaughan <gary@gnu.org>.
46565
46566 2009-02-25  Eric Blake  <ebb9@byu.net>
46567
46568         tests: skip fseek/ftell tests if ungetc is broken
46569         * m4/ungetc.m4: New file.
46570         * modules/fseek-tests: Split test, so ungetc dependency is
46571         separate from rest of test.
46572         * modules/fseeko-tests: Likewise.
46573         * modules/ftell-tests: Likewise.
46574         * modules/ftello-tests: Likewise.
46575         * tests/test-fseek.c (main): Isolate ungetc dependency.
46576         * tests/test-fseeko.c (main): Likewise.
46577         * tests/test-ftell.c (main): Likewise.
46578         * tests/test-ftello.c (main): Likewise.
46579         * tests/test-fseek2.sh: New file.
46580         * tests/test-fseeko2.sh: Likewise.
46581         * tests/test-ftell2.sh: Likewise.
46582         * tests/test-ftello2.sh: Likewise.
46583
46584 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46585
46586         test-getaddrinfo: fix usage of skip return code 77
46587         * tests/test-gettaddrinfo.c: Return skip code 77 only
46588         for first occurance of skip (4x77 is not 77)
46589
46590 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46591
46592         strtod: avoid C99 decl-after-statement
46593         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46594
46595 2009-02-24  Eric Blake  <ebb9@byu.net>
46596
46597         strtod: detect HP-UX 11.31 bug
46598         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46599         Reported by Gary V. Vaughan.
46600
46601 2009-02-23  Bruno Haible  <bruno@clisp.org>
46602
46603         Fix invalid read past end of memory block.
46604         * lib/vasnprintf.c (DCHAR_SET): Define.
46605         (local_wcslen): Define only when needed.
46606         (local_strnlen, local_wcsnlen): New functions.
46607         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46608         directives that involve a conversion ourselves.
46609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46610         wcsnlen, mbrtowc, wcrtomb.
46611         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46612         * tests/test-vasprintf-posix.c (test_function): Likewise.
46613         * tests/test-snprintf-posix.h (test_function): Likewise.
46614         * tests/test-sprintf-posix.h (test_function): Likewise.
46615         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46616
46617 2009-02-22  Bruno Haible  <bruno@clisp.org>
46618
46619         Implement new clarified decomposition of Hangul syllables.
46620         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46621         of type LTV, return only a pairwise decomposition.
46622         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46623         Likewise.
46624         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46625         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46626         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46627
46628 2009-02-22  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46631         zero-length results and shrink excess allocated memory.
46632         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46633         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46634         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46635         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46636         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46637         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46638         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46639         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46640         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46641         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46642         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46643         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46644
46645 2009-02-21  Bruno Haible  <bruno@clisp.org>
46646
46647         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46648         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46649         spaces after a period. Put a space between a macro name and its
46650         argument list. Trivial rewordings.
46651         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46652         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46653         (main): Return 0 explicitly.
46654
46655 2009-02-21  Bruno Haible  <bruno@clisp.org>
46656
46657         Tests for module 'uninorm/filter'.
46658         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46659         * modules/uninorm/filter-tests: New file.
46660
46661         New module 'uninorm/filter'.
46662         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46663         uninorm_filter_flush, uninorm_filter_free): New declarations.
46664         * lib/uninorm/uninorm-filter.c: New file.
46665         * modules/uninorm/filter: New file.
46666
46667 2009-02-21  Bruno Haible  <bruno@clisp.org>
46668
46669         Tests for module 'uninorm/nfkc'.
46670         * tests/uninorm/test-nfkc.c: New file.
46671         * tests/uninorm/test-u8-nfkc.c: New file.
46672         * tests/uninorm/test-u16-nfkc.c: New file.
46673         * tests/uninorm/test-u32-nfkc.c: New file.
46674         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46675         * tests/uninorm/test-u32-nfkc-big.c: New file.
46676         * modules/uninorm/nfkc-tests: New file.
46677
46678         New module 'uninorm/nfkc'.
46679         * lib/uninorm/nfkc.c: New file.
46680         * modules/uninorm/nfkc: New file.
46681
46682         Tests for module 'uninorm/nfkd'.
46683         * tests/uninorm/test-nfkd.c: New file.
46684         * tests/uninorm/test-u8-nfkd.c: New file.
46685         * tests/uninorm/test-u16-nfkd.c: New file.
46686         * tests/uninorm/test-u32-nfkd.c: New file.
46687         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46688         * tests/uninorm/test-u32-nfkd-big.c: New file.
46689         * modules/uninorm/nfkd-tests: New file.
46690
46691         New module 'uninorm/nfkd'.
46692         * lib/uninorm/nfkd.c: New file.
46693         * modules/uninorm/nfkd: New file.
46694
46695         Tests for module 'uninorm/nfc'.
46696         * tests/uninorm/test-nfc.c: New file.
46697         * tests/uninorm/test-u8-nfc.c: New file.
46698         * tests/uninorm/test-u16-nfc.c: New file.
46699         * tests/uninorm/test-u32-nfc.c: New file.
46700         * tests/uninorm/test-u32-nfc-big.sh: New file.
46701         * tests/uninorm/test-u32-nfc-big.c: New file.
46702         * modules/uninorm/nfc-tests: New file.
46703
46704         New module 'uninorm/nfc'.
46705         * lib/uninorm/nfc.c: New file.
46706         * modules/uninorm/nfc: New file.
46707
46708         Tests for module 'uninorm/nfd'.
46709         * tests/uninorm/test-nfd.c: New file.
46710         * tests/uninorm/test-u8-nfd.c: New file.
46711         * tests/uninorm/test-u16-nfd.c: New file.
46712         * tests/uninorm/test-u32-nfd.c: New file.
46713         * tests/uninorm/test-u32-nfd-big.sh: New file.
46714         * tests/uninorm/test-u32-nfd-big.c: New file.
46715         * tests/uninorm/test-u32-normalize-big.h: New file.
46716         * tests/uninorm/test-u32-normalize-big.c: New file.
46717         * tests/uninorm/NormalizationTest.txt: New file, created from
46718         Unicode 5.1.0 NormalizationTest.txt.
46719         * modules/uninorm/nfd-tests: New file.
46720
46721         New module 'uninorm/nfd'.
46722         * lib/uninorm/nfd.c: New file.
46723         * modules/uninorm/nfd: New file.
46724
46725         New module 'uninorm/u32-normalize'.
46726         * lib/uninorm/u32-normalize.c: New file.
46727         * modules/uninorm/u32-normalize: New file.
46728
46729         New module 'uninorm/u16-normalize'.
46730         * lib/uninorm/u16-normalize.c: New file.
46731         * modules/uninorm/u16-normalize: New file.
46732
46733         New module 'uninorm/u8-normalize'.
46734         * lib/uninorm/u8-normalize.c: New file.
46735         * lib/uninorm/normalize-internal.h: New file.
46736         * lib/uninorm/u-normalize-internal.h: New file.
46737         * modules/uninorm/u8-normalize: New file.
46738
46739         New module 'uninorm/decompose-internal'.
46740         * lib/uninorm/decompose-internal.c: New file.
46741         * modules/uninorm/decompose-internal: New file.
46742
46743         Tests for module 'uninorm/composition'.
46744         * tests/uninorm/test-composition.c: New file.
46745         * modules/uninorm/composition-tests: New file.
46746
46747         New module 'uninorm/composition'.
46748         * lib/uninorm/composition.c: New file.
46749         * lib/uninorm/composition-table.gperf: New file, generated by
46750         gen-uni-tables.
46751         * modules/uninorm/composition: New file.
46752
46753         Tests for module 'uninorm/compat-decomposition'.
46754         * tests/uninorm/test-compat-decomposition.c: New file.
46755         * modules/uninorm/compat-decomposition-tests: New file.
46756
46757         New module 'uninorm/compat-decomposition'.
46758         * lib/uninorm/decompose-internal.h: New file.
46759         * lib/uninorm/compat-decomposition.c: New file.
46760         * modules/uninorm/compat-decomposition: New file.
46761
46762         Tests for module 'uninorm/canonical-decomposition'.
46763         * tests/uninorm/test-canonical-decomposition.c: New file.
46764         * modules/uninorm/canonical-decomposition-tests: New file.
46765
46766         New module 'uninorm/canonical-decomposition'.
46767         * lib/uninorm/canonical-decomposition.c: New file.
46768         * modules/uninorm/canonical-decomposition: New file.
46769
46770         Tests for module 'uninorm/decomposition'.
46771         * tests/uninorm/test-decomposition.c: New file.
46772         * modules/uninorm/decomposition-tests: New file.
46773
46774         New module 'uninorm/decomposition'.
46775         * lib/uninorm/decomposition.c: New file.
46776         * modules/uninorm/decomposition: New file.
46777
46778         New module 'uninorm/decomposition-table'.
46779         * lib/uninorm/decomposition-table.h: New file.
46780         * lib/uninorm/decomposition-table.c: New file.
46781         * lib/uninorm/decomposition-table1.h: New file, generated by
46782         gen-uni-tables.
46783         * lib/uninorm/decomposition-table2.h: New file, generated by
46784         gen-uni-tables.
46785         * modules/uninorm/decomposition-table: New file.
46786
46787         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46788         (UC_DECOMP_*): New enumeration items.
46789         (get_decomposition): New function.
46790         (struct decomp_table): New type.
46791         (output_decomposition, output_decomposition_tables): New functions.
46792         (unicode_composition_exclusions): New variable.
46793         (fill_composition_exclusions, debug_output_composition_tables): New
46794         functions.
46795         (main): Accept one more argument. Invoke fill_composition_exclusions.
46796         Output decomposition and composition tables.
46797
46798         New module 'uninorm/base'.
46799         * lib/uninorm.h: New file.
46800         * lib/unictype.h: Update comment.
46801         * modules/uninorm/base: New file.
46802
46803 2009-02-21  David Lutterkort  <lutter@redhat.com>
46804
46805         Tests for module 'safe-alloc'.
46806         * tests/test-safe-alloc.c: New file.
46807         * modules/safe-alloc-tests: New file.
46808
46809         New module 'safe-alloc'.
46810         * lib/safe-alloc.h: New file.
46811         * lib/safe-alloc.c: New file.
46812         * m4/safe-alloc.m4: New file.
46813         * modules/safe-alloc: New file.
46814         * doc/safe-alloc.texi: New file.
46815         * doc/gnulib.texi: Include it.
46816         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46817         safe-alloc.
46818
46819 2009-02-18  Bruno Haible  <bruno@clisp.org>
46820
46821         Fix link error on non-glibc systems.
46822         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46823         variable.
46824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46825
46826 2009-02-18  Jim Meyering  <meyering@redhat.com>
46827
46828         fts: avoid used-uninitialized error due to recent change
46829         * lib/fts.c (fts_read): Guard uses of the new member,
46830         parent->fts_n_dirs_remaining, since it's not relevant for
46831         the parent of a directory specified on the command-line.
46832
46833 2009-02-17  James Youngman  <jay@gnu.org>
46834             Bruno Haible  <bruno@clisp.org>
46835
46836         * m4/include_next.m4: Reformulate comment.
46837
46838 2009-02-16  Jim Meyering  <meyering@redhat.com>
46839
46840         fts: add #if guards so that the fts_lgpl module still builds
46841         * lib/fts.c: Guard just-added hash-table-using parts with
46842         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46843         Reported by Simon Josefsson.
46844
46845 2009-02-15  Bruno Haible  <bruno@clisp.org>
46846
46847         * modules/array-mergesort-tests: New file.
46848         * tests/test-array-mergesort.c: New file.
46849
46850         New module 'array-mergesort'.
46851         * modules/array-mergesort: New file.
46852         * lib/array-mergesort.h: New file.
46853
46854 2009-02-15  Bruno Haible  <bruno@clisp.org>
46855
46856         Fix 2009-02-07 commit.
46857         * lib/gen-uni-tables.c (output_predicate, output_category,
46858         output_combclass, output_bidi_category, output_decimal_digit,
46859         output_digit, output_numeric, output_mirror, output_scripts,
46860         output_ident_category, output_simple_mapping): Fix format directives.
46861         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46862
46863 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46864
46865         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46866         fixes are available from IBM.
46867
46868 2009-02-13  Jim Meyering  <meyering@redhat.com>
46869
46870         fts: arrange not to stat non-directories in more cases
46871         This makes GNU find (when it doesn't need to stat each file)
46872         *much* more efficient at traversing reiserfs file systems.
46873         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46874         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46875         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46876         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46877         (leaf_optimization_applies): New function.
46878         (LCO_hash, LCO_compare): New helper functions.
46879         (link_count_optimize_ok): New function.
46880         (fts_stat): Initialize new member (if dir).
46881         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46882         we've just stat'ed a directory.  Skip the stat call when possible.
46883         ---
46884         Note this AFS-related exchange:
46885         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46886         and note find's pioctl call in find/fstype.c.
46887         But that is necessary only if you want to enable the
46888         optimization for AFS, and for now, I don't.
46889
46890         fts: move a function definition "up" (no semantic change)
46891         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46892         "up" to precede upcoming use of a related function.
46893
46894 2009-02-11  Jim Meyering  <meyering@redhat.com>
46895
46896         fts: correct internal computation of nlinks (optimization-related)
46897         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46898         whether the current entry is a directory, so don't test it.
46899
46900 2009-02-10  Bruno Haible  <bruno@clisp.org>
46901
46902         Tests for module 'uniwbrk/ulc-wordbreaks'.
46903         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46904         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46905         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46906
46907         Tests for module 'uniwbrk/u32-wordbreaks'.
46908         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46909         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46910
46911         Tests for module 'uniwbrk/u16-wordbreaks'.
46912         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46913         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46914
46915         Tests for module 'uniwbrk/u8-wordbreaks'.
46916         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46917         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46918
46919 2009-02-10  Bruno Haible  <bruno@clisp.org>
46920
46921         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46922         property.
46923         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46924         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46925         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46926
46927 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46928
46929         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46930         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46931
46932 2009-02-10  Bruno Haible  <bruno@clisp.org>
46933
46934         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46935         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46936         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46937         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46938         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46939         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46940
46941 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46942
46943         * lib/sockets.h (gl_fd_to_handle): New function.
46944
46945         * tests/test-sockets.c: Call gl_fd_to_handle.
46946
46947 2009-02-09  Bruno Haible  <bruno@clisp.org>
46948
46949         * doc/havelib.texi: Document the conventions on bi-arch systems.
46950
46951 2009-02-08  Bruno Haible  <bruno@clisp.org>
46952
46953         Document the AC_LIB_LINKFLAGS macro.
46954         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46955         * doc/gnulib.texi: Include it.
46956
46957 2009-02-08  Bruno Haible  <bruno@clisp.org>
46958
46959         Fix wrong order of sections, compared to TOC.
46960         * doc/gnulib.texi: Include relocatable-maint.texi after the
46961         "Regular expressions" node, not before.
46962
46963 2009-02-08  Bruno Haible  <bruno@clisp.org>
46964
46965         Tests for module 'unicase/totitle'.
46966         * modules/unicase/totitle-tests: New file.
46967
46968         Tests for module 'unicase/tolower'.
46969         * modules/unicase/tolower-tests: New file.
46970
46971         Tests for module 'unicase/toupper'.
46972         * modules/unicase/toupper-tests: New file.
46973         * tests/unicase/test-mapping-part1.h: New file.
46974         * tests/unicase/test-mapping-part2.h: New file.
46975
46976         New module 'unicase/totitle'.
46977         * modules/unicase/totitle: New file.
46978         * lib/unicase/totitle.c: New file.
46979
46980         New module 'unicase/tolower'.
46981         * modules/unicase/tolower: New file.
46982         * lib/unicase/tolower.c: New file.
46983
46984         New module 'unicase/toupper'.
46985         * modules/unicase/toupper: New file.
46986         * lib/unicase/toupper.c: New file.
46987         * lib/unicase/simple-mapping.h: New file.
46988
46989         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46990         (mapping_table): New structure.
46991         (output_simple_mapping): New function.
46992         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46993         * modules/gen-uni-tables (Description): Update.
46994         * lib/unicase/toupper.h: New file, automatically generated by
46995         gen-uni-tables.
46996         * lib/unicase/tolower.h: New file, automatically generated by
46997         gen-uni-tables.
46998         * lib/unicase/totitle.h: New file, automatically generated by
46999         gen-uni-tables.
47000         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47001         gen-uni-tables.
47002         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47003         gen-uni-tables.
47004         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47005         gen-uni-tables.
47006
47007         New module 'unicase/base'.
47008         * modules/unicase/base: New file.
47009         * lib/unicase.h: New file.
47010
47011 2009-02-08  Bruno Haible  <bruno@clisp.org>
47012
47013         New module 'uniwbrk/ulc-wordbreaks'.
47014         * modules/uniwbrk/ulc-wordbreaks: New file.
47015         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47016
47017         New module 'uniwbrk/u32-wordbreaks'.
47018         * modules/uniwbrk/u32-wordbreaks: New file.
47019         * lib/uniwbrk/u32-wordbreaks.c: New file.
47020
47021         New module 'uniwbrk/u16-wordbreaks'.
47022         * modules/uniwbrk/u16-wordbreaks: New file.
47023         * lib/uniwbrk/u16-wordbreaks.c: New file.
47024
47025         New module 'uniwbrk/u8-wordbreaks'.
47026         * modules/uniwbrk/u8-wordbreaks: New file.
47027         * lib/uniwbrk/u8-wordbreaks.c: New file.
47028         * lib/uniwbrk/u-wordbreaks.h: New file.
47029
47030         New module 'uniwbrk/table'.
47031         * modules/uniwbrk/table: New file.
47032         * lib/uniwbrk/wbrktable.h: New file.
47033         * lib/uniwbrk/wbrktable.c: New file.
47034
47035         New module 'uniwbrk/wordbreak-property'.
47036         * modules/uniwbrk/wordbreak-property: New file.
47037         * lib/uniwbrk/wordbreak-property.c: New file.
47038
47039         * lib/gen-uni-tables.c (WBP_*): New enum items.
47040         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47041         (unicode_org_wbp): New variable.
47042         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47043         New functions.
47044         (wbp_table): New structure.
47045         (output_wbp, output_wbrk_tables): New functions.
47046         (main): Accept additional argument. Invoke fill_org_wbp,
47047         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47048         output_wbrk_tables.
47049         * modules/gen-uni-tables (Description): Update.
47050         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47051         gen-uni-tables.
47052
47053         New module 'uniwbrk/base'.
47054         * modules/uniwbrk/base: New file.
47055         * lib/uniwbrk.h: New file.
47056
47057 2009-02-08  Bruno Haible  <bruno@clisp.org>
47058
47059         Update to Unicode 5.1.0.
47060         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47061         U+2185..U+2188.
47062         (is_property_default_ignorable_code_point): Don't include characters
47063         of category Cc or Cs and not-a-characters.
47064         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47065         U+0D79, U+109E, U+109F, U+A60C.
47066         * lib/unictype/bidi_of.h: Regenerated.
47067         * lib/unictype/blocks.h: Regenerated.
47068         * lib/unictype/categ_C.h: Regenerated.
47069         * lib/unictype/categ_Cf.h: Regenerated.
47070         * lib/unictype/categ_Cn.h: Regenerated.
47071         * lib/unictype/categ_L.h: Regenerated.
47072         * lib/unictype/categ_Ll.h: Regenerated.
47073         * lib/unictype/categ_Lm.h: Regenerated.
47074         * lib/unictype/categ_Lo.h: Regenerated.
47075         * lib/unictype/categ_Lu.h: Regenerated.
47076         * lib/unictype/categ_M.h: Regenerated.
47077         * lib/unictype/categ_Mc.h: Regenerated.
47078         * lib/unictype/categ_Me.h: Regenerated.
47079         * lib/unictype/categ_Mn.h: Regenerated.
47080         * lib/unictype/categ_N.h: Regenerated.
47081         * lib/unictype/categ_Nd.h: Regenerated.
47082         * lib/unictype/categ_Nl.h: Regenerated.
47083         * lib/unictype/categ_No.h: Regenerated.
47084         * lib/unictype/categ_P.h: Regenerated.
47085         * lib/unictype/categ_Pd.h: Regenerated.
47086         * lib/unictype/categ_Pe.h: Regenerated.
47087         * lib/unictype/categ_Pf.h: Regenerated.
47088         * lib/unictype/categ_Pi.h: Regenerated.
47089         * lib/unictype/categ_Po.h: Regenerated.
47090         * lib/unictype/categ_Ps.h: Regenerated.
47091         * lib/unictype/categ_S.h: Regenerated.
47092         * lib/unictype/categ_Sk.h: Regenerated.
47093         * lib/unictype/categ_Sm.h: Regenerated.
47094         * lib/unictype/categ_So.h: Regenerated.
47095         * lib/unictype/categ_of.h: Regenerated.
47096         * lib/unictype/combining.h: Regenerated.
47097         * lib/unictype/ctype_alnum.h: Regenerated.
47098         * lib/unictype/ctype_alpha.h: Regenerated.
47099         * lib/unictype/ctype_graph.h: Regenerated.
47100         * lib/unictype/ctype_lower.h: Regenerated.
47101         * lib/unictype/ctype_print.h: Regenerated.
47102         * lib/unictype/ctype_punct.h: Regenerated.
47103         * lib/unictype/ctype_upper.h: Regenerated.
47104         * lib/unictype/decdigit.h: Regenerated.
47105         * lib/unictype/digit.h: Regenerated.
47106         * lib/unictype/mirror.h: Regenerated.
47107         * lib/unictype/numeric.h: Regenerated.
47108         * lib/unictype/pr_alphabetic.h: Regenerated.
47109         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47110         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47111         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47112         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47113         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47114         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47115         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47116         * lib/unictype/pr_combining.h: Regenerated.
47117         * lib/unictype/pr_dash.h: Regenerated.
47118         * lib/unictype/pr_decimal_digit.h: Regenerated.
47119         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47120         * lib/unictype/pr_deprecated.h: Regenerated.
47121         * lib/unictype/pr_diacritic.h: Regenerated.
47122         * lib/unictype/pr_extender.h: Regenerated.
47123         * lib/unictype/pr_format_control.h: Regenerated.
47124         * lib/unictype/pr_grapheme_base.h: Regenerated.
47125         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47126         * lib/unictype/pr_grapheme_link.h: Regenerated.
47127         * lib/unictype/pr_id_continue.h: Regenerated.
47128         * lib/unictype/pr_id_start.h: Regenerated.
47129         * lib/unictype/pr_ideographic.h: Regenerated.
47130         * lib/unictype/pr_ignorable_control.h: Regenerated.
47131         * lib/unictype/pr_lowercase.h: Regenerated.
47132         * lib/unictype/pr_math.h: Regenerated.
47133         * lib/unictype/pr_numeric.h: Regenerated.
47134         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47135         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47136         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47137         * lib/unictype/pr_other_id_continue.h: Regenerated.
47138         * lib/unictype/pr_other_lowercase.h: Regenerated.
47139         * lib/unictype/pr_other_math.h: Regenerated.
47140         * lib/unictype/pr_punctuation.h: Regenerated.
47141         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47142         * lib/unictype/pr_soft_dotted.h: Regenerated.
47143         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47144         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47145         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47146         * lib/unictype/pr_uppercase.h: Regenerated.
47147         * lib/unictype/pr_xid_continue.h: Regenerated.
47148         * lib/unictype/pr_xid_start.h: Regenerated.
47149         * lib/unictype/pr_zero_width.h: Regenerated.
47150         * lib/unictype/scripts.h: Regenerated.
47151         * lib/unictype/scripts_byname.gperf: Regenerated.
47152         * lib/unictype/sy_java_ident.h: Regenerated.
47153         * lib/unilbrk/lbrkprop1.h: Regenerated.
47154         * lib/unilbrk/lbrkprop2.h: Regenerated.
47155         * tests/unictype/test-categ_C.c: Regenerated.
47156         * tests/unictype/test-categ_Cf.c: Regenerated.
47157         * tests/unictype/test-categ_Cn.c: Regenerated.
47158         * tests/unictype/test-categ_L.c: Regenerated.
47159         * tests/unictype/test-categ_Ll.c: Regenerated.
47160         * tests/unictype/test-categ_Lm.c: Regenerated.
47161         * tests/unictype/test-categ_Lo.c: Regenerated.
47162         * tests/unictype/test-categ_Lu.c: Regenerated.
47163         * tests/unictype/test-categ_M.c: Regenerated.
47164         * tests/unictype/test-categ_Mc.c: Regenerated.
47165         * tests/unictype/test-categ_Me.c: Regenerated.
47166         * tests/unictype/test-categ_Mn.c: Regenerated.
47167         * tests/unictype/test-categ_N.c: Regenerated.
47168         * tests/unictype/test-categ_Nd.c: Regenerated.
47169         * tests/unictype/test-categ_Nl.c: Regenerated.
47170         * tests/unictype/test-categ_No.c: Regenerated.
47171         * tests/unictype/test-categ_P.c: Regenerated.
47172         * tests/unictype/test-categ_Pd.c: Regenerated.
47173         * tests/unictype/test-categ_Pe.c: Regenerated.
47174         * tests/unictype/test-categ_Pf.c: Regenerated.
47175         * tests/unictype/test-categ_Pi.c: Regenerated.
47176         * tests/unictype/test-categ_Po.c: Regenerated.
47177         * tests/unictype/test-categ_Ps.c: Regenerated.
47178         * tests/unictype/test-categ_S.c: Regenerated.
47179         * tests/unictype/test-categ_Sk.c: Regenerated.
47180         * tests/unictype/test-categ_Sm.c: Regenerated.
47181         * tests/unictype/test-categ_So.c: Regenerated.
47182         * tests/unictype/test-ctype_alnum.c: Regenerated.
47183         * tests/unictype/test-ctype_alpha.c: Regenerated.
47184         * tests/unictype/test-ctype_graph.c: Regenerated.
47185         * tests/unictype/test-ctype_lower.c: Regenerated.
47186         * tests/unictype/test-ctype_print.c: Regenerated.
47187         * tests/unictype/test-ctype_punct.c: Regenerated.
47188         * tests/unictype/test-ctype_upper.c: Regenerated.
47189         * tests/unictype/test-decdigit.h: Regenerated.
47190         * tests/unictype/test-digit.h: Regenerated.
47191         * tests/unictype/test-numeric.h: Regenerated.
47192         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47193         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47194         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47195         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47196         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47197         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47198         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47199         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47200         * tests/unictype/test-pr_combining.c: Regenerated.
47201         * tests/unictype/test-pr_dash.c: Regenerated.
47202         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47203         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47204         * tests/unictype/test-pr_deprecated.c: Regenerated.
47205         * tests/unictype/test-pr_diacritic.c: Regenerated.
47206         * tests/unictype/test-pr_extender.c: Regenerated.
47207         * tests/unictype/test-pr_format_control.c: Regenerated.
47208         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47209         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47210         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47211         * tests/unictype/test-pr_id_continue.c: Regenerated.
47212         * tests/unictype/test-pr_id_start.c: Regenerated.
47213         * tests/unictype/test-pr_ideographic.c: Regenerated.
47214         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47215         * tests/unictype/test-pr_lowercase.c: Regenerated.
47216         * tests/unictype/test-pr_math.c: Regenerated.
47217         * tests/unictype/test-pr_numeric.c: Regenerated.
47218         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47219         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47220         Regenerated.
47221         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47222         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47223         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47224         * tests/unictype/test-pr_other_math.c: Regenerated.
47225         * tests/unictype/test-pr_punctuation.c: Regenerated.
47226         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47227         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47228         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47229         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47230         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47231         * tests/unictype/test-pr_uppercase.c: Regenerated.
47232         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47233         * tests/unictype/test-pr_xid_start.c: Regenerated.
47234         * tests/unictype/test-pr_zero_width.c: Regenerated.
47235
47236         Update to Unicode 5.1.0.
47237         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47238         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47239         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47240         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47241         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47242         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47243         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47244         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47245         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47246         (nonspacing_table_ind): Update.
47247         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47248
47249         Update to Unicode 5.1.0.
47250         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47251         code transform.
47252         * lib/uniname/uniname.c (unicode_character_name,
47253         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47254         * lib/uniname/uninames.h: Regenerated.
47255         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47256
47257 2009-02-07  Bruno Haible  <bruno@clisp.org>
47258
47259         Merge gen-ctype and gen-lbrk into a single program.
47260         * lib/gen-uni-tables.c: New file, incorporating
47261         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47262         Add directory prefixes to the names of the generated files.
47263         * lib/unictype/gen-ctype.c: Remove file.
47264         * lib/unilbrk/gen-lbrk.c: Remove file.
47265         * modules/gen-uni-tables: New file.
47266         * modules/unictype/gen-ctype: Remove file.
47267         * modules/unilbrk/gen-lbrk: Remove file.
47268
47269 2009-02-07  Bruno Haible  <bruno@clisp.org>
47270
47271         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47272
47273         New module 'unistr/u32-strcoll'.
47274         * modules/unistr/u32-strcoll: New file.
47275         * lib/unistr/u32-strcoll.c: New file.
47276
47277         New module 'unistr/u16-strcoll'.
47278         * modules/unistr/u16-strcoll: New file.
47279         * lib/unistr/u16-strcoll.c: New file.
47280
47281         New module 'unistr/u8-strcoll'.
47282         * modules/unistr/u8-strcoll: New file.
47283         * lib/unistr/u8-strcoll.c: New file.
47284         * lib/unistr/u-strcoll.h: New file.
47285
47286 2009-02-07  Bruno Haible  <bruno@clisp.org>
47287
47288         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47289         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47290         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47291         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47292         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47293         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47294
47295 2009-02-07  Bruno Haible  <bruno@clisp.org>
47296
47297         Make 64-bit clean.
47298         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47299         output_combclass, output_bidi_category, output_decimal_digit,
47300         output_digit, output_numeric, output_mirror, output_scripts,
47301         output_ident_category): Use proper width specifier in format strings.
47302
47303 2009-02-07  Bruno Haible  <bruno@clisp.org>
47304
47305         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47306         failure behaviour.
47307
47308 2009-02-07  Jim Meyering  <meyering@redhat.com>
47309
47310         regex: avoid compilation failure with upcoming gcc-4.4
47311         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47312         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47313         "... error: integer overflow in preprocessor expression".
47314
47315 2009-02-05  Ben Pfaff  <blp@gnu.org>
47316
47317         Fix link errors on Windows when close module is used.
47318         * modules/close: Add $(LIB_CLOSE) to Link section.
47319         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47320         $(LIB_CLOSE) on Windows.
47321
47322 2009-02-05  Jim Meyering  <meyering@redhat.com>
47323
47324         still avoid unused-parameter warnings, but do it cleanly
47325         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47326         (get_fs_usage): Cast to void instead.
47327         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47328         (dev_from_mount_options, read_file_system_list): Cast to void.
47329         Prompted by Bruno Haible.
47330
47331 2009-02-04  Jim Meyering  <meyering@redhat.com>
47332
47333         fsusage.c: correct copyright year
47334         * lib/fsusage.c: Reflect year in which the change is pushed into
47335
47336         avoid misc. warnings
47337         * lib/fsusage.c (UNUSED_PARAM): Define.
47338         (get_fs_usage): Mark parameter "disk" as unused.
47339         * lib/getugroups.c (getgrent): Use "void" in prototype.
47340         * lib/mountlist.c: Mark unused parameters.
47341         (read_file_system_list): Declare a local with "const".
47342         * lib/nanosleep.c (getnow): Declare static.
47343         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47344
47345         dirfd: set errno upon failure
47346         * lib/dirfd.c: Include <errno.h>.
47347         Set errno to ENOTSUP when returning -1.
47348         * modules/dirfd (Depends-on): Add errno.
47349         Suggested by John Kodis <kodis@comcast.net>.
47350
47351 2009-02-01  Bruno Haible  <bruno@clisp.org>
47352
47353         Don't assume sizeof (long) >= sizeof (void *).
47354         * lib/memcmp.c: Include stdint.h.
47355         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47356         srcp2 to 'const byte *'.
47357         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47358         types to uintptr_t.
47359         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47360         * modules/memcmp (Depends-on): Add stdint.
47361         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47362
47363 2009-01-30  Eric Blake  <ebb9@byu.net>
47364
47365         fix more require-before-expand issues
47366         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47367         expand, AC_PROG_AWK.
47368         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47369
47370 2009-01-28  Eric Blake  <ebb9@byu.net>
47371
47372         version-etc: use consistent URL formatting
47373         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47374         Improve formatting.  Use fputs for string without %.
47375
47376 2009-01-28  Jim Meyering  <meyering@redhat.com>
47377
47378         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47379         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47380         "underquoted definition of NAME" from autoconf-2.59.
47381
47382 2009-01-28  Bruno Haible  <bruno@clisp.org>
47383
47384         * doc/gnulib.texi: Add "Obsolete modules" to index.
47385
47386 2009-01-28  Jim Meyering  <meyering@redhat.com>
47387
47388         useless-if-before-free: recognize more variants
47389         * build-aux/useless-if-before-free: Also recognize e.g.,
47390         if (NULL != p) free (p);
47391
47392 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47393
47394         test-getaddrinfo: skip (don't fail) this test when there's no network
47395         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47396         on the presumption that it means you lack network access.
47397
47398 2009-01-26  Jim Meyering  <meyering@redhat.com>
47399
47400         fflush: avoid warnings on modern systems
47401         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47402         pos and result, into scopes where they're used.
47403
47404 2009-01-26  Eric Blake  <ebb9@byu.net>
47405
47406         Silence warning reintroduced by recent extensions patch.
47407         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47408         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47409         autoconf.
47410
47411         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47412         * m4/00gnulib.m4: New file.
47413         * gnulib-tool (func_get_filelist): Always use it.
47414         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47415         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47416
47417 2009-01-25  Bruno Haible  <bruno@clisp.org>
47418
47419         Make test-quotearg work on MacOS X and AIX.
47420         * tests/test-quotearg.sh: New file.
47421         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47422         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47423         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47424         include <libintl.h>.
47425         (fake_locale): Remove variable.
47426         (gettext, dgettext, dcgettext): Remove functions.
47427         (main): Instead of setting a fake locale, set a real locale. Call
47428         textdomain and bindtextdomain.
47429         * modules/quotearg-tests (Files): Add the new files.
47430         (Depends-on): Add gettext, setenv, unsetenv.
47431         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47432         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47433         Augment TESTS_ENVIRONMENT.
47434
47435 2009-01-25  Bruno Haible  <bruno@clisp.org>
47436
47437         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47438         fr_FR.ISO8859-1 locale on MacOS X.
47439         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47440         ja_JP.eucJP locale on MacOS X.
47441         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47442         zh_CN.GB18030 locale on MacOS X.
47443
47444 2009-01-25  Bruno Haible  <bruno@clisp.org>
47445
47446         Avoid link errors on MacOS X 10.3.
47447         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47448         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47449
47450 2009-01-25  Bruno Haible  <bruno@clisp.org>
47451
47452         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47453         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47454         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47455         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47456         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47457         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47458         posix_spawnattr_init, posix_spawnattr_setsigmask,
47459         posix_spawnattr_setflags, posix_spawnattr_destroy.
47460
47461         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47462         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47463         * modules/execute (Files): Remove m4/posix_spawn.m4.
47464         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47465         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47466         posix_spawnattr_init, posix_spawnattr_setsigmask,
47467         posix_spawnattr_setflags, posix_spawnattr_destroy.
47468
47469 2009-01-25  Bruno Haible  <bruno@clisp.org>
47470
47471         * lib/glthread/threadlib.c: Include <stdlib.h>.
47472
47473 2009-01-25  Bruno Haible  <bruno@clisp.org>
47474
47475         * lib/glthread/threadlib.c (dummy): New declaration.
47476
47477 2009-01-25  Bruno Haible  <bruno@clisp.org>
47478
47479         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47480         multibyte characters also for the GB18030 encoding. Don't crash when
47481         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47482
47483 2009-01-25  Bruno Haible  <bruno@clisp.org>
47484
47485         Avoid redefining 'struct random_data' on OSF/1 5.1.
47486         * lib/stdlib.in.h: Include <random.h> if it exists.
47487         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47488         HAVE_RANDOM_H. Include <random.h> when testing whether
47489         'struct random_data' exists.
47490         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47491
47492 2009-01-25  Bruno Haible  <bruno@clisp.org>
47493
47494         Don't install charset.alias on MacOS X >= 10.3.
47495         * lib/localcharset.c (DARWIN7): New macro.
47496         (get_charset_aliases): Hardcode the result for Darwin7.
47497         * modules/localcharset (install-exec-local): Don't install
47498         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47499
47500 2009-01-25  Bruno Haible  <bruno@clisp.org>
47501
47502         Don't install charset.alias on mingw and Cygwin.
47503         * modules/localcharset (install-exec-local): Don't install
47504         charset.alias on mingw and Cygwin, if the file does not yet exist.
47505         The result for these platforms is hardcoded in localcharset.c.
47506
47507 2009-01-25  Bruno Haible  <bruno@clisp.org>
47508
47509         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47511         before requiring AC_USE_SYSTEM_EXTENSIONS.
47512
47513 2009-01-25  Jim Meyering  <meyering@redhat.com>
47514
47515         c-strtod: avoid warnings
47516         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47517         "assignment discards qualifiers from pointer target type" warnings.
47518
47519 2009-01-24  Bruno Haible  <bruno@clisp.org>
47520
47521         Add support for non-UTF-8 locales on MacOS X.
47522         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47523         canonical encodings. For Darwin 7 and newer, don't map traditional
47524         encodings to UTF-8.
47525         Reported by Vincent Lefevre <vincent@vinc17.org>
47526         at <http://savannah.gnu.org/bugs/?25235>.
47527
47528 2009-01-24  Bruno Haible  <bruno@clisp.org>
47529
47530         * doc/gnulib.texi (Obsolete modules): New section.
47531         Reported by Mike Frysinger <vapier@gentoo.org>.
47532
47533 2009-01-24  Bruno Haible  <bruno@clisp.org>
47534
47535         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47536         (%.dvi): New rule.
47537
47538 2009-01-24  Bruno Haible  <bruno@clisp.org>
47539
47540         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47541         Reported by Eric Blake.
47542
47543 2009-01-24  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47546         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47547         Reported by Gary V. Vaughan <gary@gnu.org>.
47548
47549 2009-01-24  Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47552
47553 2009-01-23  Bruno Haible  <bruno@clisp.org>
47554
47555         Make c-strtod, c-strtold usable in libraries.
47556         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47557         (C_STRTOD): Call strdup instead of xstrdup.
47558         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47559         * modules/c-strtold (Depends-on): Likewise.
47560         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47561         * NEWS: Mention the change.
47562         Reported by Michael Gold <mgold@ncf.ca>.
47563
47564 2009-01-23  Jim Meyering  <meyering@redhat.com>
47565
47566         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47567         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47568         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47569
47570 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47571
47572         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47573         GNU CoreUtils.
47574         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47575         * modules/version-etc (Description): Update.
47576
47577 2009-01-22  Bruno Haible  <bruno@clisp.org>
47578
47579         Cache the C locale object.
47580         * lib/c-strtod.c (c_locale_cache): New variable.
47581         (c_locale): New function.
47582         (C_STRTOD): Use it, and don't call freelocale.
47583         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47584         Suggested by Paolo Bonzini.
47585
47586 2009-01-21  Bruno Haible  <bruno@clisp.org>
47587
47588         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47589         conditions other than overflow.
47590
47591 2009-01-21  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/c-strtod.c: Include errno.h.
47594         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47595         value from STRTOD_L and STRTOD.
47596
47597 2009-01-21  Bruno Haible  <bruno@clisp.org>
47598         and Jim Meyering  <meyering@redhat.com>
47599
47600         nanosleep: skip configure test (fail it) for apple universal builds
47601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47602         universal builds, assume that nanosleep does not work.
47603         * modules/nanosleep (Depends-on): Add multiarch.
47604
47605         mktime: skip configure test (fail it) for apple universal builds
47606         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47607         universal builds, assume that mktime does not work.
47608         * modules/mktime (Depends-on): Add multiarch.
47609
47610 2009-01-21  Eric Blake  <ebb9@byu.net>
47611
47612         multiarch: avoid expand-before-require warning
47613         * modules/multiarch (configure.ac): Require, rather than expand,
47614         gl_MULTIARCH.
47615         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47616         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47617         enforce that all clients require it.  Partial reversion of
47618         2008-12-29 patch.
47619
47620         error: avoid expand-before-require warning
47621         * modules/errno (configure.ac): Require, rather than expand,
47622         gl_HEADER_ERRNO_H.
47623         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47624         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47625         enforce that all clients require it.
47626
47627         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47628         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47629         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47630         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47631
47632 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47633
47634         Revert:
47635         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47636
47637         regex: do not depend on obsolete modules.
47638         * modules/regex: Remove memcmp and memmove.
47639
47640 2009-01-20  Bruno Haible  <bruno@clisp.org>
47641
47642         Make the 'link' module link on Windows NT 4.
47643         * lib/link.c (_WIN32_WINNT): Don't define.
47644         (CreateHardLinkFuncType): New type.
47645         (CreateHardLinkFunc, initialized): New variables.
47646         (initialize): New function.
47647         (link): Invoke CreateHardLink indirectly through the function pointer.
47648
47649 2009-01-20  Bruno Haible  <bruno@clisp.org>
47650
47651         Fix compilation failure on mingw.
47652         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47653
47654 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47655
47656         * doc/c-strtod.texi: Mention a couple of restrictions.
47657
47658 2009-01-20  Jim Meyering  <meyering@redhat.com>
47659
47660         gettimeofday: move more declarations out of functions
47661         * lib/gettimeofday.c: Move extern declarations of tzset and
47662         gmtime out of containing functions.  Prompted by Bruno Haible.
47663
47664 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47665
47666         regex: do not depend on obsolete modules.
47667         * modules/regex: Remove memcmp and memmove.
47668
47669 2009-01-19  Bruno Haible  <bruno@clisp.org>
47670
47671         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47672         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47673         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47674         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47675         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47676
47677 2009-01-19  Bruno Haible  <bruno@clisp.org>
47678
47679         * tests/test-link.c: Include <errno.h>.
47680         (main): Exit with code 77 when a hard link cannot be created due to
47681         the file system.
47682         * tests/test-link.sh: Skip test when a hard link cannot be created due
47683         to the file system.
47684         Suggested by Eric Blake.
47685
47686 2009-01-19  Martin Lambers  <marlam@marlam.de>
47687
47688         * modules/link-tests: New file.
47689         * tests/test-link.sh: New file.
47690         * tests/test-link.c: New file.
47691
47692 2009-01-19  Eric Blake  <ebb9@byu.net>
47693
47694         doc: mention another function added in cygwin 1.7.0
47695         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47696         Another new function in cygwin 1.7.
47697
47698 2009-01-19  Bruno Haible  <bruno@clisp.org>
47699
47700         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47701         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47702         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47703         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47704         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47705         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47706         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47707         * m4/md4.m4 (gl_MD4): Likewise.
47708         * m4/md5.m4 (gl_MD5): Likewise.
47709         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47710         * m4/sha1.m4 (gl_SHA1): Likewise.
47711         * m4/sha256.m4 (gl_SHA256): Likewise.
47712         * m4/sha512.m4 (gl_SHA512): Likewise.
47713
47714 2009-01-19  Bruno Haible  <bruno@clisp.org>
47715
47716         * modules/uniname/uniname-tests (Depends-on): Add progname.
47717         * tests/uniname/test-uninames.c: Include progname.h.
47718         (main): Call set_program_name.
47719
47720         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47721         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47722         (main): Call set_program_name.
47723
47724         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47725         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47726         (main): Call set_program_name.
47727
47728         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47729         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47730         (main): Call set_program_name.
47731
47732         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47733         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47734         (main): Call set_program_name.
47735
47736         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47737         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47738         (main): Call set_program_name.
47739
47740         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47741         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47742         (main): Call set_program_name.
47743
47744         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47745         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47746         (main): Call set_program_name.
47747
47748         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47749         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47750         (main): Call set_program_name.
47751
47752 2009-01-19  Eric Blake  <ebb9@byu.net>
47753
47754         test-unistd: test previous patch
47755         * tests/test-unistd.c: Test *_FILENO macros.
47756
47757         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47758         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47759         Guarantee a definition.
47760         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47761         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47762         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47763         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47764         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47765         Likewise.
47766         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47767         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47768         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47769         Likewise.
47770         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47771         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47772         (STDERR_FILENO): Likewise.
47773         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47774         (STDERR_FILENO): Likewise.
47775         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47776         (STDERR_FILENO): Likewise.
47777         Reported by Elbert Pol.
47778
47779 2009-01-19  Eric Blake  <ebb9@byu.net>
47780
47781         doc: mention more functions added in cygwin 1.7.0
47782         * doc/posix-functions/abort.texi (abort): Update wording related
47783         to cygwin.
47784         * doc/posix-functions/daylight.texi (daylight): Likewise.
47785         * doc/posix-functions/optarg.texi (optarg): Likewise.
47786         * doc/posix-functions/optarg.texi (opterr): Likewise.
47787         * doc/posix-functions/optarg.texi (optind): Likewise.
47788         * doc/posix-functions/optarg.texi (optopt): Likewise.
47789         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47790         worked in 1.5.x, and was withdrawn in 1.7.
47791         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47792         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47793         cygwin versions.
47794         * doc/posix-functions/perror.texi (perror): Likewise.
47795         * doc/posix-functions/printf.texi (printf): Likewise.
47796         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47797         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47798         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47799         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47800         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47801         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47802         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47803         Likewise.
47804         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47805         Likewise.
47806         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47807         this function.
47808         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47809         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47810         Likewise.
47811         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47812         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47813         * doc/posix-functions/confstr.texi (confstr): Likewise.
47814         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47815         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47816         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47817         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47818         * doc/posix-functions/fputws.texi (fputws): Likewise.
47819         * doc/posix-functions/fwide.texi (fwide): Likewise.
47820         * doc/posix-functions/getwc.texi (getwc): Likewise.
47821         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47822         * doc/posix-functions/putwc.texi (putwc): Likewise.
47823         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47824         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47825         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47826         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47827         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47828         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47829         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47830         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47831         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47832         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47833         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47834
47835 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47836
47837         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47838         * lib/ioctl.c: Include <sys/ioctl.h>.
47839
47840 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47841
47842         * modules/getdate-tests (Depends-on): Add progname.
47843         * tests/test-getdate.c: Use progname module, to avoid link errors
47844         on non-glibc systems.
47845
47846 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47847
47848         * modules/filenamecat-tests (Depends-on): Add progname.
47849         * modules/fstrcmp-tests (Depends-on): Likewise.
47850
47851         * tests/test-filenamecat.c: Use progname module, to avoid link
47852         errors on non-glibc systems.
47853         * tests/test-fstrcmp.c: Likewise.
47854
47855 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47856
47857         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47858         * lib/gettimeofday.c: Move extern declaration out of function.
47859
47860 2009-01-18  Bruno Haible  <bruno@clisp.org>
47861
47862         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47863         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47864         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47865
47866 2009-01-18  Bruno Haible  <bruno@clisp.org>
47867
47868         * lib/strftime.c (MEMPCPY): Remove unused macro.
47869         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47870
47871 2009-01-18  Martin Lambers  <marlam@marlam.de>
47872
47873         New module 'link'.
47874         * lib/unistd.in.h (link): New declaration.
47875         * lib/link.c: New file.
47876         * m4/link.m4: New file.
47877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47878         HAVE_LINK.
47879         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47880         * modules/link: New file.
47881         * doc/posix-functions/link.texi: Mention the new module.
47882
47883 2009-01-18  Bruno Haible  <bruno@clisp.org>
47884
47885         * tests/test-avltree_list.c (main): Call set_program_name.
47886         * tests/test-avltree_oset.c (main): Likewise.
47887         * tests/test-obstack-printf.c: Include progname.h.
47888         (main): Call set_program_name.
47889         * tests/test-quotearg.c: Include progname.h.
47890         (main): Call set_program_name.
47891         * tests/test-xmemdup0.c: Include progname.h.
47892         (main): Call set_program_name.
47893
47894 2009-01-18  Bruno Haible  <bruno@clisp.org>
47895
47896         New module 'alphasort'.
47897         * lib/dirent.in.h (alphasort): New declaration.
47898         * lib/alphasort.c: New file, from glibc with modifications.
47899         * m4/alphasort.m4: New file.
47900         * modules/alphasort: New file.
47901         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47902         HAVE_ALPHASORT.
47903         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47904         HAVE_ALPHASORT.
47905         * doc/posix-functions/alphasort.texi: Mention the new module and the
47906         portability problems.
47907
47908 2009-01-18  Bruno Haible  <bruno@clisp.org>
47909
47910         New module 'scandir'.
47911         * lib/dirent.in.h (scandir): New declaration.
47912         * lib/scandir.c: New file, from glibc with modifications.
47913         * m4/scandir.m4: New file.
47914         * modules/scandir: New file.
47915         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47916         HAVE_SCANDIR.
47917         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47918         HAVE_SCANDIR.
47919         * doc/posix-functions/scandir.texi: Mention the new module and the
47920         portability problems.
47921
47922 2009-01-17  Bruno Haible  <bruno@clisp.org>
47923
47924         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47925         Update documentation.
47926         (func_remove_suffix): Escape all dots in the suffix. Update
47927         documentation.
47928         (func_filter_filelist): Update documentation.
47929         Reported by Ralf Wildenhues.
47930
47931 2009-01-17  Bruno Haible  <bruno@clisp.org>
47932
47933         * modules/dprintf-posix-tests: New file.
47934         * tests/test-dprintf-posix.sh: New file.
47935         * tests/test-dprintf-posix.c: New file.
47936
47937         New modules 'dprintf', 'dprintf-posix'.
47938         * lib/stdio.in.h (dprintf): New declaration.
47939         * lib/dprintf.c: New file.
47940         * m4/dprintf.m4: New file.
47941         * m4/dprintf-posix.m4: New file.
47942         * modules/dprintf: New file.
47943         * modules/dprintf-posix: New file.
47944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47945         HAVE_DPRINTF, REPLACE_DPRINTF.
47946         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47947         HAVE_DPRINTF, REPLACE_DPRINTF.
47948         * doc/posix-functions/dprintf.texi: Mention the new modules.
47949
47950 2009-01-17  Bruno Haible  <bruno@clisp.org>
47951
47952         * modules/vdprintf-posix-tests: New file.
47953         * tests/test-vdprintf-posix.sh: New file.
47954         * tests/test-vdprintf-posix.c: New file.
47955
47956         New modules 'vdprintf', 'vdprintf-posix'.
47957         * lib/stdio.in.h (vdprintf): New declaration.
47958         * lib/vdprintf.c: New file.
47959         * m4/vdprintf.m4: New file.
47960         * m4/vdprintf-posix.m4: New file.
47961         * modules/vdprintf: New file.
47962         * modules/vdprintf-posix: New file.
47963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47964         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47965         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47966         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47967         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47968
47969 2009-01-17  Bruno Haible  <bruno@clisp.org>
47970
47971         Fix replacement of fopen on mingw.
47972         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47973         mingw.
47974
47975 2009-01-17  Bruno Haible  <bruno@clisp.org>
47976
47977         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47978         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47979
47980 2009-01-17  Bruno Haible  <bruno@clisp.org>
47981
47982         Avoid test-fflush2.sh failure on mingw.
47983         * tests/test-fflush2.c: Include binary-io.h.
47984         (main): Put standard input into binary mode.
47985         * modules/fflush-tests (Depends-on): Add binary-io.
47986
47987 2009-01-17  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/wchar.in.h: In another particular situation, include only the
47990         system's <wchar.h> file.
47991         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47992         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47993         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47994
47995 2009-01-17  Bruno Haible  <bruno@clisp.org>
47996
47997         Support for stripping executables in --enable-relocatable.
47998         * build-aux/install-reloc: Expect one more argument, or an environment
47999         variable RELOC_STRIP_PROG. If set, strip the destination program and
48000         its wrapper.
48001         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48002         RELOC_STRIP_PROG.
48003         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48004         to set RELOCATABLE_STRIP.
48005         * NEWS: Mention the new Makefile requirement.
48006
48007 2009-01-17  Bruno Haible  <bruno@clisp.org>
48008
48009         * build-aux/install-reloc: Remove debugging information left over by
48010         C compiler on MacOS X.
48011
48012 2009-01-17  Bruno Haible  <bruno@clisp.org>
48013
48014         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48015         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48016         _NSGetExecutablePath.
48017
48018 2009-01-16  Jim Meyering  <meyering@redhat.com>
48019
48020         strerror: avoid warnings about discarding "const"
48021         * lib/strerror.c (rpl_strerror): Instead of returning a const
48022         string from each and every "case", use a variable, and add a single
48023         cast after the switch.
48024
48025 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48026
48027         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48028
48029 2009-01-16  Bruno Haible  <bruno@clisp.org>
48030
48031         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48032         array initializer syntax that also works in C++ mode.
48033         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48034
48035 2009-01-16  Jim Meyering  <meyering@redhat.com>
48036
48037         poll: suppress a warning
48038         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48039         to ignore "...unsigned expression < 0 is always false" warnings.
48040
48041 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48042
48043         poll: remove declarations of unused variables
48044         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48045         sockbuf and optlen.
48046
48047 2009-01-15  Bruno Haible  <bruno@clisp.org>
48048
48049         Make fflush-after-ungetc POSIX compliant on BSD systems.
48050         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48051         (clear_ungetc_buffer): Implement also for other systems.
48052         (rpl_fflush): On glibc systems, invoke
48053         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48054         clear_ungetc_buffer after fetching the stream's position, not before.
48055
48056 2009-01-15  Bruno Haible  <bruno@clisp.org>
48057
48058         Make fflush-after-ungetc POSIX compliant on glibc systems.
48059         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48060         after ungetc.
48061         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48062         (rpl_fflush): On glibc systems, simply call the system's fflush
48063         function after clearing the ungetc buffer.
48064         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48065         Instead, lseek only to the end of file, then use the system's fseeko
48066         for the rest. On glibc systems, reset the EOF indicator bit.
48067
48068 2009-01-15  Jim Meyering  <meyering@redhat.com>
48069
48070         openmp.m4: revert quote-adding change, for portability to older autoconf
48071         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48072         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48073         Simon Josefsson noticed the problem when using autoconf-2.61.
48074
48075 2009-01-15  Bruno Haible  <bruno@clisp.org>
48076
48077         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48078         * tests/test-fflush2.c (ASSERT): Always fail.
48079         (main): Add two tests for fflush() after ungetc(), taking into account
48080         the Austin Group's clarification.
48081         Suggested by Eric Blake.
48082
48083 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48084
48085         mktime.m4: remove K&R-style function prototypes
48086         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48087         for the Sun C++ compiler.
48088
48089 2009-01-14  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48092         while including <wchar.h>.
48093         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48094         the system's <wchar.h> file.
48095         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48096
48097 2009-01-14  Bruno Haible  <bruno@clisp.org>
48098
48099         * m4/csharp.m4: Don't mention gettext on the serial number line.
48100         * m4/csharpexec.m4: Likewise.
48101         * m4/eaccess.m4: Likewise.
48102         * m4/javaexec.m4: Likewise.
48103         * m4/sig_atomic_t.m4: Likewise.
48104         * m4/tmpdir.m4: Likewise.
48105         * m4/intldir.m4: Bump gettext version.
48106         * m4/lib-ld.m4: Likewise.
48107
48108 2009-01-14  Bruno Haible  <bruno@clisp.org>
48109
48110         * lib/progname.c (set_program_name): Add more comments.
48111         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48112
48113 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48114
48115         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48116         were sys/stat.h does not define it.
48117
48118 2009-01-14  Jim Meyering  <meyering@redhat.com>
48119
48120         many *.m4 files: improve m4 quoting
48121         99% of this change was performed by running the following commands:
48122         git ls-files | grep '\.m4$' | xargs perl -pi \
48123           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48124           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48125           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48126           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48127         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48128         The remainder were to add Copyright dates, increment serial numbers,
48129         undo some changes in comments, exclude m4/intl.m4, and add quotes
48130         around the "1" in ",1" where the unusual spacing prohibited the
48131         above regexps from doing the job.  For more details, see
48132         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48133         * m4/acl.m4: Modified.
48134         * m4/afs.m4: Likewise.
48135         * m4/alloca.m4: Likewise.
48136         * m4/argp.m4: Likewise.
48137         * m4/argz.m4: Likewise.
48138         * m4/atexit.m4: Likewise.
48139         * m4/bison-i18n.m4: Likewise.
48140         * m4/bison.m4: Likewise.
48141         * m4/byteswap.m4: Likewise.
48142         * m4/c-stack.m4: Likewise.
48143         * m4/c-strtod.m4: Likewise.
48144         * m4/calloc.m4: Likewise.
48145         * m4/canonicalize-lgpl.m4: Likewise.
48146         * m4/chown.m4: Likewise.
48147         * m4/clock_time.m4: Likewise.
48148         * m4/codeset.m4: Likewise.
48149         * m4/copy-file.m4: Likewise.
48150         * m4/csharp.m4: Likewise.
48151         * m4/csharpcomp.m4: Likewise.
48152         * m4/csharpexec.m4: Likewise.
48153         * m4/d-ino.m4: Likewise.
48154         * m4/d-type.m4: Likewise.
48155         * m4/dirfd.m4: Likewise.
48156         * m4/double-slash-root.m4: Likewise.
48157         * m4/eaccess.m4: Likewise.
48158         * m4/eealloc.m4: Likewise.
48159         * m4/environ.m4: Likewise.
48160         * m4/errno_h.m4: Likewise.
48161         * m4/euidaccess.m4: Likewise.
48162         * m4/execute.m4: Likewise.
48163         * m4/fatal-signal.m4: Likewise.
48164         * m4/fchdir.m4: Likewise.
48165         * m4/fcntl_h.m4: Likewise.
48166         * m4/fileblocks.m4: Likewise.
48167         * m4/filenamecat.m4: Likewise.
48168         * m4/findprog.m4: Likewise.
48169         * m4/flexmember.m4: Likewise.
48170         * m4/fnmatch.m4: Likewise.
48171         * m4/fopen.m4: Likewise.
48172         * m4/fpending.m4: Likewise.
48173         * m4/fprintf-posix.m4: Likewise.
48174         * m4/free.m4: Likewise.
48175         * m4/frexp.m4: Likewise.
48176         * m4/frexpl.m4: Likewise.
48177         * m4/fsusage.m4: Likewise.
48178         * m4/ftruncate.m4: Likewise.
48179         * m4/gc-camellia.m4: Likewise.
48180         * m4/gc-random.m4: Likewise.
48181         * m4/gc.m4: Likewise.
48182         * m4/getaddrinfo.m4: Likewise.
48183         * m4/getcwd-abort-bug.m4: Likewise.
48184         * m4/getcwd-path-max.m4: Likewise.
48185         * m4/getdate.m4: Likewise.
48186         * m4/getdomainname.m4: Likewise.
48187         * m4/getgroups.m4: Likewise.
48188         * m4/gethostname.m4: Likewise.
48189         * m4/gethrxtime.m4: Likewise.
48190         * m4/getline.m4: Likewise.
48191         * m4/getloadavg.m4: Likewise.
48192         * m4/getndelim2.m4: Likewise.
48193         * m4/getpass.m4: Likewise.
48194         * m4/gettext.m4: Likewise.
48195         * m4/gettime.m4: Likewise.
48196         * m4/gettimeofday.m4: Likewise.
48197         * m4/gnulib-common.m4: Likewise.
48198         * m4/group-member.m4: Likewise.
48199         * m4/host-os.m4: Likewise.
48200         * m4/iconv.m4: Likewise.
48201         * m4/iconv_open.m4: Likewise.
48202         * m4/inet_ntop.m4: Likewise.
48203         * m4/inet_pton.m4: Likewise.
48204         * m4/inline.m4: Likewise.
48205         * m4/intldir.m4: Likewise.
48206         * m4/intlmacosx.m4: Likewise.
48207         * m4/intmax.m4: Likewise.
48208         * m4/intmax_t.m4: Likewise.
48209         * m4/inttypes.m4: Likewise.
48210         * m4/inttypes_h.m4: Likewise.
48211         * m4/inttypes-pri.m4: Likewise.
48212         * m4/isapipe.m4: Likewise.
48213         * m4/isnand.m4: Likewise.
48214         * m4/isnanf.m4: Likewise.
48215         * m4/isnanl.m4: Likewise.
48216         * m4/javacomp.m4: Likewise.
48217         * m4/javaexec.m4: Likewise.
48218         * m4/jm-winsz1.m4: Likewise.
48219         * m4/jm-winsz2.m4: Likewise.
48220         * m4/lchown.m4: Likewise.
48221         * m4/lcmessage.m4: Likewise.
48222         * m4/ldexpl.m4: Likewise.
48223         * m4/lib-ld.m4: Likewise.
48224         * m4/lib-link.m4: Likewise.
48225         * m4/libsigsegv.m4: Likewise.
48226         * m4/link-follow.m4: Likewise.
48227         * m4/localcharset.m4: Likewise.
48228         * m4/locale-fr.m4: Likewise.
48229         * m4/locale-ja.m4: Likewise.
48230         * m4/locale-tr.m4: Likewise.
48231         * m4/locale-zh.m4: Likewise.
48232         * m4/lock.m4: Likewise.
48233         * m4/longlong.m4: Likewise.
48234         * m4/ls-mntd-fs.m4: Likewise.
48235         * m4/lstat.m4: Likewise.
48236         * m4/malloc.m4: Likewise.
48237         * m4/mathl.m4: Likewise.
48238         * m4/mbrtowc.m4: Likewise.
48239         * m4/mbstate_t.m4: Likewise.
48240         * m4/mbswidth.m4: Likewise.
48241         * m4/memchr.m4: Likewise.
48242         * m4/memcmp.m4: Likewise.
48243         * m4/memcpy.m4: Likewise.
48244         * m4/memmem.m4: Likewise.
48245         * m4/memmove.m4: Likewise.
48246         * m4/mempcpy.m4: Likewise.
48247         * m4/memrchr.m4: Likewise.
48248         * m4/memset.m4: Likewise.
48249         * m4/minmax.m4: Likewise.
48250         * m4/mkdir-slash.m4: Likewise.
48251         * m4/mkdtemp.m4: Likewise.
48252         * m4/mktime.m4: Likewise.
48253         * m4/mmap-anon.m4: Likewise.
48254         * m4/mountlist.m4: Likewise.
48255         * m4/nanosleep.m4: Likewise.
48256         * m4/nls.m4: Likewise.
48257         * m4/nocrash.m4: Likewise.
48258         * m4/open.m4: Likewise.
48259         * m4/openat.m4: Likewise.
48260         * m4/openmp.m4: Likewise.
48261         * m4/pathmax.m4: Likewise.
48262         * m4/perl.m4: Likewise.
48263         * m4/physmem.m4: Likewise.
48264         * m4/pipe.m4: Likewise.
48265         * m4/po.m4: Likewise.
48266         * m4/poll.m4: Likewise.
48267         * m4/posixtm.m4: Likewise.
48268         * m4/posixver.m4: Likewise.
48269         * m4/printf-frexp.m4: Likewise.
48270         * m4/printf-frexpl.m4: Likewise.
48271         * m4/printf-posix.m4: Likewise.
48272         * m4/printf-posix-rpl.m4: Likewise.
48273         * m4/printf.m4: Likewise.
48274         * m4/progtest.m4: Likewise.
48275         * m4/putenv.m4: Likewise.
48276         * m4/readline.m4: Likewise.
48277         * m4/readlink.m4: Likewise.
48278         * m4/readutmp.m4: Likewise.
48279         * m4/realloc.m4: Likewise.
48280         * m4/regex.m4: Likewise.
48281         * m4/relocatable.m4: Likewise.
48282         * m4/relocatable-lib.m4: Likewise.
48283         * m4/rename-dest-slash.m4: Likewise.
48284         * m4/rename.m4: Likewise.
48285         * m4/rmdir-errno.m4: Likewise.
48286         * m4/rmdir.m4: Likewise.
48287         * m4/roundf.m4: Likewise.
48288         * m4/roundl.m4: Likewise.
48289         * m4/rpmatch.m4: Likewise.
48290         * m4/save-cwd.m4: Likewise.
48291         * m4/selinux-selinux-h.m4: Likewise.
48292         * m4/setenv.m4: Likewise.
48293         * m4/settime.m4: Likewise.
48294         * m4/sig2str.m4: Likewise.
48295         * m4/sig_atomic_t.m4: Likewise.
48296         * m4/signalblocking.m4: Likewise.
48297         * m4/signbit.m4: Likewise.
48298         * m4/sigpipe.m4: Likewise.
48299         * m4/sockets.m4: Likewise.
48300         * m4/sockpfaf.m4: Likewise.
48301         * m4/st_dm_mode.m4: Likewise.
48302         * m4/stat-time.m4: Likewise.
48303         * m4/stdbool.m4: Likewise.
48304         * m4/stdint.m4: Likewise.
48305         * m4/stdint_h.m4: Likewise.
48306         * m4/stpcpy.m4: Likewise.
48307         * m4/stpncpy.m4: Likewise.
48308         * m4/strcase.m4: Likewise.
48309         * m4/strchrnul.m4: Likewise.
48310         * m4/strcspn.m4: Likewise.
48311         * m4/strdup.m4: Likewise.
48312         * m4/strftime.m4: Likewise.
48313         * m4/strndup.m4: Likewise.
48314         * m4/strnlen.m4: Likewise.
48315         * m4/strpbrk.m4: Likewise.
48316         * m4/strptime.m4: Likewise.
48317         * m4/strsep.m4: Likewise.
48318         * m4/strtod.m4: Likewise.
48319         * m4/strtoimax.m4: Likewise.
48320         * m4/strtok_r.m4: Likewise.
48321         * m4/strtol.m4: Likewise.
48322         * m4/strtoll.m4: Likewise.
48323         * m4/strtoul.m4: Likewise.
48324         * m4/strtoull.m4: Likewise.
48325         * m4/strtoumax.m4: Likewise.
48326         * m4/strverscmp.m4: Likewise.
48327         * m4/threadlib.m4: Likewise.
48328         * m4/timegm.m4: Likewise.
48329         * m4/tm_gmtoff.m4: Likewise.
48330         * m4/tmpdir.m4: Likewise.
48331         * m4/tmpfile.m4: Likewise.
48332         * m4/tzset.m4: Likewise.
48333         * m4/uintmax_t.m4: Likewise.
48334         * m4/unlinkdir.m4: Likewise.
48335         * m4/unlocked-io.m4: Likewise.
48336         * m4/uptime.m4: Likewise.
48337         * m4/userspec.m4: Likewise.
48338         * m4/utimbuf.m4: Likewise.
48339         * m4/utime.m4: Likewise.
48340         * m4/utimes-null.m4: Likewise.
48341         * m4/utimes.m4: Likewise.
48342         * m4/vararrays.m4: Likewise.
48343         * m4/vasnprintf.m4: Likewise.
48344         * m4/vfprintf-posix.m4: Likewise.
48345         * m4/vprintf-posix.m4: Likewise.
48346         * m4/wait-process.m4: Likewise.
48347         * m4/wchar_t.m4: Likewise.
48348         * m4/wint_t.m4: Likewise.
48349         * m4/write-any-file.m4: Likewise.
48350         * m4/yield.m4: Likewise.
48351
48352 2009-01-13  Bruno Haible  <bruno@clisp.org>
48353
48354         Avoid test-copy-file.sh failures when ACL support insufficient.
48355         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48356         TESTS_ENVIRONMENT.
48357         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48358         Reported by Jim Meyering.
48359
48360 2009-01-13  Bruno Haible  <bruno@clisp.org>
48361
48362         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48363         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48364         * modules/unistdio/u8-printf-parse (Files): Likewise.
48365         * modules/unistdio/u32-printf-parse (Files): Likewise.
48366         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48367
48368 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48369
48370         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48371         and m4/inttypes_h.m4 too.
48372
48373 2009-01-12  Eric Blake  <ebb9@byu.net>
48374
48375         tests: IRIX 6.2 cc can't compile -0.0 into .data
48376         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48377         rather than at compile-time.
48378         * tests/test-floorl.c (minus_zero): Likewise.
48379         * tests/test-frexpl.c (minus_zero): Likewise.
48380         * tests/test-isnan.c (minus_zerol): Likewise.
48381         * tests/test-isnanl.h (minus_zero): Likewise.
48382         * tests/test-ldexpl.c (minus_zero): Likewise.
48383         * tests/test-roundl.c (minus_zero): Likewise.
48384         * tests/test-signbit.c (minus_zerol): Likewise.
48385         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48386         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48387         * tests/test-truncl.c (minus_zero): Likewise.
48388         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48389         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48390         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48391
48392 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48393
48394         regex: fix glibc bug 9697
48395         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48396         handling.
48397
48398 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48399
48400         regex: fix glibc bug 697
48401         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48402         being NULL also if there are no backreferences.
48403
48404 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48405
48406         regex: merge glibc changes
48407         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48408         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48409         re_string_skip_chars, re_string_reconstruct): Likewise.
48410         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48411
48412 2009-01-07  Jim Meyering  <meyering@redhat.com>
48413
48414         poll: filter through cppi
48415         * lib/poll.c: Indent cpp directives to reflect nesting.
48416
48417 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48418
48419         poll: don't return uninitialized
48420         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48421
48422 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48423
48424         avoid compile failure on AIX 6.1
48425         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48426         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48427
48428 2009-01-04  Jim Meyering  <meyering@redhat.com>
48429
48430         remove duplicate inclusion of <stdio.h>
48431         * tests/test-fprintf-posix.c: Likewise.
48432         * tests/test-printf-posix.c: Likewise.
48433         * tests/test-snprintf-posix.c: Likewise.
48434         * tests/test-sprintf-posix.c: Likewise.
48435         * tests/test-vasprintf-posix.c: Likewise.
48436         * tests/test-vfprintf-posix.c: Likewise.
48437         * tests/test-vprintf-posix.c: Likewise.
48438         * tests/test-vsnprintf-posix.c: Likewise.
48439         * tests/test-vsprintf-posix.c: Likewise.
48440
48441 2009-01-03  Jim Meyering  <meyering@redhat.com>
48442
48443         gnulib-tool: fix sed-based filtering
48444         * gnulib-tool (func_filter_filelist): Remove extra backslash
48445         in sed_fff_filter definition.
48446
48447 2009-01-02  Jim Meyering  <meyering@redhat.com>
48448
48449         strftime: avoid compilation failure on Solaris 2.6
48450         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48451         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48452         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48453         be available.  Reported by Tom G. Christensen.  Details in
48454         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48455
48456 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48457             Bruno Haible  <bruno@clisp.org>
48458
48459         Speed up gnulib-tool by doing more string processing through shell
48460         built-ins.
48461         * gnulib-tool (fast_func_append): New variable.
48462         (func_remove_prefix, func_remove_suffix): New functions.
48463         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48464         (func_filter_filelist): New function.
48465         (func_get_dependencies): Use func_remove_suffix instead of sed.
48466         (func_get_automake_snippet): Use func_filter_filelist instead of a
48467         subshell and sed invocation.
48468
48469 2009-01-01  Bruno Haible  <bruno@clisp.org>
48470
48471         Fix a security bug.
48472         * gnulib-tool (func_import, import, update): Don't allow the characters
48473         '"', '$', '`', '\' in macro arguments that become part of commands that
48474         are evaluated.
48475
48476 2009-01-01  Bruno Haible  <bruno@clisp.org>
48477
48478         * gnulib-tool (func_reset_sigpipe): Add more comments.
48479
48480 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48481
48482         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48483         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48484         already know the answer.
48485
48486 2009-01-01  Jim Meyering  <meyering@redhat.com>
48487
48488         * lib/version-etc.c (version_etc_va): Update copyright year.
48489
48490 2008-12-30  Bruno Haible  <bruno@clisp.org>
48491
48492         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48493         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48494         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48495
48496 2008-12-29  Eric Blake  <ebb9@byu.net>
48497
48498         multiarch: avoid autoconf AC_REQUIRE bug
48499         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48500         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48501         2.63 and older.
48502         Reported by Bruno Haible, and analyzed in
48503         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48504
48505 2008-12-29  Bruno Haible  <bruno@clisp.org>
48506
48507         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48508         files in subdirectories correctly.
48509         Reported by Ralf Wildenhues.
48510
48511 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48512
48513         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48514         rather than 'join FILE -', for Solaris join.
48515
48516 2008-12-29  Bruno Haible  <bruno@clisp.org>
48517
48518         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48519         quoting.
48520         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48521         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48522         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48523         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48524         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48525         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48526         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48527         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48528         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48529         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48530         * m4/nls.m4 (AM_NLS): Likewise.
48531         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48532         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48533         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48534         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48535         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48536         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48537         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48538         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48539         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48540         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48541         * m4/xsize.m4 (gl_XSIZE): Likewise.
48542         Suggested by Jim Meyering.
48543
48544 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48545
48546         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48547         * lib/parse-duration.c: use a switch instead of cascading if's.
48548
48549 2008-12-29  Eric Blake  <ebb9@byu.net>
48550
48551         wchar.h: supply WEOF on Irix 5.3
48552         * lib/wchar.in.h (wint_t): Also supply WEOF.
48553         * lib/wctype.in.h (wint_t): Likewise.
48554         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48555         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48556         Reported by Tom G. Christensen.
48557
48558 2008-12-26  Bruno Haible  <bruno@clisp.org>
48559
48560         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48561         i486, i586, i686.
48562
48563 2008-12-26  Bruno Haible  <bruno@clisp.org>
48564
48565         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48566
48567 2008-12-26  Bruno Haible  <bruno@clisp.org>
48568
48569         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48570         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48571         not __STDC_CONSTANT_MACROS.
48572         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48573
48574 2008-12-25  Bruno Haible  <bruno@clisp.org>
48575
48576         Add support for universal builds to vasnprintf.
48577         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48578         universal builds, guess no.
48579         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48580         * modules/vasprintf-posix (Depends-on): Likewise.
48581         * modules/fprintf-posix (Depends-on): Likewise.
48582         * modules/vfprintf-posix (Depends-on): Likewise.
48583         * modules/snprintf-posix (Depends-on): Likewise.
48584         * modules/vsnprintf-posix (Depends-on): Likewise.
48585         * modules/sprintf-posix (Depends-on): Likewise.
48586         * modules/vsprintf-posix (Depends-on): Likewise.
48587         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48588         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48589         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48590         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48591         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48592         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48593         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48594
48595         Add support for universal builds to <inttypes.h>.
48596         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48597         _SCNu64_PREFIX): In Apple
48598         universal builds, define directly, using _LP64.
48599         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48600         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48601         * modules/inttypes (Depends-on): Add multiarch.
48602         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48603
48604         Add support for universal builds to <stdint.h>.
48605         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48606         universal builds, define directly, using _LP64.
48607         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48608         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48609         and size_t.
48610         * modules/stdint (Depends-on): Add multiarch.
48611         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48612
48613         New module 'multiarch'.
48614         * modules/multiarch: New file.
48615         * m4/multiarch.m4: New file.
48616
48617 2008-12-25  Bruno Haible  <bruno@clisp.org>
48618
48619         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48620
48621 2008-12-25  Bruno Haible  <bruno@clisp.org>
48622
48623         * modules/btowc (License): Relicense under LGPLv2+.
48624         * modules/mbsinit (License): Likewise.
48625         * modules/mbrtowc (License): Likewise.
48626         * modules/wcrtomb (License): Likewise.
48627         * modules/streq (License): Likewise.
48628         Reported by David Lutterkort <lutter@redhat.com>.
48629
48630 2008-12-23  Bruno Haible  <bruno@clisp.org>
48631
48632         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48633
48634 2008-12-23  Bruno Haible  <bruno@clisp.org>
48635
48636         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48638         GETADDRINFO_LIB, not in LIBS.
48639         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48640         * modules/canon-host (Link): Likewise.
48641         * NEWS: Mention the change.
48642         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48643         GETADDRINFO_LIB.
48644
48645 2008-12-22  Bruno Haible  <bruno@clisp.org>
48646
48647         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48648         * doc/posix-functions/iswalpha_l.texi: Likewise.
48649         * doc/posix-functions/iswblank_l.texi: Likewise.
48650         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48651         * doc/posix-functions/iswctype_l.texi: Likewise.
48652         * doc/posix-functions/iswdigit_l.texi: Likewise.
48653         * doc/posix-functions/iswgraph_l.texi: Likewise.
48654         * doc/posix-functions/iswlower_l.texi: Likewise.
48655         * doc/posix-functions/iswprint_l.texi: Likewise.
48656         * doc/posix-functions/iswpunct_l.texi: Likewise.
48657         * doc/posix-functions/iswspace_l.texi: Likewise.
48658         * doc/posix-functions/iswupper_l.texi: Likewise.
48659         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48660         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48661         * doc/posix-functions/open_wmemstream.texi: Likewise.
48662         * doc/posix-functions/swscanf.texi: Likewise.
48663         * doc/posix-functions/towctrans_l.texi: Likewise.
48664         * doc/posix-functions/towlower.texi: Likewise.
48665         * doc/posix-functions/towlower_l.texi: Likewise.
48666         * doc/posix-functions/towupper.texi: Likewise.
48667         * doc/posix-functions/towupper_l.texi: Likewise.
48668         * doc/posix-functions/vfwprintf.texi: Likewise.
48669         * doc/posix-functions/vfwscanf.texi: Likewise.
48670         * doc/posix-functions/vswscanf.texi: Likewise.
48671         * doc/posix-functions/vwprintf.texi: Likewise.
48672         * doc/posix-functions/vwscanf.texi: Likewise.
48673         * doc/posix-functions/wcpcpy.texi: Likewise.
48674         * doc/posix-functions/wcpncpy.texi: Likewise.
48675         * doc/posix-functions/wcscasecmp.texi: Likewise.
48676         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48677         * doc/posix-functions/wcscoll_l.texi: Likewise.
48678         * doc/posix-functions/wcsdup.texi: Likewise.
48679         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48680         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48681         * doc/posix-functions/wcsnlen.texi: Likewise.
48682         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48683         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48684         * doc/posix-functions/wctrans_l.texi: Likewise.
48685         * doc/posix-functions/wctype_l.texi: Likewise.
48686         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48687         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48688         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48689         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48690         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48691         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48692         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48693         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48694         * doc/glibc-functions/wcschrnul.texi: Likewise.
48695         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48696         * doc/glibc-functions/wcstod_l.texi: Likewise.
48697         * doc/glibc-functions/wcstof_l.texi: Likewise.
48698         * doc/glibc-functions/wcstol_l.texi: Likewise.
48699         * doc/glibc-functions/wcstold_l.texi: Likewise.
48700         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48701         * doc/glibc-functions/wcstoq.texi: Likewise.
48702         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48703         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48704         * doc/glibc-functions/wcstouq.texi: Likewise.
48705         * doc/glibc-functions/wmempcpy.texi: Likewise.
48706
48707 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48708             Eric Blake  <ebb9@byu.net>
48709             Paolo Bonzini  <bonzini@gnu.org>
48710             Bruno Haible  <bruno@clisp.org>
48711
48712         Make c-stack work on Haiku.
48713         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48714         (c_stack_action): Use SA_ONSTACK flag.
48715
48716 2008-12-22  Bruno Haible  <bruno@clisp.org>
48717
48718         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48719
48720 2008-12-22  Bruno Haible  <bruno@clisp.org>
48721
48722         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48723         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48724         being overridden.
48725         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48726         New macros.
48727         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48729         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48730         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48731
48732 2008-12-22  Bruno Haible  <bruno@clisp.org>
48733
48734         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48735         from test code.
48736
48737 2008-12-22  Eric Blake  <ebb9@byu.net>
48738
48739         Avoid gcc warnings on cygwin.
48740         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48741         Avoid unused variable.
48742         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48743         Likewise.
48744
48745 2008-12-22  Bruno Haible  <bruno@clisp.org>
48746
48747         Remove HAVE_MBRTOWC conditionals.
48748         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48749         (mbscasecmp): Assume mbrtowc function.
48750         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48751         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48752         * lib/mbschr.c: Include mbuiter.h unconditionally.
48753         (mbschr): Assume mbrtowc function.
48754         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48755         (mbscspn): Assume mbrtowc function.
48756         * lib/mbslen.c: Include mbuiter.h unconditionally.
48757         (mbslen): Assume mbrtowc function.
48758         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48759         (mbsncasecmp): Assume mbrtowc function.
48760         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48761         (mbsnlen): Assume mbrtowc function.
48762         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48763         (mbspbrk): Assume mbrtowc function.
48764         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48765         (mbspcasecmp): Assume mbrtowc function.
48766         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48767         (mbsrchr): Assume mbrtowc function.
48768         * lib/mbssep.c: Include mbuiter.h unconditionally.
48769         (mbssep): Assume mbrtowc function.
48770         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48771         (mbsspn): Assume mbrtowc function.
48772         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48773         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48774         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48775         (mbstok_r): Assume mbrtowc function.
48776         * lib/propername.c: Include mbuiter.h unconditionally.
48777         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48778         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48779         (trim2): Assume mbrtowc function.
48780         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48781         (mbsnwidth): Assume mbrtowc function.
48782         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48783         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48784         fallback definitions.
48785         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48786
48787 2008-12-22  Bruno Haible  <bruno@clisp.org>
48788
48789         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48790
48791 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48792
48793         * modules/regex: Request emulations for the mb*/wc* functions we need.
48794         * m4/regex.m4: Don't look for those functions here.
48795         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48796
48797 2008-12-22  Bruno Haible  <bruno@clisp.org>
48798
48799         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48800
48801 2008-12-21  Bruno Haible  <bruno@clisp.org>
48802
48803         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48804         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48805         (Include): Remove conditionalization.
48806         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48807         (Include): Remove conditionalization.
48808         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48809         (Include): Remove conditionalization.
48810         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48811         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48812         * NEWS: Mention the change.
48813         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48814         via Sergey Poznyakoff <gray@gnu.org.ua>.
48815
48816 2008-12-21  Bruno Haible  <bruno@clisp.org>
48817
48818         * MODULES.html.sh (Extended multibyte and wide character utilities
48819         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48820         wcrtomb, wcsrtombs.
48821         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48822         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48823         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48824         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48825
48826 2008-12-21  Bruno Haible  <bruno@clisp.org>
48827
48828         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48829
48830 2008-12-21  Bruno Haible  <bruno@clisp.org>
48831
48832         * modules/wcsnrtombs-tests: New file.
48833         * tests/test-wcsnrtombs1.sh: New file.
48834         * tests/test-wcsnrtombs2.sh: New file.
48835         * tests/test-wcsnrtombs3.sh: New file.
48836         * tests/test-wcsnrtombs4.sh: New file.
48837         * tests/test-wcsnrtombs.c: New file.
48838
48839         New module 'wcsnrtombs'.
48840         * lib/wchar.in.h (wcsnrtombs): New declaration.
48841         * lib/wcsnrtombs.c: New file.
48842         * lib/wcsrtombs-state.c: New file.
48843         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48844         (internal_state): Remove variable.
48845         * m4/wcsnrtombs.m4: New file.
48846         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48847         compilation units.
48848         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48849         HAVE_WCSNRTOMBS.
48850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48851         HAVE_WCSNRTOMBS.
48852         * modules/wcsnrtombs: New file.
48853         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48854         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48855
48856 2008-12-21  Bruno Haible  <bruno@clisp.org>
48857
48858         * modules/wcsrtombs-tests: New file.
48859         * tests/test-wcsrtombs1.sh: New file.
48860         * tests/test-wcsrtombs2.sh: New file.
48861         * tests/test-wcsrtombs3.sh: New file.
48862         * tests/test-wcsrtombs4.sh: New file.
48863         * tests/test-wcsrtombs.c: New file.
48864
48865         New module 'wcsrtombs'.
48866         * lib/wchar.in.h (wcsrtombs): New declaration.
48867         * lib/wcsrtombs.c: New file.
48868         * m4/wcsrtombs.m4: New file.
48869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48870         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48872         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48873         * modules/wcsrtombs: New file.
48874         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48875         bugs.
48876
48877 2008-12-21  Bruno Haible  <bruno@clisp.org>
48878
48879         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48880         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48881         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48882         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48883         if not correct.
48884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48885         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48886         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48887         m4/locale-zh.m4, m4/codeset.m4.
48888         * doc/posix-functions/wcrtomb.texi: Document the bug.
48889
48890 2008-12-21  Bruno Haible  <bruno@clisp.org>
48891
48892         Work around a btowc() bug on IRIX 6.5.
48893         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48894         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48895         REPLACE_WTOBC if not.
48896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48897         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48898         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48899
48900 2008-12-21  Bruno Haible  <bruno@clisp.org>
48901
48902         * modules/wcrtomb-tests: New file.
48903         * tests/test-wcrtomb.sh: New file.
48904         * tests/test-wcrtomb.c: New file.
48905
48906         New module 'wcrtomb'.
48907         * lib/wchar.in.h (wcrtomb): New declaration.
48908         * lib/wcrtomb.c: New file.
48909         * m4/wcrtomb.m4: New file.
48910         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48911         HAVE_WCRTOMB.
48912         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48913         HAVE_WCRTOMB.
48914         * modules/wcrtomb: New file.
48915         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48916
48917 2008-12-21  Bruno Haible  <bruno@clisp.org>
48918
48919         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48920         * modules/mbsrtowcs (Files): Likewise.
48921         * modules/wctob (Files): Likewise.
48922         * modules/c-strcase-tests (Files): Likewise.
48923         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48924         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48925         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48926         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48927         * modules/vasnprintf-posix-tests (Files): Likewise.
48928
48929 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48930
48931         gitlog-to-changelog: pass all command-line arguments to git-log
48932         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48933         it is sometimes convenient to filter the commits in various ways.
48934         gitlog-to-changelog only allows --since to specify a start date,
48935         but git-log itself supports many other filtering mechanisms.
48936         At the moment, I want to filter by branch name.  Rather than
48937         adding a --branch option to gitlog-to-changelog, it seems more
48938         flexible to simply pass all options directly to git-log and let
48939         git do the work.  Notice that this effectively makes --since a
48940         redundant option for gitlog-to-changelog, but removing it would
48941         require current usage to change since calls would then require
48942         an additional '--'.
48943
48944 2008-12-21  Bruno Haible  <bruno@clisp.org>
48945
48946         * modules/mbsnrtowcs-tests: New file.
48947         * tests/test-mbsnrtowcs1.sh: New file.
48948         * tests/test-mbsnrtowcs2.sh: New file.
48949         * tests/test-mbsnrtowcs3.sh: New file.
48950         * tests/test-mbsnrtowcs4.sh: New file.
48951         * tests/test-mbsnrtowcs.c: New file.
48952
48953         New module 'mbsnrtowcs'.
48954         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48955         * lib/mbsnrtowcs.c: New file.
48956         * lib/mbsrtowcs-state.c: New file.
48957         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48958         (internal_state): Remove variable.
48959         * m4/mbsnrtowcs.m4: New file.
48960         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48961         compilation units.
48962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48963         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48964         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48965         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48966         * modules/mbsnrtowcs: New file.
48967         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48968         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48969         portability problem.
48970
48971 2008-12-21  Bruno Haible  <bruno@clisp.org>
48972
48973         Work around mbsrtowcs bug.
48974         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48975         (gl_FUNC_MBSRTOWCS): Invoke it.
48976         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48977         m4/locale-zh.m4.
48978         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48979
48980 2008-12-21  Bruno Haible  <bruno@clisp.org>
48981
48982         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48983
48984 2008-12-21  Bruno Haible  <bruno@clisp.org>
48985
48986         Update doc for AIX.
48987         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48988         16-bit wchar_t type.
48989         * doc/posix-functions/btowc.texi: Likewise.
48990         * doc/posix-functions/fgetwc.texi: Likewise.
48991         * doc/posix-functions/fgetws.texi: Likewise.
48992         * doc/posix-functions/fputwc.texi: Likewise.
48993         * doc/posix-functions/fputws.texi: Likewise.
48994         * doc/posix-functions/fwide.texi: Likewise.
48995         * doc/posix-functions/fwprintf.texi: Likewise.
48996         * doc/posix-functions/fwscanf.texi: Likewise.
48997         * doc/posix-functions/getwchar.texi: Likewise.
48998         * doc/posix-functions/getwc.texi: Likewise.
48999         * doc/posix-functions/iswalnum.texi: Likewise.
49000         * doc/posix-functions/iswalpha.texi: Likewise.
49001         * doc/posix-functions/iswblank.texi: Likewise.
49002         * doc/posix-functions/iswcntrl.texi: Likewise.
49003         * doc/posix-functions/iswctype.texi: Likewise.
49004         * doc/posix-functions/iswdigit.texi: Likewise.
49005         * doc/posix-functions/iswgraph.texi: Likewise.
49006         * doc/posix-functions/iswlower.texi: Likewise.
49007         * doc/posix-functions/iswprint.texi: Likewise.
49008         * doc/posix-functions/iswpunct.texi: Likewise.
49009         * doc/posix-functions/iswspace.texi: Likewise.
49010         * doc/posix-functions/iswupper.texi: Likewise.
49011         * doc/posix-functions/iswxdigit.texi: Likewise.
49012         * doc/posix-functions/mbrtowc.texi: Likewise.
49013         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49014         * doc/posix-functions/mbstowcs.texi: Likewise.
49015         * doc/posix-functions/mbtowc.texi: Likewise.
49016         * doc/posix-functions/putwchar.texi: Likewise.
49017         * doc/posix-functions/putwc.texi: Likewise.
49018         * doc/posix-functions/swprintf.texi: Likewise.
49019         * doc/posix-functions/tolower.texi: Likewise.
49020         * doc/posix-functions/toupper.texi: Likewise.
49021         * doc/posix-functions/towctrans.texi: Likewise.
49022         * doc/posix-functions/ungetwc.texi: Likewise.
49023         * doc/posix-functions/vswprintf.texi: Likewise.
49024         * doc/posix-functions/wcrtomb.texi: Likewise.
49025         * doc/posix-functions/wcscat.texi: Likewise.
49026         * doc/posix-functions/wcschr.texi: Likewise.
49027         * doc/posix-functions/wcscmp.texi: Likewise.
49028         * doc/posix-functions/wcscoll.texi: Likewise.
49029         * doc/posix-functions/wcscpy.texi: Likewise.
49030         * doc/posix-functions/wcscspn.texi: Likewise.
49031         * doc/posix-functions/wcsftime.texi: Likewise.
49032         * doc/posix-functions/wcslen.texi: Likewise.
49033         * doc/posix-functions/wcsncat.texi: Likewise.
49034         * doc/posix-functions/wcsncmp.texi: Likewise.
49035         * doc/posix-functions/wcsncpy.texi: Likewise.
49036         * doc/posix-functions/wcspbrk.texi: Likewise.
49037         * doc/posix-functions/wcsrchr.texi: Likewise.
49038         * doc/posix-functions/wcsrtombs.texi: Likewise.
49039         * doc/posix-functions/wcsspn.texi: Likewise.
49040         * doc/posix-functions/wcsstr.texi: Likewise.
49041         * doc/posix-functions/wcstod.texi: Likewise.
49042         * doc/posix-functions/wcstof.texi: Likewise.
49043         * doc/posix-functions/wcstoimax.texi: Likewise.
49044         * doc/posix-functions/wcstok.texi: Likewise.
49045         * doc/posix-functions/wcstold.texi: Likewise.
49046         * doc/posix-functions/wcstoll.texi: Likewise.
49047         * doc/posix-functions/wcstol.texi: Likewise.
49048         * doc/posix-functions/wcstombs.texi: Likewise.
49049         * doc/posix-functions/wcstoull.texi: Likewise.
49050         * doc/posix-functions/wcstoul.texi: Likewise.
49051         * doc/posix-functions/wcstoumax.texi: Likewise.
49052         * doc/posix-functions/wcswidth.texi: Likewise.
49053         * doc/posix-functions/wcsxfrm.texi: Likewise.
49054         * doc/posix-functions/wctob.texi: Likewise.
49055         * doc/posix-functions/wctomb.texi: Likewise.
49056         * doc/posix-functions/wctrans.texi: Likewise.
49057         * doc/posix-functions/wctype.texi: Likewise.
49058         * doc/posix-functions/wcwidth.texi: Likewise.
49059         * doc/posix-functions/wmemchr.texi: Likewise.
49060         * doc/posix-functions/wmemcmp.texi: Likewise.
49061         * doc/posix-functions/wmemcpy.texi: Likewise.
49062         * doc/posix-functions/wmemmove.texi: Likewise.
49063         * doc/posix-functions/wmemset.texi: Likewise.
49064         * doc/posix-functions/wprintf.texi: Likewise.
49065         * doc/posix-functions/wscanf.texi: Likewise.
49066
49067 2008-12-21  Bruno Haible  <bruno@clisp.org>
49068
49069         Update doc for HP-UX 11.11.
49070         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49071         in HP-UX version 11.00, not in all versions of HP-UX 11.
49072         * doc/posix-functions/fwide.texi: Likewise.
49073         * doc/posix-functions/fwprintf.texi: Likewise.
49074         * doc/posix-functions/fwscanf.texi: Likewise.
49075         * doc/posix-functions/inet_ntop.texi: Likewise.
49076         * doc/posix-functions/inet_pton.texi: Likewise.
49077         * doc/posix-functions/mbrlen.texi: Likewise.
49078         * doc/posix-functions/mbrtowc.texi: Likewise.
49079         * doc/posix-functions/mbsinit.texi: Likewise.
49080         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49081         * doc/posix-functions/swprintf.texi: Likewise.
49082         * doc/posix-functions/swscanf.texi: Likewise.
49083         * doc/posix-functions/towctrans.texi: Likewise.
49084         * doc/posix-functions/vfwprintf.texi: Likewise.
49085         * doc/posix-functions/vswprintf.texi: Likewise.
49086         * doc/posix-functions/vwprintf.texi: Likewise.
49087         * doc/posix-functions/wcrtomb.texi: Likewise.
49088         * doc/posix-functions/wcsrtombs.texi: Likewise.
49089         * doc/posix-functions/wcsstr.texi: Likewise.
49090         * doc/posix-functions/wctob.texi: Likewise.
49091         * doc/posix-functions/wctrans.texi: Likewise.
49092         * doc/posix-functions/wmemchr.texi: Likewise.
49093         * doc/posix-functions/wmemcmp.texi: Likewise.
49094         * doc/posix-functions/wmemcpy.texi: Likewise.
49095         * doc/posix-functions/wmemmove.texi: Likewise.
49096         * doc/posix-functions/wmemset.texi: Likewise.
49097         * doc/posix-functions/wprintf.texi: Likewise.
49098         * doc/posix-functions/wscanf.texi: Likewise.
49099
49100 2008-12-21  Bruno Haible  <bruno@clisp.org>
49101
49102         Work around a portability problem.
49103         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49104         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49105
49106 2008-12-20  Bruno Haible  <bruno@clisp.org>
49107
49108         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49109         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49110         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49112         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49113
49114         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49115         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49116         set.
49117         (GNULIB_defined_mbstate_t): New macro.
49118         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49119         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49120         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49121         reuses the system's mbrtowc function but works around the bugs.
49122         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49123         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49124         macros.
49125         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49126         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49127         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49128         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49129         REPLACE_MBSINIT if mbsinit needs to be overridden.
49130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49131         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49132         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49133         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49134         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49135         m4/locale-zh.m4.
49136         (Depends): Add mbsinit.
49137         * modules/mbsinit (Depends): Add mbrtowc.
49138         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49139
49140 2008-12-20  Bruno Haible  <bruno@clisp.org>
49141
49142         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49143         so that there are no conversion errors on AIX.
49144         * tests/test-mbsrtowcs.c (main): LIkewise.
49145
49146 2008-12-20  Bruno Haible  <bruno@clisp.org>
49147
49148         Work around wctob bug on Solaris <= 9.
49149         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49150         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49152         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49153         * modules/wctob (Files): Add m4/locale-fr.m4.
49154         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49155
49156 2008-12-20  Bruno Haible  <bruno@clisp.org>
49157
49158         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49159         /dev/null.
49160         * tests/test-select-in.sh: Likewise.
49161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49162
49163 2008-12-20  Bruno Haible  <bruno@clisp.org>
49164
49165         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49166         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49167         Cygwin 1.5.x.
49168
49169 2008-12-20  Bruno Haible  <bruno@clisp.org>
49170
49171         Ensure mbstate_t is defined on HP-UX 11.11.
49172         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49173         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49174         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49175         AC_USE_SYSTEM_EXTENSIONS.
49176         * modules/fnmatch (Depends-on): Add extensions.
49177         * modules/mbrlen (Depends-on): Likewise.
49178         * modules/mbrtowc (Depends-on): Likewise.
49179         * modules/mbsinit (Depends-on): Likewise.
49180         * modules/mbsrtowcs (Depends-on): Likewise.
49181         * modules/mbswidth (Depends-on): Likewise.
49182         * modules/quotearg (Depends-on): Likewise.
49183         * modules/strftime (Depends-on): Likewise.
49184
49185 2008-12-20  Bruno Haible  <bruno@clisp.org>
49186
49187         Ensure wctob is declared on IRIX 6.5.
49188         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49189         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49190         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49192         of HAVE_WCTOB.
49193         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49194         HAVE_WCTOB.
49195         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49196
49197 2008-12-19  Bruno Haible  <bruno@clisp.org>
49198
49199         * modules/mbsrtowcs-tests: New file.
49200         * tests/test-mbsrtowcs1.sh: New file.
49201         * tests/test-mbsrtowcs2.sh: New file.
49202         * tests/test-mbsrtowcs3.sh: New file.
49203         * tests/test-mbsrtowcs4.sh: New file.
49204         * tests/test-mbsrtowcs.c: New file.
49205
49206         New module 'mbsrtowcs'.
49207         * lib/wchar.in.h (mbsrtowcs): New declaration.
49208         * lib/mbsrtowcs.c: New file.
49209         * m4/mbsrtowcs.m4: New file.
49210         * modules/mbsrtowcs: New file.
49211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49212         HAVE_MBSRTOWCS.
49213         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49214         HAVE_MBSRTOWCS.
49215         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49216
49217 2008-12-19  Bruno Haible  <bruno@clisp.org>
49218
49219         New module 'mbrlen'.
49220         * lib/wchar.in.h (mbrlen): New declaration.
49221         * lib/mbrlen.c: New file.
49222         * m4/mbrlen.m4: New file.
49223         * modules/mbrlen: New file.
49224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49225         HAVE_MBRLEN.
49226         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49227         HAVE_MBRLEN.
49228         * doc/posix-functions/mbrlen.texi: Document the new module.
49229
49230 2008-12-19  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49233         * modules/mbrtowc (Depends-on): Add verify.
49234         Suggested by Paul Eggert.
49235
49236 2008-12-18  Bruno Haible  <bruno@clisp.org>
49237
49238         * modules/mbsinit-tests: New file.
49239         * tests/test-mbsinit.sh: New file.
49240         * tests/test-mbsinit.c: New file.
49241
49242 2008-12-18  Bruno Haible  <bruno@clisp.org>
49243
49244         * modules/mbrtowc-tests: New file.
49245         * tests/test-mbrtowc1.sh: New file.
49246         * tests/test-mbrtowc2.sh: New file.
49247         * tests/test-mbrtowc3.sh: New file.
49248         * tests/test-mbrtowc4.sh: New file.
49249         * tests/test-mbrtowc.c: New file.
49250
49251         New module 'mbrtowc'.
49252         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49253         mbsinit and mbrtowc.
49254         (mbrtowc): New declaration.
49255         * lib/mbrtowc.c: New file.
49256         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49257         * modules/mbrtowc: New file.
49258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49259         HAVE_MBRTOWC.
49260         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49261         HAVE_MBRTOWC.
49262         * doc/posix-functions/mbrtowc.texi: Document the new module.
49263
49264 2008-12-18  Bruno Haible  <bruno@clisp.org>
49265
49266         New module 'wctob'.
49267         * lib/wchar.in.h (wctob): New declaration.
49268         * lib/wctob.c: New file.
49269         * m4/wctob.m4: New file.
49270         * modules/wctob: New file.
49271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49272         HAVE_WCTOB.
49273         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49274         * doc/posix-functions/wctob.texi: Document the new module.
49275
49276 2008-12-18  Bruno Haible  <bruno@clisp.org>
49277
49278         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49279         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49280
49281 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49282
49283         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49284         G. Christensen" <tgc@jupiterrise.com>.
49285
49286         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49287         G. Christensen" <tgc@jupiterrise.com>.
49288
49289         * lib/flock.c: Need to include string.h.  Reported by "Tom
49290         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49291         <ebb9@byu.net>.
49292
49293 2008-12-18  Bruno Haible  <bruno@clisp.org>
49294
49295         * m4/locale-ja.m4: New file, from GNU gettext.
49296
49297 2008-12-17  Bruno Haible  <bruno@clisp.org>
49298
49299         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49300         Suggested by Eric Blake.
49301
49302 2008-12-17  Bruno Haible  <bruno@clisp.org>
49303
49304         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49305
49306 2008-12-17  Bruno Haible  <bruno@clisp.org>
49307
49308         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49309         * modules/mbsinit (Depends-on): Add verify.
49310         Suggested by Paul Eggert.
49311
49312 2008-12-17  Bruno Haible  <bruno@clisp.org>
49313
49314         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49315         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49316         gl_FUNC_MBRTOWC.
49317         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49318         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49319         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49320         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49321         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49322         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49323         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49324         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49325         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49326         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49327         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49328         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49329         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49330         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49331         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49332         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49333         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49334         * modules/trim (configure.ac): Likewise.
49335
49336 2008-12-17  Bruno Haible  <bruno@clisp.org>
49337
49338         * modules/btowc-tests: New file.
49339         * tests/test-btowc1.sh: New file.
49340         * tests/test-btowc2.sh: New file.
49341         * tests/test-btowc.c: New file.
49342
49343         New module 'btowc'.
49344         * lib/wchar.in.h (btowc): New declaration.
49345         * lib/btowc.c: New file.
49346         * m4/btowc.m4: New file.
49347         * modules/btowc: New file.
49348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49349         HAVE_BTOWC.
49350         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49351         * doc/posix-functions/btowc.texi: Document the new module.
49352
49353 2008-12-17  Bruno Haible  <bruno@clisp.org>
49354
49355         New module 'mbsinit'.
49356         * lib/wchar.in.h (mbsinit): New declaration.
49357         * lib/mbsinit.c: New file.
49358         * m4/mbsinit.m4: New file.
49359         * modules/mbsinit: New file.
49360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49361         HAVE_MBSINIT.
49362         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49363         HAVE_MBSINIT.
49364         * doc/posix-functions/mbsinit.texi: Document the new module.
49365
49366 2008-12-16  Bruno Haible  <bruno@clisp.org>
49367
49368         * lib/unistd.in.h: Add comment.
49369         * tests/test-environ.c: Don't include <stdlib.h>.
49370
49371 2008-12-16  Bruno Haible  <bruno@clisp.org>
49372
49373         * lib/parse-duration.h (parse_duration): Document return value
49374         convention.
49375         * lib/parse-duration.c: Include specification header first. Add
49376         comments.
49377         (_): Remove macro.
49378         (parse_year_month_day, parse_hour_minute_second): Move side effects
49379         outside of strchr call.
49380         (parse_non_iso8601): Move side effects outside of isspace call.
49381         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49382         call.
49383
49384 2008-12-16  Bruno Haible  <bruno@clisp.org>
49385
49386         * tests/test-parse-duration.sh: Produce no output when the test
49387         succeeds.
49388
49389 2008-12-16  Bruno Haible  <bruno@clisp.org>
49390
49391         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49392         expressions.
49393
49394 2008-12-15  Bruno Haible  <bruno@clisp.org>
49395
49396         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49397         * doc/glibc-functions/flistxattr.texi: Likewise.
49398         * doc/glibc-functions/fopencookie.texi: Likewise.
49399         * doc/glibc-functions/fremovexattr.texi: Likewise.
49400         * doc/glibc-functions/fsetxattr.texi: Likewise.
49401         * doc/glibc-functions/getxattr.texi: Likewise.
49402         * doc/glibc-functions/lgetxattr.texi: Likewise.
49403         * doc/glibc-functions/listxattr.texi: Likewise.
49404         * doc/glibc-functions/llistxattr.texi: Likewise.
49405         * doc/glibc-functions/lremovexattr.texi: Likewise.
49406         * doc/glibc-functions/lsetxattr.texi: Likewise.
49407         * doc/glibc-functions/removexattr.texi: Likewise.
49408         * doc/glibc-functions/setxattr.texi: Likewise.
49409         * doc/posix-functions/open_memstream.texi: Likewise.
49410
49411 2008-12-15  Eric Blake  <ebb9@byu.net>
49412
49413         Update doc for cygwin 1.7.
49414         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49415         functions.
49416         * doc/posix-functions/fchmodat.texi: Likewise.
49417         * doc/posix-functions/fchownat.texi: Likewise.
49418         * doc/posix-functions/fdopendir.texi: Likewise.
49419         * doc/posix-functions/fmemopen.texi: Likewise.
49420         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49421         * doc/posix-functions/fstatat.texi: Likewise.
49422         * doc/posix-functions/futimens.texi: Likewise.
49423         * doc/posix-functions/gai_strerror.texi: Likewise.
49424         * doc/posix-functions/getaddrinfo.texi: Likewise.
49425         * doc/posix-functions/getnameinfo.texi: Likewise.
49426         * doc/posix-functions/if_freenameindex.texi: Likewise.
49427         * doc/posix-functions/if_indextoname.texi: Likewise.
49428         * doc/posix-functions/if_nameindex.texi: Likewise.
49429         * doc/posix-functions/if_nametoindex.texi: Likewise.
49430         * doc/posix-functions/insque.texi: Likewise.
49431         * doc/posix-functions/linkat.texi: Likewise.
49432         * doc/posix-functions/llrint.texi: Likewise.
49433         * doc/posix-functions/llrintf.texi: Likewise.
49434         * doc/posix-functions/llrintl.texi: Likewise.
49435         * doc/posix-functions/lockf.texi: Likewise.
49436         * doc/posix-functions/lrintl.texi: Likewise.
49437         * doc/posix-functions/mkdirat.texi: Likewise.
49438         * doc/posix-functions/mkfifoat.texi: Likewise.
49439         * doc/posix-functions/mknodat.texi: Likewise.
49440         * doc/posix-functions/mq_close.texi: Likewise.
49441         * doc/posix-functions/mq_getattr.texi: Likewise.
49442         * doc/posix-functions/mq_notify.texi: Likewise.
49443         * doc/posix-functions/mq_open.texi: Likewise.
49444         * doc/posix-functions/mq_receive.texi: Likewise.
49445         * doc/posix-functions/mq_send.texi: Likewise.
49446         * doc/posix-functions/mq_setattr.texi: Likewise.
49447         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49448         * doc/posix-functions/mq_timedsend.texi: Likewise.
49449         * doc/posix-functions/mq_unlink.texi: Likewise.
49450         * doc/posix-functions/open_memstream.texi: Likewise.
49451         * doc/posix-functions/openat.texi: Likewise.
49452         * doc/posix-functions/posix_fadvise.texi: Likewise.
49453         * doc/posix-functions/posix_fallocate.texi: Likewise.
49454         * doc/posix-functions/posix_madvise.texi: Likewise.
49455         * doc/posix-functions/posix_memalign.texi: Likewise.
49456         * doc/posix-functions/posix_openpt.texi: Likewise.
49457         * doc/posix-functions/readlinkat.texi: Likewise.
49458         * doc/posix-functions/remque.texi: Likewise.
49459         * doc/posix-functions/renameat.texi: Likewise.
49460         * doc/posix-functions/rintl.texi: Likewise.
49461         * doc/posix-functions/sem_unlink.texi: Likewise.
49462         * doc/posix-functions/shm_open.texi: Likewise.
49463         * doc/posix-functions/shm_unlink.texi: Likewise.
49464         * doc/posix-functions/signgam.texi: Likewise.
49465         * doc/posix-functions/sigset.texi: Likewise.
49466         * doc/posix-functions/stpcpy.texi: Likewise.
49467         * doc/posix-functions/stpncpy.texi: Likewise.
49468         * doc/posix-functions/strerror.texi: Likewise.
49469         * doc/posix-functions/strtod.texi: Likewise.
49470         * doc/posix-functions/symlinkat.texi: Likewise.
49471         * doc/posix-functions/unlinkat.texi: Likewise.
49472         * doc/posix-functions/utimensat.texi: Likewise.
49473         * doc/glibc-functions/bindresvport.texi: Likewise.
49474         * doc/glibc-functions/dn_expand.texi: Likewise.
49475         * doc/glibc-functions/exp10.texi: Likewise.
49476         * doc/glibc-functions/exp10f.texi: Likewise.
49477         * doc/glibc-functions/fgetxattr.texi: Likewise.
49478         * doc/glibc-functions/flistxattr.texi: Likewise.
49479         * doc/glibc-functions/fopencookie.texi: Likewise.
49480         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49481         * doc/glibc-functions/fremovexattr.texi: Likewise.
49482         * doc/glibc-functions/fsetxattr.texi: Likewise.
49483         * doc/glibc-functions/getifaddrs.texi: Likewise.
49484         * doc/glibc-functions/getxattr.texi: Likewise.
49485         * doc/glibc-functions/lgetxattr.texi: Likewise.
49486         * doc/glibc-functions/listxattr.texi: Likewise.
49487         * doc/glibc-functions/llistxattr.texi: Likewise.
49488         * doc/glibc-functions/lremovexattr.texi: Likewise.
49489         * doc/glibc-functions/lsetxattr.texi: Likewise.
49490         * doc/glibc-functions/pow10.texi: Likewise.
49491         * doc/glibc-functions/pow10f.texi: Likewise.
49492         * doc/glibc-functions/rcmd_af.texi: Likewise.
49493         * doc/glibc-functions/removexattr.texi: Likewise.
49494         * doc/glibc-functions/res_init.texi: Likewise.
49495         * doc/glibc-functions/res_mkquery.texi: Likewise.
49496         * doc/glibc-functions/res_query.texi: Likewise.
49497         * doc/glibc-functions/res_querydomain.texi: Likewise.
49498         * doc/glibc-functions/res_send.texi: Likewise.
49499         * doc/glibc-functions/rresvport_af.texi: Likewise.
49500         * doc/glibc-functions/setxattr.texi: Likewise.
49501         * doc/glibc-functions/strcasestr.texi: Likewise.
49502
49503 2008-12-15  Bruno Haible  <bruno@clisp.org>
49504
49505         Fix compilation error on OSF/1 4.0.
49506         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49507         <sys/time.h>, simply delegate to the system header.
49508         Reported by Daniel Richard G. <oss@teragram.com>.
49509
49510 2008-12-15  Bruno Haible  <bruno@clisp.org>
49511
49512         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49513         * doc/posix-functions/fchmodat.texi: Likewise.
49514         * doc/posix-functions/fchownat.texi: Likewise.
49515         * doc/posix-functions/fdopendir.texi: Likewise.
49516         * doc/posix-functions/fstatat.texi: Likewise.
49517         * doc/posix-functions/mkdirat.texi: Likewise.
49518         * doc/posix-functions/unlinkat.texi: Likewise.
49519
49520 2008-12-14  Bruno Haible  <bruno@clisp.org>
49521
49522         Update doc for POSIX:2008.
49523         * doc/posix-functions/faccessat.texi: New file.
49524         * doc/posix-functions/fchmodat.texi: New file.
49525         * doc/posix-functions/fchownat.texi: New file.
49526         * doc/posix-functions/fdopendir.texi: New file.
49527         * doc/posix-functions/fstatat.texi: New file.
49528         * doc/posix-functions/futimens.texi: New file.
49529         * doc/posix-functions/linkat.texi: New file.
49530         * doc/posix-functions/mkdirat.texi: New file.
49531         * doc/posix-functions/mkfifoat.texi: New file.
49532         * doc/posix-functions/mknodat.texi: New file.
49533         * doc/posix-functions/open_wmemstream.texi: New file.
49534         * doc/posix-functions/openat.texi: New file.
49535         * doc/posix-functions/psiginfo.texi: New file.
49536         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49537         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49538         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49539         * doc/posix-functions/readlinkat.texi: New file.
49540         * doc/posix-functions/renameat.texi: New file.
49541         * doc/posix-functions/strerror_l.texi: New file.
49542         * doc/posix-functions/symlinkat.texi: New file.
49543         * doc/posix-functions/unlinkat.texi: New file.
49544         * doc/posix-functions/utimensat.texi: New file.
49545         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49546
49547 2008-12-14  Bruno Haible  <bruno@clisp.org>
49548
49549         Update doc for POSIX:2008.
49550         * doc/posix-functions/alphasort.texi: Renamed from
49551         doc/glibc-functions/alphasort.texi.
49552         * doc/posix-functions/dirfd.texi: Renamed from
49553         doc/glibc-functions/dirfd.texi.
49554         * doc/posix-functions/dprintf.texi: Renamed from
49555         doc/glibc-functions/dprintf.texi.
49556         * doc/posix-functions/duplocale.texi: Renamed from
49557         doc/glibc-functions/duplocale.texi.
49558         * doc/posix-functions/fexecve.texi: Renamed from
49559         doc/glibc-functions/fexecve.texi.
49560         * doc/posix-functions/fmemopen.texi: Renamed from
49561         doc/glibc-functions/fmemopen.texi.
49562         * doc/posix-functions/freelocale.texi: Renamed from
49563         doc/glibc-functions/freelocale.texi.
49564         * doc/posix-functions/getdate_err.texi: Renamed from
49565         doc/glibc-functions/getdate_err.texi.
49566         * doc/posix-functions/isalnum_l.texi: Renamed from
49567         doc/glibc-functions/isalnum_l.texi.
49568         * doc/posix-functions/isalpha_l.texi: Renamed from
49569         doc/glibc-functions/isalpha_l.texi.
49570         * doc/posix-functions/isblank_l.texi: Renamed from
49571         doc/glibc-functions/isblank_l.texi.
49572         * doc/posix-functions/iscntrl_l.texi: Renamed from
49573         doc/glibc-functions/iscntrl_l.texi.
49574         * doc/posix-functions/isdigit_l.texi: Renamed from
49575         doc/glibc-functions/isdigit_l.texi.
49576         * doc/posix-functions/isgraph_l.texi: Renamed from
49577         doc/glibc-functions/isgraph_l.texi.
49578         * doc/posix-functions/islower_l.texi: Renamed from
49579         doc/glibc-functions/islower_l.texi.
49580         * doc/posix-functions/isprint_l.texi: Renamed from
49581         doc/glibc-functions/isprint_l.texi.
49582         * doc/posix-functions/ispunct_l.texi: Renamed from
49583         doc/glibc-functions/ispunct_l.texi.
49584         * doc/posix-functions/isspace_l.texi: Renamed from
49585         doc/glibc-functions/isspace_l.texi.
49586         * doc/posix-functions/isupper_l.texi: Renamed from
49587         doc/glibc-functions/isupper_l.texi.
49588         * doc/posix-functions/iswalnum_l.texi: Renamed from
49589         doc/glibc-functions/iswalnum_l.texi.
49590         * doc/posix-functions/iswalpha_l.texi: Renamed from
49591         doc/glibc-functions/iswalpha_l.texi.
49592         * doc/posix-functions/iswblank_l.texi: Renamed from
49593         doc/glibc-functions/iswblank_l.texi.
49594         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49595         doc/glibc-functions/iswcntrl_l.texi.
49596         * doc/posix-functions/iswctype_l.texi: Renamed from
49597         doc/glibc-functions/iswctype_l.texi.
49598         * doc/posix-functions/iswdigit_l.texi: Renamed from
49599         doc/glibc-functions/iswdigit_l.texi.
49600         * doc/posix-functions/iswgraph_l.texi: Renamed from
49601         doc/glibc-functions/iswgraph_l.texi.
49602         * doc/posix-functions/iswlower_l.texi: Renamed from
49603         doc/glibc-functions/iswlower_l.texi.
49604         * doc/posix-functions/iswprint_l.texi: Renamed from
49605         doc/glibc-functions/iswprint_l.texi.
49606         * doc/posix-functions/iswpunct_l.texi: Renamed from
49607         doc/glibc-functions/iswpunct_l.texi.
49608         * doc/posix-functions/iswspace_l.texi: Renamed from
49609         doc/glibc-functions/iswspace_l.texi.
49610         * doc/posix-functions/iswupper_l.texi: Renamed from
49611         doc/glibc-functions/iswupper_l.texi.
49612         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49613         doc/glibc-functions/iswxdigit_l.texi.
49614         * doc/posix-functions/isxdigit_l.texi: Renamed from
49615         doc/glibc-functions/isxdigit_l.texi.
49616         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49617         doc/glibc-functions/mbsnrtowcs.texi.
49618         * doc/posix-functions/mkdtemp.texi: Renamed from
49619         doc/glibc-functions/mkdtemp.texi.
49620         * doc/posix-functions/newlocale.texi: Renamed from
49621         doc/glibc-functions/newlocale.texi.
49622         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49623         doc/glibc-functions/nl_langinfo_l.texi.
49624         * doc/posix-functions/open_memstream.texi: Renamed from
49625         doc/glibc-functions/open_memstream.texi.
49626         * doc/posix-functions/opterr.texi: Renamed from
49627         doc/glibc-functions/opterr.texi.
49628         * doc/posix-functions/optind.texi: Renamed from
49629         doc/glibc-functions/optind.texi.
49630         * doc/posix-functions/optopt.texi: Renamed from
49631         doc/glibc-functions/optopt.texi.
49632         * doc/posix-functions/psignal.texi: Renamed from
49633         doc/glibc-functions/psignal.texi.
49634         * doc/posix-functions/scandir.texi: Renamed from
49635         doc/glibc-functions/scandir.texi.
49636         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49637         doc/glibc-functions/sched_get_priority_min.texi.
49638         * doc/posix-functions/signgam.texi: Renamed from
49639         doc/glibc-functions/signgam.texi.
49640         * doc/posix-functions/stpcpy.texi: Renamed from
49641         doc/glibc-functions/stpcpy.texi.
49642         * doc/posix-functions/stpncpy.texi: Renamed from
49643         doc/glibc-functions/stpncpy.texi.
49644         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49645         doc/glibc-functions/strcasecmp_l.texi.
49646         * doc/posix-functions/strcoll_l.texi: Renamed from
49647         doc/glibc-functions/strcoll_l.texi.
49648         * doc/posix-functions/strfmon_l.texi: Renamed from
49649         doc/glibc-functions/strfmon_l.texi.
49650         * doc/posix-functions/strftime_l.texi: Renamed from
49651         doc/glibc-functions/strftime_l.texi.
49652         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49653         doc/glibc-functions/strncasecmp_l.texi.
49654         * doc/posix-functions/strndup.texi: Renamed from
49655         doc/glibc-functions/strndup.texi.
49656         * doc/posix-functions/strnlen.texi: Renamed from
49657         doc/glibc-functions/strnlen.texi.
49658         * doc/posix-functions/strsignal.texi: Renamed from
49659         doc/glibc-functions/strsignal.texi.
49660         * doc/posix-functions/strxfrm_l.texi: Renamed from
49661         doc/glibc-functions/strxfrm_l.texi.
49662         * doc/posix-functions/timer_gettime.texi: Renamed from
49663         doc/glibc-functions/timer_gettime.texi.
49664         * doc/posix-functions/tolower_l.texi: Renamed from
49665         doc/glibc-functions/tolower_l.texi.
49666         * doc/posix-functions/toupper_l.texi: Renamed from
49667         doc/glibc-functions/toupper_l.texi.
49668         * doc/posix-functions/towctrans_l.texi: Renamed from
49669         doc/glibc-functions/towctrans_l.texi.
49670         * doc/posix-functions/towlower_l.texi: Renamed from
49671         doc/glibc-functions/towlower_l.texi.
49672         * doc/posix-functions/towupper_l.texi: Renamed from
49673         doc/glibc-functions/towupper_l.texi.
49674         * doc/posix-functions/uselocale.texi: Renamed from
49675         doc/glibc-functions/uselocale.texi.
49676         * doc/posix-functions/vdprintf.texi: Renamed from
49677         doc/glibc-functions/vdprintf.texi.
49678         * doc/posix-functions/wcpcpy.texi:
49679         Renamed from doc/glibc-functions/wcpcpy.texi.
49680         * doc/posix-functions/wcpncpy.texi: Renamed from
49681         doc/glibc-functions/wcpncpy.texi.
49682         * doc/posix-functions/wcscasecmp.texi: Renamed from
49683         doc/glibc-functions/wcscasecmp.texi.
49684         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49685         doc/glibc-functions/wcscasecmp_l.texi.
49686         * doc/posix-functions/wcscoll_l.texi: Renamed from
49687         doc/glibc-functions/wcscoll_l.texi.
49688         * doc/posix-functions/wcsdup.texi: Renamed from
49689         doc/glibc-functions/wcsdup.texi.
49690         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49691         doc/glibc-functions/wcsncasecmp.texi.
49692         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49693         doc/glibc-functions/wcsncasecmp_l.texi.
49694         * doc/posix-functions/wcsnlen.texi: Renamed from
49695         doc/glibc-functions/wcsnlen.texi.
49696         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49697         doc/glibc-functions/wcsnrtombs.texi.
49698         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49699         doc/glibc-functions/wcsxfrm_l.texi.
49700         * doc/posix-functions/wctrans_l.texi: Renamed from
49701         doc/glibc-functions/wctrans_l.texi.
49702         * doc/posix-functions/wctype_l.texi: Renamed from
49703         doc/glibc-functions/wctype_l.texi.
49704         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49705         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49706         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49707         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49708         these subsections.
49709         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49710         Remove sections.
49711
49712 2008-12-14  Bruno Haible  <bruno@clisp.org>
49713
49714         Update doc for POSIX:2008.
49715         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49716
49717 2008-12-14  Bruno Haible  <bruno@clisp.org>
49718
49719         Update doc for POSIX:2008.
49720         * doc/pastposix-functions/bcmp.texi: Renamed from
49721         doc/posix-functions/bcmp.texi.
49722         * doc/pastposix-functions/bcopy.texi: Renamed from
49723         doc/posix-functions/bcopy.texi.
49724         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49725         doc/posix-functions/bsd_signal.texi.
49726         * doc/pastposix-functions/bzero.texi: Renamed from
49727         doc/posix-functions/bzero.texi.
49728         * doc/pastposix-functions/ecvt.texi: Renamed from
49729         doc/posix-functions/ecvt.texi.
49730         * doc/pastposix-functions/fcvt.texi: Renamed from
49731         doc/posix-functions/fcvt.texi.
49732         * doc/pastposix-functions/ftime.texi: Renamed from
49733         doc/posix-functions/ftime.texi.
49734         * doc/pastposix-functions/gcvt.texi: Renamed from
49735         doc/posix-functions/gcvt.texi.
49736         * doc/pastposix-functions/getcontext.texi: Renamed from
49737         doc/posix-functions/getcontext.texi.
49738         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49739         doc/posix-functions/gethostbyaddr.texi.
49740         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49741         doc/posix-functions/gethostbyname.texi.
49742         * doc/pastposix-functions/getwd.texi: Renamed from
49743         doc/posix-functions/getwd.texi.
49744         * doc/pastposix-functions/h_errno.texi: Renamed from
49745         doc/posix-functions/h_errno.texi.
49746         * doc/pastposix-functions/index.texi: Renamed from
49747         doc/posix-functions/index.texi.
49748         * doc/pastposix-functions/makecontext.texi: Renamed from
49749         doc/posix-functions/makecontext.texi.
49750         * doc/pastposix-functions/mktemp.texi: Renamed from
49751         doc/posix-functions/mktemp.texi.
49752         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49753         doc/posix-functions/pthread_attr_getstackaddr.texi.
49754         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49755         doc/posix-functions/pthread_attr_setstackaddr.texi.
49756         * doc/pastposix-functions/rindex.texi: Renamed from
49757         doc/posix-functions/rindex.texi.
49758         * doc/pastposix-functions/scalb.texi: Renamed from
49759         doc/posix-functions/scalb.texi.
49760         * doc/pastposix-functions/setcontext.texi: Renamed from
49761         doc/posix-functions/setcontext.texi.
49762         * doc/pastposix-functions/swapcontext.texi: Renamed from
49763         doc/posix-functions/swapcontext.texi.
49764         * doc/pastposix-functions/ualarm.texi: Renamed from
49765         doc/posix-functions/ualarm.texi.
49766         * doc/pastposix-functions/usleep.texi: Renamed from
49767         doc/posix-functions/usleep.texi.
49768         * doc/pastposix-functions/vfork.texi: Renamed from
49769         doc/posix-functions/vfork.texi.
49770         * doc/pastposix-functions/wcswcs.texi: Renamed from
49771         doc/posix-functions/wcswcs.texi.
49772         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49773         (Function Substitutes): Update.
49774
49775 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49776
49777         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49778         m4/strerror.m4.
49779
49780 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49781             Bruno Haible  <bruno@clisp.org>
49782
49783         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49784
49785 2008-12-13  Bruno Haible  <bruno@clisp.org>
49786
49787         * modules/strtoull (Depends-on): Remove unistd.
49788
49789 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49790
49791         * modules/strtoull (Depends-on): Add stdlib.
49792
49793 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49794
49795         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49796
49797 2008-12-10  Jim Meyering  <meyering@redhat.com>
49798
49799         gl_ASSERT: don't say assertions are disabled when they're not
49800         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49801         "checking whether to enable assertions... no", when they are in
49802         fact enabled.  This is solely a bug in the output of configure.
49803         In spite of saying "no", NDEBUG was not defined in that case.
49804         Also, as noted by Eric Blake, leave assertions enabled upon
49805         --enable-assert=INVALID.
49806
49807 2008-12-10  Bruno Haible  <bruno@clisp.org>
49808
49809         Change MODULES.html to refer to POSIX:2008 where possible.
49810         * MODULES.html.sh (POSIX2008_URL): New variable.
49811         (posix_headers): Remove sys/timeb, ucontext.
49812         (posix2001_headers): New variable.
49813         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49814         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49815         index, makecontext, mktemp, pthread_attr_getstackaddr,
49816         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49817         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49818         (posix2001_functions): New variable.
49819         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49820         otherwise.
49821
49822 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49823
49824         add missing include to parse-duration.c
49825         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49826         * modules/parse-duration (Depends-on): Add xalloc.
49827
49828         fix sed script reading maint.mk
49829         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49830         (syntax-check-rules): Use it.
49831
49832 2008-12-09  Bruno Haible  <bruno@clisp.org>
49833
49834         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49835         MacOS X 10.4/PowerPC.
49836         Reported by Simon Josefsson.
49837
49838 2008-12-08  Jim Meyering  <meyering@redhat.com>
49839
49840         work around mingw's lack of some S_IF definitions
49841         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49842         Reported by Simon Josefsson.
49843
49844 2008-12-08  Bruno Haible  <bruno@clisp.org>
49845
49846         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49847         applied to variables. Needed on MacOS X 10.4/PowerPC.
49848         Reported by Simon Josefsson.
49849
49850 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49851         and Eric Blake  <ebb9@byu.net>
49852
49853         assert: honor --enable-assert
49854         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49855         order to honor --enable-assert, rather than treating it as a
49856         synonym for --disable-assert.
49857
49858 2008-12-08  Jim Meyering  <meyering@redhat.com>
49859
49860         * lib/posixtm.c: Remove now-useless declaration of mktime.
49861
49862         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49863
49864 2008-12-07  Bruno Haible  <bruno@clisp.org>
49865
49866         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49867         test_once): Mark functions as static.
49868         * tests/test-tls.c (test_tls): Likewise.
49869
49870 2008-12-07  Bruno Haible  <bruno@clisp.org>
49871
49872         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49873         iconv_register_autodetect.
49874
49875 2008-12-07  Jim Meyering  <meyering@redhat.com>
49876
49877         posixtm.c: avoid a warning
49878         * lib/posixtm.c (posixtime): Don't initialize tm0.
49879         It's no longer needed to placate gcc4's -Wuninitialized,
49880         and the attempt to placate would elicit a new warning.
49881
49882         unicodeio.c: mark unused parameters
49883         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49884         (fallback_failure_callback): Likewise.
49885
49886 2008-12-07  Bruno Haible  <bruno@clisp.org>
49887
49888         * gnulib-tool (func_create_testdir): When building the tests
49889         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49890         Reported by Simon Josefsson.
49891
49892 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49893
49894         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49895
49896 2008-12-06  Bruno Haible  <bruno@clisp.org>
49897
49898         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49899         Suggested by Eric Blake.
49900
49901 2008-12-06  Bruno Haible  <bruno@clisp.org>
49902
49903         Fix a c-stack test failure on MacOS X.
49904         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49905         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49906         handler for SIGBUS as well.
49907         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49908         install a signal handler for SIGBUS as well.
49909         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49910
49911 2008-12-06  Bruno Haible  <bruno@clisp.org>
49912
49913         Advocacy documentation.
49914         * doc/gnulib-intro.texi (Benefits): New section.
49915         * doc/gnulib.texi: Update.
49916
49917 2008-12-06  Bruno Haible  <bruno@clisp.org>
49918
49919         Document the 'manywarnings' module.
49920         * doc/manywarnings.texi: New file.
49921         * doc/gnulib.texi: Include it.
49922
49923 2008-12-05  Eric Blake  <ebb9@byu.net>
49924
49925         tests: silence some gcc warnings
49926         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49927         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49928         type mismatches.
49929
49930 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49931             Bruno Haible  <bruno@clisp.org>
49932
49933         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49934
49935 2008-11-29  Jim Meyering  <meyering@redhat.com>
49936
49937         unicodeio.c: mark unused parameters
49938         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49939         (fallback_failure_callback): Likewise.
49940
49941         fts: fix a thinko
49942         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49943         (set_stat_type): Return S_IF*-valued "type" directly.
49944         Prompted by James Youngman's spotting a related bug.
49945         Confirmed by further testing through find.
49946
49947         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49948         * lib/fts.c (D_TYPE): Define.
49949         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49950         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49951         (s_ifmt_shift_bits): New function.
49952         (set_stat_type): New function.
49953         (fts_build): When not calling fts_stat, call set_stat_type
49954         to propagate dirent.d_type info to fts_read caller.
49955         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49956         fts_statp->st_mode type information may be valid.
49957
49958 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49959
49960         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49961         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49962         <sds@gnu.org>.
49963
49964 2008-11-20  Bruno Haible  <bruno@clisp.org>
49965
49966         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49967         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49968         INCLUDE_NEXT.
49969         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49970         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49971         * modules/math (Makefile.am): Substitute
49972         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49973         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49974
49975 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49976             Bruno Haible  <bruno@clisp.org>
49977
49978         * lib/stdint.in.h: Define all type macros so that their expansion is
49979         a single typedef'ed token. Fixes a compilation failure in Boost which
49980         does "using ::int8_t;".
49981
49982 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49983
49984         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49985         gl_MANYWARN_ALL_GCC.
49986         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49987         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49988         * modules/manywarnings: New file.
49989         * MODULES.html.sh: Mention manywarnings module.
49990
49991 2008-11-18  Bruno Haible  <bruno@clisp.org>
49992
49993         * doc/gnulib-tool.texi (Unit tests): New section.
49994
49995 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49996
49997         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49998         paths like 'lib/po/foo.po'.
49999
50000 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50001
50002         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50003         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50004
50005 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50006
50007         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50008         parameter works.
50009
50010 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50011
50012         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50013
50014 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50015
50016         * modules/parse-duration-tests: New file.
50017         * tests/test-parse-duration.sh: New file.
50018         * tests/test-parse-duration.c: New file.
50019
50020         New module 'parse-duration'.
50021         * lib/parse-duration.h: New file.
50022         * lib/parse-duration.c: New file.
50023         * modules/parse-duration: New file.
50024
50025 2008-11-17  Bruno Haible  <bruno@clisp.org>
50026
50027         * tests/test-select-out.sh: Comment out the first pipe test.
50028         Reported by Simon Josefsson.
50029
50030 2008-11-17  Bruno Haible  <bruno@clisp.org>
50031
50032         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50033         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50034         gl_HOSTENT.
50035
50036 2008-11-17  Bruno Haible  <bruno@clisp.org>
50037
50038         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50039         -lnetwork and -lnet. Needed for Haiku and BeOS.
50040
50041 2008-11-16  Bruno Haible  <bruno@clisp.org>
50042
50043         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50044
50045 2008-11-16  Bruno Haible  <bruno@clisp.org>
50046
50047         Avoid test failure on Haiku.
50048         * tests/test-fsync.c: Include <errno.h>.
50049         (main): Don't require that fsync (0) fails.
50050
50051 2008-11-15  Bruno Haible  <bruno@clisp.org>
50052
50053         New module 'hostent'.
50054         * modules/hostent: New file.
50055         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50056
50057 2008-11-15  Bruno Haible  <bruno@clisp.org>
50058
50059         New module 'servent'.
50060         * modules/servent: New file.
50061         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50062
50063 2008-11-15  Bruno Haible  <bruno@clisp.org>
50064
50065         Avoid generating same test program with two different rules.
50066         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50067         test-frexp to test-frexp-nolibm.
50068         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50069         test-frexpl to test-frexpl-nolibm.
50070
50071 2008-11-15  Bruno Haible  <bruno@clisp.org>
50072
50073         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50074         $(FREXPL_LIBM).
50075
50076 2008-11-15  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/netdb.in.h: Activate the definitions also when the system's
50079         <netdb.h> has 'struct addrinfo'.
50080         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50081         EAI_OVERFLOW or AI_NUMERICSERV.
50082         * doc/posix-headers/netdb.texi: Document the problem.
50083
50084 2008-11-15  Bruno Haible  <bruno@clisp.org>
50085
50086         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50087
50088         Make the 'sched' module work on platforms where <sched.h> exists but
50089         is incomplete (such as Haiku).
50090         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50091         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50092         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50093         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50094         HAVE_STRUCT_SCHED_PARAM.
50095         * modules/sched (Depends-on): Add include_next.
50096         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50097         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50098         * doc/posix-headers/sched.texi: Document the issue.
50099
50100 2008-11-13  Jim Meyering  <meyering@redhat.com>
50101
50102         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50103         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50104         test would fail due to the difference in the Report bugs to ...
50105         line.  The expected address is empty, "<>", while the actual
50106         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50107
50108 2008-11-12  Bruno Haible  <bruno@clisp.org>
50109
50110         lstat: don't compile lstat.c on systems lacking lstat
50111         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50112         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50113         Reported by Daniel P. Berrange via Jim Meyering.
50114
50115 2008-11-12  Jim Meyering  <meyering@redhat.com>
50116
50117         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50118
50119 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50120
50121         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50122         instead.
50123
50124 2008-11-12  Bruno Haible  <bruno@clisp.org>
50125
50126         * lib/unicodeio.c: Include unistr.h.
50127         (utf8_wctomb): Remove function.
50128         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50129
50130 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50131
50132         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50133         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50134         <bruno@clisp.org>.
50135         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50136
50137 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50138
50139         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50140         * doc/gnulib.texi: Add section for warnings.
50141
50142 2008-11-11  Bruno Haible  <bruno@clisp.org>
50143
50144         * lib/sockets.h: Add a comment.
50145
50146 2008-11-11  Karl Berry  <karl@gnu.org>
50147
50148         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50149
50150 2008-11-11  Eric Blake  <ebb9@byu.net>
50151
50152         fdl.texi: avoid git symlinks
50153         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50154
50155 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50156
50157         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50158
50159 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50160
50161         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50162         (gl_WARN_ADD): Substitute $2 if literal.
50163
50164 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50165
50166         * m4/warning.m4: Remove.
50167
50168 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50169
50170         * m4/warnings.m4: Almost complete rewrite. :-)
50171
50172 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50173
50174         * modules/warnings: New module.
50175         * m4/warnings.m4: New file.
50176         * MODULES.html.sh: Mention warnings module.
50177         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50178         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50179
50180 2008-11-10  Eric Blake  <ebb9@byu.net>
50181
50182         fdl.texi: make a symlink to the latest version
50183         * doc/standards.texi: Revert today's earlier change.
50184         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50185         * doc/fdl.texi: ...and replace this with a symlink to the newer
50186         fdl-1.3.texi.
50187
50188 2008-11-10  Bruno Haible  <bruno@clisp.org>
50189
50190         * tests/test-select-fd.c (main): Accept the result file name as fourth
50191         argument.
50192         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50193         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50194
50195 2008-11-10  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50198         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50199         as autoconf-substituted macros.
50200         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50201         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50202         gl_NETDB_H_DEFAULTS. Set these variables.
50203         * modules/netdb (Makefile.am): Substitute these variables.
50204
50205 2008-11-10  Eric Blake  <ebb9@byu.net>
50206
50207         standards.texi: include correct file for FDL 1.3
50208         * doc/standards.texi (GNU Free Documentation License): Change
50209         include file to pull in FDL 1.3, not 1.2.
50210
50211         fdl.texi: revert accidental change to license
50212         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50213
50214 2008-11-10  Bruno Haible  <bruno@clisp.org>
50215
50216         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50217         cross-compiling guesses also when the native compile gives no result.
50218
50219 2008-11-10  Bruno Haible  <bruno@clisp.org>
50220
50221         * lib/spawni.c (__spawni): Force variable into the stack.
50222
50223 2008-11-10  Bruno Haible  <bruno@clisp.org>
50224
50225         Add support for Haiku.
50226         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50227         glibc and BeOS, but also on Haiku.
50228         * lib/fpurge.c (fpurge): Likewise.
50229         * lib/freadable.c (freadable): Likewise.
50230         * lib/freadahead.c (freadahead): Likewise.
50231         * lib/freading.c (freading): Likewise.
50232         * lib/freadptr.c (freadptr): Likewise.
50233         * lib/freadseek.c (freadptrinc): Likewise.
50234         * lib/fseeko.c (rpl_fseeko): Likewise.
50235         * lib/fseterr.c (fseterr): Likewise.
50236         * lib/fwritable.c (fwritable): Likewise.
50237         * lib/fwriting.c (fwriting): Likewise.
50238         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50239
50240 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50241
50242         * lib/config.charset: Treat Haiku like BeOS.
50243
50244 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50245
50246         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50247         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50248
50249 2008-11-08  Bruno Haible  <bruno@clisp.org>
50250
50251         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50252         AC_CACHE_CHECK.
50253
50254 2008-11-08  Bruno Haible  <bruno@clisp.org>
50255
50256         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50257
50258 2008-11-08  Bruno Haible  <bruno@clisp.org>
50259
50260         * tests/test-select-fd.c: New file.
50261         * tests/test-select-in.sh: New file.
50262         * tests/test-select-out.sh: New file.
50263         * tests/test-select-stdin.c: New file.
50264         * modules/select-tests (Files): Add the new files.
50265         (Depends-on): Add gettimeofday.
50266         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50267         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50268         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50269
50270 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50271             Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50274
50275 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50276
50277         * build-aux/pmccabe2html: Added support for C++ source files.
50278
50279 2008-11-05  Ben Pfaff  <blp@gnu.org>
50280
50281         Fix lib/close.c build on Windows.
50282         * modules/close (Files): Add lib/w32sock.h.
50283
50284 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50285
50286         Accept Bison's NEWS format.
50287         * build-aux/announce-gen (print_news_deltas): Tweak
50288         $re_prefix.
50289
50290 2008-11-04  Bruno Haible  <bruno@clisp.org>
50291
50292         * modules/random_r (Maintainer): Add glibc.
50293
50294 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50295
50296         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50297         by karl@freefriends.org (Karl Berry).
50298         * doc/alloca.texi: Likewise.
50299         * doc/c-ctype.texi: Likewise.
50300         * doc/c-strcase.texi: Likewise.
50301         * doc/c-strcaseeq.texi: Likewise.
50302         * doc/c-strcasestr.texi: Likewise.
50303         * doc/c-strstr.texi: Likewise.
50304         * doc/c-strtod.texi: Likewise.
50305         * doc/c-strtold.texi: Likewise.
50306         * doc/ctime.texi: Likewise.
50307         * doc/error.texi: Likewise.
50308         * doc/fdl.texi: Likewise.
50309         * doc/gcd.texi: Likewise.
50310         * doc/getdate.texi: Likewise.
50311         * doc/gnulib-intro.texi: Likewise.
50312         * doc/gnulib-tool.texi: Likewise.
50313         * doc/gnulib.texi: Likewise.
50314         * doc/inet_ntoa.texi: Likewise.
50315         * doc/maintain.texi: Likewise.
50316         * doc/make-stds.texi: Likewise.
50317         * doc/quote.texi: Likewise.
50318         * doc/regexprops-generic.texi: Likewise.
50319         * doc/standards.texi: Likewise.
50320         * doc/verify.texi: Likewise.
50321         * doc/visibility.texi: Likewise.
50322         * doc/gnulib.texi (GNU Free Documentation License): Include
50323         fdl-1.3.texi instead of fdl.texi.
50324
50325 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50326
50327         * doc/fdl-1.3.texi: New file, from
50328         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50329         * modules/fdl-1.3: Add.
50330         * MODULES.html.sh: Add fdl-1.3.
50331
50332 2008-11-03  Bruno Haible  <bruno@clisp.org>
50333
50334         Make determination of absolute name of header file work with AIX xlc.
50335         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50336         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50337         preprocessing.
50338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50339         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50340
50341 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50342
50343         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50344         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50345         <ludo@gnu.org>.
50346
50347 2008-11-02  Bruno Haible  <bruno@clisp.org>
50348
50349         Mark 'strpbrk' obsolete.
50350         * modules/strpbrk (Status, Notice): New sections.
50351         * modules/strtok_r (Depends-on): Add strpbrk.
50352
50353 2008-11-02  Bruno Haible  <bruno@clisp.org>
50354
50355         Mark 'strdup' obsolete.
50356         * modules/strdup (Status, Notice): New sections.
50357         * modules/findprog (Depends-on): Add strdup.
50358         * modules/getaddrinfo (Depends-on): Likewise.
50359         * modules/localename (Depends-on): Likewise.
50360         * modules/relocatable-lib (Depends-on): Likewise.
50361         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50362         * modules/relocatable-prog (Depends-on): Likewise.
50363         * modules/trim (Depends-on): Likewise.
50364         * modules/unictype/gen-ctype (Depends-on): Likewise.
50365         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50366
50367 2008-11-02  Bruno Haible  <bruno@clisp.org>
50368
50369         Mark 'strcspn' obsolete.
50370         * modules/strcspn (Status, Notice): New sections.
50371
50372 2008-11-02  Bruno Haible  <bruno@clisp.org>
50373
50374         Mark 'rmdir' obsolete.
50375         * modules/rmdir (Status, Notice): New sections.
50376         * modules/clean-temp (Depends-on): Add rmdir.
50377         * modules/openat (Depends-on): Likewise.
50378
50379 2008-11-02  Bruno Haible  <bruno@clisp.org>
50380
50381         Mark 'raise' obsolete.
50382         * modules/raise (Status, Notice): New sections.
50383         (Include): Specify <signal.h>.
50384         * modules/stdio (Depends-on): Add raise.
50385         * modules/write (Depends-on): Likewise.
50386
50387 2008-11-02  Bruno Haible  <bruno@clisp.org>
50388
50389         Mark 'memset' obsolete.
50390         * modules/memset (Status, Notice): New sections.
50391
50392 2008-11-02  Bruno Haible  <bruno@clisp.org>
50393
50394         Mark 'memmove' obsolete.
50395         * modules/memmove (Status, Notice): New sections.
50396         * modules/argp (Depends-on): Add memmove.
50397         * modules/argz (Depends-on): Likewise.
50398         * modules/canonicalize (Depends-on): Likewise.
50399         * modules/canonicalize-lgpl (Depends-on): Likewise.
50400         * modules/fts (Depends-on): Likewise.
50401         * modules/getcwd (Depends-on): Likewise.
50402         * modules/human (Depends-on): Likewise.
50403         * modules/regex (Depends-on): Likewise.
50404         * modules/striconveh (Depends-on): Likewise.
50405         * modules/trim (Depends-on): Likewise.
50406         * modules/unistr/u8-move (Depends-on): Likewise.
50407         * modules/unistr/u16-move (Depends-on): Likewise.
50408         * modules/unistr/u32-move (Depends-on): Likewise.
50409
50410 2008-11-02  Bruno Haible  <bruno@clisp.org>
50411
50412         Mark 'memcpy' obsolete.
50413         * modules/memcpy (Status, Notice): New sections.
50414
50415 2008-11-02  Bruno Haible  <bruno@clisp.org>
50416
50417         Mark 'memcmp' obsolete.
50418         * modules/memcmp (Status, Notice): New sections.
50419         * modules/argmatch (Depends-on): Add memchr.
50420         * modules/backupfile (Depends-on): Likewise.
50421         * modules/c-strcasestr (Depends-on): Likewise.
50422         * modules/crypto/des (Depends-on): Likewise.
50423         * modules/csharpcomp (Depends-on): Likewise.
50424         * modules/fnmatch (Depends-on): Likewise.
50425         * modules/git-merge-changelog (Depends-on): Likewise.
50426         * modules/isnand (Depends-on): Likewise.
50427         * modules/isnand-nolibm (Depends-on): Likewise.
50428         * modules/isnanf (Depends-on): Likewise.
50429         * modules/isnanf-nolibm (Depends-on): Likewise.
50430         * modules/isnanl (Depends-on): Likewise.
50431         * modules/isnanl-nolibm (Depends-on): Likewise.
50432         * modules/mbchar (Depends-on): Likewise.
50433         * modules/memcoll (Depends-on): Likewise.
50434         * modules/quotearg (Depends-on): Likewise.
50435         * modules/regex (Depends-on): Likewise.
50436         * modules/relocatable-prog (Depends-on): Likewise.
50437         * modules/same (Depends-on): Likewise.
50438         * modules/signbit (Depends-on): Likewise.
50439         * modules/strcasestr-simple (Depends-on): Likewise.
50440         * modules/unictype/gen-ctype (Depends-on): Likewise.
50441         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50442         * modules/uniname/uniname (Depends-on): Likewise.
50443         * modules/unistr/u8-cmp (Depends-on): Likewise.
50444
50445 2008-11-02  Bruno Haible  <bruno@clisp.org>
50446
50447         Mark 'memchr' obsolete.
50448         * modules/memchr (Status, Notice): New sections.
50449         * modules/argp (Depends-on): Add memchr.
50450         * modules/base64 (Depends-on): Likewise.
50451         * modules/c-strcasestr (Depends-on): Likewise.
50452         * modules/chdir-long (Depends-on): Likewise.
50453         * modules/fnmatch (Depends-on): Likewise.
50454         * modules/getsubopt (Depends-on): Likewise.
50455         * modules/git-merge-changelog (Depends-on): Likewise.
50456         * modules/glob (Depends-on): Likewise.
50457         * modules/strcasestr-simple (Depends-on): Likewise.
50458         * modules/strnlen (Depends-on): Likewise.
50459
50460 2008-11-02  Bruno Haible  <bruno@clisp.org>
50461
50462         Mark 'atexit' obsolete.
50463         * modules/atexit (Status, Notice): New sections.
50464         * modules/chdir-long (Depends-on): Add atexit.
50465         * modules/wait-process (Depends-on): Likewise.
50466
50467 2008-11-02  Bruno Haible  <bruno@clisp.org>
50468
50469         * gnulib-tool: New option --with-obsolete.
50470         (func_usage): Document it.
50471         (func_modules_transitive_closure): Drop obsolete dependencies if
50472         incobsolete is not true.
50473         (func_import): Read and save the incobsolete variable to the cache.
50474
50475 2008-11-02  Bruno Haible  <bruno@clisp.org>
50476
50477         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50478         * gnulib-tool: New option --extract-status.
50479         (func_usage): Document it.
50480         (sed_extract_prog): Recognize it.
50481         (func_get_status): New function.
50482
50483 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50484
50485         * modules/sockets (License): Change from LGPL to LGPLv2+.
50486
50487 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50488
50489         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50490
50491 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50492
50493         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50494         Mention times and sys_times.
50495         * modules/sys_times, modules/sys_times-tests: New modules.
50496         * modules/times, modules/times-tests: Likewise
50497         * m4/sys_times_h.m4: New file.
50498         * lib/sys_times.in.h: Likewise
50499         * lib/times.c: Likewise.
50500         * tests/test-sys_times.c: Likewise.
50501         * tests/test-times.c: Likewise.
50502         * doc/posix-headers/sys_times.texi: Update.
50503         * doc/posix-functions/times.texi: Update.
50504
50505 2008-10-28  Jim Meyering  <meyering@redhat.com>
50506
50507         * modules/tempname (Depends-on): Add lstat.
50508
50509         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50510
50511 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50512
50513         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50514         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50515         using idiom used elsewhere in gnulib.
50516
50517 2008-10-27  Jim Meyering  <meyering@redhat.com>
50518
50519         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50520
50521 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50522
50523         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50524         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50525         programs.
50526         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50527
50528 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50529
50530         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50531
50532 2008-10-27  Bruno Haible  <bruno@clisp.org>
50533
50534         * tests/test-lstat.c: Include <stdio.h>.
50535
50536 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50537
50538         * modules/lstat-tests: New module.
50539         * tests/test-lstat.c: New file.
50540
50541 2008-10-26  Jim Meyering  <meyering@redhat.com>
50542
50543         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50544
50545 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50546             Bruno Haible  <bruno@clisp.org>
50547
50548         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50549         * modules/configmake (Include): Add a note that the include must come
50550         after all system headers.
50551         * lib/javaversion.c: Include configmake.h after all other includes.
50552
50553 2008-10-26  Bruno Haible  <bruno@clisp.org>
50554
50555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50556         HAVE_STRUCT_RANDOM_DATA to 1.
50557         (gl_STDLIB_H): Simplify.
50558
50559 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50560
50561         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50562         substitute HAVE_STRUCT_RANDOM_DATA.
50563         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50564         random_data.
50565         * modules/stdlib (Makefile.am): Substitute
50566         HAVE_STRUCT_RANDOM_DATA.
50567
50568 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50569
50570         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50571         * doc/gnulib-intro.texi (Copyright): Likewise.
50572
50573 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50574
50575         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50576         findings.
50577
50578 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50579             Bruno Haible  <bruno@clisp.org>
50580
50581         * lib/unistd.in.h: Include <winsock2.h>.
50582         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50583         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50584         Provide dummy declarations.
50585         (gethostname): Override.
50586         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50587         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50588         gl_PREREQ_SYS_H_WINSOCK2.
50589         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50590         * doc/posix-functions/gethostname.texi: More details.
50591
50592 2008-10-25  Bruno Haible  <bruno@clisp.org>
50593
50594         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50595         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50596         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50597
50598         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50599         here ...
50600         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50602         gl_UNISTD_H_DEFAULTS.
50603
50604 2008-10-25  Eric Blake  <ebb9@byu.net>
50605
50606         signbit: avoid spurious compiler failure
50607         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50608         declarations inside function.
50609
50610 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50611             Bruno Haible  <bruno@clisp.org>
50612
50613         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50614         * modules/random_r (Depends-on): Add stdint.
50615
50616 2008-10-24  Bruno Haible  <bruno@clisp.org>
50617
50618         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50619         Eggert.
50620         * modules/strerror (License): Likewise.
50621
50622 2008-10-24  Jim Meyering  <meyering@redhat.com>
50623
50624         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50625         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50626
50627 2008-10-24  Eric Blake  <ebb9@byu.net>
50628
50629         getgroups: fix compilation when getgroups is available
50630         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50631         but with <config.h> override of getgroups disabled.
50632
50633 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50634
50635         * doc/gnulib.texi (Header files): Add note about C++ problems.
50636         Explained by Bruno Haible <bruno@clisp.org>.
50637
50638 2008-10-23  Bruno Haible  <bruno@clisp.org>
50639
50640         Define a dummy SA_NODEFER macro on Interix.
50641         * lib/signal.in.h (SA_NODEFER): Define fallback.
50642         Reported by Aleksey Cheusov <cheusov@tut.by> via
50643         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50644
50645 2008-10-23  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/freadahead (License): Change to LGPLv2+.
50648         Suggested by Simon Josefsson.
50649
50650 2008-10-23  Jim Meyering  <meyering@redhat.com>
50651
50652         random_r: new module
50653         * modules/random_r: New file.
50654         * m4/random_r.m4: New file.
50655         * lib/random_r.c: New file, from glibc.
50656         * modules/random_r-tests: New file.
50657         * tests/test-random_r.c: New file.
50658         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50659          Declare.
50660         (RAND_MAX): Define.
50661         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50662         * modules/stdlib: Substitute them, too.
50663         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50664         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50665         * doc/glibc-functions/random_r.texi: Likewise.
50666         * doc/glibc-functions/setstate_r.texi: Likewise.
50667         * doc/glibc-functions/srandom_r.texi: Likewise.
50668         * config/srclist.txt: Mention it.
50669
50670 2008-10-23  David Lutterkort  <lutter@redhat.com>
50671
50672         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50673         link requirement
50674
50675 2008-10-23  Jim Meyering  <meyering@redhat.com>
50676
50677         selinux-h: mark parameters of stub functions as intentionally unused
50678         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50679         * lib/se-context.in.h: Likewise.
50680
50681 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50682
50683         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50684
50685 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50686
50687         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50688
50689 2008-10-22  Eric Blake  <ebb9@byu.net>
50690
50691         glthread/thread: avoid compiler warning
50692         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50693         Add unreachable abort to silence compiler.
50694
50695 2008-10-22  Eric Blake  <ebb9@byu.net>
50696
50697         netdb: also supply struct addrinfo for cygwin 1.5.x
50698         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50699         older cygwin.
50700         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50701         cygwin.
50702         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50703
50704 2008-10-22  Bruno Haible  <bruno@clisp.org>
50705
50706         * users.txt: Update entry about pspp.
50707
50708 2008-10-21  Bruno Haible  <bruno@clisp.org>
50709
50710         Simplification.
50711         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50712         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50713
50714         Simplification.
50715         * lib/ioctl.c (ioctl): Don't undefine.
50716         * lib/socket.c (socket): Don't undefine.
50717
50718         Remove unused module indicator macros.
50719         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50720         GNULIB_$1 as a C macro.
50721
50722         * doc/posix-functions/close.texi: Undo last change.
50723         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50724         Windows platforms.
50725
50726 2008-10-21  Bruno Haible  <bruno@clisp.org>
50727
50728         Add gethostname() declaration to <unistd.h>.
50729         * lib/unistd.in.h (gethostname): New declaration.
50730         * lib/gethostname.c: Include <unistd.h>.
50731         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50732         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50734         and HAVE_GETHOSTNAME.
50735         * modules/gethostname (Depends-on): Add unistd.
50736         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50737         (Include): Specify <unistd.h>.
50738         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50739         HAVE_GETHOSTNAME.
50740         * tests/test-gethostname.c: Include <unistd.h> first.
50741
50742 2008-10-21  Bruno Haible  <bruno@clisp.org>
50743
50744         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50745         * modules/select-tests (Depends-on): Likewise.
50746         Reported by Simon Josefsson.
50747
50748 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50749
50750         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50751         * lib/accept.c: New file, based on winsock.c.
50752         * lib/bind.c: New file, based on winsock.c.
50753         * lib/connect.c: New file, based on winsock.c.
50754         * lib/getpeername.c: New file, based on winsock.c.
50755         * lib/getsockname.c: New file, based on winsock.c.
50756         * lib/getsockopt.c: New file, based on winsock.c.
50757         * lib/ioctl.c: New file, based on winsock.c.
50758         * lib/listen.c: New file, based on winsock.c.
50759         * lib/recv.c: New file, based on winsock.c.
50760         * lib/recvfrom.c: New file, based on winsock.c.
50761         * lib/send.c: New file, based on winsock.c.
50762         * lib/sendto.c: New file, based on winsock.c.
50763         * lib/setsockopt.c: New file, based on winsock.c.
50764         * lib/shutdown.c: New file, based on winsock.c.
50765         * lib/socket.c: New file, based on winsock.c.
50766         * lib/w32sock.h: New file, based on winsock.c.
50767         * lib/winsock.c: Remove file.
50768         * modules/accept: Likewise.
50769         * modules/bind: Likewise.
50770         * modules/connect: Likewise.
50771         * modules/getpeername: Likewise.
50772         * modules/getsockname: Likewise.
50773         * modules/getsockopt: Likewise.
50774         * modules/ioctl: Likewise.
50775         * modules/listen: Likewise.
50776         * modules/recv: Likewise.
50777         * modules/recvfrom: Likewise.
50778         * modules/send: Likewise.
50779         * modules/sendto: Likewise.
50780         * modules/setsockopt: Likewise.
50781         * modules/shutdown: Likewise.
50782         * modules/socket: Use socket.c instead of winsock.c.
50783         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50784         * doc/posix-functions/accept.texi: Doc fix.
50785         * doc/posix-functions/bind.texi: Doc fix.
50786         * doc/posix-functions/close.texi: Doc fix.
50787         * doc/posix-functions/connect.texi: Doc fix.
50788         * doc/posix-functions/getpeername.texi: Doc fix.
50789         * doc/posix-functions/getsockname.texi: Doc fix.
50790         * doc/posix-functions/getsockopt.texi: Doc fix.
50791         * doc/posix-functions/ioctl.texi: Doc fix.
50792         * doc/posix-functions/listen.texi: Doc fix.
50793         * doc/posix-functions/recv.texi: Doc fix.
50794         * doc/posix-functions/recvfrom.texi: Doc fix.
50795         * doc/posix-functions/send.texi: Doc fix.
50796         * doc/posix-functions/sendto.texi: Doc fix.
50797         * doc/posix-functions/setsockopt.texi: Doc fix.
50798         * doc/posix-functions/shutdown.texi: Doc fix.
50799         * doc/posix-functions/socket.texi: Doc fix.
50800
50801 2008-10-20  Bruno Haible  <bruno@clisp.org>
50802
50803         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50804         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50805         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50806         as an alias for SIGABRT.
50807         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50808         (sigaction): Map it to SIGABRT.
50809         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50810
50811 2008-10-20  Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/fts.c: Don't include lstat.h.
50814         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50815
50816         Move the lstat() declaration to <sys/stat.h>.
50817         * lib/lstat.h: Remove file.
50818         * lib/sys_stat.in.h: Add special invocation convention.
50819         (lstat): New declaration.
50820         * lib/lstat.c (orig_lstat): New function.
50821         (rpl_lstat): Use orig_lstat instead of lstat.
50822         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50823         AC_C_INLINE. Set REPLACE_LSTAT.
50824         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50825         and REPLACE_LSTAT.
50826         * modules/lstat (Files): Remove lib/lstat.h.
50827         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50828         (Include): Specify <sys/stat.h> instead of lstat.h.
50829         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50830         REPLACE_LSTAT.
50831         * NEWS: Mention the change.
50832
50833 2008-10-20  Bruno Haible  <bruno@clisp.org>
50834
50835         * modules/posix_spawn-tests: New file.
50836         * tests/test-posix_spawn3.c: New file.
50837
50838 2008-10-20  Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50841         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50842         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50843         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50844         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50845
50846 2008-10-20  Bruno Haible  <bruno@clisp.org>
50847
50848         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50849         of posix_spawn on AIX 5.3.
50850
50851 2008-10-20  Bruno Haible  <bruno@clisp.org>
50852
50853         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50854
50855 2008-10-20  Bruno Haible  <bruno@clisp.org>
50856
50857         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50858         of AC_LANG_PROGRAM.
50859
50860 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50861
50862         * lib/netdb.in.h: Don't define GNU specific constants until they
50863         are supported or needed.  Reported by Bruno Haible
50864         <bruno@clisp.org>.
50865
50866 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50867
50868         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50869
50870 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50871
50872         * lib/getaddrinfo.h: Remove file.
50873         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50874         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50875         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50876         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50877         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50878         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50879         * tests/test-getaddrinfo.c: Likewise.
50880         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50881         * NEWS: Mention change.
50882
50883 2008-10-19  Bruno Haible  <bruno@clisp.org>
50884
50885         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50886
50887 2008-10-19  Bruno Haible  <bruno@clisp.org>
50888
50889         * lib/wait-process.c: Include simply <sys/wait.h>.
50890         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50891         WIFSTOPPED): Remove fallback definitions.
50892         * modules/wait-process (Depends-on): Add sys_wait.
50893
50894         New module 'sys_wait'.
50895         * modules/sys_wait: New file.
50896         * lib/sys_wait.in.h: New file, partially copied from
50897         lib/wait-process.c.
50898         * m4/sys_wait_h.m4: New file.
50899         * doc/posix-headers/sys_wait.texi: Mention the new module.
50900
50901 2008-10-19  Bruno Haible  <bruno@clisp.org>
50902
50903         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50904
50905 2008-10-19  Bruno Haible  <bruno@clisp.org>
50906
50907         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50908         * lib/wait-process.c (WAIT_T): Remove type.
50909         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50910         (wait_subprocess): Update.
50911
50912 2008-10-19  Bruno Haible  <bruno@clisp.org>
50913
50914         New module 'atoll'.
50915         * modules/atoll: New file.
50916         * lib/stdlib.in.h (atoll): New declaration.
50917         * lib/atoll.c: New file, from glibc with modifications.
50918         * m4/atoll.m4: New file.
50919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50920         HAVE_ATOLL.
50921         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50922         * doc/posix-functions/atoll.texi: Mention the new module.
50923
50924 2008-10-19  Bruno Haible  <bruno@clisp.org>
50925
50926         Add strtoull() declaration to <stdlib.h>.
50927         * lib/stdlib.in.h (strtoull): New declaration.
50928         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50929         Set HAVE_STRTOULL.
50930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50931         HAVE_STRTOULL.
50932         * modules/strtoull (Depends-on): Add stdlib.
50933         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50934         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50935         HAVE_STRTOULL.
50936
50937 2008-10-19  Bruno Haible  <bruno@clisp.org>
50938
50939         Add strtoll() declaration to <stdlib.h>.
50940         * lib/stdlib.in.h (strtoll): New declaration.
50941         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50942         Set HAVE_STRTOLL.
50943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50944         HAVE_STRTOLL.
50945         * modules/strtoll (Depends-on): Add stdlib.
50946         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50947         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50948
50949 2008-10-19  Bruno Haible  <bruno@clisp.org>
50950
50951         * modules/bcopy (Depends-on): Add strings.
50952         (Include): Specify <strings.h>.
50953
50954 2008-10-19  Bruno Haible  <bruno@clisp.org>
50955
50956         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50957
50958 2008-10-19  Bruno Haible  <bruno@clisp.org>
50959
50960         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50961         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50962         mingw.
50963
50964 2008-10-19  Bruno Haible  <bruno@clisp.org>
50965
50966         * lib/atanl.c: Don't include isnanl.h.
50967         * lib/cosl.c: Likewise.
50968         * lib/ldexpl.c: Likewise.
50969         * lib/logl.c: Likewise.
50970         * lib/sinl.c: Likewise.
50971         * lib/sqrtl.c: Likewise.
50972         * lib/tanl.c: Likewise.
50973
50974         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50975         * lib/isnanf.h: Remove file.
50976         * lib/isnand.h: Remove file.
50977         * lib/isnanl.h: Remove file.
50978         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50979         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50980         macros.
50981         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50982         HAVE_ISNANF, don't define it as a C macro.
50983         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50984         HAVE_ISNAND, don't define it as a C macro.
50985         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50986         HAVE_ISNANL, don't define it as a C macro.
50987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50988         HAVE_ISNAN[FDL].
50989         * modules/isnanf (Files): Remove lib/isnanf.h.
50990         (Depends-on): Add math.
50991         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50992         (Include): Specify <math.h> instead of isnanf.h.
50993         * modules/isnand (Files): Remove lib/isnand.h.
50994         (Depends-on): Add math.
50995         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50996         (Include): Specify <math.h> instead of isnand.h.
50997         * modules/isnanl (Files): Remove lib/isnanl.h.
50998         (Depends-on): Add math.
50999         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51000         (Include): Specify <math.h> instead of isnanl.h.
51001         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51002         HAVE_ISNAN[FDL].
51003         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51004         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51005         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51006         * NEWS: Mention the change.
51007
51008 2008-10-18  Bruno Haible  <bruno@clisp.org>
51009
51010         Add getusershell(), setusershell(), endusershell() declarations to
51011         <unistd.h>.
51012         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51013         declarations.
51014         * lib/getusershell.c: Include unistd.h.
51015         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51016         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51017         HAVE_GETUSERSHELL.
51018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51019         and HAVE_GETUSERSHELL.
51020         * modules/getusershell (Depends-on): Add unistd, extensions.
51021         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51022         (Include): Specify <unistd.h>.
51023         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51024         HAVE_GETUSERSHELL.
51025
51026 2008-10-18  Bruno Haible  <bruno@clisp.org>
51027
51028         Add a getloadavg() declaration to <stdlib.h>.
51029         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51030         getloadavg declaration.
51031         (getloadavg): New declaration.
51032         * lib/getloadavg.c: Include <stdlib.h> first.
51033         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51034         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51035         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51037         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51038         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51039         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51040         (Include): Specify <stdlib.h>.
51041         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51042         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51043
51044 2008-10-18  Bruno Haible  <bruno@clisp.org>
51045
51046         * lib/dirchownmod.c: Don't include lchmod.h.
51047
51048         Move the lchmod() declaration to <sys/stat.h>.
51049         * lib/lchmod.h: Remove file.
51050         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51051         (lchmod): New declaration, moved here from lib/lchown.h.
51052         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51053         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51054         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51055         and HAVE_LCHMOD.
51056         * modules/lchmod (Files): Remove lib/lchmod.h.
51057         (Depends-on): Add sys_stat, extensions.
51058         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51059         (Include): Specify <sys/stat.h> instead of lchmod.h.
51060         * modules/sys_stat (Depends-on): Add link-warning.
51061         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51062         definition of GL_LINK_WARNING.
51063         * NEWS: Mention the change.
51064
51065 2008-10-18  Bruno Haible  <bruno@clisp.org>
51066
51067         * lib/fchdir.c: Don't include dirfd.h.
51068         * lib/fts.c: Likewise.
51069         * lib/getcwd.c: Likewise.
51070         * lib/glob.c: Likewise.
51071
51072         Move the dirfd() declaration to <dirent.h>.
51073         * lib/dirfd.h: Remove file.
51074         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51075         (dirfd): New declaration.
51076         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51077         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51078         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51079         HAVE_DECL_DIRFD.
51080         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51081         HAVE_DECL_DIRFD.
51082         * modules/dirfd (Files): Remove lib/dirfd.h.
51083         (Depends-on): Add dirent, extensions.
51084         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51085         (Include): Specify <dirent.h> instead of dirfd.h.
51086         * modules/dirent (Depends-on): Add link-warning.
51087         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51088         definition of GL_LINK_WARNING.
51089         * NEWS: Mention the change.
51090
51091 2008-10-18  Bruno Haible  <bruno@clisp.org>
51092
51093         Move the euidaccess() declaration to <unistd.h>.
51094         * lib/euidaccess.h: Remove file.
51095         * lib/unistd.in.h (euidaccess): New declaration.
51096         * lib/euidaccess.c: Don't include euidaccess.h.
51097         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51098         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51100         and HAVE_EUIDACCESS.
51101         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51102         (Depends-on): Add unistd.
51103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51104         (Include): Specify <unistd.h> instead of euidaccess.h.
51105         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51106         HAVE_EUIDACCESS.
51107         * NEWS: Mention the change.
51108
51109 2008-10-18  Bruno Haible  <bruno@clisp.org>
51110
51111         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51112
51113         Move the getdomainname() declaration to <unistd.h>.
51114         * lib/getdomainname.h: Remove file.
51115         * lib/unistd.in.h (getdomainname): New declaration.
51116         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51117         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51118         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51119         HAVE_GETDOMAINNAME.
51120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51121         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51122         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51123         (Depends-on): Add unistd, extensions.
51124         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51125         (Includes): Specify <unistd.h> instead of getdomainname.h.
51126         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51127         HAVE_GETDOMAINNAME.
51128         * NEWS: Mention the change.
51129
51130 2008-10-18  Bruno Haible  <bruno@clisp.org>
51131
51132         * modules/dirent: New file.
51133         * m4/dirent_h.m4: New file.
51134         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51135         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51136         * modules/fchdir (Files): Remove lib/dirent.in.h.
51137         (Depends-on): Add dirent.
51138         (Makefile.am): Move rules to modules/dirent.
51139         * doc/posix-headers/dirent.texi: Mention the new module.
51140
51141 2008-10-18  Bruno Haible  <bruno@clisp.org>
51142
51143         Avoid -Wunused-parameter warnings in public gnulib header files.
51144         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51145         macro.
51146         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51147
51148 2008-10-18  Bruno Haible  <bruno@clisp.org>
51149
51150         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51151         * doc/glibc-functions/error.texi: Mention the module 'error'.
51152         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51153         * doc/glibc-functions/getdomainname.texi: Mention the module
51154         'getdomainname'.
51155         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51156         * doc/glibc-functions/getpagesize.texi: Mention the module
51157         'getpagesize'.
51158         * doc/glibc-functions/getusershell.texi: Mention the module
51159         'getusershell'.
51160         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51161         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51162         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51163         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51164         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51165         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51166         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51167         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51168         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51169         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51170         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51171         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51172         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51173         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51174
51175 2008-10-17  Bruno Haible  <bruno@clisp.org>
51176
51177         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51178         HP-UX and IRIX, use -0.0L.
51179         * tests/test-ceill.c (minus_zero): Likewise.
51180         * tests/test-floorl.c (minus_zero): Likewise.
51181         * tests/test-frexpl.c (minus_zero): Likewise.
51182         * tests/test-isnan.c (minus_zerol): Likewise.
51183         * tests/test-isnanl.h (minus_zero): Likewise.
51184         * tests/test-ldexpl.c (minus_zero): Likewise.
51185         * tests/test-roundl.c (minus_zero): Likewise.
51186         * tests/test-signbit.c (minus_zerol): Likewise.
51187         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51188         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51189         * tests/test-truncl.c (minus_zero): Likewise.
51190         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51191         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51192         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51193         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51194
51195 2008-10-17  Bruno Haible  <bruno@clisp.org>
51196
51197         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51198         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51199         that it gets activated only for gcc >= 3.0.
51200         * lib/dirent.in.h: Likewise.
51201         * lib/errno.in.h: Likewise.
51202         * lib/fcntl.in.h: Likewise.
51203         * lib/float.in.h: Likewise.
51204         * lib/iconv.in.h: Likewise.
51205         * lib/inttypes.in.h: Likewise.
51206         * lib/locale.in.h: Likewise.
51207         * lib/math.in.h: Likewise.
51208         * lib/netdb.in.h: Likewise.
51209         * lib/netinet_in.in.h: Likewise.
51210         * lib/search.in.h: Likewise.
51211         * lib/signal.in.h: Likewise.
51212         * lib/spawn.in.h: Likewise.
51213         * lib/stdarg.in.h: Likewise.
51214         * lib/stdint.in.h: Likewise.
51215         * lib/stdio.in.h: Likewise.
51216         * lib/stdlib.in.h: Likewise.
51217         * lib/string.in.h: Likewise.
51218         * lib/strings.in.h: Likewise.
51219         * lib/sys_file.in.h: Likewise.
51220         * lib/sys_ioctl.in.h: Likewise.
51221         * lib/sys_select.in.h: Likewise.
51222         * lib/sys_socket.in.h: Likewise.
51223         * lib/sys_stat.in.h: Likewise.
51224         * lib/sys_time.in.h: Likewise.
51225         * lib/sysexits.in.h: Likewise.
51226         * lib/time.in.h: Likewise.
51227         * lib/unistd.in.h: Likewise.
51228         * lib/wchar.in.h: Likewise.
51229         * lib/wctype.in.h: Likewise.
51230         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51231
51232 2008-10-17  Jim Meyering  <meyering@redhat.com>
51233
51234         ignore-value: don't depend on inline module
51235         * modules/ignore-value (Depends-on): Remove 'inline'.
51236         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51237         Suggestion from Bruno Haible.
51238
51239 2008-10-17  Bruno Haible  <bruno@clisp.org>
51240
51241         New implementation of condition variables for Win32.
51242         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51243         (gl_linked_waitqueue_t): New type.
51244         (gl_cond_t): Use it.
51245         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51246         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51247         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51248         (glthread_cond_init_func, glthread_cond_wait_func,
51249         glthread_cond_timedwait_func, glthread_cond_signal_func,
51250         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51251         Reimplemented on the basis of gl_linked_waitqueue_t.
51252         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51253         gl_waitqueue_t.
51254         (gl_rwlock_t): Update.
51255         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51256
51257 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51258
51259         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51260         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51261
51262 2008-10-17  Jim Meyering  <meyering@redhat.com>
51263
51264         ignore-value: new module
51265         * modules/ignore-value: New file.
51266         * lib/ignore-value.h: New file.
51267         * MODULES.html.sh (Compiler warning management): New section,
51268         just for this module.  More to come.
51269
51270 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51271
51272         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51273         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51274         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51275
51276 2008-10-16  Jim Meyering  <meyering@redhat.com>
51277
51278         openat-die.c: avoid 'no previous prototype' warning
51279         * lib/openat-die.c: Include "openat.h".
51280         Reported by Reuben Thomas <rrt@sc3d.org>.
51281
51282 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51283
51284         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51285         * lib/netdb.in.h: Fix typo.
51286         Reported by Bruno Haible  <bruno@clisp.org>
51287
51288         * lib/netdb.in.h: Include sys/socket.h for platforms without
51289         netdb.h, to get structures like hostent on MinGW.
51290         * modules/netdb (Depends-on): Add sys_socket.
51291
51292 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51293
51294         * modules/netdb, modules/netdb-tests: New file.
51295         * m4/netdb_h.m4: New file.
51296         * lib/netdb.in.h: Add, currently just an empty file pending
51297         definitions.
51298         * tests/test-netdb.c: New file.
51299         * doc/posix-headers/netdb.texi: Mention that we replace it if
51300         needed.
51301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51302         netdb.
51303
51304 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51305
51306         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51307         with code.
51308
51309 2008-10-13  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/glthread/cond.c (glthread_cond_wait_func,
51312         glthread_cond_timedwait_func): Add a comment.
51313
51314 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51315
51316         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51317         * tests/test-select.c: Likewise,
51318
51319 2008-10-13  Bruno Haible  <bruno@clisp.org>
51320
51321         * lib/glthread/cond.c (glthread_cond_wait_func,
51322         glthread_cond_timedwait_func): Fix variable name.
51323         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51324
51325 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51326
51327         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51328         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51329         struct sockaddr.sa_len.
51330         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51331
51332 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51333
51334         * build-aux/pmccabe2html: Add css and css_url parameters.
51335
51336 2008-10-12  Bruno Haible  <bruno@clisp.org>
51337
51338         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51339         calling aclx_get.
51340         Reported by Rainer Tammer <tammer@tammer.net>.
51341
51342 2008-10-12  Bruno Haible  <bruno@clisp.org>
51343
51344         Use msvcrt aware primitives for creation/termination of Win32 threads.
51345         * lib/glthread/thread.c: Include <process.h>.
51346         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51347         (wrapper_func): Update signature.
51348         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51349
51350 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51351             Bruno Haible  <bruno@clisp.org>
51352
51353         Provide a Win32 implementation of the 'cond' module.
51354         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51355         * lib/glthread/cond.c (glthread_cond_init_func,
51356         glthread_cond_wait_func, glthread_cond_timedwait_func,
51357         glthread_cond_signal_func, glthread_cond_broadcast_func,
51358         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51359         * modules/cond (Dependencies): Add gettimeofday.
51360
51361 2008-10-11  Bruno Haible  <bruno@clisp.org>
51362
51363         Make sleep work on older versions of mingw.
51364         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51365         only whether it exists.
51366         * doc/posix-functions/sleep.texi: Mention the problem with older
51367         versions of mingw.
51368
51369 2008-10-11  Bruno Haible  <bruno@clisp.org>
51370
51371         New module 'shutdown'.
51372         * modules/shutdown: New file.
51373         * lib/sys_socket.in.h (shutdown): New declaration.
51374         * lib/winsock.c (shutdown): New function.
51375         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51376         GNULIB_SHUTDOWN.
51377         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51378         * doc/posix-functions/shutdown.texi: Document the new module.
51379
51380 2008-10-11  Jim Meyering  <meyering@redhat.com>
51381
51382         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51383
51384 2008-10-11  Bruno Haible  <bruno@clisp.org>
51385
51386         New module 'fclose'.
51387         * modules/fclose: New file.
51388         * lib/stdio.in.h (fclose): New declaration.
51389         * lib/fclose.c: New file.
51390         * m4/fclose.m4: New file.
51391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51392         REPLACE_FCLOSE.
51393         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51394         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51395         REPLACE_FCLOSE.
51396         * modules/close (Depends-on): fclose.
51397         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51398
51399 2008-10-11  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51402         set errno and don't call _close.
51403
51404 2008-10-10  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51407         ACL, not afterwards. Fixes test failure on Cygwin.
51408
51409 2008-10-09  Ben Pfaff  <blp@gnu.org>
51410
51411         * build-aux/announce-gen: Fix gnulib version related part of usage
51412         message.  Die with a useful error message if no tarballs are
51413         found.
51414
51415 2008-10-10  Jim Meyering  <meyering@redhat.com>
51416
51417         bootstrap: use git's --depth=N option only if it's supported
51418         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51419         recognize the --depth option.  Reported by Pádraig Brady.
51420
51421 2008-10-09  Bruno Haible  <bruno@clisp.org>
51422
51423         New module 'ioctl'.
51424         * modules/ioctl: New file.
51425         * lib/sys_socket.in.h (ioctl): Remove declaration.
51426         * lib/winsock.c: Include <sys/ioctl.h>.
51427         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51428         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51429         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51430         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51431         * doc/posix-functions/ioctl.texi: Mention the new module.
51432
51433 2008-10-09  Bruno Haible  <bruno@clisp.org>
51434
51435         New module 'sys_ioctl'.
51436         * lib/sys_ioctl.in.h: New file.
51437         * m4/sys_ioctl_h.m4: New file.
51438         * modules/sys_ioctl: New file.
51439         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51440
51441 2008-10-09  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51444         * lib/winsock.c: Include <stdarg.h>.
51445         (rpl_ioctl): Change to second argument 'int' and then varargs.
51446
51447 2008-10-09  Bruno Haible  <bruno@clisp.org>
51448
51449         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51450         when the sys_socket module is present and the system has <winsock2.h>.
51451
51452 2008-10-09  Bruno Haible  <bruno@clisp.org>
51453
51454         * doc/posix-functions/close.texi: Mention module 'close' instead of
51455         module 'sys_socket'.
51456
51457 2008-10-09  Bruno Haible  <bruno@clisp.org>
51458
51459         * doc/glibc-headers/sys_ioctl.texi: New file.
51460         * doc/gnulib.texi: Include it.
51461
51462 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51463             Bruno Haible  <bruno@clisp.org>
51464
51465         Combine the two replacements of 'close'.
51466         * lib/sys_socket.in.h (close): Define to a reminder to include
51467         <unistd.h>.
51468         (_gl_close_fd_maybe_socket): New declaration.
51469         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51470         * lib/winsock.c (close): Remove undefinition.
51471         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51472         needed for the gnulib module 'close'.
51473         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51474         define to an error symbol or to a warning, if suitable.
51475         * lib/close.c: Include <sys/socket.h>.
51476         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51477         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51478         UNISTD_H_HAVE_WINSOCK2_H.
51479         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51481         UNISTD_H_HAVE_WINSOCK2_H.
51482         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51483         (configure.ac): Set a module indicator.
51484         (Makefile.am): Substitute GNULIB_CLOSE.
51485         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51486         * modules/poll-tests (Depends-on): Add close.
51487         * modules/select-tests (Depends-on): Likewise.
51488
51489 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51490             Bruno Haible  <bruno@clisp.org>
51491
51492         New module 'close'.
51493         * modules/close: New file.
51494         * lib/unistd.in.h (close): Move declaration out of the
51495         FCHDIR_REPLACEMENT scope.
51496         (_gl_unregister_fd): New declaration.
51497         * lib/close.c: New file.
51498         * lib/fchdir.c (rpl_close): Remove function.
51499         * m4/close.m4: New file.
51500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51501         close.
51502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51503         REPLACE_CLOSE.
51504         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51505         REPLACE_CLOSE.
51506         * modules/fchdir (Depends-on): Add close.
51507
51508 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51509             Bruno Haible  <bruno@clisp.org>
51510
51511         * lib/fcntl.in.h (open): Simplify conditionals.
51512         (_gl_register_fd): New declaration.
51513         * lib/fchdir.c (rpl_open): Remove function.
51514         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51515         also.
51516         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51518         open.
51519
51520 2008-10-09  Jim Meyering  <meyering@redhat.com>
51521
51522         GNUmakefile: use the more name-space-friendly "_version"
51523         * top/GNUmakefile (_dummy): Update.
51524         (_version): Rename from "version".
51525
51526 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51527             Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51530         rpl_close.
51531         (_gl_register_fd): New function, extracted from rpl_open.
51532         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51533         (rpl_open, rpl_opendir): Use _gl_register_fd.
51534
51535 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51536
51537         Fix organization of 'open' replacement.
51538         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51539         (gl_FUNC_OPEN): Use it.
51540         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51541
51542 2008-10-08  Bruno Haible  <bruno@clisp.org>
51543
51544         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51545
51546 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51547
51548         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51549         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51550         listen).
51551
51552 2008-10-08  Eric Blake  <ebb9@byu.net>
51553
51554         GNUmakefile: add 'make version' target
51555         * top/GNUmakefile (_curr-ver): Split version update rules...
51556         (version): ...into a target.
51557
51558 2008-10-07  Bruno Haible  <bruno@clisp.org>
51559
51560         Use a more portable replacement expression for -0.0L.
51561         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51562         instead of -0.0L. Fix m4 quotation.
51563
51564         * tests/test-signbit.c: Include <float.h>.
51565         (minus_zero): New variable.
51566         (test_signbitl): Use minus_zero instead of -zero.
51567         * modules/signbit-tests (Depends-on): Add float.
51568
51569         * tests/test-ceill.c: Include <float.h>.
51570         (zero): Remove variable.
51571         (minus_zero): New variable.
51572         (main): Use minus_zero instead of -zero.
51573         * modules/ceill-tests (Depends-on): Add float.
51574
51575         * tests/test-floorl.c: Include <float.h>.
51576         (zero): Remove variable.
51577         (minus_zero): New variable.
51578         (main): Use minus_zero instead of -zero.
51579         * modules/floorl-tests (Depends-on): Add float.
51580
51581         * tests/test-roundl.c: Include <float.h>.
51582         (zero): Remove variable.
51583         (minus_zero): New variable.
51584         (main): Use minus_zero instead of -zero.
51585         * modules/roundl-tests (Depends-on): Add float.
51586
51587         * tests/test-truncl.c: Include <float.h>.
51588         (zero): Remove variable.
51589         (minus_zero): New variable.
51590         (main): Use minus_zero instead of -zero.
51591         * modules/truncl-tests (Depends-on): Add float.
51592
51593         * tests/test-frexpl.c (zero): Remove variable.
51594         (minus_zero): New variable.
51595         (main): Use minus_zero instead of -zero.
51596         * modules/frexpl-tests (Depends-on): Add float.
51597
51598         * tests/test-isnan.c (zerol): Remove variable.
51599         (minus_zerol): New variable.
51600         (test_long_double): Use minus_zerol instead of -zerol.
51601         * modules/isnan-tests (Depends-on): Add float.
51602
51603         * tests/test-isnanl.h (zero): Remove variable.
51604         (minus_zero): New variable.
51605         (main): Use minus_zero instead of -zero.
51606         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51607         * modules/isnanl-tests (Depends-on): Add float.
51608
51609         * tests/test-ldexpl.c (zero): Remove variable.
51610         (minus_zero): New variable.
51611         (main): Use minus_zero instead of -zero.
51612         * modules/ldexpl-tests (Depends-on): Add float.
51613
51614         * tests/test-snprintf-posix.h (zerol): Remove variable.
51615         (minus_zerol): New variable.
51616         (test_function): Use minus_zerol instead of -zerol.
51617         * modules/snprintf-posix-tests (Depends-on): Add float.
51618         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51619
51620         * tests/test-sprintf-posix.h (zerol): Remove variable.
51621         (minus_zerol): New variable.
51622         (test_function): Use minus_zerol instead of -zerol.
51623         * modules/sprintf-posix-tests (Depends-on): Add float.
51624         * modules/vsprintf-posix-tests (Depends-on): Add float.
51625
51626         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51627         (minus_zerol): New variable.
51628         (test_function): Use minus_zerol instead of -zerol.
51629         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51630
51631         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51632         (minus_zerol): New variable.
51633         (test_function): Use minus_zerol instead of -zerol.
51634         * modules/vasprintf-posix-tests (Depends-on): Add float.
51635
51636 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51637
51638         * MODULES.html.sh (Support for building documentation): Mention
51639         pmccabe2html.  Sort entries.
51640
51641         Add pmccabe2html module, from gnupdf.
51642         * build-aux/pmccabe.css: New file.
51643         * build-aux/pmccabe2html: New file.
51644         * m4/pmccabe2html.m4: New file.
51645         * modules/pmccabe2html: New file.
51646
51647 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51648
51649         flock: new module
51650         * MODULES.html.sh: Add to list of modules.
51651         * lib/flock.c: flock implementation for Windows and Unix systems
51652         which have fcntl.
51653         * doc/glibc-functions/flock.texi: Update documentation.
51654         * lib/sys_file.in.h: <sys/file.h> header file.
51655         * m4/flock.m4: M4 macros.
51656         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51657         * modules/flock: flock module.
51658         * modules/flock-tests: flock tests module.
51659         * modules/sys_file: sys/file.h module.
51660         * tests/test-flock.c: test suite for flock.
51661
51662 2008-10-06  Jim Meyering  <meyering@redhat.com>
51663
51664         bootstrap: check for LT_INIT more portably still ;-)
51665         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51666         Spotted by Bruno Haible.
51667
51668 2008-10-06  Eric Blake  <ebb9@byu.net>
51669
51670         test-signbit: avoid tripping Irix cc bug on -0.0L
51671         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51672         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51673         entire testsuite consistent and avoids an Irix 6.2 bug.
51674
51675 2008-10-05  Bruno Haible  <bruno@clisp.org>
51676             Jim Meyering  <jim@meyering.net>
51677
51678         Add an option for ignoring EPIPE during close_stdout.
51679         * lib/closeout.h: Include <stdbool.h>.
51680         (close_stdout_set_ignore_EPIPE): New declaration.
51681         * lib/closeout.c: Include <stdbool.h>.
51682         (ignore_EPIPE): New variable.
51683         (close_stdout_set_ignore_EPIPE): New function.
51684         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51685         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51686         failure.
51687         * modules/closeout (Depends-on): Add stdbool.
51688
51689 2008-10-05  Bruno Haible  <bruno@clisp.org>
51690
51691         * modules/accept: New file.
51692         * modules/bind: New file.
51693         * modules/connect: New file.
51694         * modules/getpeername: New file.
51695         * modules/getsockname: New file.
51696         * modules/getsockopt: New file.
51697         * modules/listen: New file.
51698         * modules/recv: New file.
51699         * modules/recvfrom: New file.
51700         * modules/send: New file.
51701         * modules/sendto: New file.
51702         * modules/setsockopt: New file.
51703         * modules/socket: New file.
51704         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51705         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51706         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51707         the particular module is requested. Add a link warning when the
51708         particular module is not requested.
51709         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51710         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51711         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51712         the particular module is requested.
51713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51714         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51715         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51716         * modules/sys_socket (Depends-on): Add link-warning.
51717         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51718         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51719         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51720         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51721         GL_LINK_WARNING.
51722         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51723         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51724         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51725         * doc/posix-functions/getpeername.texi: Mention the new module
51726         'getpeername'.
51727         * doc/posix-functions/getsockname.texi: Mention the new module
51728         'getsockname'.
51729         * doc/posix-functions/getsockopt.texi: Mention the new module
51730         'getsockopt'.
51731         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51732         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51733         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51734         * doc/posix-functions/send.texi: Mention the new module 'send'.
51735         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51736         * doc/posix-functions/setsockopt.texi: Mention the new module
51737         'setsockopt'.
51738         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51739         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51740         listen, connect, accept.
51741         * modules/select-tests (Depends-on): Likewise.
51742
51743 2008-10-05  Bruno Haible  <bruno@clisp.org>
51744
51745         * lib/winsock.c (strerror): Remove unused #undef.
51746         (rpl_close): Remove unused local variable.
51747
51748         * modules/sys_socket (Depends-on); Add errno.
51749
51750 2008-10-05  Bruno Haible  <bruno@clisp.org>
51751
51752         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51753         (select): Add a link warning when the 'select' module is not used.
51754         * modules/sys_select (Depends-on): Add link-warning.
51755         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51756         Suggested by Paolo Bonzini.
51757
51758 2008-10-05  Jim Meyering  <meyering@redhat.com>
51759
51760         bootstrap: check for LT_INIT more portably
51761         * build-aux/bootstrap: Avoid using grep -E, since it's not
51762         portable enough.  Suggestion from Bruno Haible.
51763
51764 2008-10-05  Bruno Haible  <bruno@clisp.org>
51765
51766         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51767         as being fixed by gnulib.
51768
51769 2008-10-05  Bruno Haible  <bruno@clisp.org>
51770
51771         * modules/select-tests: New file, mostly copied from
51772         modules/sys_select-tests.
51773         * tests/test-select.c: New file, mostly copied from
51774         tests/test-sys_select.c.
51775         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51776         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51777         (Makefile.am): Remove test_sys_select_LDADD.
51778
51779         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51780         to an undefined symbol, for an error message.
51781         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51782         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51783         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51784         winsock-select.c here.
51785         * modules/sys_select (Files): Remove lib/winsock-select.c.
51786         (Depends-on): Remove alloca.
51787         (Makefile.am): Substitute GNULIB_SELECT.
51788         * modules/select: New file.
51789         * doc/posix-functions/select.texi: Update.
51790
51791 2008-10-05  Bruno Haible  <bruno@clisp.org>
51792
51793         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51794         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51795         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51796         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51797         getdtablesize.
51798         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51799         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51800
51801 2008-10-05  Bruno Haible  <bruno@clisp.org>
51802
51803         * modules/getdtablesize-tests: New file.
51804         * tests/test-getdtablesize.c: New file.
51805
51806         New module 'getdtablesize'.
51807         * lib/unistd.in.h (getdtablesize): New declaration.
51808         * lib/getdtablesize.c: New file.
51809         * m4/getdtablesize.m4: New file.
51810         * modules/getdtablesize: New file.
51811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51812         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51813         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51814         HAVE_GETDTABLESIZE.
51815         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51816
51817 2008-10-05  Bruno Haible  <bruno@clisp.org>
51818
51819         * modules/sched (Makefile.am): Fix typo.
51820         Reported by Simon Josefsson.
51821
51822 2008-10-05  Jim Meyering  <meyering@redhat.com>
51823
51824         bootstrap: check for LT_INIT, too
51825         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51826         are deprecated.  Suggestion from Ralf Wildenhues.
51827
51828 2008-10-05  Bruno Haible  <bruno@clisp.org>
51829
51830         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51831         overriding them by ours.
51832         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51833
51834 2008-10-05  Jim Meyering  <meyering@redhat.com>
51835
51836         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51837         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51838         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51839
51840 2008-10-04  Bruno Haible  <bruno@clisp.org>
51841
51842         * modules/dup2 (License): Change to LGPLv2+.
51843         * modules/sleep (License): Likewise.
51844         * modules/perror (License): Likewise.
51845         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51846         Blake.
51847         * modules/signal (License): Likewise.
51848         * modules/sigprocmask (License): Likewise.
51849         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51850         Meyering.
51851
51852 2008-10-04  Bruno Haible  <bruno@clisp.org>
51853
51854         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51855         Reported by Rainer Tammer <tammer@tammer.net>.
51856
51857 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51858             Bruno Haible  <bruno@clisp.org>
51859
51860         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51861         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51862         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51863
51864 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51865
51866         filevercmp: new module
51867         * lib/filevercmp.h: New function filevercmp comparing version strings.
51868         * lib/filevercmp.c: Implementation of filevercmp function.
51869         * modules/filevercmp: Module metadata.
51870         * tests/test-filevercmp.c: Unit test for new module.
51871         * modules/filevercmp-tests: Unit test metadata.
51872         * MODULES.html.sh: Add filevercmp module.
51873
51874 2008-10-03  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/c-ctype.h: Add comment.
51877         Reported by Jim Meyering.
51878
51879 2008-10-02  Bruno Haible  <bruno@clisp.org>
51880
51881         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51882
51883 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51884
51885         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51886         name of bootstrap.conf accordingly.
51887
51888 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51889
51890         * build-aux/bootstrap: Install git-merge-changelog configuration
51891         items into .gitconfig if needed.
51892
51893 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51894
51895         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51896         git repository, and initialize/update it accordingly.
51897
51898 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51899
51900         * modules/fsync-tests: New file.
51901         * tests/test-fsync.c: New file.
51902
51903         New module 'fsync'.
51904         * lib/fsync.c: New file.
51905         * m4/fsync.m4: New file.
51906         * modules/fsync: New file.
51907         * lib/unistd.in.h (fsync): New declaration.
51908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51909         GNULIB_FSYNC and HAVE_FSYNC.
51910         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51911         * MODULES.html.sh (posix_functions): Add fsync.
51912         * doc/posix-functions/fsync.texi: Mention the new module.
51913
51914 2008-10-02  Jim Meyering  <meyering@redhat.com>
51915
51916         fts.c: sync with similar code from coreutils' remove.c
51917         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51918         Guard also with "#if defined __linux__", since for now at least,
51919         this code is Linux-kernel-specific.
51920
51921 2008-10-02  Jim Meyering  <meyering@redhat.com>
51922
51923         fts: bug fixes
51924         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51925         Include <sys/vfs.h>, not <sys/statfs.h>.
51926
51927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51928         Include <sys/vfs.h>, not <sys/statfs.h>.
51929
51930 2008-10-01  Bruno Haible  <bruno@clisp.org>
51931
51932         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51933         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51934         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51935         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51936         * doc/posix-functions/posix_spawnp.texi: Likewise.
51937         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51938         whether posix_spawn actually works.
51939         * m4/pipe.m4 (gl_PIPE): Likewise.
51940         * modules/execute (Files): Add m4/posix_spawn.m4.
51941         * modules/pipe (Files): Add m4/posix_spawn.m4.
51942         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51943
51944 2008-10-01  Jim Meyering  <meyering@redhat.com>
51945
51946         remove trailing spaces
51947         * NEWS: Likewise.
51948         * lib/poll.c (poll): Likewise.
51949         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51950         * lib/winsock.c (rpl_close): Likewise.
51951         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51952         * modules/yield: Likewise.
51953         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51954         * tests/test-sys_select.c (connect_to_socket): Likewise.
51955
51956         fts.c: adjust a new interface to be more generally useful
51957         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51958         (fts_build): Adjust caller.
51959
51960 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51961
51962         * modules/cond-tests: New file.
51963         * tests/test-cond.c: New file.
51964
51965 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51966             Bruno Haible  <bruno@clisp.org>
51967
51968         * modules/cond (Dependencies): Add errno, time.
51969         * lib/glthread/cond.h: Include <time.h>.
51970         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51971         across platforms.
51972
51973 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51974             Bruno Haible  <bruno@clisp.org>
51975
51976         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51977
51978 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51979             Bruno Haible  <bruno@clisp.org>
51980
51981         * modules/tls-tests (Depends-on): Add thread, yield.
51982         (configure.ac): Remove all checks.
51983         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51984         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51985         gl_thread_self): Remove definitions. Include glthread/thread.h and
51986         glthread/yield.h instead.
51987         (test_tls): Pass an additional NULL argument to gl_thread_join.
51988
51989 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51990             Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/lock-tests (Depends-on): Add thread, yield.
51993         (configure.ac): Remove all checks.
51994         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51995         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51996         gl_thread_self): Remove definitions. Include glthread/thread.h and
51997         glthread/yield.h instead.
51998         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51999         additional NULL argument to gl_thread_join.
52000
52001 2008-09-30  Bruno Haible  <bruno@clisp.org>
52002
52003         Fix the Win32 implementation of the 'thread' module.
52004         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52005         pointer type.
52006         (gl_thread_self): Invoke gl_thread_self_func.
52007         (gl_thread_self_func): New declaration.
52008         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52009         (do_init_self_key, init_self_key): New functions.
52010         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52011         Remove some fields.
52012         (running_threads, running_lock): Remove variables.
52013         (get_current_thread_handle): New function.
52014         (gl_thread_self_func, wrapper_func, glthread_create_func,
52015         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52016         simplified.
52017
52018 2008-09-30  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52021         files.
52022
52023 2008-09-30  Jim Meyering  <meyering@redhat.com>
52024
52025         fts.m4: correct the test for statfs.f_type
52026         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52027         when checking for statfs.f_type.
52028
52029 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52030
52031         tests: avoid some compiler warnings
52032         * tests/test-memchr.c (main): Pass NULL indirectly.
52033         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52034
52035 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52036
52037         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52038         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52039         exactly specified dayshifts.
52040         (dayshift): New rule.
52041         (rel): Add dayshift.
52042         (relative_time_table) [tomorrow, yesterday, today, now]:
52043         Use tDAY_SHIFT in place of tDAY_UNIT.
52044         * tests/test-getdate.c: Add tests for now-disallowed countable
52045         dayshifts, e.g., "4 yesterday ago".
52046
52047 2008-09-29  Bruno Haible  <bruno@clisp.org>
52048
52049         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52050         * tests/test-posix_spawn1.in.sh: Renamed from
52051         tests/test-posix_spawn.in.sh.
52052         * tests/test-posix_spawn2.c: New file.
52053         * tests/test-posix_spawn2.in.sh: New file.
52054         * modules/posix_spawnp-tests (Files): Update.
52055         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52056
52057 2008-09-29  Bruno Haible  <bruno@clisp.org>
52058
52059         Propagate effects of putenv/setenv/unsetenv to child processes.
52060         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52061         * lib/pipe.c (create_pipe): Likewise.
52062
52063 2008-09-29  Bruno Haible  <bruno@clisp.org>
52064
52065         Enable use of shell scripts as executables in mingw.
52066         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52067         run the program as a shell script.
52068         * lib/pipe.c (create_pipe): Likewise.
52069         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52070         resulting array.
52071
52072 2008-09-29  Eric Blake  <ebb9@byu.net>
52073
52074         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52075
52076 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52077
52078         * doc/posix-functions/accept.texi: Update mingw problems.
52079         * doc/posix-functions/bind.texi: Update mingw problems.
52080         * doc/posix-functions/close.texi: Update mingw problems.
52081         * doc/posix-functions/connect.texi: Update mingw problems.
52082         * doc/posix-functions/getpeername.texi: Update mingw problems.
52083         * doc/posix-functions/getsockname.texi: Update mingw problems.
52084         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52085         * doc/posix-functions/ioctl.texi: Update mingw problems.
52086         * doc/posix-functions/listen.texi: Update mingw problems.
52087         * doc/posix-functions/recv.texi: Update mingw problems.
52088         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52089         * doc/posix-functions/select.texi: Update mingw problems.
52090         * doc/posix-functions/send.texi: Update mingw problems.
52091         * doc/posix-functions/sendto.texi: Update mingw problems.
52092         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52093         * doc/posix-functions/socket.texi: Update mingw problems.
52094
52095 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52096             Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/sys_select.in.h: Include sys/time.h.
52099         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52100         * modules/sys_select: Depend on sys_time.
52101         * tests/test-sys_select.c: Test that sys/select.h defines struct
52102         timeval fully.
52103
52104 2008-09-29  Bruno Haible  <bruno@clisp.org>
52105
52106         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52107         * lib/sys_select.in.h: Likewise.
52108
52109 2008-09-29  Bruno Haible  <bruno@clisp.org>
52110
52111         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52112
52113 2008-09-29  Bruno Haible  <bruno@clisp.org>
52114
52115         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52116         Set LIBSOCKET instead of augmenting LIBS.
52117         * modules/sockets (Link): New section.
52118         * modules/sockets-tests (test_sockets_LDADD): New variable.
52119         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52120         * modules/poll-tests (test_poll_LDADD): New variable.
52121         * NEWS: Document the change.
52122
52123 2008-09-29  Bruno Haible  <bruno@clisp.org>
52124
52125         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52126         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52127         ARPA_INET_H directly.
52128         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52129
52130 2008-09-28  Bruno Haible  <bruno@clisp.org>
52131
52132         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52133         from gl_HEADER_SYS_SOCKET.
52134         (gl_HEADER_SYS_SOCKET): Invoke it.
52135         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52136
52137 2008-09-28  Bruno Haible  <bruno@clisp.org>
52138
52139         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52140         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52141         Needed on OSF/1 4.0.
52142
52143 2008-09-28  Bruno Haible  <bruno@clisp.org>
52144
52145         Override open more carefully.
52146         * lib/open.c (orig_open): New function.
52147         (rpl_open): Use orig_open instead of open.
52148         * lib/fcntl.in.h: Add special invocation convention.
52149         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52150         (gl_FUNC_OPEN): Invoke it.
52151
52152         Override freopen more carefully.
52153         * lib/freopen.c (orig_freopen): New function.
52154         (rpl_freopen): Use orig_freopen instead of freopen.
52155         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52156         (gl_FUNC_FREOPEN): Invoke it.
52157
52158         Override fopen more carefully.
52159         * lib/fopen.c (orig_fopen): New function.
52160         (rpl_fopen): Use orig_fopen instead of fopen.
52161         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52162         (gl_FUNC_FOPEN): Invoke it.
52163         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52164
52165 2008-09-28  Bruno Haible  <bruno@clisp.org>
52166
52167         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52168         SIGPIPE.
52169
52170 2008-09-28  Bruno Haible  <bruno@clisp.org>
52171
52172         * tests/test-sigaction.c (handler, main): Disable the check whether
52173         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52174         glibc systems with LinuxThreads.
52175
52176 2008-09-28  Bruno Haible  <bruno@clisp.org>
52177
52178         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52179
52180         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52181         with AIX xlc.
52182         * lib/fcntl.in.h (open): Likewise.
52183         Reported by Rainer Tammer <tammer@tammer.net>.
52184
52185 2008-09-28  Bruno Haible  <bruno@clisp.org>
52186
52187         * modules/posix_spawnp-tests: New file.
52188         * tests/test-posix_spawn.c: New file.
52189         * tests/test-posix_spawn.in.sh: New file.
52190
52191         New module 'posix_spawnp'.
52192         * modules/posix_spawnp: New file.
52193         * lib/spawnp.c: New file, from GNU libc with modifications.
52194         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52195
52196         New module 'posix_spawn'.
52197         * modules/posix_spawn: New file.
52198         * lib/spawn.c: New file, from GNU libc with modifications.
52199         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52200
52201         New module 'posix_spawnattr_destroy'.
52202         * modules/posix_spawnattr_destroy: New file.
52203         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52204         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52205         module.
52206
52207         New module 'posix_spawnattr_setsigmask'.
52208         * modules/posix_spawnattr_setsigmask: New file.
52209         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52210         modifications.
52211         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52212         new module.
52213
52214         New module 'posix_spawnattr_getsigmask'.
52215         * modules/posix_spawnattr_getsigmask: New file.
52216         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52217         modifications.
52218         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52219         new module.
52220
52221         New module 'posix_spawnattr_setsigdefault'.
52222         * modules/posix_spawnattr_setsigdefault: New file.
52223         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52224         modifications.
52225         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52226         new module.
52227
52228         New module 'posix_spawnattr_getsigdefault'.
52229         * modules/posix_spawnattr_getsigdefault: New file.
52230         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52231         modifications.
52232         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52233         new module.
52234
52235         New module 'posix_spawnattr_setschedpolicy'.
52236         * modules/posix_spawnattr_setschedpolicy: New file.
52237         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52238         modifications.
52239         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52240         new module.
52241
52242         New module 'posix_spawnattr_getschedpolicy'.
52243         * modules/posix_spawnattr_getschedpolicy: New file.
52244         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52245         modifications.
52246         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52247         new module.
52248
52249         New module 'posix_spawnattr_setschedparam'.
52250         * modules/posix_spawnattr_setschedparam: New file.
52251         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52252         modifications.
52253         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52254         new module.
52255
52256         New module 'posix_spawnattr_getschedparam'.
52257         * modules/posix_spawnattr_getschedparam: New file.
52258         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52259         modifications.
52260         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52261         new module.
52262
52263         New module 'posix_spawnattr_setpgroup'.
52264         * modules/posix_spawnattr_setpgroup: New file.
52265         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52266         modifications.
52267         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52268         module.
52269
52270         New module 'posix_spawnattr_getpgroup'.
52271         * modules/posix_spawnattr_getpgroup: New file.
52272         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52273         modifications.
52274         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52275         module.
52276
52277         New module 'posix_spawnattr_setflags'.
52278         * modules/posix_spawnattr_setflags: New file.
52279         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52280         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52281         module.
52282
52283         New module 'posix_spawnattr_getflags'.
52284         * modules/posix_spawnattr_getflags: New file.
52285         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52286         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52287         module.
52288
52289         New module 'posix_spawnattr_init'.
52290         * modules/posix_spawnattr_init: New file.
52291         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52292         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52293         module.
52294
52295         New module 'posix_spawn_file_actions_destroy'.
52296         * modules/posix_spawn_file_actions_destroy: New file.
52297         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52298         modifications.
52299         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52300         the new module.
52301
52302         New module 'posix_spawn_file_actions_addopen'.
52303         * modules/posix_spawn_file_actions_addopen: New file.
52304         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52305         modifications.
52306         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52307         the new module.
52308
52309         New module 'posix_spawn_file_actions_adddup2'.
52310         * modules/posix_spawn_file_actions_adddup2: New file.
52311         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52312         modifications.
52313         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52314         the new module.
52315
52316         New module 'posix_spawn_file_actions_addclose'.
52317         * modules/posix_spawn_file_actions_addclose: New file.
52318         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52319         modifications.
52320         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52321         the new module.
52322
52323         New module 'posix_spawn_file_actions_init'.
52324         * modules/posix_spawn_file_actions_init: New file.
52325         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52326         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52327         new module.
52328
52329         New module 'posix_spawn-internal'.
52330         * modules/posix_spawn-internal: New file.
52331         * lib/spawn_int.h: New file, from GNU libc with modifications.
52332         * lib/spawni.c: New file, from GNU libc with modifications.
52333         * m4/posix_spawn.m4: New file.
52334
52335         New module 'spawn'.
52336         * modules/spawn: New file.
52337         * lib/spawn.in.h: New file, from GNU libc with modifications.
52338         * m4/spawn_h.m4: New file.
52339         * doc/posix-headers/spawn.texi: Mention the new module.
52340
52341 2008-09-28  Bruno Haible  <bruno@clisp.org>
52342
52343         * modules/sched-tests: New file.
52344         * tests/test-sched.c: New file.
52345
52346         New module 'sched'.
52347         * modules/sched: New file.
52348         * lib/sched.in.h: New file.
52349         * m4/sched_h.m4: New file.
52350         * doc/posix-headers/sched.texi: Mention the new module.
52351
52352 2008-09-27  Eric Blake  <ebb9@byu.net>
52353
52354         Fix previous patch, and tweak references to $0.
52355         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52356         (func_version, func_gnulib_dir): Don't call this program
52357         gnulib-tool.
52358         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52359         with using $0 in function.
52360         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52361         (func_fatal_error): Reuse the name the user invoked us with.
52362
52363 2008-09-27  Bruno Haible  <bruno@clisp.org>
52364
52365         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52366         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52367         (gl_ICONV_H): Not here.
52368         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52369         instead of assigning ICONV_H directly.
52370
52371         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52373         WCHAR_H directly.
52374
52375 2008-09-27  Bruno Haible  <bruno@clisp.org>
52376
52377         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52378         * modules/arpa_inet (Depends-on): Add link-warning.
52379         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52380         * modules/unistd (Makefile.am): Likewise.
52381
52382 2008-09-26  Bruno Haible  <bruno@clisp.org>
52383
52384         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52385         variables.
52386         (func_version): Essentially copied from gnulib-tool.
52387         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52388         func_readlink): Copied from gnulib-tool.
52389
52390 2008-09-26  Bruno Haible  <bruno@clisp.org>
52391
52392         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52393         invoking git-version-gen.
52394
52395 2008-09-26  Bruno Haible  <bruno@clisp.org>
52396
52397         * posix-modules: Update to directory names changed on 2008-01-19.
52398         Remove commas in output before splitting into words. No more need to
52399         avoid 'ftruncate' since 2007-02-19.
52400
52401 2008-09-26  Bruno Haible  <bruno@clisp.org>
52402
52403         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52404
52405 2008-09-26  Bruno Haible  <bruno@clisp.org>
52406
52407         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52408         * modules/fwriteerror (Depends-on): Add errno.
52409
52410 2008-09-26  Bruno Haible  <bruno@clisp.org>
52411
52412         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52413         * tests/test-vc-list-files-cvs.sh: Likewise.
52414
52415 2008-09-26  Bruno Haible  <bruno@clisp.org>
52416
52417         * doc/posix-headers/sys_resource.texi: Reorder items.
52418
52419 2008-09-26  Jim Meyering  <meyering@redhat.com>
52420
52421         fts: tweak inode comparison function
52422         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52423         inode numbers, as documented.
52424
52425         fts: sort dirent entries on inode number before traversing
52426         This avoids a quadratic, seek-related performance penalty when
52427         operating on a directory containing many entries (measurable at 10k;
52428         3.5 hours at 2 million entries with a cold cache) on certain types
52429         of file systems, including ext3 and ext4, but not tmpfs.
52430         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52431         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52432         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52433         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52434         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52435         (fts_build): Set the stat.st_ino member from D_INO.
52436         If it is likely to be useful, sort dirent entries on inode number.
52437
52438         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52439         and the struct statfs.f_type member.
52440         * modules/fts (Depends-on): Add d-ino.
52441
52442 2008-09-26  Bruno Haible  <bruno@clisp.org>
52443
52444         * modules/sigpipe-die (Depends-on): Add sigpipe.
52445
52446         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52447         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52448         and GNULIB_STDIO_H_SIGPIPE are set.
52449         * lib/stdio-write.c: New file.
52450         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52451         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52452         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52453         REPLACE_STDIO_WRITE_FUNCS.
52454         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52455         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52456         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52457         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52458         * modules/stdio (Files): Add lib/stdio-write.c.
52459         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52460         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52461         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52462         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52463         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52464         REPLACE_FPRINTF_POSIX.
52465         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52466         REPLACE_PRINTF_POSIX.
52467         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52468         REPLACE_VFPRINTF_POSIX.
52469         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52470         REPLACE_VPRINTF_POSIX.
52471         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52472         SIGPIPE issue.
52473         * doc/posix-functions/fputc.texi: Likewise.
52474         * doc/posix-functions/fputs.texi: Likewise.
52475         * doc/posix-functions/fwrite.texi: Likewise.
52476         * doc/posix-functions/printf.texi: Likewise.
52477         * doc/posix-functions/putc.texi: Likewise.
52478         * doc/posix-functions/putchar.texi: Likewise.
52479         * doc/posix-functions/puts.texi: Likewise.
52480         * doc/posix-functions/vfprintf.texi: Likewise.
52481         * doc/posix-functions/vprintf.texi: Likewise.
52482
52483         * modules/safe-write (Depends-on): Add write.
52484
52485         * modules/sigpipe-tests: New file.
52486         * tests/test-sigpipe.c: New file.
52487         * tests/test-sigpipe.sh: New file.
52488
52489         * modules/write: New file.
52490         * lib/unistd.in.h: Include <sys/types.h>.
52491         (write): New declaration.
52492         * lib/write.c: New file.
52493         * m4/write.m4: New file.
52494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52495         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52496         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52497         GNULIB_WRITE, REPLACE_WRITE.
52498         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52499         and the SIGPIPE issue.
52500
52501         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52502         (raise): New declaration.
52503         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52504         (ext_signal): New function.
52505         (rpl_raise): New function.
52506         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52507         GNULIB_SIGNAL_H_SIGPIPE.
52508         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52509         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52510
52511         * modules/sigpipe: New file.
52512         * m4/sigpipe.m4: New file.
52513
52514 2008-09-25  Derek Price  <derek@ximbiot.com>
52515             Bruno Haible  <bruno@clisp.org>
52516
52517         * gnulib-tool (func_import): Report all license incompatibilities, not
52518         just the first one.
52519
52520 2008-09-25  Bruno Haible  <bruno@clisp.org>
52521
52522         * gnulib-tool (func_import): When computing the edits, consider not
52523         only the Makefile.ams that exist but also those that will be generated.
52524
52525 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52526
52527         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52528         fixes gnulib-tool --test warning about duplicate dependency.
52529
52530 2008-09-25  Bruno Haible  <bruno@clisp.org>
52531
52532         * gnulib-tool: Don't ask the user to perform edits in the generated
52533         Makefile.ams.
52534         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52535         apply to the Makefile.am being generated.
52536         (func_emit_tests_Makefile_am): Execute edits that apply to the
52537         Makefile.am being generated.
52538         (func_import): Setup list of Makefile.am edits before emitting the
52539         Makefile.ams, not at the end.
52540         (func_create_testdir): Update.
52541         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52542
52543 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52544
52545         * gnulib-tool (func_import): Store the --tests-base option in the
52546         comment in gnulib-cache.m4.
52547
52548 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52549
52550         * NEWS: Document increased portability that sys_select now provides.
52551
52552         * lib/sys_select.in.h: Install select wrapper.
52553         * lib/sys_socket.in.h: Use more descriptive name when there is no
52554         select wrapper.
52555         * lib/winsock-select.c: New.
52556         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52557         Require gl_HEADER_SYS_SOCKET.
52558         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52559         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52560         * tests/test-sys_select.c: Add functional tests.
52561
52562 2008-09-24  Eric Blake  <ebb9@byu.net>
52563
52564         open, fopen: close fd leak in last patch
52565         * lib/open.c (rpl_open): Close fd before returning error.
52566         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52567         * doc/posix-functions/open.texi (open): Document that Irix also
52568         has the bug.
52569         * doc/posix-functions/fopen.texi (fopen): Likewise.
52570         Reported by Paolo Bonzini.
52571
52572 2008-09-24  Bruno Haible  <bruno@clisp.org>
52573
52574         Ensure that a filename ending in a slash cannot be used to access a
52575         non-directory.
52576         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52577         to check whether it's really a directory.
52578         * lib/fopen.c: Include fcntl.h, unistd.h.
52579         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52580         and fdopen().
52581         * modules/fopen (Depends-on): Add unistd.
52582         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52583         * tests/test-fopen.c (main): Likewise.
52584         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52585         * doc/posix-functions/fopen.texi: Likewise.
52586         Reported by Eric Blake.
52587
52588 2008-09-23  Eric Blake  <ebb9@byu.net>
52589
52590         c-stack: avoid compiler optimizations when provoking overflow
52591         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52592         recursion harder to optimize, to ensure a stack overflow occurs.
52593         * tests/test-c-stack.c (recurse): Likewise.
52594         Borrowed from libsigsegv.
52595
52596         c-stack: work around Irix sigaltstack bug
52597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52598         whether sigaltstack uses wrong end of stack_t (copied in part from
52599         libsigsegv).
52600         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52601         Irix bug, without requiring an over-allocation.
52602         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52603         bug.
52604
52605         fopen: document mingw bug on directories
52606         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52607         not allowing a stream visiting a directory, even though reading
52608         from such a stream is not portable.
52609
52610 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52611
52612         * lib/poll.c: Rewrite.
52613         * modules/poll: Depend on alloca.
52614
52615 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52616
52617         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52618         instead define prototypes for a full set of wrappers.  Ensure
52619         that Cygwin does not use the compatibility code, which is only
52620         for MinGW.
52621         * lib/winsock.c: New.
52622         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52623         * modules/sys_socket: Add lib/winsock.c.
52624
52625         * modules/poll-tests: Add errno and perror.
52626         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52627
52628 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52629
52630         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52631
52632 2008-09-23  Bruno Haible  <bruno@clisp.org>
52633
52634         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52635         * doc/glibc-functions/*: Likewise.
52636
52637 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52638
52639         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52640         success.
52641
52642 2008-09-22  Eric Blake  <ebb9@byu.net>
52643             Bruno Haible  <bruno@clisp.org>
52644
52645         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52646         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52647         supply %A but mishandle pseudo-NaN.
52648         Reported by Simon Josefsson.
52649
52650 2008-09-21  Bruno Haible  <bruno@clisp.org>
52651
52652         * tests/test-lock.c (main): Tweak skip message.
52653         * tests/test-tls.c (main): Likewise.
52654
52655 2008-09-21  Bruno Haible  <bruno@clisp.org>
52656
52657         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52658         whether 'struct sigaction' has sa_sigaction here...
52659         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52660         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52661
52662 2008-09-21  Bruno Haible  <bruno@clisp.org>
52663
52664         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52665         section.
52666         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52667         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52668         the new section.
52669         (Support for obsolete systems lacking POSIX:2001): New section.
52670         (String handling <string.h>): Move strdup to the new section.
52671         Suggested by Simon Josefsson and Paolo Bonzini.
52672
52673 2008-09-21  Bruno Haible  <bruno@clisp.org>
52674
52675         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52676         exponents in %e and %g results on 'long double'. Needed for mingw's
52677         improved *printf functions.
52678         * tests/test-vasprintf-posix.c (test_function): Likewise.
52679         * tests/test-snprintf-posix.h (test_function): Likewise.
52680         * tests/test-sprintf-posix.h (test_function): Likewise.
52681         Reported by Eric Blake.
52682
52683 2008-09-21  Bruno Haible  <bruno@clisp.org>
52684
52685         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52686         * tests/test-sprintf-posix.h (test_function): Likewise.
52687
52688 2008-09-21  Bruno Haible  <bruno@clisp.org>
52689
52690         * modules/getpass (Depends-on): Add strdup-posix.
52691
52692         New module 'strdup-posix'.
52693         * modules/strdup-posix: New file.
52694         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52695         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52697         REPLACE_STRDUP.
52698         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52699         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52700         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52701         strdup-posix.
52702
52703         * modules/strdup (Depends-on): Remove malloc-posix.
52704
52705 2008-09-20  Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52708         Wildenhues.
52709
52710 2008-09-20  Bruno Haible  <bruno@clisp.org>
52711
52712         Ensure that wint_t gets defined on IRIX 5.3.
52713         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52714         * lib/wctype.in.h (wint_t): Likewise.
52715         (__wctype_wint_t): Remove type.
52716         (isw*): Use wint_t instead of __wctype_wint_t.
52717         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52718         * modules/wchar (Files): Add m4/wint_t.m4.
52719         (Makefile.am): Substitute HAVE_WINT_T.
52720         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52721         * tests/test-wctype.c: Check that wint_t is defined.
52722         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52723         * doc/posix-headers/wctype.texi: Likewise.
52724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52725
52726 2008-09-18  Bruno Haible  <bruno@clisp.org>
52727
52728         * gnulib-tool (func_exit): Update comment.
52729
52730 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52731
52732         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52733         assumes strdup exists and does not depend on strdup to return
52734         ENOMEM on out of memory conditions.
52735
52736 2008-09-18  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52739         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52740         digits for the exponent.
52741
52742 2008-09-18  Jim Meyering  <meyering@redhat.com>
52743             Bruno Haible  <bruno@clisp.org>
52744
52745         * lib/vasnprintf.c (decimal_point_char): Define also if
52746         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52747
52748 2008-09-16  Bruno Haible  <bruno@clisp.org>
52749         and Eric Blake  <ebb9@byu.net>
52750
52751         vasnprintf: support Irix 5.3
52752         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52753         that mishandle long double infinity.
52754         Reported by Tom G. Christensen.
52755
52756 2008-09-16  Bruno Haible  <bruno@clisp.org>
52757
52758         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52759         Solaris 9.
52760         * doc/glibc-functions/alphasort.texi: Likewise.
52761         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52762
52763 2008-09-16  Jim Meyering  <meyering@redhat.com>
52764
52765         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52766         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52767         a umask modification leak out of a subshell.  Otherwise, the
52768         opensolaris /bin/sh would be accepted and thus cause unwarranted
52769         failures in the coreutils test suite.
52770
52771 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52772
52773         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52774         to succeed.
52775
52776 2008-09-16  Jim Meyering  <meyering@redhat.com>
52777
52778         avoid spurious test failure when library is built without ACL support
52779         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52780         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52781         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52782         * tests/test-copy-acl.sh: Likewise.
52783
52784 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52785
52786         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52787         based on character occurrence counts.
52788
52789 2008-09-15  Eric Blake  <ebb9@byu.net>
52790
52791         tests: avoid some compiler warnings
52792         * tests/test-memchr.c (main): Pass NULL indirectly.
52793         * tests/test-closein.c (main): Avoid unused variable.
52794
52795 2008-09-15  Bruno Haible  <bruno@clisp.org>
52796
52797         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52798         are missing on OpenBSD 4.0 individually.
52799         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52800
52801 2008-09-15  Bruno Haible  <bruno@clisp.org>
52802
52803         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52804         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52805         * doc/posix-functions/perror.texi: Likewise.
52806         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52807         is missing.
52808         Reported by Eric Blake.
52809
52810         * lib/errno.in.h: Use replacement values >= 2000.
52811         Reported by Eric Blake.
52812
52813 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52814
52815         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52816         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52817         limit.
52818         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52819         compareseq was aborted.
52820
52821 2008-09-14  Bruno Haible  <bruno@clisp.org>
52822
52823         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52824         yvec_edit_count.
52825         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52826         (fstrcmp_bounded): Simplify result computation accordingly.
52827
52828 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52829
52830         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52831         (fstrcmp): Define in terms of fstrcmp_bounded.
52832         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52833         lower_bound argument.
52834         Return quickly if the result is certainly < lower_bound.
52835         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52836
52837 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52838
52839         * lib/diffseq.h (EARLY_ABORT): New macro.
52840         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52841         evaluates to true.
52842
52843 2008-09-14  Bruno Haible  <bruno@clisp.org>
52844
52845         * modules/perror-tests: New file.
52846         * tests/test-perror.sh: New file.
52847         * tests/test-perror.c: New file.
52848
52849         New module 'perror'.
52850         * lib/stdio.in.h (perror): New declaration.
52851         * lib/perror.c: New file.
52852         * m4/perror.m4: New file.
52853         * modules/perror: New file.
52854         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52855         * doc/posix-functions/perror.texi: Mention the perror module.
52856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52857         REPLACE_PERROR.
52858         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52859         REPLACE_PERROR.
52860
52861 2008-09-14  Bruno Haible  <bruno@clisp.org>
52862
52863         * modules/stdio (Makefile.am): Reorder to match the order in
52864         lib/stdio.in.h.
52865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52866
52867 2008-09-13  Bruno Haible  <bruno@clisp.org>
52868
52869         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52870
52871 2008-09-13  Bruno Haible  <bruno@clisp.org>
52872
52873         Extend strerror to cover the added errno values.
52874         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52875         (rpl_strerror): Provide error messages for the added errno values and
52876         for the WSA* values.
52877         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52878         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52879         strerror.
52880         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52881         * modules/strerror (Depends-on): Add errno.
52882         * doc/posix-functions/strerror.texi: Document the change.
52883         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52884         and EOVERFLOW.
52885
52886 2008-09-13  Bruno Haible  <bruno@clisp.org>
52887
52888         * modules/EOVERFLOW: Remove file.
52889         * m4/eoverflow.m4: Remove file.
52890         * modules/EOVERFLOW-tests: Remove file.
52891         * tests/test-EOVERFLOW.c: Remove file.
52892         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52893         * modules/ftell (Depends-on): Likewise.
52894         * modules/getdelim (Depends-on): Likewise.
52895         * modules/getugroups (Depends-on): Likewise.
52896         * modules/poll (Depends-on): Likewise.
52897         * modules/snprintf (Depends-on): Likewise.
52898         * modules/sprintf-posix (Depends-on): Likewise.
52899         * modules/vasnprintf (Depends-on): Likewise.
52900         * modules/vasprintf (Depends-on): Likewise.
52901         * modules/vfprintf-posix (Depends-on): Likewise.
52902         * modules/vsnprintf (Depends-on): Likewise.
52903         * modules/vsprintf-posix (Depends-on): Likewise.
52904         * modules/xvasprintf (Depends-on): Likewise.
52905         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52906         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52907         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52908         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52909         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52910         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52911         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52912         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52913         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52914         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52915         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52916         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52917         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52918         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52919         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52920         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52921         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52922         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52923         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52924         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52925         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52926         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52927         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52928         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52929         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52930         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52931         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52932         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52933         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52934         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52935         * MODULES.html.sh: Remove EOVERFLOW.
52936         * NEWS: Mention the change.
52937
52938 2008-09-13  Bruno Haible  <bruno@clisp.org>
52939
52940         * modules/errno-tests: New file.
52941         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52942
52943         * lib/errno.in.h: New file.
52944         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52945         * modules/errno: New file.
52946         * doc/posix-headers/errno.texi: Update documentation.
52947         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52948
52949 2008-09-13  Bruno Haible  <bruno@clisp.org>
52950
52951         * tests/test-poll.c: Use #if for native Windows, rather than testing
52952         __MSVCRT__.
52953
52954 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52955             Bruno Haible  <bruno@clisp.org>
52956
52957         * lib/glob.c: Don't include <pwd.h> on native Windows.
52958         (WINDOWS32): New macro.
52959         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52960
52961 2008-09-13  Bruno Haible  <bruno@clisp.org>
52962
52963         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52964         (ETIMEDOUT): Remove macro.
52965         (glthread_cond_timedwait_multithreaded): New declaration.
52966         (glthread_cond_timedwait): Use it.
52967         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52968         (glthread_cond_timedwait_multithreaded): New function.
52969
52970 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52971
52972         * modules/poll-tests: Do not check for io.h.
52973         * tests/test-poll.c: Check for __MSVCRT__ instead.
52974
52975 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52976
52977         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52978         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52979         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52980
52981 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52982
52983         * modules/poll-tests: New.
52984         * tests/test-poll.c: New.
52985
52986 2008-09-12  Eric Blake  <ebb9@byu.net>
52987
52988         frexp: test for NetBSD failure on -0.0
52989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52990         not all, bugs from NetBSD 3.0 have been fixed.
52991         * doc/posix-functions/frexp.texi (frexp): Document bug.
52992         Reported by Thomas Klausner.
52993
52994         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52995         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52996         literal -0.0.
52997         Reported by Jonathan C. Patschke <jp@centtech.com>.
52998
52999 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53000
53001         * lib/glthread/cond.h: Use dummy implementation also if
53002         USE_WIN32_THREADS.
53003
53004 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53005
53006         * modules/fnmatch-posix (License): Change to LGPLv2+.
53007         * modules/fnmatch-gnu (License): Likewise.
53008
53009 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53010
53011         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53012
53013 2008-09-11  Jim Meyering  <meyering@redhat.com>
53014
53015         * users.txt: Add gtk-vnc.
53016
53017 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53018
53019         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53020         rotate amounts.
53021
53022         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53023         required for 16-bit and 8-bit rotates.
53024         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53025         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53026         UINT8_MAX instead of hard-coded constants.
53027         Suggested by Paul Eggert.
53028
53029 2008-09-07  Bruno Haible  <bruno@clisp.org>
53030
53031         * tests/test-striconveh.c (main): Check behaviour when converting from
53032         UTF-7.
53033
53034         Make striconveh work better with stateful encodings.
53035         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53036         that iconv does not increment the inptr when returning -1/EINVAL.
53037
53038 2008-09-07  Bruno Haible  <bruno@clisp.org>
53039
53040         * build-aux/config.rpath: Update according to libtool-2.2.6.
53041         * build-aux/config.libpath: Likewise.
53042
53043 2008-09-06  Bruno Haible  <bruno@clisp.org>
53044
53045         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53046         * lib/freadptr.c (freadptr): Likewise.
53047         * lib/freadseek.c (freadptrinc): Likewise.
53048         Reported by Simon Josefsson.
53049
53050 2008-09-06  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/freadptr (License): Change to LGPLv2+.
53053         * modules/freadseek (License): Likewise.
53054         Suggested by Eric Blake.
53055
53056         * modules/memchr2 (License): Change to LGPLv2+.
53057         Approved by Eric Blake.
53058
53059 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53060             Bruno Haible  <bruno@clisp.org>
53061
53062         Make gnulib-tool work with native 'sed' on AIX.
53063         * gnulib-tool (sed_noop): New variable.
53064         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53065         func_add_or_update, func_create_testdir): Use it to initialize sed
53066         script variables.
53067         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53068
53069 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53070             Bruno Haible  <bruno@clisp.org>
53071
53072         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53073         also works after #include directives.
53074
53075 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53076
53077         getdate.y: reject an out-of-range timezone value
53078         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53079         the range [-24...+24].  When specified with only one or two digits,
53080         * tests/test-getdate.c: Tests for the fix.
53081         * doc/getdate.texi: Document this change.
53082
53083 2008-09-03  Bruno Haible  <bruno@clisp.org>
53084
53085         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53086
53087 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53088
53089         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53090         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53091         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53092         Blake <ebb9@byu.net>.
53093
53094         * tests/test-bitrotate.c: Add more test vectors.
53095
53096 2008-09-02  Eric Blake  <ebb9@byu.net>
53097
53098         vasnprintf-posix: handle large precision via %.*d
53099         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53100         when handling it ourselves.
53101         * tests/test-vasnprintf-posix.c (test_function): Add test.
53102         * tests/test-snprintf-posix.h (test_function): Likewise.
53103         * tests/test-sprintf-posix.h (test_function): Likewise.
53104         * tests/test-vasprintf-posix.c (test_function): Likewise.
53105         Reported by Alain Guibert.
53106
53107 2008-09-01  Eric Blake  <ebb9@byu.net>
53108
53109         c-stack: make configure-time check more robust
53110         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53111         successful sigaction call.
53112         Reported by Tom G. Christensen.
53113
53114 2008-09-01  Bruno Haible  <bruno@clisp.org>
53115
53116         New module 'findprog-lgpl'.
53117         * modules/findprog-lgpl: New file.
53118         * lib/findprog-lgpl.c: New file.
53119         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53120         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53121         to decide whether to use strdup or xstrdup, concatenated_filename or
53122         xconcatenated_filename.
53123
53124 2008-09-01  Bruno Haible  <bruno@clisp.org>
53125
53126         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53127         'xconcat-filename' (GPL).
53128         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53129         (License): Change to LGPLv2+.
53130         * modules/xconcat-filename: New file.
53131         * lib/concat-filename.h (concatenated_filename): Change specification.
53132         (xconcatenated_filename): New declaration.
53133         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53134         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53135         memory situations.
53136         * lib/xconcat-filename.c: New file.
53137         * NEWS: Mention the change.
53138         * lib/findprog.c: Include concat-filename.h, not filename.h.
53139         (find_in_path): Use xconcatenated_filename instead of
53140         concatenated_filename.
53141         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53142         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53143         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53144         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53145         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53146         instead of concatenated_filename.
53147         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53148         (execute_java_class): Use xconcatenated_filename instead of
53149         concatenated_filename.
53150         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53151         * modules/javacomp (Depends-on): Likewise.
53152         * modules/javaexec (Depends-on): Likewise.
53153
53154 2008-09-01  Bruno Haible  <bruno@clisp.org>
53155
53156         Split module 'filename' into 'filename' and 'concat-filename'.
53157         * modules/filename: Keep only lib/filename.h.
53158         (License): Change to LGPLv2+.
53159         * modules/concat-filename: New file, extracted from modules/filename.
53160         * lib/filename.h (concatenated_filename): Remove declaration.
53161         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53162         * lib/concat-filename.c: Include concat-filename.h.
53163         * NEWS: Mention the change.
53164
53165 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53166
53167         * lib/bitrotate.h (rotl8, rotr8): Add.
53168
53169         * modules/bitrotate (configure.ac): Need
53170         AC_REQUIRE([AC_C_INLINE]).
53171         (Description): Mention stdint.h.  Reported by Bruno Haible
53172         <bruno@clisp.org>.
53173
53174         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53175         Paolo Bonzini <bonzini@gnu.org>.
53176
53177 2008-08-31  Bruno Haible  <bruno@clisp.org>
53178
53179         Assume Solaris specific bi-arch conventions on Solaris systems.
53180         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53181         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53182         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53183         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53184         like acl_libdirstem.
53185         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53186         acl_libdirstem.
53187         * NEWS: Mention the change.
53188         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53189
53190 2008-08-31  Jim Meyering  <meyering@redhat.com>
53191
53192         * lib/strftime.h: Add comments describing the two added arguments.
53193
53194         remove duplicate #include directives
53195         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53196         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53197
53198 2008-08-31  Bruno Haible  <bruno@clisp.org>
53199
53200         New module 'sigpipe-die'.
53201         * modules/sigpipe-die: New file.
53202         * lib/sigpipe-die.h: New file.
53203         * lib/sigpipe-die.c: New file.
53204         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53205
53206 2008-08-31  Bruno Haible  <bruno@clisp.org>
53207
53208         Don't override previously installed signal handlers.
53209         * lib/fatal-signal.c (saved_sigactions): New variable.
53210         (uninstall_handlers): Reset the signal to the saved handler, not
53211         to SIG_DFL (except when ignored).
53212         (install_handlers): Save the previous handlers.
53213
53214 2008-08-30  Bruno Haible  <bruno@clisp.org>
53215
53216         * gnulib-tool (func_reset_sigpipe): New function.
53217         (func_get_automake_snippet, func_modules_transitive_closure,
53218         func_import): Invoke it before a join command that reads from stdin,
53219         to avoid "echo: write error: Broken pipe" error messages on stderr.
53220         Reported by Sam Steingold <sds@gnu.org>.
53221
53222 2008-08-30  Bruno Haible  <bruno@clisp.org>
53223
53224         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53225         Code copied from m4/open.m4.
53226         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53227         access and the filename ends in a slash. Code copied from lib/open.c.
53228         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53229         * tests/test-fopen.c (main): Check against bug with trailing slash.
53230
53231 2008-08-29  Bruno Haible  <bruno@clisp.org>
53232
53233         Avoid some "gcc -pedantic" warnings.
53234         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53235         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53236         * lib/dirent.in.h: Likewise.
53237         * lib/fcntl.in.h: Likewise.
53238         * lib/float.in.h: Likewise.
53239         * lib/iconv.in.h: Likewise.
53240         * lib/inttypes.in.h: Likewise.
53241         * lib/locale.in.h: Likewise.
53242         * lib/math.in.h: Likewise.
53243         * lib/netinet_in.in.h: Likewise.
53244         * lib/search.in.h: Likewise.
53245         * lib/signal.in.h: Likewise.
53246         * lib/stdarg.in.h: Likewise.
53247         * lib/stdint.in.h: Likewise.
53248         * lib/stdio.in.h: Likewise.
53249         * lib/stdlib.in.h: Likewise.
53250         * lib/string.in.h: Likewise.
53251         * lib/strings.in.h: Likewise.
53252         * lib/sys_select.in.h: Likewise.
53253         * lib/sys_socket.in.h: Likewise.
53254         * lib/sys_stat.in.h: Likewise.
53255         * lib/sys_time.in.h: Likewise.
53256         * lib/sysexits.in.h: Likewise.
53257         * lib/time.in.h: Likewise.
53258         * lib/unistd.in.h: Likewise.
53259         * lib/wchar.in.h: Likewise.
53260         * lib/wctype.in.h: Likewise.
53261         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53262         * modules/fchdir (Makefile.am): Likewise.
53263         * modules/fcntl (Makefile.am): Likewise.
53264         * modules/float (Makefile.am): Likewise.
53265         * modules/iconv_open (Makefile.am): Likewise.
53266         * modules/inttypes (Makefile.am): Likewise.
53267         * modules/locale (Makefile.am): Likewise.
53268         * modules/math (Makefile.am): Likewise.
53269         * modules/netinet_in (Makefile.am): Likewise.
53270         * modules/search (Makefile.am): Likewise.
53271         * modules/signal (Makefile.am): Likewise.
53272         * modules/stdarg (Makefile.am): Likewise.
53273         * modules/stdint (Makefile.am): Likewise.
53274         * modules/stdio (Makefile.am): Likewise.
53275         * modules/stdlib (Makefile.am): Likewise.
53276         * modules/string (Makefile.am): Likewise.
53277         * modules/strings (Makefile.am): Likewise.
53278         * modules/sys_select (Makefile.am): Likewise.
53279         * modules/sys_socket (Makefile.am): Likewise.
53280         * modules/sys_stat (Makefile.am): Likewise.
53281         * modules/sys_time (Makefile.am): Likewise.
53282         * modules/sysexits (Makefile.am): Likewise.
53283         * modules/time (Makefile.am): Likewise.
53284         * modules/unistd (Makefile.am): Likewise.
53285         * modules/wchar (Makefile.am): Likewise.
53286         * modules/wctype (Makefile.am): Likewise.
53287         Reported by Reuben Thomas <rrt@sc3d.org>.
53288
53289 2008-08-29  Bruno Haible  <bruno@clisp.org>
53290
53291         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53292         any more.
53293
53294 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53295
53296         * MODULES.html.sh (Misc): Add bitrotate.
53297
53298         * modules/bitrotate: New file.
53299
53300         * lib/bitrotate.h: New file.
53301
53302         * modules/bitrotate-tests: New file.
53303
53304         * tests/test-bitrotate.c: New file.
53305
53306         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53307         on the bitrotate module.
53308
53309         * lib/arctwo.c: Use new bitrotate module.
53310
53311 2008-08-29  Jim Meyering  <meyering@redhat.com>
53312
53313         bootstrap: merge changes from coreutils
53314         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53315         of copied files.  Remove a kludge, now that this is fixed.
53316         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53317         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53318         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53319
53320 2008-08-29  Bruno Haible  <bruno@clisp.org>
53321
53322         * MODULES.html.sh: Remove --cvs-urls option.
53323
53324 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53325
53326         maint.mk: adjust to file name change
53327         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53328
53329 2008-08-28  Jim Meyering  <meyering@redhat.com>
53330
53331         * modules/getndelim2 (License): Relicense to LGPLv2+.
53332         Approved by Richard Stallman for the version of 1995, and by
53333         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53334
53335 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53336
53337         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53338         dummy if one is not available.  Do not touch them if
53339         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53340         (getc_maybe_unlocked): New.
53341         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53342
53343 2008-08-26  Eric Blake  <ebb9@byu.net>
53344
53345         doc/INSTALL: resync from autoconf
53346         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53347         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53348         moving...
53349         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53350         * INSTALL: Regenerate.
53351         * INSTALL.ISO: New file.
53352         * INSTALL.UTF-8: Likewise.
53353
53354 2008-08-26  Jim Meyering  <meyering@redhat.com>
53355
53356         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53357         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53358         these definitions conditional, so that they may be overridden, too.
53359
53360 2008-08-26  Bruno Haible  <bruno@clisp.org>
53361
53362         Generate INSTALL file variants with prettier quotes.
53363         * doc/Makefile (INSTALL_PRELUDE): New macro.
53364         (INSTALL): Use it.
53365         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53366
53367 2008-08-26  Bruno Haible  <bruno@clisp.org>
53368
53369         Run makeinfo in an English locale.
53370         * doc/Makefile (MAKEINFO): New variable.
53371
53372 2008-08-26  Bruno Haible  <bruno@clisp.org>
53373
53374         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53375         Suggested by Eric Blake.
53376
53377 2008-08-25  Bruno Haible  <bruno@clisp.org>
53378
53379         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53380
53381 2008-08-25  Eric Blake  <ebb9@byu.net>
53382
53383         c-stack: test that stack overflow can be caught
53384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53385         that platform allows handling stack overflow; at least OS/2 EMX
53386         has sigaltstack, but crashes before transferring control to
53387         handler on stack overflow.
53388         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53389         check for HAVE_STACK_OVERFLOW_HANDLING.
53390         Reported by Elbert Pol.
53391
53392 2008-08-25  Bruno Haible  <bruno@clisp.org>
53393
53394         * doc/posix-functions/strftime.texi: Fix description of strftime
53395         module.
53396
53397 2008-08-24  Bruno Haible  <bruno@clisp.org>
53398
53399         * tests/uniwidth/test-uc_width2.c: New file.
53400         * tests/uniwidth/test-uc_width2.sh: New file.
53401         * modules/uniwidth/width-tests (Files): Add the new files.
53402         (TESTS): Add uniwidth/test-uc_width2.sh.
53403         (TESTS_ENVIRONMENT): New variable.
53404         (check_PROGRAMS): Add test-uc_width2.
53405         (test_uc_width2_SOURCES): New variable.
53406
53407         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53408         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53409         not 0x00AB.
53410         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53411
53412 2008-08-22  Eric Blake  <ebb9@byu.net>
53413
53414         test-lock, test-tls: mention why a test is skipped
53415         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53416         skipped.
53417         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53418
53419         count-one-bits: relax license
53420         * modules/count-one-bits (License): Relicense to LGPLv2+.
53421         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53422
53423 2008-08-22  Andreas Schwab  <schwab@suse.de>
53424
53425         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53426         Remove spurious space in assignment.
53427
53428 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53429
53430         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53431         Paul Eggert <eggert@CS.UCLA.EDU>.
53432
53433 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53434
53435         * modules/gettext: Add m4/threadlib.m4.
53436
53437 2008-08-19  Eric Blake  <ebb9@byu.net>
53438
53439         test-c-stack: fix compilation failure on FreeBSD 5.0
53440         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53441         headers before <sys/resource.h>.
53442         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53443         the bug.
53444         Reported by Nelson H. F. Beebe.
53445
53446         strverscmp: migrate from "strverscmp.h" to <string.h>
53447         * modules/string (Makefile.am): Add new hooks.
53448         * modules/strverscmp (Files): Remove strverscmp.h.
53449         (Depends-on): Add string.
53450         (configure.ac): Add indicator.
53451         (Include): Mention new header.
53452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53453         defaults.
53454         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53455         results.
53456         * lib/strverscmp.h: Delete.
53457         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53458         * tests/test-strverscmp.c (includes): Adjust client.
53459         * lib/check-version.c (includes): Likewise.
53460         * NEWS: Document the change.
53461
53462         strverscmp: add unit test
53463         * modules/strverscmp-tests: New file.
53464         * tests/test-strverscmp.c: Likewise.
53465
53466 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53467
53468         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53469         regarding Windows crypto stuff, from Mono.
53470
53471 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53472
53473         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53474         if present, for intel RND.  Return error on failures.
53475
53476 2008-08-18  Ben Pfaff  <blp@gnu.org>
53477
53478         gitlog-to-changelog: give better diagnostic for failed pipe-open
53479         * build-aux/gitlog-to-changelog: Improve error message: suggest
53480         that the version of Git may be too old.
53481
53482 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53483
53484         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53485         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53486
53487 2008-08-18  Bruno Haible  <bruno@clisp.org>
53488
53489         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53490         pthread_in_use().
53491
53492 2008-08-18  Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/glthread/threadlib.c: Include <pthread.h>.
53495
53496 2008-08-18  Bruno Haible  <bruno@clisp.org>
53497
53498         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53499         glthread_recursive_lock_* macros.
53500         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53501         Fix syntax error.
53502
53503 2008-08-18  Bruno Haible  <bruno@clisp.org>
53504
53505         * lib/glthread/thread.c: Avoid forcing a context switch right after
53506         thread creation.
53507
53508 2008-08-17  Bruno Haible  <bruno@clisp.org>
53509
53510         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53511         * lib/glthread/thread.h: Provide Win32 specific implementation.
53512         * modules/thread (Files): Add lib/glthread/thread.c.
53513         (Depends-on): Add lock.
53514         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53515
53516 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53517
53518         New module 'yield'.
53519         * modules/yield: New file.
53520         * lib/glthread/yield.h: New file.
53521         * m4/yield.m4: New file.
53522         * MODULES.html.sh (Multithreading): Add yield.
53523
53524 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53525
53526         New module 'thread'.
53527         * modules/thread: New file.
53528         * lib/glthread/thread.h: New file.
53529         * m4/thread.m4: New file.
53530         * MODULES.html.sh (Multithreading): Add thread.
53531
53532 2008-08-17  Bruno Haible  <bruno@clisp.org>
53533
53534         * lib/glthread/lock.h: Include <stdlib.h> always.
53535         * lib/glthread/tls.h: Likewise.
53536         * lib/glthread/cond.h: Likewise.
53537
53538 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53539
53540         New module 'cond'.
53541         * modules/cond: New file.
53542         * lib/glthread/cond.h: New file.
53543         * lib/glthread/cond.c: New file.
53544         * m4/cond.m4: New file.
53545         * MODULES.html.sh (Multithreading): Add cond.
53546
53547 2008-08-16  Eric Blake  <ebb9@byu.net>
53548
53549         c-stack: fix regression on Irix 5.3 from 2008-06-21
53550         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53551         sa_sigaction...
53552         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53553         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53554         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53555         * modules/signal (Makefile.am): Use the value.
53556         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53557         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53558         * doc/posix-headers/signal.texi (signal.h): Document this
53559         portability issue.
53560         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53561         Reported by Tom G. Christensen.
53562
53563 2008-08-17  Bruno Haible  <bruno@clisp.org>
53564
53565         New module 'threadlib'.
53566         * modules/threadlib: New file.
53567         * lib/glthread/threadlib.c: New file, extracted from
53568         lib/glthread/lock.c.
53569         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53570         functions.
53571         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53572         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53573         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53574         macros.
53575         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53576         (gl_DISABLE_THREADS): Remove macro.
53577         * modules/lock (Files): Remove build-aux/config.rpath.
53578         (Depends-on): Remove havelib. Add threadlib.
53579         (configure.ac-early): Remove section.
53580         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53581         * modules/tls (Depends-on): Remove lock. Add threadlib.
53582         (Link): New section, copied from threadlib.
53583         * MODULES.html.sh (Multithreading): Add threadlib.
53584
53585 2008-08-14  Bruno Haible  <bruno@clisp.org>
53586
53587         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53588         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53589         glthread_rwlock_unlock, glthread_rwlock_destroy,
53590         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53591         glthread_recursive_lock_destroy): Define as macros always.
53592         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53593         glthread_lock_lock.
53594         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53595         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53596         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53597         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53598         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53599         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53600         (glthread_recursive_lock_lock_func): Renamed from
53601         glthread_recursive_lock_lock.
53602         (glthread_recursive_lock_unlock_func): Renamed from
53603         glthread_recursive_lock_unlock.
53604         (glthread_recursive_lock_destroy_func): Renamed from
53605         glthread_recursive_lock_destroy.
53606
53607 2008-08-14  Bruno Haible  <bruno@clisp.org>
53608
53609         * lib/glthread/lock.h: Renamed from lib/lock.h.
53610         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53611         * lib/glthread/tls.h: Renamed from lib/tls.h.
53612         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53613         * lib/fstrcmp.c: Update includes.
53614         * lib/strsignal.c: Update includes.
53615         * modules/lock (Files, Makefile.am): Update.
53616         (Include): Change to "glthread/lock.h".
53617         * modules/tls (Files, Makefile.am): Update.
53618         (Include): Change to "glthread/tls.h".
53619         * tests/test-lock.c: Update includes.
53620         * tests/test-tls.c: Update includes.
53621         * NEWS: Mention the renamed header files.
53622
53623 2008-08-11  Jim Meyering  <meyering@redhat.com>
53624
53625         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53626
53627 2008-08-11  Eric Blake  <ebb9@byu.net>
53628
53629         test-c-stack: avoid C99-ism
53630         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53631         before statement.
53632         Reported by Alain Guibert.
53633
53634 2008-08-10  Jim Meyering  <meyering@redhat.com>
53635
53636         ensure that return value of uinttostr et al are not ignored
53637         * lib/inttostr.h (__GNUC_PREREQ): Define.
53638         (__attribute_warn_unused_result__): Define.
53639         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53640
53641 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53642
53643         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53644         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53645
53646 2008-08-07  Jim Meyering  <meyering@redhat.com>
53647
53648         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53649
53650         * modules/mkstemp (License): Relicense under LGPLv2+.
53651         * modules/tempname (License): Likewise.
53652
53653 2008-08-06  Bruno Haible  <bruno@clisp.org>
53654
53655         * lib/poll.c (poll): Further micro-optimization.
53656
53657 2008-08-06  Jim Meyering  <meyering@redhat.com>
53658
53659         inet_pton.c: use locale-independent tolower
53660         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53661         (inet_pton6): Use c_tolower rather than tolower.
53662         * modules/inet_pton (Depends-on): Add c-ctype.
53663
53664 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53665
53666         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53667         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53668
53669 2008-08-06  Jim Meyering  <meyering@redhat.com>
53670
53671         * modules/inet_pton (License): Relicense under LGPLv2+.
53672
53673 2008-08-03  Bruno Haible  <bruno@clisp.org>
53674
53675         Additional non-aborting API for lock and tls.
53676         * lib/lock.h: Include <errno.h>.
53677         (glthread_lock_init): New macro/function.
53678         (gl_lock_init): Define as wrapper around glthread_lock_init.
53679         (glthread_lock_lock): New macro/function.
53680         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53681         (glthread_lock_unlock): New macro/function.
53682         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53683         (glthread_lock_destroy): New macro/function.
53684         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53685         (glthread_rwlock_init): New macro/function.
53686         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53687         (glthread_rwlock_rdlock): New macro/function.
53688         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53689         (glthread_rwlock_wrlock): New macro/function.
53690         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53691         (glthread_rwlock_unlock): New macro/function.
53692         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53693         (glthread_rwlock_destroy): New macro/function.
53694         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53695         (glthread_recursive_lock_init): New macro/function.
53696         (gl_recursive_lock_init): Define as wrapper around
53697         glthread_recursive_lock_init.
53698         (glthread_recursive_lock_lock): New macro/function.
53699         (gl_recursive_lock_lock): Define as wrapper around
53700         glthread_recursive_lock_lock.
53701         (glthread_recursive_lock_unlock): New macro/function.
53702         (gl_recursive_lock_unlock): Define as wrapper around
53703         glthread_recursive_lock_unlock.
53704         (glthread_recursive_lock_destroy): New macro/function.
53705         (gl_recursive_lock_destroy): Define as wrapper around
53706         glthread_recursive_lock_destroy.
53707         (glthread_once): New macro/function.
53708         (gl_once): Define as wrapper around glthread_once.
53709         Update function declarations.
53710         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53711         glthread_rwlock_init. Return error code.
53712         (glthread_rwlock_rdlock_multithreaded): Renamed from
53713         glthread_rwlock_rdlock. Return error code.
53714         (glthread_rwlock_wrlock_multithreaded): Renamed from
53715         glthread_rwlock_wrlock. Return error code.
53716         (glthread_rwlock_unlock_multithreaded): Renamed from
53717         glthread_rwlock_unlock. Return error code.
53718         (glthread_rwlock_destroy_multithreaded): Renamed from
53719         glthread_rwlock_destroy. Return error code.
53720         (glthread_recursive_lock_init_multithreaded): Renamed from
53721         glthread_recursive_lock_init. Return error code.
53722         (glthread_recursive_lock_lock_multithreaded): Renamed from
53723         glthread_recursive_lock_lock. Return error code.
53724         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53725         glthread_recursive_lock_unlock. Return error code.
53726         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53727         glthread_recursive_lock_destroy. Return error code.
53728         (glthread_once_call): Make static.
53729         (glthread_once_multithreaded): Renamed from glthread_once.
53730         * lib/tls.h: Include <errno.h>.
53731         (glthread_tls_key_init): New macro/function.
53732         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53733         (glthread_tls_set): New macro/function.
53734         (gl_tls_set): Define as wrapper around glthread_tls_set.
53735         (glthread_tls_key_destroy): New macro/function.
53736         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53737         Update function declarations.
53738         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53739         glthread_tls_get.
53740         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53741
53742 2008-08-04  Eric Blake  <ebb9@byu.net>
53743
53744         gnumakefile: use space, not TAB, outside of targets
53745         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53746
53747 2008-08-02  Jim Meyering  <meyering@redhat.com>
53748
53749         getdate.y: avoid locale-dependent date parsing failure
53750         In Turkish locales, getdate would fail to recognize keywords
53751         containing a lowercase "i".  The solution is not to rely on
53752         locale-sensitive case-conversion.
53753         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53754         (lookup_word): Use c_toupper in place of toupper.
53755         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53756         Reported by Vefa Bicakci <bicave@superonline.com> in
53757         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53758         * modules/getdate (Depends-on): Add c-ctype.
53759
53760 2008-08-02  Bruno Haible  <bruno@clisp.org>
53761
53762         * gnulib-tool (func_import): When updating or creating a .gitignore
53763         file, prepend each added line with a slash, and ignore leading slashes
53764         from the existing lines.
53765         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53766
53767 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53768
53769         Portability fix for GNU make 3.79.1.
53770         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53771         versions do not understand.
53772
53773 2008-08-01  Bruno Haible  <bruno@clisp.org>
53774
53775         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53776         * tests/test-isnanf.h (zero): New variable.
53777         (main): Avoid literal -0.0f.
53778         * tests/test-isnand.h (zero): New variable.
53779         (main): Avoid literal -0.0.
53780         * tests/test-isnanl.h (zero): New variable.
53781         (main): Avoid literal -0.0L.
53782         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53783         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53784         -0.0, -0.0L.
53785         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53786         (test_signbitd): Avoid literal -0.0.
53787         (test_signbitl): Avoid literal -0.0L.
53788         * tests/test-ceilf1.c (zero): New variable.
53789         (main): Avoid literal -0.0f.
53790         * tests/test-ceill.c (zero): New variable.
53791         (main): Avoid literal -0.0L.
53792         * tests/test-floorf1.c (zero): New variable.
53793         (main): Avoid literal -0.0f.
53794         * tests/test-floorl.c (zero): New variable.
53795         (main): Avoid literal -0.0L.
53796         * tests/test-roundf1.c (zero): New variable.
53797         (main): Avoid literal -0.0f.
53798         * tests/test-round1.c (zero): New variable.
53799         (main): Avoid literal -0.0.
53800         * tests/test-roundl.c (zero): New variable.
53801         (main): Avoid literal -0.0L.
53802         * tests/test-truncf1.c (zero): New variable.
53803         (main): Avoid literal -0.0f.
53804         * tests/test-trunc1.c (zero): New variable.
53805         (main): Avoid literal -0.0.
53806         * tests/test-truncl.c (zero): New variable.
53807         (main): Avoid literal -0.0L.
53808         * tests/test-frexp.c (zero): New variable.
53809         (main): Avoid literal -0.0.
53810         * tests/test-frexpl.c (zero): New variable.
53811         (main): Avoid literal -0.0L.
53812         * tests/test-ldexpl.c (zero): New variable.
53813         (main): Avoid literal -0.0L.
53814         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53815         (zerod, zerol): New variables.
53816         (test_function): Avoid literals -0.0, -0.0L.
53817         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53818         (zerod, zerol): New variables.
53819         (test_function): Avoid literals -0.0, -0.0L.
53820         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53821         (zerod, zerol): New variables.
53822         (test_function): Avoid literals -0.0, -0.0L.
53823         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53824         (zerod, zerol): New variables.
53825         (test_function): Avoid literals -0.0, -0.0L.
53826         * tests/test-strtod.c (zero): New variable.
53827         (main): Avoid literal -0.0.
53828         Reported by Jonathan C. Patschke <jp@centtech.com>.
53829
53830 2008-07-31  Jim Meyering  <meyering@redhat.com>
53831
53832         sha256.h: correct definition of SHA224_DIGEST_SIZE
53833         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53834         Reported by Paulie Pena IV <paulie4@gmail.com>.
53835         Define as 224 / 8, rather than as a literal.
53836         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53837         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53838         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53839
53840 2008-07-31  Bruno Haible  <bruno@clisp.org>
53841
53842         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53843         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53844         Reported by Jonathan Patschke <jp@centtech.com>.
53845
53846 2008-07-31  Bruno Haible  <bruno@clisp.org>
53847
53848         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53849         Reported by Paolo Bonzini <bonzini@gnu.org>.
53850
53851 2008-07-30  Eric Blake  <ebb9@byu.net>
53852
53853         test-strtod: allow compilation without -lm
53854         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53855         Reported by Dennis Clarke <blastwave@gmail.com>.
53856
53857 2008-07-28  Jim Meyering  <meyering@redhat.com>
53858
53859         bootstrap: work also when there are no .po files in po/
53860         * build-aux/bootstrap (update_po_files): Complete the change
53861         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53862
53863 2008-07-27  Jim Meyering  <meyering@redhat.com>
53864
53865         * users.txt: Add zile.
53866
53867 2008-07-26  Ben Pfaff  <blp@gnu.org>
53868
53869         Add missing dependencies on new m4/exponent[fdl].m4 files.
53870         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53871         * modules/isnand-nolibm: Add m4/exponentd.m4.
53872         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53873         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53874         m4/isnan[fdl].m4, because the macros actually used moved.
53875         Reported by Jim Meyering.
53876
53877 2008-07-14  Ben Pfaff  <blp@gnu.org>
53878
53879         Add isinf module.
53880         * lib/isinf.c: New file.
53881         * lib/math.in.h: Define isinf macro if we have decided to replace
53882         it.
53883         * m4/isinf.m4: New file.
53884         * m4/math_h.m4: Initialize and substitute variables for isinf
53885         module.
53886         * modules/isinf: New file.
53887         * modules/isinf-tests: New file.
53888         * modules/math: Add substitutions for new module.
53889         * tests/test-isinf.c: New file.
53890         * doc/posix-functions/isinf.texi: Mention new module.
53891         * MODULES.html.sh: Mention new module.
53892
53893 2008-07-14  Ben Pfaff  <blp@gnu.org>
53894
53895         Factor out some macros for use by additional modules.
53896         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53897         exponentf.m4.
53898         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53899         exponentd.m4.
53900         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53901         file exponentl.m4.
53902         * m4/exponentf.m4: New file.
53903         * m4/exponentd.m4: New file.
53904         * m4/exponentl.m4: New file.
53905         * modules/isnanf: Use new file m4/exponentf.m4.
53906         * modules/isnand: Use new file m4/exponentd.m4.
53907         * modules/isnanl: Use new file m4/exponentl.m4.
53908
53909 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53910
53911         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53912         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53913         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53914         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53915
53916         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53917         readlink on platforms without PATH_MAX.
53918
53919 2008-07-21  Eric Blake  <ebb9@byu.net>
53920
53921         Warn, not fail, on stale version.
53922         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53923
53924         Don't allow installation with stale devel version number.
53925         * top/GNUmakefile (_is-install-target): New macro.
53926         (_curr-ver): Forbid installation with stale version number.
53927
53928 2008-07-20  Bruno Haible  <bruno@clisp.org>
53929
53930         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53931         TESTS_ENVIRONMENT.
53932         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53933
53934 2008-07-20  Bruno Haible  <bruno@clisp.org>
53935
53936         * lib/c-stack.h (c_stack_action): Add documentation.
53937         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53938
53939 2008-07-20  Bruno Haible  <bruno@clisp.org>
53940
53941         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53942         * modules/readlink (License): Likewise.
53943
53944 2008-07-17  Eric Blake  <ebb9@byu.net>
53945
53946         * modules/c-stack (Link): Fix typo.
53947
53948         Make c-stack use libsigsegv, when available.
53949         * modules/c-stack (Depends-on): Add libsigsegv.
53950         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53951         needed.
53952         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53953         (segv_handler, overflow_handler, c_stack_action)
53954         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53955         implementation when libsigsegv is available, but only when using
53956         the library is necessary.
53957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53958         comment, explaining why XSI check fails on Linux.
53959         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53960         * tests/test-c-stack2.sh: Tweak skip message.
53961         * NEWS: Document new link-time requirements.
53962
53963 2008-07-16  Eric Blake  <ebb9@byu.net>
53964
53965         c-stack: Expose false positives when not using libsigsegv.
53966         * modules/c-stack-tests (Files): Expand test.
53967         * tests/test-c-stack.c (main): Add means to conditionally trigger
53968         non-overflow SIGSEGV.
53969         * tests/test-c-stack2.sh: New file.
53970
53971 2008-07-14  Bruno Haible  <bruno@clisp.org>
53972
53973         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53974         Reported by Eric Blake.
53975
53976 2008-07-14  Sam Steingold  <sds@gnu.org>
53977             Bruno Haible  <bruno@clisp.org>
53978
53979         New module libsigsegv.
53980         * modules/libsigsegv: New file.
53981         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53982         modifications.
53983         * MODULES.html.sh (Signal handling): New section.
53984
53985 2008-07-14  Bruno Haible  <bruno@clisp.org>
53986
53987         * modules/unictype/ctype-* (Description): Add the word "function".
53988         Improves the resulting doc in MODULES.html.
53989
53990 2008-07-12  Ben Pfaff  <blp@gnu.org>
53991
53992         Add longlong module.
53993         * modules/longlong: New file.
53994
53995 2008-07-12  Bruno Haible  <bruno@clisp.org>
53996
53997         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53998         to empty.
53999
54000 2008-07-10  Ben Pfaff  <blp@gnu.org>
54001
54002         Add isnan module.
54003         * doc/posix-functions/isnan.texi: Mention new module.
54004         * lib/math.in.h: Define isnan macro if we have decided to replace
54005         it.
54006         * m4/isnan.m4: New file.
54007         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54008         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54009         also.
54010         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54011         redundancy.
54012         * m4/math_h.m4: Initialize and substitute variables for isnan
54013         module.
54014         * modules/isnan: New file.
54015         * modules/isnan-tests: New file.
54016         * modules/math: Add substitutions for new module.
54017         * tests/test-isnan.c: New file.
54018         * MODULES.html.sh: Mention new module.
54019
54020 2008-07-10  Ben Pfaff  <blp@gnu.org>
54021
54022         Add isnanf module.
54023         * lib/isnanf.m4: New file.
54024         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54025         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54026         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54027         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54028         * modules/isnanf: New file.
54029         * modules/isnanf-tests: New file.
54030         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54031         files.
54032         * tests/test-isnanf-nolibm.c: factored most of its contents into
54033         new file tests/test-isnanf.h.
54034         * tests/test-isnanf.h: New file.
54035         * tests/test-isnanf.c: New file.
54036         * MODULES.html.sh: Mention new module.
54037         * doc/glibc-functions/isnanf.texi: Mention new module.
54038
54039 2008-07-10  Ben Pfaff  <blp@gnu.org>
54040
54041         Add isnand module.
54042         * lib/isnand.h: New file.
54043         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54044         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54045         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54046         functionality also.
54047         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54048         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54049         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54050         * modules/isnand: New file.
54051         * modules/isnand-tests: New file.
54052         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54053         files.
54054         * tests/test-isnand-nolibm.c: factored most of its contents into
54055         new file tests/test-isnand.h.
54056         * tests/test-isnand.h: New file.
54057         * tests/test-isnand.c: New file.
54058         * MODULES.html.sh: Mention new module.
54059
54060 2008-07-10  Ben Pfaff  <blp@gnu.org>
54061
54062         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54063         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54064         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54065         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54066         * modules/isnanf-nolibm: Update references to renamed files.
54067         * modules/isnand-nolibm: Likewise.
54068         * modules/isnanf-nolibm-tests: Likewise.
54069         * modules/isnand-nolibm-tests: Likewise.
54070         * lib/frexp.c: Likewise.
54071         * lib/isfinite.c: Likewise.
54072         * lib/signbitd.c: Likewise.
54073         * lib/signbitf.c: Likewise.
54074         * lib/vasnprintf.c: Likewise.
54075         * tests/test-ceilf1.c: Likewise.
54076         * tests/test-ceilf2.c: Likewise.
54077         * tests/test-floorf1.c: Likewise.
54078         * tests/test-floorf2.c: Likewise.
54079         * tests/test-frexp.c: Likewise.
54080         * tests/test-round1.c: Likewise.
54081         * tests/test-round2.c: Likewise.
54082         * tests/test-roundf1.c: Likewise.
54083         * tests/test-strtod.c: Likewise.
54084         * tests/test-trunc1.c: Likewise.
54085         * tests/test-trunc2.c: Likewise.
54086         * tests/test-truncf1.c: Likewise.
54087         * tests/test-truncf2.c: Likewise.
54088         * NEWS: Mention the renamed header files.
54089
54090 2008-07-11  Jim Meyering  <meyering@redhat.com>
54091
54092         vc-list-files: make the last-resort awk code more portable
54093         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54094         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54095         does not support it.
54096
54097 2008-07-10  Eric Blake  <ebb9@byu.net>
54098
54099         Work with tar's bootstrap.
54100         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54101         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54102         an m4 comment.
54103
54104 2008-07-09  Jim Meyering  <meyering@redhat.com>
54105
54106         posix-shell.m4: fix typo that made this test malfunction
54107         * m4/posix-shell.m4: Remove capitalization in variable name.
54108
54109 2008-07-08  Bruno Haible  <bruno@clisp.org>
54110
54111         * m4/onceonly.m4: Update comments.
54112         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54113
54114 2008-07-04  Jim Meyering  <meyering@redhat.com>
54115
54116         * users.txt: Add vc-dwim.
54117         (bison, coreutils): Use the gitweb URL.
54118
54119 2008-07-03  Jim Meyering  <meyering@redhat.com>
54120
54121         * users.txt: Add libffcall.  From Sam Steingold.
54122
54123 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54124
54125         getdate.y: do not ignore TZ with relative day, month or year offset
54126         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54127         relative-date-handling, since otherwise, the latter would clobber the
54128         sole output (an updated Start value) of the tz-handling block.
54129         * tests/test-getdate.c: Tests for the fix
54130
54131 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54132
54133         Recognize 'foo_LIBRARIES += libgnu.a'.
54134         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54135         makefile snippet has already specified an installation location,
54136         also using '+='.
54137
54138 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54139
54140         getdate.y: factor out common actions
54141         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54142         Use them in place of open-coded actions.
54143
54144 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54145
54146         Add self-test for getdate module.
54147         * modules/getdate-tests: New file.
54148         * tests/test-getdate.c: New file.
54149
54150 2008-06-29  Bruno Haible  <bruno@clisp.org>
54151
54152         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54153         .gitignore.
54154         Reported by Sylvain Beucler <beuc@beuc.net>.
54155
54156 2008-06-29  Bruno Haible  <bruno@clisp.org>
54157
54158         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54159         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54160
54161 2008-06-29  Bruno Haible  <bruno@clisp.org>
54162
54163         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54164         EXTRA_DIST.
54165         Reported by Sylvain Beucler <beuc@beuc.net>.
54166
54167 2008-06-26  Jim Meyering  <meyering@redhat.com>
54168
54169         make several modules depend on the "open" module
54170         This provides slightly increased consistency when opening-for-write
54171         the name of a non-directory spelled with a trailing slash.
54172         * modules/chdir-safer: Likewise.
54173         * modules/chown: Likewise.
54174         * modules/clean-temp: Likewise.
54175         * modules/copy-file: Likewise.
54176         * modules/fchdir: Likewise.
54177         * modules/fcntl-safer: Likewise.
54178         * modules/pipe: Likewise.
54179         * modules/utime: Likewise.
54180         Prompted by Eric Blake and Bruno Haible.
54181
54182 2008-06-24  Andreas Schwab  <schwab@suse.de>
54183
54184         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54185         literals can be used as initializers for global variables.
54186
54187 2008-06-23  Eric Blake  <ebb9@byu.net>
54188
54189         Make gnulib-cache.m4 easier to diff.
54190         * gnulib-tool (func_import): Allow newlines when reading cached
54191         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54192
54193 2008-06-23  Bruno Haible  <bruno@clisp.org>
54194
54195         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54196         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54197         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54198         m4/signalblocking.m4.
54199         (gl_PREREQ_SIGACTION): Don't invoke it.
54200         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54201         gl_PREREQ_SIG_HANDLER_H.
54202         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54203         Don't check for sigaction here.
54204
54205 2008-06-23  Bruno Haible  <bruno@clisp.org>
54206
54207         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54208         (install_handlers): Don't set the SA_RESETHAND flag.
54209
54210 2008-06-23  Bruno Haible  <bruno@clisp.org>
54211
54212         * m4/sigaction.m4: Comment fixes.
54213         * lib/signal.in.h: Likewise.
54214
54215 2008-06-23  Eric Blake  <ebb9@byu.net>
54216
54217         Fix typo.
54218         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54219
54220         Avoid SA_ namespace.
54221         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54222         Reported by Ralf Wildenhues.
54223
54224         Avoid test failure due to SA_RESTORER.
54225         * tests/test-sigaction.c (SA_MASK): New macro.
54226         (main): Avoid failing due to extension flags being set.
54227         Reported by Jim Meyering.
54228
54229         Revert use of sig-handler.h in sigprocmask.c.
54230         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54231         it requires the existence of struct sigaction.
54232         * lib/sigprocmask.c (handler_t): Restore typedef.
54233         (rpl_signal, old_handlers): Use local type.
54234
54235 2008-06-22  Bruno Haible  <bruno@clisp.org>
54236
54237         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54238         conditionally.
54239         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54240
54241 2008-06-22  Bruno Haible  <bruno@clisp.org>
54242
54243         * doc/posix-functions/siginterrupt.texi: Move note.
54244
54245         * lib/signal.in.h (SA_RESTART): New macro.
54246         * lib/sigaction.c: Update comment.
54247
54248         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54249
54250         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54251         (gl_PREREQ_SIGPROCMASK): Invoke it.
54252         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54253
54254         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54255
54256         * lib/sigprocmask.c: Update a comment.
54257
54258 2008-06-21  Eric Blake  <ebb9@byu.net>
54259
54260         Use sigaction module rather than signal().
54261         * modules/c-stack (Depends-on): Add sigaction.
54262         * modules/fatal-signal (Depends-on): Likewise.
54263         * modules/nanosleep (Depends-on): Likewise.
54264         * modules/sigprocmask (Files): Add sig-handler.h.
54265         * modules/sigaction (Files): Likewise.
54266         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54267         Eggert.
54268         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54269         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54270         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54271         (init_fatal_signals): Likewise.
54272         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54273         (siginterrupt): Delete fallback.
54274         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54275         instead.
54276         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54277         siginterrupt.
54278
54279         New module sigaction, for mingw.
54280         * modules/sigaction: New module...
54281         * modules/sigaction-tests: ...and its test.
54282         * m4/sigaction.m4: New file.
54283         * lib/sigaction.c: Likewise.
54284         * tests/test-sigaction.c: Likewise.
54285         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54286         * modules/signal (Makefile.am): Likewise.
54287         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54288         needed.
54289         * doc/posix-headers/signal.texi (signal.h): Mention provided
54290         types.
54291         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54292         that sigaction is preferable.
54293         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54294         module.
54295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54296         sigaction.
54297
54298         Improve robustness of sigprocmask by overriding signal.
54299         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54300         is in use.
54301         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54302         (SIGKILL, SIGSTOP): Provide fallbacks.
54303         (rpl_signal): Implement.
54304         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54305         signal can be called inside handlers.
54306
54307         Fix nanosleep module on mingw.
54308         * modules/nanosleep (Depends-on): Add sys_select.
54309         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54310
54311         Fix licensing of sigprocmask.
54312         * modules/raise (License): Relicense as LGPL.
54313
54314 2008-06-21  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54317         result if it contains question marks.
54318         Reported by Michael Geng <linux@michaelgeng.de>.
54319
54320 2008-06-19  Bruno Haible  <bruno@clisp.org>
54321
54322         Fix CVS-ism.
54323         * doc/gnulib.texi: Include updated-stamp.texi.
54324         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54325         (updated-stamp.texi): New rule.
54326         (gnulib.info): Depend on it.
54327         * doc/.gitignore: Add updated-stamp.texi.
54328         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54329
54330 2008-06-19  Bruno Haible  <bruno@clisp.org>
54331
54332         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54333         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54334
54335 2008-06-19  Eric Blake  <ebb9@byu.net>
54336
54337         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54338         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54339         Reported by Stepan Kasal.
54340
54341 2008-06-18  Bruno Haible  <bruno@clisp.org>
54342
54343         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54344         Reported by Eric Blake.
54345
54346 2008-06-18  Eric Blake  <ebb9@byu.net>
54347
54348         Work around cygwin 1.5.25 strsignal bug.
54349         * tests/test-strsignal.c: Allow for const char *.
54350         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54351
54352 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54353
54354         * users.txt: Update URL to article and add author/date
54355         information.
54356
54357 2008-06-17  Bruno Haible  <bruno@clisp.org>
54358
54359         New macro gl_DISABLE_THREADS.
54360         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54361         if the user did not pass --enable-threads or --disable-threads option.
54362         (gl_DISABLE_THREADS): New macro.
54363         Reported by Eric Blake <ebb9@byu.net>.
54364
54365 2008-06-17  Bruno Haible  <bruno@clisp.org>
54366
54367         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54368         when the macro ignores it.
54369         Based on a patch by Eric Blake <ebb9@byu.net>.
54370
54371 2008-06-17  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/tls (License): Change to LGPLv2+.
54374         Reported by Eric Blake.
54375
54376 2008-06-17  Eric Blake  <ebb9@byu.net>
54377
54378         Simplify c-stack prerequisites.
54379         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54380         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54381         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54382         check.
54383         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54384         <sys/resource.h>.
54385
54386         Move c-stack test into testsuite.
54387         * modules/c-stack-tests: New file.
54388         * lib/c-stack.c [DEBUG]: Move test program...
54389         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54390         fail test if sigaltstack is lacking.
54391         * tests/test-c-stack.sh: New driver file.
54392
54393 2008-06-16  Eric Blake  <ebb9@byu.net>
54394
54395         Use raise module consistently.
54396         * modules/fatal-signal (Depends-on): Add raise.
54397         * modules/sigprocmask (Depends-on): Likewise.
54398         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54399         * lib/sigprocmask.c (sigprocmask): Likewise.
54400         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54401         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54402
54403         Fix compliance bug in sigpending.
54404         * lib/sigprocmask.c (sigpending): Return pending array via
54405         parameter, not return value.
54406
54407 2008-06-14  Eric Blake  <ebb9@byu.net>
54408
54409         Improve obstack-printf test code.
54410         * tests/test-obstack-printf.c (test_function): Fix comment, and
54411         simplify usage of obstack_* in macros.  Add a test for coverage.
54412         Reported by Bruno Haible.
54413
54414 2008-06-14  Bruno Haible  <bruno@clisp.org>
54415
54416         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54417         array size as a constant, not as a const variable.
54418         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54419         AC_USE_SYSTEM_EXTENSIONS.
54420         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54421         Test whether the obstack_printf function actually exists.
54422         * modules/obstack-printf (Depends-on): Add extensions.
54423         (Include): Remove obstack.h.
54424         * modules/obstack-printf-posix (Depends-on): Add extensions.
54425         (Include): Remove obstack.h.
54426
54427 2008-06-13  Eric Blake  <ebb9@byu.net>
54428
54429         Add obstack-printf and obstack-printf-posix modules.
54430         * modules/obstack-printf: New file.
54431         * modules/obstack-printf-posix: Likewise.
54432         * MODULES.html.sh (Misc): Mention them.
54433         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54434         Likewise.
54435         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54436         Likewise.
54437         * modules/stdio (Makefile.am): Accomodate new modules.
54438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54439         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54440         Declare.
54441         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54442         functions.
54443         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54444         (gl_REPLACE_OBSTACK_PRINTF): New macros
54445         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54446         * tests/test-obstack-printf.c: New file.
54447         * modules/obstack-printf-tests: Likewise.
54448         * modules/obstack-printf-posix-tests: Likewise.
54449
54450 2008-06-11  Bruno Haible  <bruno@clisp.org>
54451
54452         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54453         * lib/open.c: Include errno.h.
54454         (open): Fail when attempting to write to a file that has a trailing
54455         slash.
54456         * tests/test-open.c (main): Test against trailing slash bug.
54457         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54458
54459 2008-06-10  Bruno Haible  <bruno@clisp.org>
54460
54461         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54462         for $? to work inside the trap command, with various /bin/sh-s.
54463         * tests/test-vc-list-files-cvs.sh: Likewise.
54464
54465 2008-06-10  Bruno Haible  <bruno@clisp.org>
54466
54467         * lib/acl-internal.h: Don't include gettext.h here.
54468         * lib/set-mode-acl.c: Include gettext.h here.
54469         * lib/copy-acl.c: Likewise.
54470
54471 2008-06-10  Bruno Haible  <bruno@clisp.org>
54472
54473         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54474         * lib/wait-process.c (wait_subprocess): Likewise.
54475         * lib/execute.h (execute): Add termsigp argument.
54476         * lib/execute.c (execute): Likewise.
54477         * lib/csharpcomp.c (compile_csharp_using_pnet,
54478         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54479         * lib/csharpexec.c (execute_csharp_using_pnet,
54480         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54481         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54482         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54483         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54484         is_jikes_present): Update.
54485         * lib/javaexec.c (execute_java_class): Update.
54486         * lib/javaversion.c (execute_and_read_line): Update.
54487         * NEWS: Document the changes.
54488         Reported by Eric Blake.
54489
54490 2008-06-10  Eric Blake  <ebb9@byu.net>
54491
54492         Add missing include.
54493         * tests/test-strstr.c (includes): Add <signal.h>.
54494         * tests/test-strcasestr.c (includes): Likewise.
54495         * tests/test-memmem.c (includes): Likewise.
54496
54497 2008-06-10  Bruno Haible  <bruno@clisp.org>
54498
54499         * lib/wait-process.c (wait_subprocess): Add an assertion.
54500
54501 2008-06-10  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54504
54505 2008-06-10  Bruno Haible  <bruno@clisp.org>
54506
54507         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54508         using alarm().
54509         * tests/test-strcasestr.c (main): Likewise.
54510         * tests/test-strstr.c (main): Likewise.
54511
54512 2008-06-09  Bruno Haible  <bruno@clisp.org>
54513
54514         Work around the Solaris 10 ACE ACLs ABI change.
54515         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54516         declare if ACL_NO_TRIVIAL is present.
54517         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54518         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54519         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54520         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54521         define if ACL_NO_TRIVIAL is present.
54522         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54523         and use the current ABI.
54524         (file_has_acl): Use same #if condition as elsewhere.
54525         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54526         in use, and use the current ABI.
54527         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54528         Reported by Jim Meyering.
54529
54530 2008-06-09  Eric Blake  <ebb9@byu.net>
54531
54532         Work around environments that (stupidly) ignore SIGALRM.
54533         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54534         before using alarm().
54535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54537         Reported by Ian Beckwith <ianb@erislabs.net>.
54538
54539         Produce autobuild blurb earlier in log.
54540         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54541
54542 2008-06-09  Jim Meyering  <meyering@redhat.com>
54543         and OndÅ™ej Vašík  <ovasik@redhat.com>
54544
54545         utimens.c: correct kernel bug work-around
54546         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54547         failure, not success, and the kernel bug we're trying to work
54548         around affects not just the utimensat call, but also the fallback
54549         futimens call.
54550         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54551         not success.
54552         [HAVE_FUTIMENS]: Use the same work-around, here.
54553
54554 2008-06-09  Jim Meyering  <meyering@redhat.com>
54555
54556         add more guards around definition of ACE_-related code
54557         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54558         ALLOW and ACE_OWNER are also defined.
54559
54560 2008-06-08  Bruno Haible  <bruno@clisp.org>
54561
54562         * lib/acl-internal.h: Add me as co-author.
54563         * lib/file-has-acl.c: Likewise.
54564         * lib/set-mode-acl.c: Likewise.
54565         * lib/copy-acl.c: Likewise.
54566
54567 2008-06-08  Bruno Haible  <bruno@clisp.org>
54568
54569         Add support for AIX ACLs.
54570         * lib/acl-internal.h (acl_nontrivial): New declaration.
54571         * lib/file-has-acl.c (acl_nontrivial): New function.
54572         (file_has_acl): Add implementation using AIX 4 ACL API.
54573         * lib/set-mode-acl.c (qset_acl): Likewise.
54574         * lib/copy-acl.c (qcopy_acl): Likewise.
54575
54576 2008-06-08  Bruno Haible  <bruno@clisp.org>
54577
54578         Add support for HP-UX ACLs.
54579         * lib/acl-internal.h (acl_nontrivial): New declaration.
54580         * lib/file-has-acl.c (acl_nontrivial): New function.
54581         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54582         * lib/set-mode-acl.c (qset_acl): Likewise.
54583         * lib/copy-acl.c (qcopy_acl): Likewise.
54584
54585 2008-06-08  Bruno Haible  <bruno@clisp.org>
54586
54587         Add support for Cygwin ACLs.
54588         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54589         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54590         the chmod_or_fchmod call.
54591         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54592
54593 2008-06-08  Bruno Haible  <bruno@clisp.org>
54594
54595         Fix bug with setuid modes in Solaris 10+ code.
54596         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54597         succeeded, when the mode contains some special bits.
54598
54599 2008-06-08  Bruno Haible  <bruno@clisp.org>
54600
54601         Add support for Solaris 7..10 ACLs.
54602         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54603         declarations.
54604         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54605         functions.
54606         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54607         * lib/set-mode-acl.c (qset_acl): Likewise.
54608         * lib/copy-acl.c (qcopy_acl): Likewise.
54609
54610 2008-06-08  Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54613         declaration.
54614         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54615         (acl_access_nontrivial): Remove MacOS X case.
54616         (file_has_acl): Use acl_extended_nontrivial.
54617         * lib/copy-acl.c (qcopy_acl): Likewise.
54618
54619 2008-06-08  Bruno Haible  <bruno@clisp.org>
54620
54621         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54622
54623 2008-06-08  Jim Meyering  <meyering@redhat.com>
54624
54625         * modules/acl (Maintainer): Add Bruno Haible.
54626
54627 2008-06-07  Bruno Haible  <bruno@clisp.org>
54628
54629         Improve support for Tru64 ACLs.
54630         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54631         ACL on OSF/1.
54632
54633 2008-06-07  Bruno Haible  <bruno@clisp.org>
54634
54635         Add support for MacOS X ACLs.
54636         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54637         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54638         * lib/set-mode-acl.c (qset_acl): Likewise.
54639         * lib/copy-acl.c (qcopy_acl): Likewise.
54640
54641 2008-06-07  Bruno Haible  <bruno@clisp.org>
54642
54643         Fix memory leak introduced on 2008-05-22.
54644         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54645         use.
54646
54647 2008-06-07  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54650         to construct an empty ACL.
54651
54652 2008-06-07  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54655         precisely.
54656         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54657
54658 2008-06-07  Bruno Haible  <bruno@clisp.org>
54659
54660         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54661         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54662
54663 2008-06-07  Bruno Haible  <bruno@clisp.org>
54664
54665         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54666         regardless of POSIX.
54667         * doc/posix-functions/_longjmp.texi: Likewise.
54668         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54669         SystemV platform in this case.
54670
54671 2008-06-06  Eric Blake  <ebb9@byu.net>
54672
54673         Document abort() bugs.
54674         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54675
54676         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54677         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54678         sigsetjmp.
54679         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54680         siglongjmp, but only as a macro.
54681         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54682         is obsolete.
54683         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54684
54685         Tweak documentation to cover cygwin argz bugs.
54686         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54687         argz bug fix; no code change needed since no cygwin releases
54688         occurred between the last fix and the bug being tested.
54689         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54690         module and recently fixed cygwin bugs.
54691         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54692         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54693         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54694         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54695         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54696         Likewise.
54697         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54698         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54699         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54700         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54701         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54702         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54703         Likewise.
54704
54705         Avoid gcc warning on cygwin.
54706         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54707         !ACL_NO_TRIVIAL]: Avoid unused variable.
54708
54709 2008-06-05  Eric Blake  <ebb9@byu.net>
54710
54711         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54712         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54713         git-version-gen fails to come up with a version.
54714         Reported by Simon Josefsson.
54715
54716 2008-06-05  Jim Meyering  <meyering@redhat.com>
54717             Paul Eggert  <eggert@cs.ucla.edu>
54718
54719         utimens.c: work around a probable Linux kernel bug
54720         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54721         appears to be a kernel bug that causes utimensat to return 280
54722         instead of 0, indicating success.
54723
54724 2008-06-04  Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54727         2008-06-01 commit.
54728
54729 2008-06-04  Bruno Haible  <bruno@clisp.org>
54730
54731         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54732         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54733         (file_has_acl): Use it. Save errno afterwards.
54734         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54735
54736 2008-06-03  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54739         draft code. Simplify #ifs.
54740         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54741         Put Solaris code after POSIX-draft code. Fix comments regarding
54742         Solaris 10, HP-UX. Mention Cygwin.
54743         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54744
54745 2008-06-03  Eric Blake  <ebb9@byu.net>
54746
54747         Provide fallback for older kernels.
54748         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54749         Provide runtime fallback if kernel lacks support.
54750         Reported by Mike Frysinger.
54751
54752 2008-06-02  Bruno Haible  <bruno@clisp.org>
54753
54754         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54755         it exists.
54756
54757 2008-06-02  Bruno Haible  <bruno@clisp.org>
54758
54759         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54760         * lib/copy-acl.c (qcopy_acl): Update comment.
54761
54762 2008-06-02  Bruno Haible  <bruno@clisp.org>
54763
54764         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54765         like ACL APIs.
54766
54767 2008-06-02  Bruno Haible  <bruno@clisp.org>
54768
54769         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54770         * tests/test-set-mode-acl.sh: Likewise.
54771         * tests/test-copy-acl.sh: Likewise.
54772         * tests/test-copy-file.sh: Likewise.
54773
54774 2008-06-02  Bruno Haible  <bruno@clisp.org>
54775
54776         * tests/test-file-has-acl.sh: Remove unused code.
54777
54778 2008-06-01  Bruno Haible  <bruno@clisp.org>
54779
54780         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54781         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54782         messages.
54783         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54784
54785 2008-06-01  Bruno Haible  <bruno@clisp.org>
54786
54787         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54788         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54789         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54790         APIs.
54791         * modules/acl-tests (configure.ac): Remove tests now contained in
54792         m4/acl.m4.
54793
54794 2008-06-02  Jim Meyering  <meyering@redhat.com>
54795
54796         announce-gen: use a better key-server host name
54797         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54798         it may be more consistently reliable.  Suggested by Werner Koch
54799         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54800
54801 2008-06-01  Bruno Haible  <bruno@clisp.org>
54802
54803         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54804         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54805
54806 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54807
54808         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54809
54810 2008-06-01  Bruno Haible  <bruno@clisp.org>
54811
54812         New ACL tests.
54813         * tests/test-file-has-acl.sh: New file.
54814         * tests/test-file-has-acl.c: New file.
54815         * tests/test-set-mode-acl.sh: New file.
54816         * tests/test-set-mode-acl.c: New file.
54817         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54818         * tests/test-copy-acl.c: New file.
54819         * modules/acl-tests: New file, based on modules/copy-file-tests.
54820         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54821         (Depends-on): Add acl-tests.
54822         (configure.ac): Remove checks.
54823         (Makefile.am): Don't create test-sameacls program here any more.
54824
54825 2008-06-01  Bruno Haible  <bruno@clisp.org>
54826
54827         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54828         * tests/test-sameacls.c: Include progname.h.
54829         (main): Invoke set_program_name. Portability fixes for MacOS X,
54830         Solaris, HP-UX.
54831
54832 2008-06-01  Bruno Haible  <bruno@clisp.org>
54833
54834         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54835         function.
54836         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54837
54838 2008-06-01  Bruno Haible  <bruno@clisp.org>
54839
54840         * modules/rpmatch (Depends-on): Add strdup.
54841
54842 2008-06-01  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/pipe.c: Include unistd-safer.h.
54845         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54846         * modules/pipe (Depends-on): Add unistd-safer.
54847
54848 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54849
54850         * modules/autobuild (configure.ac): Call AB_INIT.
54851
54852 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54853
54854         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54855         Suggested by Bruno Haible <bruno@clisp.org>.
54856
54857 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54858
54859         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54860         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54861         <bruno@clisp.org>.
54862
54863 2008-05-29  Eric Blake  <ebb9@byu.net>
54864
54865         Prefer new POSIX 200x interfaces over futimesat.
54866         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54867         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54868         when available.
54869         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54870
54871 2008-05-28  Bruno Haible  <bruno@clisp.org>
54872
54873         * modules/stpcpy (License): Change to LGPLv2+.
54874         Requested by David Lutterkort <dlutter@redhat.com>.
54875
54876 2008-05-27  Bruno Haible  <bruno@clisp.org>
54877
54878         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54879         current mingw.
54880         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54881
54882 2008-05-27  Bruno Haible  <bruno@clisp.org>
54883
54884         * modules/iconv_open (Link): New section, from module 'iconv'.
54885         * modules/striconv (Link): Likewise.
54886         * modules/striconveh (Link): Likewise.
54887         * modules/xstriconv (Link): Likewise.
54888         * modules/unicodeio (Link): Likewise.
54889         * modules/propername (Link): Likewise.
54890         Reported by Jim Meyering.
54891
54892 2008-05-26  Jim Meyering  <meyering@redhat.com>
54893
54894         sha256: do not artificially restrict buffer length to be < 2^32
54895         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54896         uint32_t to size_t.
54897         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54898         to match.
54899
54900         avoid unaligned access errors, e.g., on sparc
54901         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54902         direct access through a possibly-unaligned uint64* pointer.
54903         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54904         direct access through a possibly-unaligned uint32* pointer.
54905         Prompted by this patch from Tom "spot" Callaway:
54906         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54907
54908         sha512.c: fix typo in comment
54909         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54910
54911 2008-05-25  Bruno Haible  <bruno@clisp.org>
54912
54913         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54914         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54915         (Makefile.am): Update lib_SOURCES.
54916
54917 2008-05-25  Bruno Haible  <bruno@clisp.org>
54918
54919         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54920
54921 2008-05-25  Jim Meyering  <meyering@redhat.com>
54922
54923         useless-if-before-free: freed expr may have white-space differences
54924         * build-aux/useless-if-before-free: Recognize cases in which the
54925         freed expression differs from the tested one in embedded white
54926         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54927         $1 was used, so we can't make any regexp shy.  Improved tests now
54928         detect this.
54929
54930         useless-if-before-free: accept white space in the expression.
54931         * build-aux/useless-if-before-free: For now, any white space
54932         in the expression must be identical in the free argument.
54933
54934         useless-if-before-free: efficiency tweak
54935         * build-aux/useless-if-before-free: Make the expression-matching
54936         regexp "shy".
54937         Make the *outer* regexp shy, not the expr-matching one.
54938
54939         update code-in-comment to accept cast of free arg
54940         * build-aux/useless-if-before-free: Update regexp.
54941
54942 2008-05-25  Bruno Haible  <bruno@clisp.org>
54943
54944         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54945         * modules/copy-file-tests (Files, Makefile.am): Update.
54946         * tests/test-copy-file.c (func_test_copy): Update.
54947
54948 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54949
54950         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54951
54952 2008-05-23  Bruno Haible  <bruno@clisp.org>
54953
54954         Improve support for ACLs on OSF/1.
54955         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54956         Remove fallback for unknown flavors of ACLs.
54957
54958 2008-05-22  Bruno Haible  <bruno@clisp.org>
54959
54960         Add support for ACLs on OSF/1.
54961         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54962         replacements.
54963         (acl_free_text): New macro fallback.
54964         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54965         acl_free.
54966         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54967         acl_free_text function. Require AC_C_INLINE.
54968
54969 2008-05-22  Bruno Haible  <bruno@clisp.org>
54970
54971         Make copy_acl work on MacOS X 10.5.
54972         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54973         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54974         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54975         If MODE_INSIDE_ACL, don't assume that every system has the same text
54976         representation for ACLs as FreeBSD.
54977         * lib/copy-acl.c (copy_acl): Add support for platforms with
54978         !MODE_INSIDE_ACL.
54979         * lib/file-has-acl.c (file_has_acl): Likewise.
54980         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54981         FreeBSD, MacOS X, or IRIX, respectively.
54982
54983 2008-05-22  Bruno Haible  <bruno@clisp.org>
54984
54985         * lib/acl.h: Don't include <sys/acl.h>.
54986         (GETACLCNT): Move fallback to lib/acl-internal.h.
54987         * lib/acl-internal.h: Include <sys/acl.h> here.
54988         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54989
54990 2008-05-22  Bruno Haible  <bruno@clisp.org>
54991
54992         Split off copy_acl function to separate file.
54993         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54994         * lib/acl.c (copy_acl): Moved function to separate file.
54995         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54996         * modules/acl (Files): Add lib/copy-acl.c.
54997         (Makefiles.am): Augment lib_SOURCES.
54998
54999 2008-05-22  Bruno Haible  <bruno@clisp.org>
55000
55001         * modules/copy-file-tests: New file.
55002         * tests/test-copy-file.sh: New file.
55003         * tests/test-copy-file.c: New file.
55004         * tests/test-copy-file-sameacls.c: New file.
55005
55006 2008-05-22  Eric Blake  <ebb9@byu.net>
55007
55008         Avoid gcc warning.
55009         * tests/test-memcmp.c (main): Pass NULL indirectly.
55010
55011 2008-05-21  Bruno Haible  <bruno@clisp.org>
55012
55013         Add reference doc about ACLs.
55014         * doc/acl-resources.txt: New file.
55015         * doc/acl-cygwin.txt: New file.
55016
55017 2008-05-21  Bruno Haible  <bruno@clisp.org>
55018
55019         Avoid one more warning from gcc.
55020         * lib/vasnprintf.c (IF_LINT): Update comments.
55021         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55022
55023 2008-05-21  Jim Meyering  <meyering@redhat.com>
55024
55025         avoid a warning from gcc
55026         * lib/vasnprintf.c (IF_LINT): Define.
55027         (scale10_round_decimal_long_double):
55028         Use it to avoid a "may be used uninitialized" warning.
55029         (scale10_round_decimal_double): Likewise.
55030
55031 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55032
55033         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55034         declared.
55035
55036 2008-05-20  Bruno Haible  <bruno@clisp.org>
55037
55038         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55039         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55040
55041 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55042
55043         * modules/memcmp-tests: New file.
55044         * tests/test-memcmp.c: New file.
55045
55046 2008-05-19  Bruno Haible  <bruno@clisp.org>
55047
55048         * modules/propername (Notice, configure.ac): Put quoted "..." into
55049         --keyword option.
55050         * lib/propername.h: Update comments accordingly.
55051         Reported by Eric Blake.
55052
55053 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55054
55055         * modules/getpass-gnu (Depends-on): Add fseeko.
55056
55057 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55058
55059         * modules/base64-tests: New file.
55060
55061 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55062
55063         * lib/base64.c (base64_decode_ctx): If a decode context structure
55064         was passed in use it to ignore newlines.  If a context structure
55065         was _not_ passed in, continue to treat newlines as garbage (this
55066         is the historical behavior).  Formerly base64_decode.
55067         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55068         takes a decode context structure.
55069         * lib/base64.h (base64_decode): Macro for four-argument calls.
55070         (base64_decode_alloc): Likewise.
55071         * lib/base64.c (base64_decode_ctx): If a decode context structure
55072         was passed in use it to ignore newlines.  If a context structure
55073         was _not_ passed in, continue to treat newlines as garbage (this
55074         is the historical behavior).  Formerly base64_decode.
55075         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55076         takes a decode context structure.
55077         * lib/base64.h (base64_decode): Macro for four-argument calls.
55078         (base64_decode_alloc): Likewise.
55079
55080 2008-05-19  Jim Meyering  <meyering@redhat.com>
55081
55082         avoid a warning from gcc
55083         * lib/trim.c (IF_LINT): Define.
55084         (trim2): Use it to avoid a "may be used uninitialized" warning.
55085
55086         Fix doc typo.
55087         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55088
55089 2008-05-19  Bruno Haible  <bruno@clisp.org>
55090
55091         * doc/glibc-functions/getpass.texi: Document limits of other
55092         implementations.
55093
55094 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55095             Bruno Haible <bruno@clisp.org>
55096
55097         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55098
55099 2008-05-18  Bruno Haible  <bruno@clisp.org>
55100
55101         * modules/propername: New file, from GNU gettext.
55102         * lib/propername.h: New file, from GNU gettext.
55103         * lib/propername.c: New file, from GNU gettext.
55104         * MODULES.html.sh (Internationalization functions): Add propername.
55105
55106 2008-05-16  Jim Meyering  <meyering@redhat.com>
55107             Bruno Haible  <bruno@clisp.org>
55108
55109         Avoid some warnings from "gcc -Wshadow".
55110         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55111
55112 2008-05-15  Eric Blake  <ebb9@byu.net>
55113
55114         Extend previous patch to cygwin 1.7.0.
55115         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55116         fast implementation in cygwin >= 1.7.0.
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         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55123         implementation in glibc >= 2.9.
55124         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55126
55127 2008-05-15  Bruno Haible  <bruno@clisp.org>
55128
55129         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55130         (Unicode string functions): Add unilbrk/*.
55131         Reported by Karl Berry.
55132
55133 2008-05-15  Eric Blake  <ebb9@byu.net>
55134
55135         Fix violation of <stdbool.h> replacement in regex.
55136         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55137         * lib/regexec.c (re_search_internal): Likewise.
55138         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55139
55140 2008-05-15  Jim Meyering  <meyering@redhat.com>
55141
55142         avoid distracting test output when git or cvs is not found
55143         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55144         * tests/test-vc-list-files-git.sh: Likewise.
55145
55146 2008-05-15  Eric Blake  <ebb9@byu.net>
55147
55148         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55149         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55150         glibc version.
55151         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55152         * doc/posix-functions/strstr.texi (strstr): Likewise.
55153         * lib/str-two-way.h (MAX): Sychronize with glibc.
55154
55155 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55156
55157         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55158         opr.ctx_type.
55159         (calc_first): Initialize constraint field.
55160         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55161         Fix grammar.
55162         (duplicate_node): Merge constraint field for all node types.
55163         (calc_eclosure_iter): Look at constraint field for all node types.
55164         * lib/regex_internal.c (create_cd_newstate): Don't look at
55165         opr.ctx_type.
55166
55167 2008-05-14  Bruno Haible  <bruno@clisp.org>
55168
55169         Help GCC to do better code generation.
55170         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55171         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55172         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55173         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55174         Declare with attribute 'malloc' if supported.
55175
55176 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55177
55178         use "echo STR|wc -c" rather than unportable "expr length STR"
55179         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55180         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55181
55182 2008-05-14  Jim Meyering  <meyering@redhat.com>
55183
55184         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55185         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55186         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55187         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55188         via Collin Lasse.
55189
55190 2008-05-14  Eric Blake  <ebb9@byu.net>
55191
55192         Avoid quadratic growth in gl_LIBSOURCES.
55193         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55194         Suggested by Bruno Haible.
55195
55196         Test xmemdup0.
55197         * modules/xmemdup0-tests: New file.
55198         * tests/test-xmemdup0.c: Likewise.
55199
55200 2008-05-13  Eric Blake  <ebb9@byu.net>
55201
55202         Split xmemdup0 into its own module.
55203         * modules/xmemdup0: New file.
55204         * lib/xmemdup0.h: Likewise.
55205         * lib/xmemdup0.c: Likewise.
55206         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55207         * lib/xalloc.h (xmemdup0): Remove.
55208         * lib/xmalloc.c (xmemdup0): Likewise.
55209
55210 2008-05-13  Eric Blake  <ebb9@byu.net>
55211             Bruno Haible  <bruno@clisp.org>
55212
55213         Reduce number of forks required during autoconf.
55214         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55215         and gl_LIBSOURCES_DIR.
55216         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55217         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55218         m4_syscmd per file.
55219         <m4_foreach_w>: Move...
55220         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55221
55222 2008-05-13  Eric Blake  <ebb9@byu.net>
55223
55224         * gnulib-tool: Fix various comment typos.
55225
55226 2008-05-12  Bruno Haible  <bruno@clisp.org>
55227
55228         Tailor the linebreaking algorithm.
55229         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55230
55231 2008-05-12  Bruno Haible  <bruno@clisp.org>
55232
55233         Update to Unicode 5.0.0.
55234         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55235         LBP_JV, LBP_JT. Redistribute values.
55236         (unilbrk_table): Change size.
55237         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55238         Unicode TR#14 rev. 22.
55239         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55240         LBP_JV, LBP_JT. Redistribute values.
55241         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55242         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55243         Update.
55244         * lib/unilbrk/lbrkprop1.h: Regenerated.
55245         * lib/unilbrk/lbrkprop2.h: Regenerated.
55246         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55247         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55248         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55249         Likewise.
55250         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55251         Likewise.
55252         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55253         result.
55254         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55255         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55256         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55257         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55258         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55259         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55260
55261 2008-05-11  Bruno Haible  <bruno@clisp.org>
55262
55263         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55264
55265 2008-05-11  Bruno Haible  <bruno@clisp.org>
55266
55267         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55268         * modules/unilbrk/gen-lbrk: New file.
55269
55270 2008-05-11  Bruno Haible  <bruno@clisp.org>
55271
55272         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55273         * m4/sha512.m4 (gl_SHA512): Likewise.
55274
55275 2008-05-11  Jim Meyering  <meyering@redhat.com>
55276
55277         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55278         * modules/crypto/sha256: New file.
55279         * modules/crypto/sha512: Likewise.
55280         * lib/sha256.c: Likewise.
55281         * lib/sha256.h: Likewise.
55282         * lib/sha512.c: Likewise.
55283         * lib/sha512.h: Likewise.
55284         * lib/u64.h: Likewise.
55285         * m4/sha256.m4: Likewise.
55286         * m4/sha512.m4: Likewise.
55287         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55288
55289 2008-05-10  Bruno Haible  <bruno@clisp.org>
55290
55291         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55292         (Input/Output <stdio.h>): Add xprintf.
55293         (Signal handling <signal.h>): Add strsignal.
55294         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55295         (Core language properties): Add func.
55296         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55297         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55298         strings.
55299         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55300         (Input/output): New section.
55301         (File system functions): Add openat-die, stat-macros.
55302         (Networking functions): Add sockets.
55303         (Unicode string functions): Add unictype/*.
55304         (Support for building libraries and executables): Add gperf.
55305         (Support for building documentation): Add agpl-3.0.
55306         (Misc): Add nocrash.
55307
55308 2008-05-10  Bruno Haible  <bruno@clisp.org>
55309
55310         * modules/unictype/gen-ctype: New file.
55311
55312 2008-05-10  Jim Meyering  <meyering@redhat.com>
55313
55314         Make chdir-safer.c more efficient on a system with no symlinks.
55315         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55316         also if ELOOP is zero.  Suggested by Bruno Haible.
55317
55318         Make chdir-safer.c slightly safer.
55319         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55320         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55321
55322         Avoid compile failure on systems without ELOOP (like mingw).
55323         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55324         Reported by Bruno Haible.
55325
55326 2008-05-10  Bruno Haible  <bruno@clisp.org>
55327
55328         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55329         (is_utf8_encoding): Use a case-insensitive comparison.
55330         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55331         streq.
55332
55333 2008-05-10  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55336         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55337         * lib/unilbrk/ulc-common.h (iconv_string_length,
55338         iconv_string_keeping_offsets): Remove declarations.
55339         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55340         Don't include <iconv.h>, streq.h, xsize.h.
55341         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55342         conversion.
55343         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55344         <iconv.h>, streq.h, xsize.h.
55345         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55346         conversion.
55347         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55348         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55349         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55350         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55351
55352 2008-05-10  Bruno Haible  <bruno@clisp.org>
55353
55354         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55355         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55356
55357         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55358         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55359
55360         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55361         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55362
55363         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55364         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55365
55366         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55367         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55368
55369         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55370         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55371
55372         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55373         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55374
55375         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55376         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55377
55378 2008-05-10  Bruno Haible  <bruno@clisp.org>
55379
55380         Split up 'linebreak' module.
55381         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55382         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55383         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55384         modifications.
55385         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55386         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55387         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55388         lib/linebreak.c.
55389         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55390         lib/linebreak.c.
55391         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55392         lib/linebreak.c.
55393         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55394         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55395         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55396         lib/linebreak.c.
55397         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55398         lib/linebreak.c.
55399         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55400         lib/linebreak.c.
55401         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55402         lib/linebreak.c.
55403         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55404         lib/linebreak.c.
55405         * modules/unilbrk/base: New file.
55406         * modules/unilbrk/tables: New file.
55407         * modules/unilbrk/u8-possible-linebreaks: New file.
55408         * modules/unilbrk/u16-possible-linebreaks: New file.
55409         * modules/unilbrk/u32-possible-linebreaks: New file.
55410         * modules/unilbrk/ulc-common: New file.
55411         * modules/unilbrk/ulc-possible-linebreaks: New file.
55412         * modules/unilbrk/u8-width-linebreaks: New file.
55413         * modules/unilbrk/u16-width-linebreaks: New file.
55414         * modules/unilbrk/u32-width-linebreaks: New file.
55415         * modules/unilbrk/ulc-width-linebreaks: New file.
55416         * lib/linebreak.h: Remove file.
55417         * lib/linebreak.c: Remove file.
55418         * m4/linebreak.m4: Remove file.
55419         * modules/linebreak: Remove file.
55420         * NEWS: Mention the changes.
55421
55422 2008-05-09  Eric Blake  <ebb9@byu.net>
55423
55424         Add xmemdup0.
55425         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55426         implementation.
55427         * lib/xmalloc.c (xmemdup0): New C implementation.
55428
55429 2008-05-08  Bruno Haible  <bruno@clisp.org>
55430
55431         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55432
55433 2008-05-07  Eric Blake  <ebb9@byu.net>
55434
55435         Support cross-compilation of <wctype.h>.
55436         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55437         AC_CACHE_CHECK.
55438
55439 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55440
55441         * build-aux/vc-list-files: Add support for bzr.
55442
55443 2008-05-03  Jim Meyering  <meyering@redhat.com>
55444
55445         avoid failed assertion with tight malloc
55446         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55447
55448 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55449
55450         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55451         are needed from arpa/inet.h.
55452         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55453         Reported by Bruno Haible.
55454
55455 2008-05-02  Jim Meyering  <meyering@redhat.com>
55456
55457         avoid compilation error on FreeBSD 6
55458         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55459
55460 2008-05-01  Jim Meyering  <meyering@redhat.com>
55461
55462         useless-if-before-free: correct --help's exit status description
55463         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55464         for one or more matches, etc.  Reported by Bruno Haible.
55465
55466         vc-list-files: make the stand-alone gnulib test work
55467         * modules/vc-list-files-tests (configure.ac):
55468         Define and AC_SUBST abs_aux_dir.
55469         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55470         $(abs_top_srcdir) to each script and having each of them
55471         duplicate the work of setting PATH, set PATH here, using
55472         the new variable, abs_aux_dir instead.
55473         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55474         * tests/test-vc-list-files-git.sh: Likewise.
55475         Reported by Bruno Haible.
55476
55477 2008-05-01  Bruno Haible  <bruno@clisp.org>
55478
55479         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55480         reallocation. Rename 'done' to 'found_delimiter'.
55481
55482 2008-05-01  Jim Meyering  <meyering@redhat.com>
55483
55484         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55485         * build-aux/vc-list-files: Use `...`, not $(...).
55486
55487 2008-04-30  Jim Meyering  <meyering@redhat.com>
55488
55489         add tests for vc-list-files
55490         * modules/vc-list-files-tests: New module.
55491         * tests/test-vc-list-files-cvs.sh: New file.
55492         * tests/test-vc-list-files-git.sh: New file.
55493
55494         avoid a warning from gcc
55495         * lib/getndelim2.c (IF_LINT): Define.
55496         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55497
55498         vc-list-files: work properly with build-aux/cvsu, too
55499         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55500         to all cvs-based clauses.
55501
55502         vc-list-files: work properly in the CVS+awk case, too
55503         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55504
55505         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55506         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55507         take more than one file argument, so .  Add quotes, just in case $dir
55508         ever contains a shell meta-character.  Prompted by Soren Hansen in
55509         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55510
55511 2008-04-29  Eric Blake  <ebb9@byu.net>
55512
55513         Optimize getndelim2 to use block operations when possible.
55514         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55515         freadseek, and memchr2.
55516         * lib/getndelim2.c (getndelim2): Use them for block reads.
55517
55518 2008-04-29  Bruno Haible  <bruno@clisp.org>
55519
55520         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55521         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55522         * modules/inet_ntop (Depends-on): Add extensions.
55523         * modules/inet_pton (Depends-on): Likewise.
55524         Reported by Simon Josefsson.
55525
55526 2008-04-29  Jim Meyering  <meyering@redhat.com>
55527
55528         When the is more than one match in a block, match all of them.
55529         * build-aux/useless-if-before-free: Iterate through each block
55530         until there are no more matches.
55531
55532         Fix broken useless-if-before-free script.
55533         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55534         the expression to match cast of argument to free-like function.
55535
55536 2008-04-29  Eric Blake  <ebb9@byu.net>
55537
55538         Use new header.
55539         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55540
55541 2008-04-29  Jim Meyering  <meyering@redhat.com>
55542
55543         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55544         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55545         by gnulib to exist and to declare e.g., inet_ntop.
55546         Don't include "inet_ntop.h", now removed.
55547
55548         * m4/arpa_inet_h.m4: Remove trailing blanks.
55549
55550 2008-04-29  Eric Blake  <ebb9@byu.net>
55551
55552         Silence valgrind on safe reads beyond potential array bounds.
55553         * lib/rawmemchr.valgrind: New file.
55554         * lib/strchrnul.valgrind: Likewise.
55555         * modules/rawmemchr (Files): Distribute new file.
55556         * modules/strchrnul (Files): Likewise.
55557         Suggested by Bruno Haible.
55558
55559 2008-04-29  Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55562         (inet_ntop, inet_pton): Change portability warning's wording.
55563         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55564         Invoke gl_CHECK_NEXT_HEADERS.
55565         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55566         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55567         set ARPA_INET_H.
55568         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55569         * modules/arpa_inet (Description): No longer only for systems that
55570         lack it.
55571         (Depends-on): Add include_next.
55572         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55573         HAVE_ARPA_INET_H.
55574
55575 2008-04-29  Jim Meyering  <meyering@redhat.com>
55576
55577         * modules/mkdir (License): Re-license as LGPLv2+.
55578
55579 2008-04-29  Bruno Haible  <bruno@clisp.org>
55580
55581         * modules/rawmemchr (Maintainer): Set to Eric.
55582         * modules/strchrnul (Maintainer): Likewise.
55583
55584 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55585
55586         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55587         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55588
55589         * modules/arpa_inet (arpa/inet.h): Use them.
55590
55591 2008-04-28  Eric Blake  <ebb9@byu.net>
55592
55593         Test getndelim2.
55594         * modules/getndelim2-tests: New file.
55595         * tests/test-getndelim2.c: Likewise.
55596         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55597         stream.
55598         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55599
55600         * MODULES.html.sh: Document new module.
55601
55602 2008-04-20  Bruno Haible  <bruno@clisp.org>
55603
55604         * lib/c-stack.c (die): Use raise.
55605         * modules/c-stack (Depends-on): Add raise.
55606
55607 2008-04-28  Bruno Haible  <bruno@clisp.org>
55608
55609         Expect rpmatch to be declared.
55610         * lib/yesno.c (rpmatch): Remove declaration.
55611
55612         Declare rpmatch.
55613         * lib/stdlib.in.h (rpmatch): New declaration.
55614         * lib/rpmatch.c: Include <stdlib.h> first.
55615         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55616         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55618         HAVE_RPMATCH.
55619         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55620         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55621         (Include): Set to <stdlib.h>.
55622         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55623         HAVE_RPMATCH.
55624         * NEWS: Document the change.
55625
55626 2008-04-28  Bruno Haible  <bruno@clisp.org>
55627
55628         Change rpmatch to use nl_langinfo when appropriate.
55629         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55630         (N_): New macro.
55631         (localized_pattern): New function/macro.
55632         (try): Remove match, nomatch arguments. Copy the pattern into safe
55633         memory before caching it.
55634         (rpmatch): Use localized_pattern. Add translator comments.
55635         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55636         Suggested by Eric Blake.
55637         * modules/rpmatch (Depends-on): Add stdbool.
55638
55639 2008-04-28  Eric Blake  <ebb9@byu.net>
55640
55641         Add rawmemchr module, matching glibc.
55642         * modules/string (Makefile.am): New indicator.
55643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55644         * lib/string.in.h (rawmemchr): Declare when appropriate.
55645         * modules/rawmemchr: New file.
55646         * m4/rawmemchr.m4: Likewise.
55647         * lib/rawmemchr.c: Likewise.
55648         * modules/rawmemchr-tests: Likewise.
55649         * tests/test-rawmemchr.c: Likewise.
55650         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55651         module.
55652         * modules/strchrnul (Depends-on): Add rawmemchr.
55653         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55654
55655         Whitespace cleanup.
55656         * tests/test-strchrnul.c: Reindent.
55657         * lib/strchrnul.c: Likewise.
55658
55659         Optimize and test strchrnul.
55660         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55661         * modules/strchrnul-tests: New file.
55662         * tests/test-strchrnul.c: Likewise.
55663
55664         Remove intprops dependency.
55665         * modules/memchr (Depends-on): Remove intprops.
55666         * modules/memrchr (Depends-on): Likewise.
55667         * modules/memchr2 (Depends-on): Likewise.
55668         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55669         * lib/memrchr.c (__memrchr): Likewise.
55670         * lib/memrchr2.c (memchr2): Likewise.
55671         Reported by Simon Josefsson.
55672
55673 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55674
55675         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55676         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55677
55678 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55679
55680         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55681
55682         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55683
55684         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55685
55686         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55687         declarations.
55688         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55689
55690         * m4/inet_pton.m4: Don't check for header files.
55691
55692         * m4/inet_ntop.m4: Don't check for header files.
55693
55694 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55695
55696         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55697         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55698         trigger for cygwin).
55699         Reported by Bruno Haible  <bruno@clisp.org>.
55700
55701 2008-04-28  Bruno Haible  <bruno@clisp.org>
55702
55703         * doc/posix-functions/strdup.texi: Mention mingw problem.
55704
55705 2008-04-27  Bruno Haible  <bruno@clisp.org>
55706
55707         * modules/stat-time-tests (Depends-on): Add sleep.
55708         * tests/test-stat-time.c (force_unlink): New function.
55709         (cleanup): Use it.
55710         (test_mtime): Remove the ctime related tests.
55711         (test_ctime): New function, containing the ctime related tests.
55712         (main): Call test_ctime, except on native Windows platforms.
55713
55714 2008-04-27  Bruno Haible  <bruno@clisp.org>
55715
55716         * lib/rpmatch.c (rpmatch): Add some comments.
55717         Reported by James Youngman <jay@gnu.org>.
55718
55719 2008-04-27  Bruno Haible  <bruno@clisp.org>
55720
55721         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55722         quiet NaNs.
55723
55724 2008-04-27  Bruno Haible  <bruno@clisp.org>
55725
55726         Make test-yesno.sh work on mingw.
55727         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55728         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55729         (main): Set stdin to binary mode.
55730         * modules/yesno-tests (Depends-on): Add binary-io.
55731
55732 2008-04-27  Bruno Haible  <bruno@clisp.org>
55733
55734         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55735         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55736         argument that lie outside the IEEE 854 domain.
55737         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55738         (gl_ISFINITE): Use it.
55739         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55740
55741 2008-04-27  Bruno Haible  <bruno@clisp.org>
55742
55743         Allow local renaming in config.h.
55744         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55745
55746 2008-04-27  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/memchr.c (__memchr): Change type of 'i'.
55749         * lib/memchr2.c (memchr2): Likewise.
55750
55751 2008-04-26  Eric Blake  <ebb9@byu.net>
55752         and Bruno Haible  <bruno@clisp.org>
55753
55754         Optimize and test memrchr.
55755         * modules/memrchr (Depends-on): Add intprops.
55756         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55757         * modules/memrchr-tests: New file.
55758         * tests/test-memrchr.c: New file.
55759
55760 2008-04-26  Bruno Haible  <bruno@clisp.org>
55761
55762         Add tentative support for DragonFly BSD.
55763         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55764         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55765         fp.
55766         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55767         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55768         * lib/fpurge.c (fpurge): Likewise.
55769         * lib/freadable.c (freaadable): Likewise.
55770         * lib/freadahead.c (freadahead): Likewise.
55771         * lib/freading.c (freading): Likewise.
55772         * lib/freadptr.c (freadptr): Likewise.
55773         * lib/freadseek.c (freadptrinc): Likewise.
55774         * lib/fseeko.c (fseeko): Likewise.
55775         * lib/fseterr.c (fseterr): Likewise.
55776         * lib/fwritable.c (fwritable): Likewise.
55777         * lib/fwriting.c (fwriting): Likewise.
55778
55779 2008-04-26  Bruno Haible  <bruno@clisp.org>
55780
55781         * lib/stdio-impl.h: New file.
55782         * lib/fbufmode.c: Include stdio-impl.h.
55783         (fbufmode): Use fp_, remove redundant #defines.
55784         * lib/fflush.c: Include stdio-impl.h.
55785         (clear_ungetc_buffer): Remove redundant #defines.
55786         * lib/fpurge.c: Include stdio-impl.h.
55787         (fpurge): Remove redundant #defines.
55788         * lib/freadable.c: Include stdio-impl.h.
55789         (freadable): Remove redundant #defines.
55790         * lib/freadahead.c: Include stdio-impl.h.
55791         (freadahead): Remove redundant #defines.
55792         * lib/freading.c: Include stdio-impl.h.
55793         (freading): Remove redundant #defines.
55794         * lib/freadptr.c: Include stdio-impl.h.
55795         (freadptr): Remove redundant #defines.
55796         * lib/freadseek.c: Include stdio-impl.h.
55797         (freadptrinc): Remove redundant #defines.
55798         * lib/fseeko.c: Include stdio-impl.h.
55799         (rpl_fseeko): Remove redundant #defines.
55800         * lib/fseterr.c: Include stdio-impl.h.
55801         (fseterr): Remove redundant #defines.
55802         * lib/fwritable.c: Include stdio-impl.h.
55803         (fwritable: Remove redundant #defines.
55804         * lib/fwriting.c: Include stdio-impl.h.
55805         (fwriting): Remove redundant #defines.
55806         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55807         * modules/fflush (Files): Likewise.
55808         * modules/fpurge (Files): Likewise.
55809         * modules/freadable (Files): Likewise.
55810         * modules/freadahead (Files): Likewise.
55811         * modules/freading (Files): Likewise.
55812         * modules/freadptr (Files): Likewise.
55813         * modules/freadseek (Files): Likewise.
55814         * modules/fseeko (Files): Likewise.
55815         * modules/fseterr (Files): Likewise.
55816         * modules/fwritable (Files): Likewise.
55817         * modules/fwriting (Files): Likewise.
55818
55819 2008-04-26  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55822         restore_seek_optimization, update_fpos_cache): New functions, extracted
55823         from rpl_fflush.
55824         (rpl_fflush): Use them.
55825         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55826         (gl_REPLACE_FFLUSH): Use it.
55827
55828 2008-04-26  Bruno Haible  <bruno@clisp.org>
55829
55830         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55831         on Solaris.
55832         * tests/test-xstrtoimax.sh: Likewise.
55833         * tests/test-xstrtoumax.sh: Likewise.
55834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55835
55836 2008-04-26  Bruno Haible  <bruno@clisp.org>
55837
55838         * modules/memchr-tests: New file.
55839         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55840
55841 2008-04-26  Eric Blake  <ebb9@byu.net>
55842             Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/memchr.c: Include intprops.h.
55845         (__memchr): Optimize parallel detection of matching bytes. Rename local
55846         variables. Add explanatory comments.
55847
55848 2008-04-26  Bruno Haible  <bruno@clisp.org>
55849
55850         Fix module 'memchr', broken since 2000-10-28.
55851         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55852
55853 2008-04-26  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55856         comments.
55857
55858 2008-04-25  Eric Blake  <ebb9@byu.net>
55859
55860         Use native fstatat on cygwin 1.7.0.
55861         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55862         first.
55863
55864 2008-04-23  Eric Blake  <ebb9@byu.net>
55865
55866         Improve memchr2 performance.
55867         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55868         NUL bytes.
55869         * modules/memchr2 (Depends-on): Use intprops.h.
55870
55871 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55872
55873         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55874         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55875         <blp@cs.stanford.edu>.
55876
55877 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55878
55879         * lib/arpa_inet.in.h: New file.
55880
55881         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55882         (Makefile.am): Sed in substitute header file.
55883
55884         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55885         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55886
55887         * modules/inet_ntop (configure.ac): Use
55888         gl_ARPA_INET_MODULE_INDICATOR.
55889
55890         * modules/inet_pton (configure.ac): Use
55891         gl_ARPA_INET_MODULE_INDICATOR.
55892
55893 2008-04-22  Jim Meyering  <meyering@redhat.com>
55894
55895         * modules/verify (License): Re-license as LGPLv2+.
55896
55897 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55898
55899         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55900         parameter to void* as per POSIX standard (MinGW uses char*).
55901
55902 2008-04-21  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55905         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55906         Define to replacements if REPLACE_ISWCNTRL is 1.
55907         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55908         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55909         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55910         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55911         what it fixes.
55912         * doc/posix-functions/iswalpha.texi: Likewise.
55913         * doc/posix-functions/iswblank.texi: Likewise.
55914         * doc/posix-functions/iswcntrl.texi: Likewise.
55915         * doc/posix-functions/iswdigit.texi: Likewise.
55916         * doc/posix-functions/iswgraph.texi: Likewise.
55917         * doc/posix-functions/iswlower.texi: Likewise.
55918         * doc/posix-functions/iswprint.texi: Likewise.
55919         * doc/posix-functions/iswpunct.texi: Likewise.
55920         * doc/posix-functions/iswspace.texi: Likewise.
55921         * doc/posix-functions/iswupper.texi: Likewise.
55922         * doc/posix-functions/iswxdigit.texi: Likewise.
55923         Reported by Alain Guibert.
55924
55925 2008-04-21  Bruno Haible  <bruno@clisp.org>
55926
55927         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55928         Patch by Alain Guibert.
55929
55930 2008-04-21  Bruno Haible  <bruno@clisp.org>
55931
55932         Fix test failures on mingw.
55933         * tests/test-xstrtol.c (print_no_progname): New function.
55934         (main): Install it in error_print_progname hook.
55935         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55936         * tests/test-xstrtoimax.sh: Likewise.
55937         * tests/test-xstrtoumax.sh: Likewise.
55938
55939 2008-04-21  Bruno Haible  <bruno@clisp.org>
55940
55941         Fix test failure on mingw.
55942         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55943
55944 2008-04-21  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55947         Actually assign a value.
55948
55949 2008-04-20  Bruno Haible  <bruno@clisp.org>
55950
55951         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55952         take 2.
55953         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55954         'canonicalize-lgpl' module is also used.
55955         * lib/canonicalize-lgpl.c: Undo last change.
55956         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55957
55958 2008-04-20  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55961         config.h. Provide _mkdir based fallback for mingw.
55962         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55963         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55964         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55965         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55966         rather than defining mkdir in config.h.
55967         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55968         (gl_SYS_STAT_H_DEFAULTS): New macro.
55969         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55970         HAVE_IO_H any more.
55971         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55972         HAVE_DECL_MKDIR and HAVE_IO_H.
55973
55974 2008-04-20  Bruno Haible  <bruno@clisp.org>
55975
55976         * lib/isapipe.c: Port to native Windows platforms.
55977
55978 2008-04-20  Bruno Haible  <bruno@clisp.org>
55979
55980         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55981
55982 2008-04-21  Eric Blake  <ebb9@byu.net>
55983
55984         Work around preprocessors that don't handle UINTMAX_MAX.
55985         * lib/memchr2.c (memchr2): Avoid embedded #if.
55986         Reported by Alain Guibert, fix suggested by Bruno Haible.
55987
55988 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55989
55990         * doc/posix-functions/strftime.texi (strftime): Explain better
55991         Windows incompatibility.  Suggested by Micah Cowan
55992         <micah@cowan.name>.
55993
55994 2008-04-20  Bruno Haible  <bruno@clisp.org>
55995
55996         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55997         unistr/u8-mblen.
55998
55999 2008-04-20  Bruno Haible  <bruno@clisp.org>
56000
56001         Fix test failure on platforms with non-GNU iconv.
56002         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56003         (U_TO_U8): Use it, rather than u16_to_u8.
56004         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56005         units at the end of the input string.
56006         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56007
56008 2008-04-20  Bruno Haible  <bruno@clisp.org>
56009
56010         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56011         when the resulting length is 0.
56012         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56013
56014 2008-04-20  Bruno Haible  <bruno@clisp.org>
56015
56016         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56017         works.
56018         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56019
56020 2008-04-20  Bruno Haible  <bruno@clisp.org>
56021
56022         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56023         * modules/tsearch-tests (configure.ac): Test for initstate function.
56024
56025 2008-04-20  Bruno Haible  <bruno@clisp.org>
56026
56027         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56028         for nlink_t if missing.
56029         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56030
56031 2008-04-19  Bruno Haible  <bruno@clisp.org>
56032
56033         Work around snprintf bug on Linux libc5.
56034         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56036         gl_SNPRINTF_SIZE1.
56037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56038         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56039         that test failed.
56040         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56041         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56042         * modules/snprintf (Files): Add m4/printf.m4.
56043         * modules/vsnprintf (Files): Likewise.
56044         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56045         * doc/posix-functions/vsnprintf.texi: Likewise.
56046
56047 2008-04-19  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56050         from 0.0058 to less than 10^-7.
56051
56052 2008-04-19  Bruno Haible  <bruno@clisp.org>
56053
56054         Fix rounding when a precision is given.
56055         * lib/vasnprintf.c (is_borderline): New function.
56056         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56057         9...9x.
56058         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56059         %e, %g.
56060         * tests/test-vasprintf-posix.c (test_function): Likewise.
56061         * tests/test-snprintf-posix.h (test_function): Likewise.
56062         * tests/test-sprintf-posix.h (test_function): Likewise.
56063         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56064         * tests/test-printf-posix.h (test_function): Likewise.
56065         * tests/test-printf-posix.output: Update.
56066         Reported by John Darrington <john@darrington.wattle.id.au> via
56067         Ben Pfaff <blp@cs.stanford.edu>.
56068
56069 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56070
56071         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56072         Suggested by Bruno Haible <bruno@clisp.org>.
56073
56074 2008-04-17  Bruno Haible  <bruno@clisp.org>
56075
56076         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56077         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56078         implementation.
56079         Patch by Bruce Merry <bmerry@gmail.com>.
56080
56081 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56082
56083         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56084         doesn't work under Windows.
56085
56086 2008-04-16  Bruno Haible  <bruno@clisp.org>
56087
56088         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56089         New macros.
56090         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56091         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56092         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56093         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56094         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56095         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56096         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56097         macros.
56098         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56099         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56100         Northern Sotho, Uighur.
56101
56102 2008-04-16  Bruno Haible  <bruno@clisp.org>
56103
56104         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56105         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56106         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56107         Reported by Daniel Bergström <daniel@octocode.com>.
56108
56109 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56110             Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56113         function.
56114         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56115         New functions, mostly extracted from gl_locale_name_default.
56116         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56117
56118 2008-04-16  Eric Blake  <ebb9@byu.net>
56119
56120         Adjust strtod detection to catch glibc 2.7 bug.
56121         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56122         Reported by John Gatewood Ham.
56123
56124 2008-04-16  Bruno Haible  <bruno@clisp.org>
56125
56126         Add tentative support for Linux libc5.
56127         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56128         * lib/fpurge.c (fpurge): Likewise.
56129         * lib/freadable.c (freadable): Likewise.
56130         * lib/freadahead.c (freadahead): Likewise.
56131         * lib/freading.c (freading): Likewise.
56132         * lib/freadptr.c (freadptr): Likewise.
56133         * lib/freadseek.c (freadptrinc): Likewise.
56134         * lib/fseeko.c (rpl_fseeko): Likewise.
56135         * lib/fseterr.c (fseterr): Likewise.
56136         * lib/fwritable.c (fwritable): Likewise.
56137         * lib/fwriting.c (fwriting): Likewise.
56138         Reported by Alain Guibert <alguibert+bts@free.fr>.
56139
56140 2008-04-15  Bruno Haible  <bruno@clisp.org>
56141
56142         * modules/mathl (configure.ac): Define module indicator.
56143
56144 2008-04-15  Bruno Haible  <bruno@clisp.org>
56145
56146         * lib/logl.c (logl): Remove unused variables.
56147
56148 2008-04-15  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56151         fails.
56152
56153 2008-04-15  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/trim.c (trim2): Fix argument of isspace() macro.
56156
56157 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56158
56159         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56160         to 0.
56161         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56162
56163 2008-04-14  Bruno Haible  <bruno@clisp.org>
56164
56165         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56166         AC_LANG_PROGRAM argument.
56167         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56168         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56170         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56171         * m4/math_h.m4 (gl_MATH_H): Likewise.
56172         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56173         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56174         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56175         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56176         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56177         * m4/regex.m4 (gl_REGEX): Likewise.
56178         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56179         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56181         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56182         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56183         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56185         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56186
56187 2008-04-14  Jim Meyering  <meyering@redhat.com>
56188
56189         test-strtod: fix typos: s/abs/fabs/
56190         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56191
56192 2008-04-13  Bruno Haible  <bruno@clisp.org>
56193
56194         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56195         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56196         module is also used and while not building the reloc-wrapper.
56197
56198 2008-04-13  Bruno Haible  <bruno@clisp.org>
56199
56200         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56201
56202 2008-04-13  Bruno Haible  <bruno@clisp.org>
56203
56204         Fix AIX compilation failure introduced on 2008-04-02.
56205         * tests/test-frexp.c (exp): Undefine before redefining.
56206         * tests/test-frexpl.c (exp): Likewise.
56207
56208 2008-04-13  Bruno Haible  <bruno@clisp.org>
56209
56210         Work around a HP-UX stdio bug.
56211         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56212         * tests/test-ftello.c (main): Likewise.
56213         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56214         * doc/posix-functions/ftello.texi: Likewise.
56215
56216 2008-04-13  Bruno Haible  <bruno@clisp.org>
56217
56218         Make test-signbit pass on HP-UX/hppa.
56219         * tests/test-signbit.c (minus_zerol): New variable.
56220         (test_signbitl): Use it.
56221
56222 2008-04-13  Bruno Haible  <bruno@clisp.org>
56223
56224         Make truncl work on OSF/1 4.0.
56225         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56226         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56227         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56229         HAVE_DECL_TRUNCL.
56230         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56231         HAVE_DECL_TRUNCL.
56232         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56233
56234 2008-04-13  Bruno Haible  <bruno@clisp.org>
56235
56236         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56237
56238 2008-04-13  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56241         expression, so as to avoid HP-UX 11 cc compiler bug.
56242
56243 2008-04-13  Bruno Haible  <bruno@clisp.org>
56244
56245         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56246
56247 2008-04-13  Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/git-merge-changelog.c: Remove empty declaration outside of
56250         functions.
56251
56252 2008-04-13  Bruno Haible  <bruno@clisp.org>
56253
56254         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56255
56256 2008-04-13  Bruno Haible  <bruno@clisp.org>
56257
56258         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56259         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56260         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56261         also if it exists but lacks definitions of the SHUT_* macros.
56262         * modules/sys_socket (Description): Update.
56263         Reported by Elbert Pol <e.pol@chello.nl>.
56264
56265 2008-04-13  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/localcharset.c (OS2): Don't redefine if already defined.
56268         Reported by Elbert Pol <e.pol@chello.nl>.
56269
56270 2008-04-13  Bruno Haible  <bruno@clisp.org>
56271
56272         * lib/binary-io.h [__EMX__]: Include <io.h>.
56273         Reported by Elbert Pol <e.pol@chello.nl>.
56274
56275 2008-04-12  Bruno Haible  <bruno@clisp.org>
56276
56277         * lib/fpucw.h: Enable the definitions also for x86_64.
56278         Needed for NetBSD/x86_64.
56279         Reported by Thomas Klausner <tk@giga.or.at>.
56280
56281 2008-04-12  Bruno Haible  <bruno@clisp.org>
56282
56283         * tests/test-strtod.c: Include isnand.h.
56284         (main): Use isnand instead of isnan.
56285         Reported by Jim Meyering.
56286
56287 2008-04-12  Bruno Haible  <bruno@clisp.org>
56288
56289         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56290         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56291
56292 2008-04-12  Jim Meyering  <meyering@redhat.com>
56293
56294         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56295
56296 2008-04-12  Bruno Haible  <bruno@clisp.org>
56297
56298         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56299         Reported by Elbert Pol <e.pol@chello.nl>.
56300
56301 2008-04-12  Eric Blake  <ebb9@byu.net>
56302
56303         Work around Solaris 10 math.h bug.
56304         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56305         (gl_MATH_H_DEFAULTS): Set up default.
56306         * modules/math (Makefile.am): Replace new indicators.
56307         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56308         * tests/test-math.c (main): Test this.
56309         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56310         * doc/posix-headers/math.texi (math.h): Mention bug.
56311         Reported by Nelson H. F. Beebe and Jim Meyering.
56312
56313 2008-04-11  Bruno Haible  <bruno@clisp.org>
56314
56315         Adapt to future versions of Apple GCC.
56316         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56317         Reported by Peter O'Gorman <peter@pogma.com>.
56318
56319 2008-04-11  Bruno Haible  <bruno@clisp.org>
56320
56321         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56322
56323 2008-04-11  Bruno Haible  <bruno@clisp.org>
56324
56325         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56326
56327         * modules/getaddrinfo-tests (Makefile.am): Define
56328         test_getaddrinfo_LDADD.
56329
56330 2008-04-11  Bruno Haible  <bruno@clisp.org>
56331
56332         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56333         (init): Fix syntax error.
56334         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56335         is declared.
56336
56337 2008-04-11  Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56340         * modules/glob (Depends-on): Add stdbool.
56341
56342 2008-04-11  Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/trim.c: Include <string.h>.
56345
56346 2008-04-11  Eric Blake  <ebb9@byu.net>
56347
56348         Avoid compile failure on OS/2.
56349         * lib/regex_internal.h (internal_function): Disable optimization
56350         on OS/2 (__EMX__), where it caused compiler error.
56351         Reported by Elbert Pol.
56352
56353 2008-04-11  Bruno Haible  <bruno@clisp.org>
56354
56355         Flush the standard error stream before aborting. Needed on mingw.
56356         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56357         * tests/test-array_list.c (ASSERT): Likewise.
56358         * tests/test-array_oset.c (ASSERT): Likewise.
56359         * tests/test-avltree_list.c (ASSERT): Likewise.
56360         * tests/test-avltree_oset.c (ASSERT): Likewise.
56361         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56362         * tests/test-binary-io.c (ASSERT): Likewise.
56363         * tests/test-byteswap.c (ASSERT): Likewise.
56364         * tests/test-c-ctype.c (ASSERT): Likewise.
56365         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56366         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56367         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56368         * tests/test-c-strstr.c (ASSERT): Likewise.
56369         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56370         * tests/test-canonicalize.c (ASSERT): Likewise.
56371         * tests/test-carray_list.c (ASSERT): Likewise.
56372         * tests/test-ceilf1.c (ASSERT): Likewise.
56373         * tests/test-ceilf2.c (ASSERT): Likewise.
56374         * tests/test-ceill.c (ASSERT): Likewise.
56375         * tests/test-count-one-bits.c (ASSERT): Likewise.
56376         * tests/test-fbufmode.c (ASSERT): Likewise.
56377         * tests/test-fflush2.c (ASSERT): Likewise.
56378         * tests/test-floorf1.c (ASSERT): Likewise.
56379         * tests/test-floorf2.c (ASSERT): Likewise.
56380         * tests/test-floorl.c (ASSERT): Likewise.
56381         * tests/test-fopen.c (ASSERT): Likewise.
56382         * tests/test-fpending.c (ASSERT): Likewise.
56383         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56384         * tests/test-fpurge.c (ASSERT): Likewise.
56385         * tests/test-freadable.c (ASSERT): Likewise.
56386         * tests/test-freadahead.c (ASSERT): Likewise.
56387         * tests/test-freading.c (ASSERT): Likewise.
56388         * tests/test-freadptr.c (ASSERT): Likewise.
56389         * tests/test-freadptr2.c (ASSERT): Likewise.
56390         * tests/test-freadseek.c (ASSERT): Likewise.
56391         * tests/test-freopen.c (ASSERT): Likewise.
56392         * tests/test-frexp.c (ASSERT): Likewise.
56393         * tests/test-frexpl.c (ASSERT): Likewise.
56394         * tests/test-fseek.c (ASSERT): Likewise.
56395         * tests/test-fseeko.c (ASSERT): Likewise.
56396         * tests/test-fstrcmp.c (ASSERT): Likewise.
56397         * tests/test-ftell.c (ASSERT): Likewise.
56398         * tests/test-ftello.c (ASSERT): Likewise.
56399         * tests/test-func.c (ASSERT): Likewise.
56400         * tests/test-fwritable.c (ASSERT): Likewise.
56401         * tests/test-fwriting.c (ASSERT): Likewise.
56402         * tests/test-getdelim.c (ASSERT): Likewise.
56403         * tests/test-getline.c (ASSERT): Likewise.
56404         * tests/test-i-ring.c (ASSERT): Likewise.
56405         * tests/test-iconv-utf.c (ASSERT): Likewise.
56406         * tests/test-iconv.c (ASSERT): Likewise.
56407         * tests/test-isfinite.c (ASSERT): Likewise.
56408         * tests/test-isnand.c (ASSERT): Likewise.
56409         * tests/test-isnanf.c (ASSERT): Likewise.
56410         * tests/test-isnanl.h (ASSERT): Likewise.
56411         * tests/test-ldexpl.c (ASSERT): Likewise.
56412         * tests/test-linked_list.c (ASSERT): Likewise.
56413         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56414         * tests/test-localename.c (ASSERT): Likewise.
56415         * tests/test-lseek.c (ASSERT): Likewise.
56416         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56417         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56418         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56419         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56420         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56421         * tests/test-mbschr.c (ASSERT): Likewise.
56422         * tests/test-mbscspn.c (ASSERT): Likewise.
56423         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56424         * tests/test-mbspbrk.c (ASSERT): Likewise.
56425         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56426         * tests/test-mbsrchr.c (ASSERT): Likewise.
56427         * tests/test-mbsspn.c (ASSERT): Likewise.
56428         * tests/test-mbsstr1.c (ASSERT): Likewise.
56429         * tests/test-mbsstr2.c (ASSERT): Likewise.
56430         * tests/test-mbsstr3.c (ASSERT): Likewise.
56431         * tests/test-memchr2.c (ASSERT): Likewise.
56432         * tests/test-memmem.c (ASSERT): Likewise.
56433         * tests/test-open.c (ASSERT): Likewise.
56434         * tests/test-printf-frexp.c (ASSERT): Likewise.
56435         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56436         * tests/test-printf-posix.c (ASSERT): Likewise.
56437         * tests/test-quotearg.c (ASSERT): Likewise.
56438         * tests/test-rbtree_list.c (ASSERT): Likewise.
56439         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56440         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56441         * tests/test-round1.c (ASSERT): Likewise.
56442         * tests/test-roundf1.c (ASSERT): Likewise.
56443         * tests/test-roundl.c (ASSERT): Likewise.
56444         * tests/test-signbit.c (ASSERT): Likewise.
56445         * tests/test-sleep.c (ASSERT): Likewise.
56446         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56447         * tests/test-snprintf.c (ASSERT): Likewise.
56448         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56449         * tests/test-stat-time.c (ASSERT): Likewise.
56450         * tests/test-strcasestr.c (ASSERT): Likewise.
56451         * tests/test-strerror.c (ASSERT): Likewise.
56452         * tests/test-striconv.c (ASSERT): Likewise.
56453         * tests/test-striconveh.c (ASSERT): Likewise.
56454         * tests/test-striconveha.c (ASSERT): Likewise.
56455         * tests/test-strsignal.c (ASSERT): Likewise.
56456         * tests/test-strstr.c (ASSERT): Likewise.
56457         * tests/test-strtod.c (ASSERT): Likewise.
56458         * tests/test-trunc1.c (ASSERT): Likewise.
56459         * tests/test-trunc2.c (ASSERT): Likewise.
56460         * tests/test-truncf1.c (ASSERT): Likewise.
56461         * tests/test-truncf2.c (ASSERT): Likewise.
56462         * tests/test-truncl.c (ASSERT): Likewise.
56463         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56464         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56465         * tests/test-vasnprintf.c (ASSERT): Likewise.
56466         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56467         * tests/test-vasprintf.c (ASSERT): Likewise.
56468         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56469         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56470         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56471         * tests/test-vsnprintf.c (ASSERT): Likewise.
56472         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56473         * tests/test-wcwidth.c (ASSERT): Likewise.
56474         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56475         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56476         * tests/test-xvasprintf.c (ASSERT): Likewise.
56477         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56478         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56479         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56480         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56481         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56482         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56483         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56484         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56485         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56486         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56487         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56488         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56489         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56490         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56491         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56492         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56493         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56494         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56495         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56496         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56497         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56498         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56499         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56500         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56501         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56502         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56503         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56504         * tests/unictype/test-combining.c (ASSERT): Likewise.
56505         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56506         * tests/unictype/test-digit.c (ASSERT): Likewise.
56507         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56508         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56509         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56510         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56511         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56512         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56513         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56514         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56515         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56516         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56517         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56518         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56519         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56520         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56521         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56522         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56523         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56524         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56525         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56526         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56527         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56528         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56529         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56530         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56531         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56532         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56533         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56534         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56535         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56536         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56537         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56538         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56539         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56540         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56541         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56542         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56543         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56544         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56545         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56546         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56547         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56548         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56549         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56550         Reported by Eric Blake.
56551
56552 2008-04-11  Bruno Haible  <bruno@clisp.org>
56553
56554         * lib/wchar.in.h: Tweak comment.
56555
56556 2008-04-11  Bruno Haible  <bruno@clisp.org>
56557
56558         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56559         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56560         gl_COMMON.
56561         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56562
56563 2008-04-11  Bruno Haible  <bruno@clisp.org>
56564
56565         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56566
56567 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56568
56569         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56570         of attempting to use non-existing /dev/*random.  Based on patch
56571         from Adam Strzelecki <ono@java.pl> in
56572         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56573
56574 2008-04-08  Bruno Haible  <bruno@clisp.org>
56575
56576         Add tentative support for emx+gcc.
56577         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56578         * lib/fpurge.c (fpurge): Likewise.
56579         * lib/freadable.c (freadable): Likewise.
56580         * lib/freadahead.c (freadahead): Likewise.
56581         * lib/freading.c (freading): Likewise.
56582         * lib/freadptr.c (freadptr): Likewise.
56583         * lib/freadseek.c (freadptrinc): Likewise.
56584         * lib/fseeko.c (rpl_fseeko): Likewise.
56585         * lib/fseterr.c (fseterr): Likewise.
56586         * lib/fwritable.c (fwritable): Likewise.
56587         * lib/fwriting.c (fwriting): Likewise.
56588         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56589
56590 2008-04-09  Eric Blake  <ebb9@byu.net>
56591
56592         Avoid some autoconf warnings.
56593         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56594         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56595         * m4/afs.m4 (gl_AFS): Likewise.
56596         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56597         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56598         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56599         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56600         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56601         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56602         (AC_CHECK_DECLS_ONCE): Likewise.
56603         Rename file...
56604         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56605         gnulib-tool requires autoconf 2.59 or better.
56606         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56607
56608 2008-04-08  Eric Blake  <ebb9@byu.net>
56609
56610         Use 'git describe --match' if present (added in git 1.5.5).
56611         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56612         if possible.
56613
56614 2008-04-08  Bruno Haible  <bruno@clisp.org>
56615
56616         Add tentative support for OpenServer.
56617         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56618         _ptr, _cnt.
56619         * lib/fpurge.c (fpurge): Likewise.
56620         * lib/freadable.c (freadable): Likewise.
56621         * lib/freadahead.c (freadahead): Likewise.
56622         * lib/freading.c (freading): Likewise.
56623         * lib/freadptr.c (freadptr): Likewise.
56624         * lib/freadseek.c (freadptrinc): Likewise.
56625         * lib/fseeko.c (rpl_fseeko): Likewise.
56626         * lib/fseterr.c (fseterr): Likewise.
56627         * lib/fwritable.c (fwritable): Likewise.
56628         * lib/fwriting.c (fwriting): Likewise.
56629         Reported by Roger Cornelius <rac@tenzing.org> and
56630         Brian K. White <brian@aljex.com>.
56631
56632 2008-04-06  Jim Meyering  <meyering@redhat.com>
56633
56634         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56635
56636 2008-04-06  Bruno Haible  <bruno@clisp.org>
56637
56638         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56639         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56640         * tests/test-printf-posix.sh: Likewise.
56641         * tests/test-vfprintf-posix.sh: Likewise.
56642         * tests/test-vprintf-posix.sh: Likewise.
56643         * tests/test-xprintf-posix.sh: Likewise.
56644
56645 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56646
56647         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56648         hide error from 'ls', needed on OS/2.
56649         Report by Elbert Pol <elbert.pol@gmail.com>.
56650
56651 2008-04-04  Eric Blake  <ebb9@byu.net>
56652
56653         Make test-fseeko.c failures meaningful.
56654         * tests/test-fseeko.c: Print line number on failure.
56655         * tests/test-fseek.c: Likewise.
56656         Reported by Nelson H. F. Beebe.
56657
56658         Improve strtod bug detection check.
56659         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56660         required for Solaris 10.
56661         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56662
56663 2008-04-04  Bruno Haible  <bruno@clisp.org>
56664
56665         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56666         by m4/setenv.m4.
56667
56668 2008-04-03  Eric Blake  <ebb9@byu.net>
56669
56670         Ensure sane .version contents.
56671         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56672         version string.
56673         * build-aux/git-version-gen: Improve documentation.
56674
56675         Make GNU make output nicer.
56676         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56677         MAKECMDGOALS to enforce message for all command line targets.  Set
56678         srcdir for use in maint.mk.
56679
56680         Another maintainer tweak.
56681         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56682         a target that regenerates version.
56683
56684 2008-04-03  Jim Meyering  <meyering@redhat.com>
56685
56686         vc-list-files: don't cause coreutils "make po-check" failure
56687         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56688
56689 2008-04-03  Eric Blake  <ebb9@byu.net>
56690
56691         Allow VPATH usage of vc-list-files.
56692         * build-aux/vc-list-files (scriptversion): Add timestamp.
56693         (options): Add --help, --version, -C.
56694         (CVS): Support installed cvsu.
56695
56696 2008-04-02  Bruno Haible  <bruno@clisp.org>
56697
56698         Avoid some "statement with no effect" warnings from gcc.
56699         * tests/test-wctype.c (main): Explicitly ignore unused values.
56700         Reported by Jim Meyering.
56701
56702 2008-04-02  Jim Meyering  <meyering@redhat.com>
56703
56704         Avoid some warnings from "gcc -Wshadow".
56705         * tests/test-frexp.c (exp): Define to a different identifier.
56706         * tests/test-frexpl.c (exp): Likewise.
56707
56708 2008-04-03  Jim Meyering  <meyering@redhat.com>
56709
56710         bootstrap: remove dangling *.[ch] symlinks from lib
56711         * build-aux/bootstrap [dangling symlink removal]: Move find's
56712         -depth option to precede all others, to avoid a warning.
56713         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56714
56715 2008-04-02  Bruno Haible  <bruno@clisp.org>
56716
56717         Avoid some warnings from "gcc -Wshadow".
56718         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56719         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56720         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56721         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56722         Reported by Jim Meyering.
56723
56724 2008-04-01  Bruno Haible  <bruno@clisp.org>
56725
56726         Fix test to work on IRIX 6.5 with cc.
56727         * tests/test-math.c (numeric_equal): New function.
56728         (main): Use it.
56729
56730 2008-04-01  Bruno Haible  <bruno@clisp.org>
56731
56732         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56733
56734 2008-04-01  Bruno Haible  <bruno@clisp.org>
56735
56736         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56737         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56738         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56739         (Depends-on): Remove math.
56740
56741         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56742         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56743         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56744         (Depends-on): Remove math.
56745
56746         * tests/test-snprintf-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/snprintf-posix-tests (Files): Add tests/nan.h.
56749         (Depends-on): Remove math.
56750         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56751         (Depends-on): Remove math.
56752
56753         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56754         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56755         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56756         (Depends-on): Remove math.
56757         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56758         (Depends-on): Remove math.
56759
56760         * tests/test-round1.c: Include nan.h.
56761         (main): Use NaNd instead of NAN.
56762         * modules/round-tests (Files): Add tests/nan.h.
56763
56764         * tests/test-trunc1.c: Include nan.h.
56765         (main): Use NaNd instead of NAN.
56766         * modules/trunc-tests (Files): Add tests/nan.h.
56767
56768         * tests/test-roundf1.c: Include nan.h.
56769         (main): Use NaNf instead of NAN.
56770         * modules/roundf-tests (Files): Add tests/nan.h.
56771
56772         * tests/test-truncf1.c: Include nan.h.
56773         (main): Use NaNf instead of NAN.
56774         * modules/truncf-tests (Files): Add tests/nan.h.
56775
56776         * tests/test-ceilf1.c: Include nan.h.
56777         (main): Use NaNf instead of NAN.
56778         * modules/ceilf-tests (Files): Add tests/nan.h.
56779
56780         * tests/test-floorf1.c: Include nan.h.
56781         (main): Use NaNf instead of NAN.
56782         * modules/floorf-tests (Files): Add tests/nan.h.
56783
56784         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56785         (main): Use NaNf instead of NAN.
56786         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56787
56788         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56789         (main): Use NaNd instead of NAN.
56790         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56791
56792         * tests/test-frexp.c: Include nan.h.
56793         (main): Use NaNd instead of NAN.
56794         * modules/frexp-tests (Files): Add tests/nan.h.
56795
56796         * lib/isnan.c: Don't include <math.h>.
56797         (FUNC): Don't use NAN macro.
56798         * modules/isnand-nolibm (Depends-on): Remove math.
56799         * modules/isnanf-nolibm (Depends-on): Remove math.
56800         * modules/isnanl (Depends-on): Remove math.
56801         * modules/isnanl-nolibm (Depends-on): Remove math.
56802
56803         * tests/nan.h: New file.
56804
56805 2008-04-01  Eric Blake  <ebb9@byu.net>
56806
56807         Fix typos.
56808         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56809         values to be the right type.
56810
56811         For now, cater to gnulib strtod inaccuracies.
56812         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56813         fractional results.  While not as nice from a QoI perspective, it
56814         is a quicker patch than correctly implementing decimal to binary
56815         rounding.
56816
56817 2008-03-31  Eric Blake  <ebb9@byu.net>
56818
56819         Guarantee a definition of NAN.
56820         * lib/math.in.h (NAN): Define if missing.
56821         * tests/test-math.c (main): Test it.
56822         * doc/posix-headers/math.texi (math.h): Document this.
56823         * lib/isnan.c (rpl_isnand): Use it.
56824         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56825         * tests/test-floorf1.c (NaN): Likewise.
56826         * tests/test-frexp.c (NaN): Likewise.
56827         * tests/test-isnand.c (NaN): Likewise.
56828         * tests/test-isnanf.c (NaN): Likewise.
56829         * tests/test-round1.c (NaN): Likewise.
56830         * tests/test-roundf1.c (NaN): Likewise.
56831         * tests/test-snprintf-posix.h (NaN): Likewise.
56832         * tests/test-sprintf-posix.h (NaN): Likewise.
56833         * tests/test-trunc1.c (NaN): Likewise.
56834         * tests/test-truncf1.c (NaN): Likewise.
56835         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56836         * tests/test-vasprintf-posix.c (NaN): Likewise.
56837         * modules/isnand-nolibm (Depends-on): Add math.
56838         * modules/isnanf-nolibm (Depends-on): Likewise.
56839         * modules/isnanl (Depends-on): Likewise.
56840         * modules/isnanl-nolibm (Depends-on): Likewise.
56841         * modules/snprintf-posix-tests (Depends-on): Likewise.
56842         * modules/sprintf-posix-tests (Depends-on): Likewise.
56843         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56844         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56845         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56846         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56847
56848 2008-03-31  Bruno Haible  <bruno@clisp.org>
56849
56850         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56851         * doc/posix-functions/strtod.texi: Likewise.
56852
56853 2008-03-31  Bruno Haible  <bruno@clisp.org>
56854
56855         * tests/test-strtod.c (main): Don't use C99 syntax.
56856
56857 2008-03-31  Bruno Haible  <bruno@clisp.org>
56858
56859         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56860         Reported by Eric Blake.
56861
56862 2008-03-31  Jim Meyering  <meyering@redhat.com>
56863
56864         Don't compare actual signbit return values.
56865         * tests/test-strtod.c (main): Rather, compare only their
56866         zero/non-zero nature.
56867
56868 2008-03-31  Eric Blake  <ebb9@byu.net>
56869
56870         More strtod documentation.
56871         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56872         failures as distinct bugs.
56873
56874 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56875
56876         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56877         Problem reported by Erik Benada in
56878         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56879
56880 2008-03-30  Bruno Haible  <bruno@clisp.org>
56881
56882         * tests/test-strtod.c: Add comments about which assertion fails on which
56883         platform.
56884         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56885
56886 2008-03-30  Eric Blake  <ebb9@byu.net>
56887
56888         Test signbit behavior on zeros.
56889         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56890         (test_signbitd, test_signbitl): Likewise.
56891
56892         More strtod touchups.
56893         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56894         sign of negative underflow, for now.  Use .5, not .1.
56895         * doc/posix-functions/strtod.texi (strtod): Mention these
56896         limitations.
56897         Reported by Jim Meyering.
56898
56899 2008-03-30  Bruno Haible  <bruno@clisp.org>
56900
56901         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56902         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56903
56904 2008-03-30  Bruno Haible  <bruno@clisp.org>
56905
56906         Avoid failure when attempting to return empty iconv results on some
56907         platforms.
56908         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56909         allocation, don't report ENOMEM when the resulting string is empty.
56910
56911 2008-03-30  Bruno Haible  <bruno@clisp.org>
56912
56913         Fix buffer overrun.
56914         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56915         Don't consider the width for tmp_length. Check count against tmp_length
56916         before doing the padding. Ensure enough allocation during padding.
56917
56918 2008-03-30  Eric Blake  <ebb9@byu.net>
56919
56920         strtod touchups.
56921         * lib/strtod.c (strtod): Avoid compiler warnings.
56922         Reported by Jim Meyering.
56923
56924 2008-03-30  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56927         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56928         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56929         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56930         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56931         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56932         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56933         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56934
56935         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56936         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56937         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56938         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56939         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56940         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56941         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56942         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56943
56944         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56945         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56946         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56947         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56948         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56949         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56950         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56951         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56952
56953         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56954         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56955
56956         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56957         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56958
56959         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56960         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56961
56962         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56963         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56964         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56965
56966         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56967         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56968         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56969
56970         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56972         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56973
56974         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56976         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56977
56978         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56979         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56981         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56982         (Depends-on): Add EOVERFLOW.
56983         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56984         (Depends-on): Add EOVERFLOW.
56985         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56986         (Depends-on): Add EOVERFLOW.
56987         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56988         (Depends-on): Add EOVERFLOW.
56989         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56990         (Depends-on): Add EOVERFLOW.
56991         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56992         (Depends-on): Add EOVERFLOW.
56993         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56994         (Depends-on): Add EOVERFLOW.
56995         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56996         (Depends-on): Add EOVERFLOW.
56997
56998         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57000         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57001
57002         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57003         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57004         * modules/snprintf (Depends-on): Add EOVERFLOW.
57005
57006         * lib/poll.c (EOVERFLOW): Remove fallback.
57007         * modules/poll (Depends-on): Add EOVERFLOW.
57008
57009         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57010         * modules/getugroups (Depends-on): Add EOVERFLOW.
57011
57012         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57013         * modules/getdelim (Depends-on): Add EOVERFLOW.
57014
57015         * lib/ftell.c (EOVERFLOW): Remove fallback.
57016         * modules/ftell (Depends-on): Add EOVERFLOW.
57017
57018         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57020         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57021
57022         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57023
57024         * modules/EOVERFLOW-tests: New file.
57025         * tests/test-EOVERFLOW.c: New file.
57026
57027         * modules/EOVERFLOW: New file.
57028         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57029
57030 2008-03-30  Bruno Haible  <bruno@clisp.org>
57031
57032         Fix bug introduced on 2007-06-10.
57033         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57034         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57035
57036 2008-03-30  Bruno Haible  <bruno@clisp.org>
57037
57038         Improve freadseek's efficiency after ungetc.
57039         * lib/freadseek.c: Include freadahead.h.
57040         (freadptrinc): New function, extracted from freadseek.
57041         (freadseek): Use it in a loop. Use freadahead to determine the number
57042         of loop iterations.
57043         * modules/freadseek (Depends-on): Add freadahead.
57044         (configure.ac): Require AC_C_INLINE.
57045
57046 2008-03-30  Bruno Haible  <bruno@clisp.org>
57047
57048         * lib/freadseek.c (freadseek): Don't ignore the return value of
57049         freadptr.
57050
57051 2008-03-29  Eric Blake  <ebb9@byu.net>
57052
57053         Add hex float support.
57054         * modules/strtod (Depends-on): Add c-ctype.
57055         (Link): Mention POW_LIB.
57056         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57057         whitespace between 'e' and exponent.
57058         * tests/test-strtod.c (main): Enable hex float tests.
57059         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57060         now provides.
57061
57062         Document various strtod bugs, with some fixes.
57063         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57064         "-0x", "inf", "nan", and hex constants.
57065         * doc/posix-functions/atof.texi (atof): Likewise.
57066         * modules/stdlib (Makefile.am): Support strtod.
57067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57068         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57069         detect additional strtod bugs.
57070         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57071         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57072         bool where appropriate.  Parse 'inf' and 'nan'.
57073         * tests/test-strtod.c: New file.
57074         * modules/strtod (Depends-on): Add stdbool, stdlib.
57075         (configure.ac): Turn on module indicator.
57076         * modules/strtod-tests: New module.
57077
57078 2008-03-29  Eric Blake  <ebb9@byu.net>
57079
57080         Fix ftell on mingw.
57081         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57082         * modules/ftell-tests (Depends-on): Add binary-io.
57083         * modules/ftello-tests (Depends-on): Likewise.
57084         * tests/test-ftell.c (main): Enhance test to cover behavior after
57085         ungetc.  Enforce binary mode.
57086         * tests/test-ftello.c (main): Likewise.
57087
57088         Pass test-freadseek on cygwin.
57089         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57090         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57091         ungetc buffer.
57092
57093         * tests/test-fflush2.c (main): Fix typo.
57094
57095 2008-03-29  Bruno Haible  <bruno@clisp.org>
57096
57097         * tests/test-fflush2.c (main): Temporarily disable the contents of
57098         this test.
57099         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57100         Reported by Eric Blake.
57101
57102 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57103
57104         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57105         (GC_SHA224_DIGEST_SIZE): Add.
57106
57107         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57108         (gc_hash_digest_length): Likewise.
57109         (gc_hash_buffer): Likewise.
57110
57111 2008-03-25  Bruno Haible  <bruno@clisp.org>
57112
57113         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57114         detail which gettext release to use.
57115         Reported by Simon Josefsson.
57116
57117 2008-03-26  Jim Meyering  <meyering@redhat.com>
57118
57119         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57120         * modules/gnumakefile (clean-GNUmakefile): Also, use
57121         test ... && ... || : syntax rather than if-then ... fi.
57122
57123         gnumakefile: Don't double-quote-expand $(VPATH) value.
57124         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57125
57126 2008-03-24  Eric Blake  <ebb9@byu.net>
57127
57128         Alter GNUmakefile to install into top directory.
57129         * modules/maintainer-makefile: Split, and add dependency...
57130         * modules/gnumakefile: to this new module.
57131         * build-aux/GNUmakefile: Move...
57132         * top/GNUmakefile: ...here.
57133         * build-aux/maint.mk: Move...
57134         * top/maint.mk: ...here.
57135         * MODULES.html.sh (Support for maintaining...): Document new
57136         module.
57137
57138 2008-03-23  Bruno Haible  <bruno@clisp.org>
57139
57140         * gnulib-tool: New options --vc-files, --no-vc-files.
57141         (func_usage): Document them.
57142         (vc_files): New variable.
57143         (func_import): Consider vc_files.
57144         (func_create_testdir): Set vc_files to empty.
57145         Suggested by Jim Meyering and Karl Berry.
57146
57147 2008-03-23  Bruno Haible  <bruno@clisp.org>
57148
57149         Fix regex compilation error on HP-UX 11.
57150         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57151         * modules/regex (Files): Add m4/mbstate_t.m4.
57152         Reported by Ton Voon <ton.voon@altinity.com>.
57153
57154 2008-03-23  Bruno Haible  <bruno@clisp.org>
57155
57156         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57157
57158 2008-03-23  Eric Blake  <ebb9@byu.net>
57159             Bruno Haible  <bruno@clisp.org>
57160
57161         Install files from top/ in the destination directory.
57162         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57163         augmentation also for the files from top/.
57164         (func_import, func_create_testdir): Rewrite file names:
57165         top/filename -> filename.
57166
57167 2008-03-23  Bruno Haible  <bruno@clisp.org>
57168
57169         Tweak "gnulib --version" output.
57170         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57171
57172 2008-03-23  Bruno Haible  <bruno@clisp.org>
57173
57174         Tweak "gnulib --version" output.
57175         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57176         rather than contents of ChangeLog, when possible.
57177
57178 2008-03-21  Eric Blake  <ebb9@byu.net>
57179
57180         More --version tweaks.
57181         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57182         date of last ChangeLog entry.
57183
57184 2008-03-21  Jim Meyering  <meyering@redhat.com>
57185
57186         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57187
57188 2008-03-20  Eric Blake  <ebb9@byu.net>
57189
57190         VPATH fix.
57191         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57192
57193 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57194
57195         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57196         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57197
57198 2008-03-20  Eric Blake  <ebb9@byu.net>
57199
57200         Sync GNUmakefile with coreutils.
57201         * build-aux/GNUmakefile (have-Makefile): Rename...
57202         (_have-Makefile): ...to this, for namespace consideration.
57203         (GNUmakefile.cfg): Include, if present.
57204         (_autoreconf): Define a default.
57205         (_is-dist-target): New rule for rebuilds to pick up intra-release
57206         version.
57207         (maint-cfg.mk): Rename...
57208         (cfg.mk): ...to this.
57209
57210 2008-03-18  Jim Meyering  <meyering@redhat.com>
57211
57212         New script and module: mktempd
57213         * MODULES.html.sh (maint+release support): Add mktempd.
57214         * build-aux/mktempd: New file.
57215         * modules/mktempd: New file.
57216
57217 2008-03-15  Jim Meyering  <meyering@redhat.com>
57218
57219         Undo last change.
57220         * lib/sha1.c, lib/md5.c: 63 != ~63.
57221         Reported by Andreas Schwab.
57222
57223         sha1.c, md5.c: Hoist a redundant expression.
57224         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57225         "ctx->buflen" only once, before calling *_process_block.
57226         * lib/md5.c (md5_process_bytes): Likewise.
57227
57228 2008-03-14  Eric Blake  <ebb9@byu.net>
57229
57230         Bump copyright year in files generated by gnulib-tool.
57231         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57232         gnulib-tool, rather than hard-coding it.
57233
57234         Fix 'gnulib-tool --version' output to work with git.
57235         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57236         (startup): ...here.
57237         (func_version): Use it to invoke git-version-gen, rather than
57238         relying on CVS keyword expansion.  Modernize wording.
57239         (cvsdatestamp, last_checkin_date, version): Kill unused
57240         variables.
57241
57242 2008-03-12  Jim Meyering  <meyering@redhat.com>
57243
57244         Recognize optional cast of the argument to free.
57245         * build-aux/useless-if-before-free: Update regexps.
57246
57247         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57248
57249 2008-03-11  Bruno Haible  <bruno@clisp.org>
57250
57251         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57252         by a single package.
57253         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57254         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57255         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57256         Reported by Sam Steingold <sds@gnu.org>.
57257
57258 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57259
57260         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57261         repositories.
57262
57263 2008-03-11  Bruno Haible  <bruno@clisp.org>
57264
57265         Avoid conflicts between local macro definitions.
57266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57267         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57268
57269 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57270             Bruno Haible  <bruno@clisp.org>
57271
57272         Make va_copy work with some version of xlc on AIX 5.1.
57273         * lib/stdarg.in.h: New file.
57274         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57275         On AIX, use a <stdarg.h> file substitute.
57276         * modules/stdarg (Files): Add lib/stdarg.in.h.
57277         (Depends-on): Add include_next.
57278         (Makefile.am): Build a stdarg.h substitute if requested.
57279         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57280
57281 2008-03-10  Bruno Haible  <bruno@clisp.org>
57282
57283         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57284         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57285         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57286
57287 2008-03-10  Bruno Haible  <bruno@clisp.org>
57288
57289         * modules/stdlib (Depends-on): Add include_next, remove
57290         absolute-header.
57291
57292 2008-03-09  Bruno Haible  <bruno@clisp.org>
57293
57294         * lib/freadahead.h (freadahead): Document more precisely.
57295         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57296         the sum of both buffer sizes.
57297         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57298         * NEWS: Document the change.
57299
57300 2008-03-09  Bruno Haible  <bruno@clisp.org>
57301
57302         Extend freadptr to return also the buffer size.
57303         * lib/freadptr.h (freadptr): Add sizep argument.
57304         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57305         (freadptr): Add sizep argument. Determine buffer size like freadahead
57306         does.
57307         * tests/test-freadptr.c: Don't include freadahead.h.
57308         (main): Adapt for new calling convention of freadptr.
57309         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57310         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57311         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57312         tests/test-freadptr2.sh.
57313         (Depends): Remove freadahead.
57314         (TESTS): Add test-freadptr2.sh.
57315         (check_PROGRAMS): Add test-freadptr2.
57316
57317 2008-03-09  Bruno Haible  <bruno@clisp.org>
57318
57319         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57320         Report and solution by Simon Josefsson.
57321
57322 2008-03-06  Bruno Haible  <bruno@clisp.org>
57323
57324         Make fflush after ungetc work on BSD platforms.
57325         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57326         * tests/test-fflush2.c: New file.
57327         * tests/test-fflush2.sh: New file.
57328         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57329         tests/test-fflush2.c.
57330         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57331         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57332
57333 2008-03-06  Eric Blake  <ebb9@byu.net>
57334
57335         Likewise for ftello.
57336         * modules/ftello (Dependencies): Add extensions.
57337         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57338
57339 2008-03-06  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/fseeko (Dependencies): Add extensions.
57342         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57343         Needed on glibc systems.
57344
57345 2008-03-06  Bruno Haible  <bruno@clisp.org>
57346
57347         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57348         email address.
57349         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57350
57351 2008-03-06  Bruno Haible  <bruno@clisp.org>
57352
57353         * users.txt: Add libgnupdf.
57354
57355 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57356
57357         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57358         (Header File Substitutes, Function Substitutes,
57359         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57360         (Build robot for gnulib): Fix typo.
57361
57362 2008-03-06  Bruno Haible  <bruno@clisp.org>
57363
57364         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57365         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57366
57367 2008-03-06  Bruno Haible  <bruno@clisp.org>
57368
57369         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57370         * doc/gnulib.texi: Include it.
57371
57372 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57373
57374         * modules/func (License): Change license to unlimited; there was
57375         no LGPL parts in the module anyway.
57376
57377 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57378
57379         * modules/__func__: Renamed to modules/func.
57380         * modules/__func__-tests: Renamed to modules/func-tests.
57381         * tests/test-__func__.c: Renamed to tests/test-func.c.
57382         * m4/__func__.m4: Renamed to m4/func.m4.
57383         * doc/gnulib.texi (__func__): Section renamed to func.
57384         Suggested by Eric Blake <ebb9@byu.net>.
57385
57386 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57387
57388         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57389         about __func__.  Make example self-contained.  Suggested by Eric
57390         Blake <ebb9@byu.net>.
57391
57392         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57393         Suggested by Eric Blake <ebb9@byu.net>.
57394
57395 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57396
57397         * modules/__func__: New file.
57398         * modules/__func__-tests: New file.
57399         * tests/test-__func__.c: New file.
57400         * m4/__func__.m4: New file.
57401         * doc/gnulib.texi (__func__): Document __func__ module.
57402
57403 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57404
57405         * modules/byteswap (License): Re-license as LGPLv2+.
57406
57407 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57408
57409         * doc/Makefile: Add pdf target.
57410
57411 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57412
57413         * modules/inline (License): Use 'unlimited', since there are only
57414         *.m4 files in this module.
57415
57416 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57417             Bruno Haible  <bruno@clisp.org>
57418
57419         Add support for HP C 7.1 on OpenVMS 8.3.
57420         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57421
57422 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57423
57424         Update VMS specifics.
57425         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57426
57427 2008-03-02  Jim Meyering  <meyering@redhat.com>
57428
57429         Remove the last dependency on the "free" module.
57430         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57431         Reported by Bob Proulx.
57432
57433         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57434
57435         Remove useless "if" tests before free.  Deprecate "free" module.
57436         * doc/posix-functions/free.texi: Mention that this
57437         module is no longer useful.
57438         * modules/free (Notice): Say this module is obsolete.
57439         * modules/readutmp (Depends-on): Remove free.
57440         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57441         * lib/putenv.c (putenv): Likewise.
57442         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57443         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57444         * tests/test-c-strcasestr.c (main): Likewise.
57445         * tests/test-c-strstr.c (main): Likewise.
57446         * tests/test-mbscasestr1.c (main): Likewise.
57447         * tests/test-mbscasestr2.c (main): Likewise.
57448         * tests/test-mbsstr1.c (main): Likewise.
57449         * tests/test-mbsstr2.c (main): Likewise.
57450         * tests/test-memmem.c (main): Likewise.
57451         * tests/test-strcasestr.c (main): Likewise.
57452         * tests/test-striconv.c (main): Likewise.
57453         * tests/test-striconveh.c (main): Likewise.
57454         * tests/test-striconveha.c (main): Likewise.
57455         * tests/test-strstr.c (main): Likewise.
57456
57457         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57458
57459         bootstrap: sync from coreutils again
57460         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57461
57462 2008-03-01  Jim Meyering  <meyering@redhat.com>
57463
57464         bootstrap: sync from coreutils
57465         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57466         also when the target doesn't exist.
57467
57468 2008-03-01  Eric Blake  <ebb9@byu.net>
57469
57470         Fix bugs in last patch.
57471         * lib/memchr2.c (memchr2): Fix typo.
57472         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57473         extension.
57474         Reported by Bruce Korb.
57475
57476         New module 'memchr2'.
57477         * modules/memchr2: New file.
57478         * modules/memchr2-tests: Likewise.
57479         * lib/memchr2.h: Likewise.
57480         * lib/memchr2.c: Likewise, based on memchr.c.
57481         * tests/test-memchr2.c: New test.
57482         * MODULES.html.sh (String handling): Add memchr2.
57483
57484 2008-02-29  Bruno Haible  <bruno@clisp.org>
57485
57486         * modules/freadseek-tests: New file.
57487         * tests/test-freadseek.sh: New file.
57488         * tests/test-freadseek.c: New file.
57489
57490         New module 'freadseek'.
57491         * modules/freadseek: New file.
57492         * lib/freadseek.h: New file.
57493         * lib/freadseek.c: New file.
57494         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57495
57496 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57497
57498         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57499         wydawca.
57500
57501         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57502         program_invocation_name and program_invocation_short_name are
57503         present.
57504
57505 2008-02-28  Bruno Haible  <bruno@clisp.org>
57506
57507         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57508         * tests/test-freadptr.sh: Also test non-seekable stdin.
57509
57510 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57511
57512         * build-aux/bootstrap (source_base, m4_base)
57513         (doc_base, tests_base): New variables.
57514         (gnulib_tool_options): Do not hardcode base directories, use
57515         the above variables instead.
57516
57517 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57518
57519         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57520
57521 2008-02-28  Bruno Haible  <bruno@clisp.org>
57522
57523         * modules/freadptr-tests: New file.
57524         * tests/test-freadptr.sh: New file.
57525         * tests/test-freadptr.c: New file.
57526
57527         New module 'freadptr'.
57528         * modules/freadptr: New file.
57529         * lib/freadptr.h: New file.
57530         * lib/freadptr.c: New file.
57531         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57532
57533 2008-02-26  Karl Berry  <karl@freefriends.org>
57534
57535         Sync from Libtool:
57536         * libltdl/argz.c (argz_add, argz_count): New functions.
57537         * libltdl/argz.in.h: Declare them.
57538         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57539
57540 2008-02-22  Bruno Haible  <bruno@clisp.org>
57541
57542         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57543         is a pointer type.  Needed for HP-UX 10.
57544         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57545         * doc/posix-functions/gmtime_r.texi: Likewise.
57546         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57547
57548 2008-02-24  Bruno Haible  <bruno@clisp.org>
57549
57550         * modules/environ-tests: New file.
57551         * tests/test-environ.c: New file.
57552
57553         New module 'environ'.
57554         * modules/environ: New file.
57555         * lib/unistd.in.h (environ): New declaration.
57556         * m4/environ.m4: New file.
57557         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57558         after use.
57559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57560         HAVE_DECL_ENVIRON.
57561         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57562         HAVE_DECL_ENVIRON.
57563         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57564         wrong claim that 'environ' is missing on some systems.
57565         * modules/execute (Depends-on): Add environ.
57566         * lib/execute.c (environ): Remove fallback declaration.
57567         * modules/pipe (Depends-on): Add environ.
57568         * lib/pipe.c (environ): Remove fallback declaration.
57569         * modules/setenv (Depends-on): Add environ.
57570         * lib/setenv.c (environ): Remove fallback declaration.
57571         * modules/unsetenv (Depends-on): Add environ.
57572         * lib/unsetenv.c (environ): Remove fallback declaration.
57573         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57574         m4/environ.m4.
57575         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57576         (gl_PREREQ_UNSETENV): Likewise.
57577
57578 2008-02-24  Bruno Haible  <bruno@clisp.org>
57579
57580         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57581
57582 2008-02-20  Bob Proulx  <bob@proulx.com>
57583
57584         Enable use of older two part flavor 'git describe'.
57585         * build-aux/git-version-gen: If using the older two part flavor of
57586         git version then recreate the third part now present in the
57587         newer three part flavor of git describe.
57588
57589 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57590
57591         * lib/fts.c (fts_build): Typo correction to comment.
57592
57593 2008-02-17  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57596         generating no-op conflicts.
57597
57598 2008-02-17  Bruno Haible  <bruno@clisp.org>
57599
57600         Speed up by 10%.
57601         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57602         result_entries, rather than an index-based loop.
57603
57604 2008-02-17  Bruno Haible  <bruno@clisp.org>
57605
57606         Speed up by 25%.
57607         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57608         'hashcode_cached'.
57609         (entry_create): New function.
57610         (entry_hashcode): Use the cached hashcode if possible.
57611         (read_changelog_file, try_split_merged_entry): Use entry_create.
57612
57613 2008-02-17  Bruno Haible  <bruno@clisp.org>
57614
57615         Speed up from O(n^2) to O(n) for long ChangeLog files.
57616         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57617         (read_changelog_file): Change implementation of entries_reversed list
57618         to rbtreehash.
57619         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57620
57621 2008-02-17  Bruno Haible  <bruno@clisp.org>
57622
57623         New option --split-merged-entry.
57624         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57625         (find_paragraph_end, try_split_merged_entry): New functions.
57626         (long_options): Add option --split-merged-entry.
57627         (usage): Document option --split-merged-entry.
57628         (main): Implement option --split-merged-entry.
57629         Reported by Eric Blake.
57630
57631 2008-02-17  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/git-merge-changelog.c: Include c-strstr.h.
57634         (main): Support the "git pull --rebase" situation.
57635         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57636         Reported by Eric Blake.
57637
57638 2008-02-16  Eric Blake  <ebb9@byu.net>
57639
57640         Avoid doubling \ in common case of "c-maybe" quoting style.
57641         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57642         eliding outer quotes.
57643         * lib/quotearg.h: Document this.
57644         * tests/test-quotearg.c (result_strings, inputs, results_g)
57645         (flag_results, locale_results): Test it by adding a new string to
57646         each test group.
57647         (compare_strings): Test new string.
57648
57649 2008-02-13  Eric Blake  <ebb9@byu.net>
57650
57651         Avoid trigraph quoting in default output.
57652         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57653         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57654         unless explicitly requested.
57655         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57656
57657 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57658
57659         Don't rely on signed integer overflowing to negative value.
57660         * lib/getugroups.c (getugroups): Include <limits.h>.
57661         Instead, compare against INT_MAX, and increment only if the test passes.
57662
57663 2008-02-13  Jim Meyering  <meyering@redhat.com>
57664         and Eric Blake  <ebb9@byu.net>
57665
57666         Avoid shadowing warning and compile errors on Linux.
57667         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57668         forwarding macros on Linux.
57669         (dcgettext): Define a stub, for Linux.
57670         (results_g, main): Avoid warnings.
57671
57672 2008-02-12  Eric Blake  <ebb9@byu.net>
57673
57674         Silence warning in last patch.
57675         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57676
57677         Quotearg part 4: add tests, fix c-maybe colon quoting.
57678         * lib/quotearg.h: Improve documentation.
57679         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57680         escapes when adding outer quotes.  When quoting trigraphs, use
57681         valid C notation.  When quoting NUL, omit extra characters if next
57682         character is not digit.  Alter prototype.
57683         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57684         callers.
57685         * modules/quotearg-tests: New module.
57686         * tests/test-quotearg.c: New test.
57687
57688 2008-02-07  Eric Blake  <ebb9@byu.net>
57689
57690         Quotearg part 3: add flag to control outer quote elision.
57691         * lib/quotearg.h (c_maybe_quoting_style): New style.
57692         (enum quoting_flags): Better documentation of flags.
57693         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57694         c-maybe style.
57695         (quotearg_buffer_restyled): Handle new flag to elide outer
57696         quotes.
57697
57698         Quotearg part 2: add flag that can control NUL elision.
57699         * lib/quotearg.h (set_quoting_flags): New prototype.
57700         * lib/quotearg.c (struct quoting_options): Add flag field.
57701         (set_quoting_flags): New function.
57702         (quotearg_buffer_restyled): Add flags parameter.
57703         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57704         (quotearg_n_options): Set the flag, since length cannot be
57705         returned.
57706         (quoting_options_from_style): Default flags correctly.
57707
57708         Quotearg part 1: more wrappers, restore quotearg_char state.
57709         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57710         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57711         (quotearg_colon_mem): New wrappers.
57712         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57713         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57714         functions.
57715         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57716         (quotearg_colon_mem): New functions.
57717
57718 2008-02-11  Bruno Haible  <bruno@clisp.org>
57719
57720         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57721         library in the current directory: it does not work with parallel make.
57722         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57723
57724 2008-02-11  Bruno Haible  <bruno@clisp.org>
57725
57726         * .gitattributes: New file.
57727
57728 2008-02-11  Jim Meyering  <meyering@redhat.com>
57729
57730         useless-if-before-free: Fix reversed exit values.
57731         * build-aux/useless-if-before-free: Use correct values
57732         for EXIT_MATCH and EXIT_NO_MATCH.
57733
57734         * build-aux/useless-if-before-free: Close stdout carefully.
57735
57736 2008-02-10  Bruno Haible  <bruno@clisp.org>
57737
57738         New module 'git-merge-changelog'.
57739         * modules/git-merge-changelog: New file.
57740         * lib/git-merge-changelog.c: New file.
57741
57742 2008-02-10  Jim Meyering  <meyering@redhat.com>
57743
57744         useless-if-before-free: New option: --list (-l).
57745
57746         useless-if-before-free: Don't exit immediately upon open failure.
57747         * build-aux/useless-if-before-free: Exit 2 for errors.
57748         Upon failure to open a file, don't exit immediately.
57749         Rather, just warn and continue with any remaining files.
57750
57751 2008-02-10  Bruno Haible  <bruno@clisp.org>
57752
57753         New abstract list operation 'node_set_value'.
57754         * lib/gl_list.h (gl_list_node_set_value): New function.
57755         (struct gl_list_implementation): New field node_set_value.
57756         * lib/gl_list.c (gl_list_node_set_value): New function.
57757         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57758         (gl_array_list_implementation): Update.
57759         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57760         (gl_carray_list_implementation): Update.
57761         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57762         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57763         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57764         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57765         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57766         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57767         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57768         Update.
57769         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57770         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57771         (gl_sublist_list_implementation): Update.
57772
57773 2008-02-10  Bruno Haible  <bruno@clisp.org>
57774
57775         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57776         Needed when ELEMENT is #defined to 'some_type *'.
57777
57778 2008-02-10  Jim Meyering  <meyering@redhat.com>
57779
57780         New script and module: useless-if-before-free
57781         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57782         * build-aux/useless-if-before-free: New file.
57783         * modules/useless-if-before-free: New file.
57784
57785         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57786
57787         xstrtol_error: Fix typo.
57788         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57789         s/exit_failure/exit_status/.
57790
57791 2008-02-09  Jim Meyering  <meyering@redhat.com>
57792
57793         New script and module: gitlog-to-changelog
57794         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57795         * modules/gitlog-to-changelog: New file.
57796         * build-aux/gitlog-to-changelog: New file.
57797
57798 2008-02-08  Jim Meyering  <meyering@redhat.com>
57799
57800         Avoid two "parameter unused" warnings.
57801         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57802         Mark "st" as used.
57803
57804         Use "git COMMAND", not "git-COMMAND".
57805         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57806         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57807         * build-aux/git-version-gen: Use "git status", not "git-status".
57808
57809 2008-02-07  Bruno Haible  <bruno@clisp.org>
57810
57811         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57812         Avoids a crash on Windows Vista.
57813         Reported by Adam Strzelecki <ono@java.pl> via
57814         Simon Josefsson <simon@josefsson.org>.
57815
57816 2008-02-06  Bruno Haible  <bruno@clisp.org>
57817
57818         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57819         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57820         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57822         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57823         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57824         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57825         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57826         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57827         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57829         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57833         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57834         left-adjust flag.
57835         * tests/test-snprintf-posix.h (test_function): Likewise.
57836         * tests/test-sprintf-posix.h (test_function): Likewise.
57837         * tests/test-vasprintf-posix.c (test_function): Likewise.
57838         * doc/posix-functions/fprintf.texi: Update.
57839         * doc/posix-functions/printf.texi: Update.
57840         * doc/posix-functions/snprintf.texi: Update.
57841         * doc/posix-functions/sprintf.texi: Update.
57842         * doc/posix-functions/vfprintf.texi: Update.
57843         * doc/posix-functions/vprintf.texi: Update.
57844         * doc/posix-functions/vsnprintf.texi: Update.
57845         * doc/posix-functions/vsprintf.texi: Update.
57846         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57847
57848 2008-02-06  Bruno Haible  <bruno@clisp.org>
57849
57850         Fix bug introduced on 2008-01-26.
57851         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57852
57853 2008-02-06  Bruno Haible  <bruno@clisp.org>
57854
57855         Fix bug introduced on 2007-06-10.
57856         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57857         !NEED_PRINTF_FLAG_ZERO.
57858
57859 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57860
57861         getloadavg: use libperfstat on AIX5
57862         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57863
57864 2008-02-03  Bruno Haible  <bruno@clisp.org>
57865
57866         * lib/diffseq.h: Add comments about required #includes.
57867         Reported by Michael Biggs <gnulib@doubleplum.net>.
57868
57869 2008-02-01  Bruno Haible  <bruno@clisp.org>
57870
57871         * users.txt: Add gnuit.
57872
57873 2008-01-31  Bruno Haible  <bruno@clisp.org>
57874
57875         * lib/md4.c (set_uint32): Mark as inline.
57876         * lib/md5.c (set_uint32): Likewise.
57877         * lib/sha1.c (set_uint32): Likewise.
57878         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57879         * m4/md5.m4 (gl_MD5): Likewise.
57880         * m4/sha1.m4 (gl_SHA1): Likewise.
57881
57882 2008-01-31  Jim Meyering  <meyering@redhat.com>
57883
57884         Use "sizeof VAR", rather than a literal "4".
57885         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57886         * lib/md4.c (md4_read_ctx): Likewise.
57887         * lib/sha1.c (sha1_read_ctx): Likewise.
57888
57889 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57890
57891         * tests/test-sha1.c: New file, based on test-md5.c.
57892
57893         * modules/crypto/sha1-tests: New file.
57894
57895 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57896
57897         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57898
57899 2008-01-31  Jim Meyering  <meyering@redhat.com>
57900
57901         Prefer "sizeof v" over the equivalent "4".
57902         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57903         * lib/md5.c (set_uint32): Likewise.
57904         * lib/sha1.c (set_uint32): Likewise.
57905
57906 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57907
57908         * lib/sha1.c (set_uint32): Mark function as static.
57909
57910 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57911
57912         md2: clarify comments to say that alignment is not required.
57913         * lib/md2.h: Remove warning about alignment in comment.
57914         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57915         never been required.
57916
57917 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57918
57919         md4: adapt alignment constraint fix from sha1.
57920         * lib/md4.c (set_uint32): New function, from sha1.c
57921         (md4_read_ctx): Use it.
57922         (md4_finish_ctx): Doc fix.
57923         * lib/md4.h: Doc fix.
57924
57925 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57926
57927         md5: adapt alignment constraint fix from sha1.
57928         * lib/md5.c (set_uint32): New function, from sha1.c
57929         (md5_read_ctx): Use it.
57930         (md5_finish_ctx): Doc fix.
57931         * lib/md5.h: Doc fix.
57932
57933 2008-01-30  Peter Palfrader  <weasel@debian.org>
57934
57935         sha1: remove the result buffer alignment constraint
57936         * lib/sha1.c (set_uint32): New function.
57937         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57938         constraint.
57939         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57940         * lib/sha1.h: Likewise.
57941
57942 2008-01-30  Andreas Schwab  <schwab@suse.de>
57943             Bruno Haible  <bruno@clisp.org>
57944
57945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57946         correct definition of LDBL_MIN_EXP.
57947
57948 2008-01-30  Karl Berry  <karl@gnu.org>
57949
57950         * config/srclist-update: try to preserve x bit on updates.
57951         * config/srclistvars.sh: update for karl.
57952
57953 2008-01-29  Jim Meyering  <meyering@redhat.com>
57954
57955         vasnprintf.c: Avoid warning about unused label
57956         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57957         "overflow" label definition and associated code with the
57958         same cpp condition that guards the sole use of that label.
57959
57960 2008-01-26  Bruno Haible  <bruno@clisp.org>
57961
57962         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57963         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57964         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57965         * lib/isnanl-nolibm.h (isnanl): Likewise.
57966         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57967
57968 2008-01-26  Bruno Haible  <bruno@clisp.org>
57969
57970         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57971         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57972
57973 2008-01-26  Bruno Haible  <bruno@clisp.org>
57974
57975         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57976         GCC >= 4.0 built-in.
57977         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57978
57979 2008-01-26  Bruno Haible  <bruno@clisp.org>
57980
57981         Rename isnan, applicable to 'double' only, to isnand.
57982         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57983         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57984         (configure.ac): Update.
57985         (Include): Replace "isnan.h" with "isnand.h".
57986         * m4/isnand.m4: Renamed from m4/isnan.m4.
57987         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57988         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57989         instead of isnan.c.
57990         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57991         instead of HAVE_ISNAN_IN_LIBC.
57992         (isnand): Renamed from isnan.
57993         * lib/isnand.c: New file.
57994         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57995         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57996         (Makefile.am): Update.
57997         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57998         Include isnand.h instead of isnan.h.
57999         (main): Test isnand instead of isnan.
58000         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58001         isnan-nolibm.
58002         * modules/frexp (Depends-on): Likewise.
58003         * modules/frexp-tests (Depends-on): Likewise.
58004         * modules/frexp-nolibm (Depends-on): Likewise.
58005         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58006         * modules/isfinite (Depends-on): Likewise.
58007         * modules/round-tests (Depends-on): Likewise.
58008         * modules/signbit (Depends-on): Likewise.
58009         * modules/signbit-tests (Depends-on): Likewise.
58010         * modules/snprintf-posix (Depends-on): Likewise.
58011         * modules/sprintf-posix (Depends-on): Likewise.
58012         * modules/trunc-tests (Depends-on): Likewise.
58013         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58014         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58015         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58016         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58017         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58018         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58019         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58020         * modules/vasnprintf-posix (Depends-on): Likewise.
58021         * modules/vasprintf-posix (Depends-on): Likewise.
58022         * modules/vfprintf-posix (Depends-on): Likewise.
58023         * modules/vsnprintf-posix (Depends-on): Likewise.
58024         * modules/vsprintf-posix (Depends-on): Likewise.
58025         * lib/frexp.c: Include isnand.h instead of isnan.h.
58026         (ISNAN): Set to isnand instead of isnan.
58027         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58028         (gl_isfinited): Use isnand instead of isnan.
58029         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58030         (gl_signbitd): Use isnand instead of isnan.
58031         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58032         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58033         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58034         (main): Use isnand instead of isnan.
58035         * tests/test-round1.c: Include isnand.h.
58036         (main): Use isnand instead of isnan.
58037         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58038         (ISNAN): Set to isnand instead of isnan.
58039         * tests/test-trunc1.c: Include isnand.h.
58040         (main): Use isnand instead of isnan.
58041         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58042         (equal): Use isnand instead of isnan.
58043         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58044         isnand-nolibm.
58045         * NEWS: Mention the change.
58046
58047 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58048             Bruno Haible  <bruno@clisp.org>
58049
58050         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58051         the GCC builtins for signbits are present and set
58052         REPLACE_SIGNBIT_USING_GCC if so.
58053         * lib/math.in.h (signbit): Define using GCC builtins if
58054         REPLACE_SIGNBIT_USING_GCC is set.
58055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58056         REPLACE_SIGNBIT_USING_GCC.
58057         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58058
58059 2008-01-25  Jim Meyering  <meyering@redhat.com>
58060
58061         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58062         * lib/poll.c: Include <config.h>, not "config.h".
58063         * tests/test-getaddrinfo.c: Likewise.
58064
58065 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58066
58067         * modules/sockets-tests: New file.
58068
58069 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58070
58071         * modules/sockets: New module, can be used to call WSA_Startup and
58072         WSA_Cleanup when needed.
58073
58074         * lib/sockets.h, lib/sockets.c: New files.
58075
58076         * m4/sockets.m4: New file.
58077
58078         * tests/test-sockets.c: New file.
58079
58080 2008-01-19  Bruno Haible  <bruno@clisp.org>
58081
58082         * doc/posix-headers: Renamed from doc/headers.
58083         * doc/posix-functions: Renamed from doc/functions.
58084         * doc/gnulib.texi: Update.
58085
58086 2008-01-19  Bruno Haible  <bruno@clisp.org>
58087
58088         * doc/glibc-functions/strcasestr.texi: Include contents of
58089         doc/functions/strcasestr.texi, fixing the list of platforms.
58090         * doc/functions/strcasestr.texi: Remove file.
58091
58092 2008-01-19  Bruno Haible  <bruno@clisp.org>
58093
58094         * doc/glibc-functions/memmem.texi: Include contents of
58095         doc/functions/memmem.texi.
58096         * doc/functions/memmem.texi: Remove file.
58097
58098 2008-01-18  Bruno Haible  <bruno@clisp.org>
58099
58100         * doc/glibc-functions/*.texi: New files.
58101         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58102         to use the new files.
58103
58104 2008-01-17  Bruno Haible  <bruno@clisp.org>
58105
58106         * tests/test-gethostname.c (main): Fix printf statement.
58107
58108 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58109
58110         * modules/gethostname-tests: New file.
58111
58112         * tests/test-gethostname.c: New file.
58113
58114 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58115
58116         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58117         used by the UNAME case.  Reported by Bruno Haible
58118         <bruno@clisp.org>.
58119
58120 2008-01-17  Eric Blake  <ebb9@byu.net>
58121
58122         Convert c-strcasestr to be more efficient.
58123         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58124         (Depends-on): Add c-strcase, remove malloca, strnlen.
58125         * tests/test-c-strcasestr.c (main): Enhance test.
58126         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58127
58128 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58129
58130         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58131         Use it in creating po/Makevars.
58132
58133 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58134
58135         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58136         Applications that requires it should initialize libgcrypt
58137         manually.
58138
58139 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58140
58141         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58142
58143 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58144
58145         Fix problem with getdate on mingw32 reported by Simon Josefsson
58146         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58147         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58148         tzname", when deciding whether to declare tzname.
58149         * lib/strftime.c (tzname): Likewise.
58150
58151 2008-01-15  Bruno Haible  <bruno@clisp.org>
58152
58153         Work around a MacOS X 10.5 bug in frexpl().
58154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58155         * doc/functions/frexpl.texi: Document the bug.
58156         Reported by Elias Pipping <pipping@gentoo.org>.
58157
58158 2008-01-14  Eric Blake  <ebb9@byu.net>
58159
58160         Touch up previous patch.
58161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58162         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58163
58164         Convert strcasestr module to use Two-Way algorithm.
58165         * modules/strcasestr-simple: New module, based on the old
58166         strcasestr, but with Two-Way rather than KMP.
58167         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58168         * lib/string.in.h (rpl_strcasestr): Declare.
58169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58170         performance.
58171         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58172         * modules/string (Makefile.am): Support strcasestr.
58173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58174         * modules/strcasestr-tests (Depends-on): Check for alarm.
58175         * tests/test-strcasestr.c: Augment test.
58176         * lib/str-two-way.h: Clean up stray macro.
58177         * NEWS: Document new module.
58178         * MODULES.html.sh (string handling): Likewise.
58179         * doc/functions/strcasestr.texi: New file.
58180         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58181         here, since it is not a POSIX function.
58182
58183 2008-01-14  Colin Watson  <cjwatson@debian.org>
58184             Bruno Haible  <bruno@clisp.org>
58185
58186         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58187         works fine; if not, set REPLACE_STRSIGNAL.
58188         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58190         REPLACE_STRSIGNAL.
58191         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58192         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58193         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58194
58195 2008-01-14  Bruno Haible  <bruno@clisp.org>
58196
58197         * modules/strsignal (Include): Change to <string.h>.
58198
58199 2008-01-14  Colin Watson  <cjwatson@debian.org>
58200
58201         * modules/argp (Notice): Add a notice recommending to change
58202         XGETTEXT_OPTIONS.
58203         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58204
58205 2008-01-13  Colin Watson  <cjwatson@debian.org>
58206
58207         * modules/strsignal-tests: New file.
58208         * tests/test-strsignal.c: New file.
58209
58210         * lib/strsignal.c: New file, from glibc with modifications.
58211         * lib/siglist.h: New file, from glibc with modifications.
58212         * lib/string.in.h (strsignal): New declaration.
58213         * m4/strsignal.m4: New file.
58214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58215         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58216         * modules/strsignal: New file.
58217         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58218         HAVE_DECL_STRSIGNAL.
58219
58220 2008-01-13  Bruno Haible  <bruno@clisp.org>
58221
58222         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58223         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58224         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58225         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58226
58227 2008-01-13  Bruno Haible  <bruno@clisp.org>
58228
58229         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58230         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58231         * lib/argp.h (__attribute__): Likewise.
58232         * lib/c-stack.c (__attribute__): Likewise.
58233         * lib/error.h (__attribute__): Likewise.
58234         * lib/fts.c (__attribute__): Likewise.
58235         * lib/openat.h (__attribute__): Likewise.
58236         * lib/stdio.in.h (__attribute__): Likewise.
58237         * lib/string.in.h (__attribute__): Likewise.
58238         * lib/utimens.c (__attribute__): Likewise.
58239         * lib/vasnprintf.h (__attribute__): Likewise.
58240         * lib/xalloc.h (__attribute__): Likewise.
58241         * lib/xprintf.h (__attribute__): Likewise.
58242         * lib/xstrtol.h (__attribute__): Likewise.
58243         * lib/xvasprintf.h (__attribute__): Likewise.
58244
58245 2008-01-12  Bruno Haible  <bruno@clisp.org>
58246
58247         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58248         * doc/glibc-headers/a.out.texi: New file.
58249         * doc/glibc-headers/aliases.texi: New file.
58250         * doc/glibc-headers/alloca.texi: New file.
58251         * doc/glibc-headers/ar.texi: New file.
58252         * doc/glibc-headers/argp.texi: New file.
58253         * doc/glibc-headers/argz.texi: New file.
58254         * doc/glibc-headers/byteswap.texi: New file.
58255         * doc/glibc-headers/crypt.texi: New file.
58256         * doc/glibc-headers/endian.texi: New file.
58257         * doc/glibc-headers/envz.texi: New file.
58258         * doc/glibc-headers/err.texi: New file.
58259         * doc/glibc-headers/error.texi: New file.
58260         * doc/glibc-headers/execinfo.texi: New file.
58261         * doc/glibc-headers/fpu_control.texi: New file.
58262         * doc/glibc-headers/fstab.texi: New file.
58263         * doc/glibc-headers/fts.texi: New file.
58264         * doc/glibc-headers/getopt.texi: New file.
58265         * doc/glibc-headers/ieee754.texi: New file.
58266         * doc/glibc-headers/ifaddrs.texi: New file.
58267         * doc/glibc-headers/libintl.texi: New file.
58268         * doc/glibc-headers/mcheck.texi: New file.
58269         * doc/glibc-headers/mntent.texi: New file.
58270         * doc/glibc-headers/obstack.texi: New file.
58271         * doc/glibc-headers/paths.texi: New file.
58272         * doc/glibc-headers/printf.texi: New file.
58273         * doc/glibc-headers/pty.texi: New file.
58274         * doc/glibc-headers/resolv.texi: New file.
58275         * doc/glibc-headers/shadow.texi: New file.
58276         * doc/glibc-headers/sysexits.texi: New file.
58277         * doc/glibc-headers/ttyent.texi: New file.
58278
58279 2008-01-12  Jim Meyering  <meyering@redhat.com>
58280
58281         announce-gen: emit Gnulib's git-based version string.
58282         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58283         New option --gnulib-version=V, where V is expected to be
58284         the output of running git describe in the gnulib directory.
58285         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58286         not useful, and plan to stop publishing an xdelta file with each
58287         coreutils release.
58288
58289         * build-aux/announce-gen: Also check for lzma-compressed files.
58290
58291 2008-01-11  Bruno Haible  <bruno@clisp.org>
58292
58293         * tests/test-memmem.c (main): Increase maximum allowed time.
58294         * tests/test-strstr.c (main): Likewise.
58295
58296 2008-01-11  Bruno Haible  <bruno@clisp.org>
58297
58298         * doc/functions/memmem.texi: Add more precisions about platforms.
58299         * doc/functions/strstr.texi: Likewise.
58300
58301 2008-01-10  Eric Blake  <ebb9@byu.net>
58302
58303         * m4/strstr.m4: Delete cruft from copy-n-paste.
58304         Reported by Bruno Haible.
58305
58306 2008-01-10  Bruno Haible  <bruno@clisp.org>
58307
58308         Make c-strstr rely on strstr.
58309         * lib/c-strstr.c: Don't include str-kmp.h.
58310         (c_strstr): Define in terms of strstr.
58311         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58312         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58313
58314 2008-01-10  Bruno Haible  <bruno@clisp.org>
58315
58316         * doc/gnulib.texi (String Functions in C Locale): New section.
58317         * doc/c-ctype.texi: New file.
58318         * doc/c-strcase.texi: New file.
58319         * doc/c-strcaseeq.texi: New file.
58320         * doc/c-strcasestr.texi: New file.
58321         * doc/c-strstr.texi: New file.
58322         * doc/c-strtod.texi: New file.
58323         * doc/c-strtold.texi: New file.
58324
58325 2008-01-10  Eric Blake  <ebb9@byu.net>
58326
58327         * lib/relocatable.h: Fix a comment.
58328
58329 2008-01-10  Eric Blake  <ebb9@byu.net>
58330
58331         Share two-way algorithm.
58332         * lib/str-two-way.h: New file, merged from...
58333         * lib/memmem.c: ...here...
58334         * lib/strstr.c: ...and here.
58335         * modules/memmem (Files): Use it.
58336         * modules/strstr (Files): Likewise.
58337
58338         Avoid quadratic strstr implementations.
58339         * lib/strstr.c: New file.
58340         * m4/strstr.m4: Likewise.
58341         * modules/strstr: Likewise.
58342         * modules/strstr-tests: Likewise.
58343         * tests/test-strstr.c: Likewise.
58344         * lib/string.in.h (rpl_strstr): Declare.
58345         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58347         * modules/string (Makefile.am): Likewise.
58348         * MODULES.html.sh (string handling): Mention new module.
58349         * doc/functions/strstr.texi (strstr): Document the bug.
58350
58351 2008-01-10  Bruno Haible  <bruno@clisp.org>
58352
58353         * lib/relocatable.h (relocate): State whether result is freshly
58354         allocated or not.
58355         * lib/relocatable.c (relocate): Return a freshly allocated string
58356         instead of a pointer to a privately held string.
58357         Reported by Sylvain Beucler <beuc@gnu.org>.
58358
58359 2008-01-10  Colin Watson  <cjwatson@debian.org>
58360
58361         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58362         s/S_ISNLK/S_ISLNK/.
58363
58364 2008-01-09  Bruno Haible  <bruno@clisp.org>
58365
58366         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58367         and other files.
58368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58369         if it's only a guess.
58370         * modules/memmem: Simplify by depending on memmem-simple.
58371
58372 2008-01-09  Bruno Haible  <bruno@clisp.org>
58373
58374         Work around OpenBSD 4.0 tdelete() bug.
58375         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58376         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58377         macros and don't redefine the enum values.
58378         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58379         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58380         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58381
58382 2008-01-09  Bruno Haible  <bruno@clisp.org>
58383
58384         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58385         (main): Don't perform the tests if setlocale did not install a UTF-8
58386         locale. Needed on OpenBSD 4.0.
58387         * modules/wcwidth-tests (Depends-on): Add localcharset.
58388
58389 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58390
58391         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58392         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58393         * NEWS: announce this.
58394         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58395
58396 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58397         and Eric Blake  <ebb9@byu.net>
58398
58399         Add memmem-simple module.
58400         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58401         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58402         * modules/memmem-simple: New file.
58403         * modules/memmem (Description): Tweak.
58404         * MODULES.html.sh (string handling): Mention new module.
58405         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58406         addressed by memmem-simple.
58407         * NEWS: Document the difference.
58408
58409 2008-01-09  Eric Blake  <ebb9@byu.net>
58410
58411         Give gcc some memmem optimization hints.
58412         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58413         (strcasestr): Declare as pure.
58414         * modules/memmem (Maintainer): Claim my implementation.
58415
58416 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58417
58418         Support AIX 6.1 and higher.
58419         * build-aux/config.libpath: Likewise.
58420         * build-aux/config.rpath: Likewise.
58421
58422 2008-01-08  Jim Meyering  <meyering@redhat.com>
58423             Bruno Haible  <bruno@clisp.org>
58424
58425         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58426         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58427         Reported by Peter Fales in
58428         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58429
58430 2008-01-08  Bruno Haible  <bruno@clisp.org>
58431
58432         * modules/unictype/category-of (Depends-on): Add
58433         unictype/category-none.
58434         * modules/unictype/category-and-tests (Depends-on): Add
58435         unictype/category-{L,N,Lu,Nd}.
58436         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58437         * modules/unictype/category-or-tests (Depends-on): Add
58438         unictype/category-{L,N}.
58439         * modules/unictype/category-name-tests (Depends-on): Add
58440         unictype/category-{Z,Nl}.
58441         Reported by Simon Josefsson.
58442
58443 2008-01-08  Bruno Haible  <bruno@clisp.org>
58444
58445         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58446         convention better.
58447         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58448         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58449         Reported by Peter Miller <millerp@canb.auug.org.au>.
58450
58451 2008-01-08  Eric Blake  <ebb9@byu.net>
58452
58453         Rewrite memmem to guarantee linear complexity without malloc.
58454         * lib/memmem.c (memmem): Use Two-Way rather than
58455         Knuth-Morris-Pratt, to allow O(1) space usage.
58456         (critical_factorization, two_way_short_needle)
58457         (two_way_long_needle): New functions.
58458         (knuth_morris_pratt): Delete.
58459         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58460         Add stdint.
58461         * tests/test-memmem.c (main): Add tests for periodic needle and
58462         sublinear performance.
58463         * doc/functions/memmem.texi (memmem): Document other deficiencies
58464         in cygwin and older glibc.
58465
58466 2008-01-08  Bruno Haible  <bruno@clisp.org>
58467
58468         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58469         augmentation.
58470
58471 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58472
58473         Add a configure time option: --disable-acl.
58474         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58475         AC_ARG_ENABLE(acl).
58476
58477 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58478
58479         * tests/test-localename.c: Don't include obsolete "setenv.h".
58480
58481         * modules/localename-tests (Depends-on): Need unsetenv.
58482
58483 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58484
58485         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58486
58487 2008-01-06  Colin Watson  <cjwatson@debian.org>
58488
58489         * users.txt: Add man-db.
58490
58491 2008-01-07  Bruno Haible  <bruno@clisp.org>
58492
58493         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58494         previous section name.
58495
58496 2008-01-07  Bruno Haible  <bruno@clisp.org>
58497
58498         * lib/progname.c (set_program_name): Don't strip off a leading
58499         "lt-" prefix outside a .libs directory.
58500         Suggested by Paul Eggert.
58501
58502 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58503             Bruno Haible  <bruno@clisp.org>
58504
58505         Improve memory cleanup in 'relocatable' module.
58506         * lib/relocatable.h (compute_curr_prefix): Change return type to
58507         'char *'.
58508         * lib/relocatable.c (compute_curr_prefix): Change return type to
58509         'char *'. Free curr_installdir after use.
58510         (relocate): Free curr_prefix_better after use.
58511         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58512
58513 2008-01-01  Bruno Haible  <bruno@clisp.org>
58514
58515         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58516         failure on older glibc systems.
58517         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58518
58519 2008-01-05  Eric Blake  <ebb9@byu.net>
58520
58521         Avoid quadratic system memmem.
58522         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58523         Reported by Ralf Wildenhues.
58524
58525         Fix memmem test for mingw.
58526         * modules/memmem-tests (configure.ac): Check for alarm.
58527         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58528         it.
58529         * doc/functions/memmem.texi: New file.
58530         * doc/gnulib.texi (Function Substitutes): Add memmem.
58531         Reported by Bruno Haible.
58532
58533 2008-01-04  Bruno Haible  <bruno@clisp.org>
58534
58535         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58536         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58537         gl_HEADER_STRING_H_DEFAULTS.
58538
58539 2008-01-04  Eric Blake  <ebb9@byu.net>
58540
58541         Shorten duration of memmem test.
58542         * tests/test-memmem.c (main): Use alarm to declare failure if test
58543         is taking too long.
58544         Reported by Ralf Wildenhues.
58545
58546 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58547
58548         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58549         string, needed by strerror.
58550
58551 2008-01-03  Colin Watson  <cjwatson@debian.org>
58552             Bruno Haible  <bruno@clisp.org>
58553
58554         * doc/gnulib-tool.texi (Localization): New section.
58555
58556 2008-01-02  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58559         variables to 'unsigned char *' type.
58560         Reported by Paul Eggert.
58561
58562 2008-01-02  Jim Meyering  <jim@meyering.net>
58563
58564         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58565
58566 2007-12-31  Jim Meyering  <jim@meyering.net>
58567
58568         Avoid use of private FTS type name.
58569         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58570
58571 2007-12-30  Karl Berry  <karl@gnu.org>
58572
58573         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58574         work around defect in Texinfo and/or the standalone Info browser.
58575
58576 2007-12-30  Bruno Haible  <bruno@clisp.org>
58577
58578         Unify 5 copies of the KMP code.
58579         * lib/str-kmp.h: New file.
58580         * lib/c-strcasestr.c: Include str-kmp.h.
58581         (knuth_morris_pratt): Remove function.
58582         (c_strcasestr): Update.
58583         * lib/c-strstr.c: Include str-kmp.h.
58584         (knuth_morris_pratt): Remove function.
58585         (c_strcasestr): Update.
58586         * lib/mbscasestr.c: Include str-kmp.h.
58587         (knuth_morris_pratt_unibyte): Remove function.
58588         * lib/mbsstr.c: Include str-kmp.h.
58589         (knuth_morris_pratt_unibyte): Remove function.
58590         * lib/strcasestr.c: Include str-kmp.h.
58591         (knuth_morris_pratt): Remove function.
58592         (strcasestr): Update.
58593         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58594         * modules/c-strstr (Files): Likewise.
58595         * modules/mbscasestr (Files): Likewise.
58596         * modules/mbsstr (Files): Likewise.
58597         * modules/strcasestr (Files): Likewise.
58598         Suggested by Paul Eggert.
58599
58600 2007-12-30  Bruno Haible  <bruno@clisp.org>
58601
58602         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58603         defined.
58604
58605 2007-12-30  Bruno Haible  <bruno@clisp.org>
58606
58607         * lib/xmalloca.h: Include xalloc.h.
58608         (xnmalloca): New macro.
58609
58610 2007-12-30  Bruno Haible  <bruno@clisp.org>
58611
58612         * lib/malloca.h (nmalloca): New macro.
58613         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58614         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58615         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58616         knuth_morris_pratt_multibyte): Likewise.
58617         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58618         knuth_morris_pratt_multibyte): Likewise.
58619         * lib/memmem.c (knuth_morris_pratt): Likewise.
58620         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58621
58622 2007-12-25  Bruno Haible  <bruno@clisp.org>
58623
58624         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58625         * lib/glob.c: Don't include openat.h.
58626         (link_exists2_p): Add back the code that deals with the
58627         !GLOB_ALTDIRFUNC case.
58628         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58629         let it do the filename concatenation.
58630         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58631         * modules/glob (Depends-on): Remove openat.
58632
58633 2007-12-31  Bruno Haible  <bruno@clisp.org>
58634
58635         * modules/dirfd (License): Change to LGPLv2+.
58636         Approved by Jim Meyering.
58637
58638 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58641         when multiplying M by sizeof (size_t).
58642
58643 2007-12-10  Martin Lambers  <marlam@marlam.de>
58644
58645         Override getpagesize on mingw.
58646         * lib/getpagesize.c: New file.
58647         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58648         * modules/getpagesize (Files): Add lib/getpagesize.c.
58649         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58651         REPLACE_GETPAGESIZE.
58652         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58653
58654 2007-12-25  Bruno Haible  <bruno@clisp.org>
58655
58656         * modules/localcharset (Notice): New field.
58657         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58658         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58659
58660 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58661             Bruno Haible  <bruno@clisp.org>
58662
58663         Avoid using the syntax symbol() in formatted documentation.
58664         * MODULES.html.sh (func_module): When replacing symbol() with a
58665         hyperlink, remove the parentheses. Show an error if some remain.
58666         Recognize and render the '...' syntax.
58667         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58668         Rework. Add paragraph about GCC's inlining.
58669         * doc/alloca.texi: Likewise.
58670         * doc/error.texi: Remove parentheses from symbol reference.
58671         * doc/gnulib-intro.texi: Likewise.
58672         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58673         * modules/fnmatch (Description): Reword to say "the ... function".
58674         * modules/full-read (Description): Likewise.
58675         * modules/full-write (Description): Likewise.
58676         * modules/safe-read (Description): Likewise.
58677         * modules/safe-write (Description): Likewise.
58678         * modules/strchrnul (Description): Likewise.
58679         * modules/trim (Description): Likewise.
58680         * modules/error (Description): Remove parentheses from symbol
58681         references.
58682         * modules/verror (Description): Likewise.
58683         Reported by Karl Berry.
58684
58685 2007-12-25  Bruno Haible  <bruno@clisp.org>
58686
58687         Fixup after 2007-10-16 commit.
58688         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58689
58690 2007-12-24  Bruno Haible  <bruno@clisp.org>
58691
58692         Make --enable-relocatable work with DESTDIR.
58693         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58694         to compute installdir from destprog.
58695         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58696         also set the RELOC_DESTDIR variable.
58697         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58698
58699 2007-12-24  Bruno Haible  <bruno@clisp.org>
58700
58701         Fix link error due to xalloc_die().
58702         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58703         of xreadlink.
58704         * lib/relocwrapper.c: Update comments.
58705         * build-aux/install-reloc: Remove xreadlink.c from file list.
58706         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58707         xreadlink.c.
58708         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58709
58710 2007-12-24  Bruno Haible  <bruno@clisp.org>
58711
58712         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58713         * lib/setenv.h: Remove file.
58714         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58715         lib/setenv.h.
58716         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58717         (Depends-on): Add stdlib.
58718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58719         gl_FUNC_UNSETENV.
58720         (Include): Replace setenv.h with <stdlib.h>.
58721         * modules/unsetenv: New file.
58722         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58723         * lib/unsetenv.c: Include <stdlib.h> first.
58724         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58725         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58726         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58727         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58728         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58729         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58731         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58732         * doc/functions/unsetenv.texi: Update.
58733         * modules/xsetenv (Depends-on): Add unsetenv.
58734         * modules/getdate (Depends-on): Likewise.
58735         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58736         * lib/xsetenv.c: Don't include setenv.h.
58737         * lib/getdate.y: Likewise.
58738         * lib/relocwrapper.c: Likewise.
58739         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58740         (Depends-on): Add stdlib.
58741         * NEWS: Mention the changes.
58742         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58743
58744 2007-12-23  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58747         indentation.
58748
58749 2007-12-23  Bruno Haible  <bruno@clisp.org>
58750
58751         * lib/c-strcasestr.c: Add more comments.
58752         * lib/c-strstr.c: Likewise.
58753         * lib/mbscasestr.c: Likewise.
58754         * lib/mbsstr.c: Likewise.
58755         * lib/strcasestr.c: Likewise.
58756         * lib/memmem.c: Likewise.
58757
58758 2007-12-23  Bruno Haible  <bruno@clisp.org>
58759
58760         * tests/test-memmem.c: Include <string.h> first.
58761
58762 2007-12-22  Bruno Haible  <bruno@clisp.org>
58763
58764         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58765         the contents of $testsbase.
58766         Reported by Ralf Wildenhues.
58767
58768 2007-12-22  Bruno Haible  <bruno@clisp.org>
58769
58770         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58771         two variables local_ldadd_before, local_ldadd_last.
58772
58773 2007-12-20  Eric Blake  <ebb9@byu.net>
58774
58775         Work around circular library issue when cross-compiling.
58776         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58777         that progname.o does not need to pull in rpl_memcmp.
58778
58779 2007-12-19  Eric Blake  <ebb9@byu.net>
58780
58781         Fix memmem to avoid O(n^2) worst-case complexity.
58782         * lib/memmem.c (knuth_morris_pratt): New function.
58783         (memmem): Use it if first few naive iterations fail.
58784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58785         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58786         * modules/memchr (License): Likewise.
58787         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58788         malloca.
58789         * tests/test-memmem.c: Rewrite, borrowing ideas from
58790         test-mbsstr1.c; the old version wouldn't even compile!
58791         * modules/memmem-tests: New file.
58792         * lib/string.in.h (rpl_memmem): Add declaration.
58793         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58795         REPLACE_MEMMEM.
58796
58797 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58798
58799         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58800         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58801         before any system include files, and undef after them all.  This
58802         should fix a problem on VMS reported by John E. Malmberg in
58803         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58804
58805 2007-12-17  Eric Blake  <ebb9@byu.net>
58806
58807         Revert addition of verify, for BSD/OS.
58808         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58809         can't handle large files, for the sake of obsolete platforms.
58810         * modules/fseeko (Depends-on): Remove verify.
58811         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58812         * doc/functions/ftello.texi (ftello): Likewise.
58813         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58814         Reported by Larry Jones.
58815
58816 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58817
58818         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58819         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58820
58821 2007-12-17  Jim Meyering  <meyering@redhat.com>
58822
58823         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58824         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58825         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58826         * modules/getcwd (Depends-on): Add openat.
58827         Reported by Petr Salinger.
58828
58829 2007-12-17  Bruno Haible  <bruno@clisp.org>
58830
58831         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58832         avoid a segmentation fault of the configure test on x86_64 systems.
58833
58834 2007-12-15  Jim Meyering  <meyering@redhat.com>
58835
58836         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58837
58838 2007-12-13  Eric Blake  <ebb9@byu.net>
58839
58840         Another fseek test.
58841         * tests/test-fseek.c (main): Also test ungetc handling.
58842         * tests/test-fseeko.c (main): Likewise.
58843         * modules/fseeko (Depends-on): Add verify.
58844         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58845         large.
58846         Reported by Larry Jones.
58847
58848         Fix fseeko on mingw.
58849         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58850         seek.
58851
58852         Beef up fseek tests.
58853         * tests/test-fseek.c (main): Also test eof handling.
58854         * tests/test-fseeko.c (main): Likewise.
58855         Reported by Larry Jones.
58856
58857 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58858
58859         Fix fseeko on BSD-based platforms.
58860         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58861         successful seek.
58862
58863 2007-12-12  Eric Blake  <ebb9@byu.net>
58864
58865         Allow circular dependency of separate libtests.a
58866         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58867         when use_libtests.
58868
58869 2007-12-11  Eric Blake  <ebb9@byu.net>
58870
58871         Fix bug with -0.0L in previous patch.
58872         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58873         * tests/test-isnan.c (main): Also test on zeroes.
58874         * tests/test-isnanf.c (main): Likewise.
58875         * tests/test-isnanl.h (main): Likewise.
58876
58877         Detect pseudo-denormals on x86 even when cross-compiling.
58878         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58879         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58880         invalid bit patterns that happen to satisfy ==.
58881
58882         Avoid link failures with separate libtests.a.
58883         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58884         last, to satisfy circular dependencies.
58885
58886 2007-12-11  Eric Blake  <ebb9@byu.net>
58887         and Bruno Haible  <bruno@clisp.org>
58888
58889         Fix OpenBSD 4.0 <float.h> handling of long double.
58890         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58891         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58892         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58893
58894 2007-12-11  Jim Meyering  <meyering@redhat.com>
58895
58896         * users.txt: Add libvirt.
58897
58898         Support versions of autoconf prior to 2.59c.
58899         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58900         if it is not already defined.
58901
58902 2007-12-09  Bruno Haible  <bruno@clisp.org>
58903
58904         Let 'gnulib-tool --import' collect sources needed for the tests in
58905         tests/ rather than in lib/.
58906         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58907         argument. If true, add rules to generate libtests.a, and put libtests.a
58908         into $(LDADD). Consider source files in subdirectories and set
58909         uses_subdirs.
58910         (func_emit_initmacro_start, func_emit_initmacro_end,
58911         func_emit_initmacro_done): Pass all arguments explicitly.
58912         (func_import): Determine two module lists main_modules,
58913         testsrelated_modules. Determine use_libtests. Determine two variables
58914         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58915         instead of just sed_transform_lib_file. Determine two variables
58916         main_files and testsrelated_files. Compute 'files' as the union of
58917         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58918         func_add_or_update. In the generated gnulib-comp.m4, collect the
58919         object files for tests/ in different variables than those for lib/.
58920         Substitute LIBTESTS_LIBDEPS.
58921         (func_create_testdir): Combine the uses_subdirs results from
58922         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58923
58924 2007-12-09  Bruno Haible  <bruno@clisp.org>
58925
58926         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58927         the build-aux directory.
58928
58929 2007-12-09  Bruno Haible  <bruno@clisp.org>
58930
58931         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58932         introduced on 2006-09-09.
58933
58934 2007-12-07  Jim Meyering  <meyering@redhat.com>
58935
58936         Let these macros work also with autoconf-2.59.
58937         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58938         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58939         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58940
58941 2007-12-06  Jim Meyering  <meyering@redhat.com>
58942
58943         Avoid a configure-time syntax error in gl_FUNC_ACL.
58944         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58945         function in each branch, before testing the cache variable.
58946
58947 2007-12-04  Eric Blake  <ebb9@byu.net>
58948
58949         Make scripts executable.
58950         * build-aux/config.guess: Add execute permissions.
58951         * build-aux/config.sub: Likewise.
58952         * build-aux/gendocs.sh: Likewise.
58953
58954         Fix frexp on mingw.
58955         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58956         cross-compiling.
58957         * doc/functions/frexp.texi (frexp): Document the bug.
58958
58959         Make cygwin fseeko check more reliable.
58960         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58961         version numbers, rather than unrelated feature check.
58962         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58963         * doc/functions/ftello.texi (ftello): Likewise.
58964         Reported by Bruno Haible.
58965
58966         * m4/strerror.m4: Bump version number.
58967
58968 2007-12-03  Bruno Haible  <bruno@clisp.org>
58969
58970         * doc/functions/mprotect.texi: Mention the mingw problem.
58971
58972 2007-12-03  Eric Blake  <ebb9@byu.net>
58973
58974         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58975         REPLACE_STRERROR is initialized before this macro.
58976
58977 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58978
58979         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58980         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58981         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58982         put -lsec in even for programs other than 'ls'.  This fixes a problem
58983         for gettext reported by Bruno Haible in
58984         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58985         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58986         Add support for Solaris 10.  This isn't efficient, but should get the
58987         job done for now.
58988
58989 2007-12-03  James Youngman  <jay@gnu.org>
58990
58991         * doc/regexprops-generic.texi: change "an close-group" to "a
58992         close-group" and "illegal" to "not allowed".
58993
58994 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58995
58996         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58997         pr_byname.h. Needed for the rare case when the maintainer has done
58998         "make maintainer-clean" in the source directory and then attempts a
58999         build outside the source directory.
59000         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59001         scripts_byname.h.
59002
59003 2007-12-02  Martin Lambers <marlam@marlam.de>
59004             Bruno Haible  <bruno@clisp.org>
59005
59006         * lib/getpagesize.h: Remove file.
59007         * lib/unistd.in.h: Include declaration of getpagesize here.
59008         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59009         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59010         HAVE_SYS_PARAM_H.
59011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59012         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59013         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59014         (Depends-on): Add unistd.
59015         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59016         (Include): Use <unistd.h> instead of getpagesize.h.
59017         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59018         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59019         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59020         gl_GETPAGESIZE invocation, already handled by module dependency.
59021         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59022
59023 2007-12-02  Bruno Haible  <bruno@clisp.org>
59024
59025         * modules/strings-tests: New file.
59026         * tests/test-strings.c: New file.
59027
59028         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59029         * lib/strings.in.h: New file.
59030         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59031         * m4/strings_h.m4: New file.
59032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59033         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59034         * modules/strings: New file.
59035         * modules/string (Makefile.am): Update.
59036         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59037         Reported by Karl Berry.
59038
59039 2007-12-01  Eric Blake  <ebb9@byu.net>
59040
59041         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59042         accomodate fix in cygwin 1.5.25.
59043
59044 2007-12-01  Jim Meyering  <meyering@redhat.com>
59045
59046         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59047         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59048         that would inhibit utf8-optimization of a regexp containing line-
59049         or buffer-anchors, e.g., `^', `$'.
59050
59051 2007-11-30  Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59054         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59055         glthread_recursive_lock_init.
59056         * lib/lock.c (glthread_recursive_lock_init)
59057         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59058         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59059
59060 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59061
59062         New function qset_acl, like set_acl but with syscall semantics.
59063         * lib/acl.h (qset_acl): New decl.
59064         * lib/acl.c (qset_acl): New function.
59065         (set_acl): Use new function.  Use more-consistent diagnostics.
59066
59067 2007-11-28  Jim Meyering  <meyering@redhat.com>
59068
59069         * modules/physmem (License): Change from GPL to LGPLv2+.
59070
59071 2007-11-26  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59074         'long double' type has excess precision.
59075         Reported by Jim Meyering in
59076         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59077
59078 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59079
59080         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59081         Sync from <http://gnu.org/licenses>.
59082         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59083         with license text from same location.
59084         * doc/maintain.texi, doc/standards.texi:  Sync from
59085         <http://savannah.gnu.org/projects/gnustandards>.
59086
59087 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59088         and Jim Meyering  <meyering@redhat.com>
59089
59090         Adjust getdate' grammar to accept a slightly more regular language.
59091         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59092         Before, the former was rejected.
59093         * lib/getdate.y (digits_to_date_time): New function, factored
59094         out of ...
59095         (number): ...here.  Just call digits_to_date_time.
59096         (hybrid): New non-terminal to handle an <unsigned number,
59097         signed relative offset> sequence consistently.
59098
59099 2007-11-18  Jim Meyering  <meyering@redhat.com>
59100
59101         Pull my changes from coreutils:
59102         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59103         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59104         use of $gnulib_tool_option_extras, so that it's separated from the
59105         preceding argument.
59106
59107         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59108         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59109         parent destination directories before copying a file into place.
59110
59111 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59112
59113         bootstrap: work also with 4-argument variant of AC_INIT
59114         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59115
59116 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59117
59118         Port test-getaddrinfo to Solaris.
59119         Problem reported by Bruno Haible in
59120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59121         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59122         explanation of setting 'hints'.
59123         Don't reject an implementation merely because it returns EAI_SERVICE.
59124         (EAI_SERVICE): Define to 0 if not defined.
59125
59126 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59127
59128         The license of gnu-make and posix-shell is now "GPLed build tool".
59129         * modules/gnu-make (License): Likewise.
59130         * modules/posix-shell (License): Likewise.
59131
59132         New module posix-shell, for determining a POSIX shell
59133         or perhaps something that is close enough to a POSIX shell.
59134         * m4/posix-shell.m4: New file.
59135         * modules/posix-shell: New file.
59136
59137         * MODULES.html.sh: Mention new module.
59138
59139         New module gnu-make, for determining whether we're using GNU Make.
59140         * m4/gnu-make.m4: New file.
59141         * modules/gnu-make: New file.
59142         * MODULES.html.sh: Mention new module.
59143
59144 2007-11-14  Jim Meyering  <meyering@redhat.com>
59145
59146         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59147         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59148         use this macro to create a function _definition_.
59149         Remove useless "#undef ARGMATCH_DIE".
59150
59151 2007-11-14  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/config.charset: Update for OpenBSD 4.1.
59154         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59155
59156 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59157
59158         Document 64-bit #if problems in stdint.texi.
59159         * doc/headers/stdint.texi (stdint.h): Mention problems with
59160         64-bit-#if, and how to work around them.
59161
59162         Don't insist on 'long long int' support in the preprocessor.  It
59163         breaks too many things.  For example, PRIdMAX still uses a 'long
59164         long int' format with the latest Sun compiler, even though
59165         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59166         preprocessor problem.  This causes the latest coreutils to dump
59167         core on Solaris 10 sparc with the Sun C compiler.
59168         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59169         the troublesome expressions at configure-time, not at #if-time.
59170         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59171         preprocessor.
59172         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59173         compile-time C checks, done at 'configure'-time.
59174         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59175         * modules/inttypes (Makefile): Substitute the new symbols that
59176         gl_INTTYPES_H now generates.
59177         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59178
59179 2007-11-12  Bruno Haible  <bruno@clisp.org>
59180
59181         Tests for Unicode character classification functions.
59182
59183         * modules/unictype/bidicategory-byname-tests: New file.
59184         * modules/unictype/bidicategory-name-tests: New file.
59185         * modules/unictype/bidicategory-of-tests: New file.
59186         * modules/unictype/bidicategory-test-tests: New file.
59187         * modules/unictype/block-list-tests: New file.
59188         * modules/unictype/block-of-tests: New file.
59189         * modules/unictype/block-test-tests: New file.
59190         * modules/unictype/category-C-tests: New file.
59191         * modules/unictype/category-Cc-tests: New file.
59192         * modules/unictype/category-Cf-tests: New file.
59193         * modules/unictype/category-Cn-tests: New file.
59194         * modules/unictype/category-Co-tests: New file.
59195         * modules/unictype/category-Cs-tests: New file.
59196         * modules/unictype/category-L-tests: New file.
59197         * modules/unictype/category-Ll-tests: New file.
59198         * modules/unictype/category-Lm-tests: New file.
59199         * modules/unictype/category-Lo-tests: New file.
59200         * modules/unictype/category-Lt-tests: New file.
59201         * modules/unictype/category-Lu-tests: New file.
59202         * modules/unictype/category-M-tests: New file.
59203         * modules/unictype/category-Mc-tests: New file.
59204         * modules/unictype/category-Me-tests: New file.
59205         * modules/unictype/category-Mn-tests: New file.
59206         * modules/unictype/category-N-tests: New file.
59207         * modules/unictype/category-Nd-tests: New file.
59208         * modules/unictype/category-Nl-tests: New file.
59209         * modules/unictype/category-No-tests: New file.
59210         * modules/unictype/category-P-tests: New file.
59211         * modules/unictype/category-Pc-tests: New file.
59212         * modules/unictype/category-Pd-tests: New file.
59213         * modules/unictype/category-Pe-tests: New file.
59214         * modules/unictype/category-Pf-tests: New file.
59215         * modules/unictype/category-Pi-tests: New file.
59216         * modules/unictype/category-Po-tests: New file.
59217         * modules/unictype/category-Ps-tests: New file.
59218         * modules/unictype/category-S-tests: New file.
59219         * modules/unictype/category-Sc-tests: New file.
59220         * modules/unictype/category-Sk-tests: New file.
59221         * modules/unictype/category-Sm-tests: New file.
59222         * modules/unictype/category-So-tests: New file.
59223         * modules/unictype/category-Z-tests: New file.
59224         * modules/unictype/category-Zl-tests: New file.
59225         * modules/unictype/category-Zp-tests: New file.
59226         * modules/unictype/category-Zs-tests: New file.
59227         * modules/unictype/category-and-not-tests: New file.
59228         * modules/unictype/category-and-tests: New file.
59229         * modules/unictype/category-byname-tests: New file.
59230         * modules/unictype/category-name-tests: New file.
59231         * modules/unictype/category-none-tests: New file.
59232         * modules/unictype/category-of-tests: New file.
59233         * modules/unictype/category-or-tests: New file.
59234         * modules/unictype/category-test-withtable-tests: New file.
59235         * modules/unictype/combining-class-tests: New file.
59236         * modules/unictype/ctype-alnum-tests: New file.
59237         * modules/unictype/ctype-alpha-tests: New file.
59238         * modules/unictype/ctype-blank-tests: New file.
59239         * modules/unictype/ctype-cntrl-tests: New file.
59240         * modules/unictype/ctype-digit-tests: New file.
59241         * modules/unictype/ctype-graph-tests: New file.
59242         * modules/unictype/ctype-lower-tests: New file.
59243         * modules/unictype/ctype-print-tests: New file.
59244         * modules/unictype/ctype-punct-tests: New file.
59245         * modules/unictype/ctype-space-tests: New file.
59246         * modules/unictype/ctype-upper-tests: New file.
59247         * modules/unictype/ctype-xdigit-tests: New file.
59248         * modules/unictype/decimal-digit-tests: New file.
59249         * modules/unictype/digit-tests: New file.
59250         * modules/unictype/mirror-tests: New file.
59251         * modules/unictype/numeric-tests: New file.
59252         * modules/unictype/property-alphabetic-tests: New file.
59253         * modules/unictype/property-ascii-hex-digit-tests: New file.
59254         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59255         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59256         * modules/unictype/property-bidi-block-separator-tests: New file.
59257         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59258         * modules/unictype/property-bidi-common-separator-tests: New file.
59259         * modules/unictype/property-bidi-control-tests: New file.
59260         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59261         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59262         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59263         * modules/unictype/property-bidi-european-digit-tests: New file.
59264         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59265         * modules/unictype/property-bidi-left-to-right-tests: New file.
59266         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59267         * modules/unictype/property-bidi-other-neutral-tests: New file.
59268         * modules/unictype/property-bidi-pdf-tests: New file.
59269         * modules/unictype/property-bidi-segment-separator-tests: New file.
59270         * modules/unictype/property-bidi-whitespace-tests: New file.
59271         * modules/unictype/property-byname-tests: New file.
59272         * modules/unictype/property-combining-tests: New file.
59273         * modules/unictype/property-composite-tests: New file.
59274         * modules/unictype/property-currency-symbol-tests: New file.
59275         * modules/unictype/property-dash-tests: New file.
59276         * modules/unictype/property-decimal-digit-tests: New file.
59277         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59278         * modules/unictype/property-deprecated-tests: New file.
59279         * modules/unictype/property-diacritic-tests: New file.
59280         * modules/unictype/property-extender-tests: New file.
59281         * modules/unictype/property-format-control-tests: New file.
59282         * modules/unictype/property-grapheme-base-tests: New file.
59283         * modules/unictype/property-grapheme-extend-tests: New file.
59284         * modules/unictype/property-grapheme-link-tests: New file.
59285         * modules/unictype/property-hex-digit-tests: New file.
59286         * modules/unictype/property-hyphen-tests: New file.
59287         * modules/unictype/property-id-continue-tests: New file.
59288         * modules/unictype/property-id-start-tests: New file.
59289         * modules/unictype/property-ideographic-tests: New file.
59290         * modules/unictype/property-ids-binary-operator-tests: New file.
59291         * modules/unictype/property-ids-trinary-operator-tests: New file.
59292         * modules/unictype/property-ignorable-control-tests: New file.
59293         * modules/unictype/property-iso-control-tests: New file.
59294         * modules/unictype/property-join-control-tests: New file.
59295         * modules/unictype/property-left-of-pair-tests: New file.
59296         * modules/unictype/property-line-separator-tests: New file.
59297         * modules/unictype/property-logical-order-exception-tests: New file.
59298         * modules/unictype/property-lowercase-tests: New file.
59299         * modules/unictype/property-math-tests: New file.
59300         * modules/unictype/property-non-break-tests: New file.
59301         * modules/unictype/property-not-a-character-tests: New file.
59302         * modules/unictype/property-numeric-tests: New file.
59303         * modules/unictype/property-other-alphabetic-tests: New file.
59304         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59305         * modules/unictype/property-other-grapheme-extend-tests: New file.
59306         * modules/unictype/property-other-id-continue-tests: New file.
59307         * modules/unictype/property-other-id-start-tests: New file.
59308         * modules/unictype/property-other-lowercase-tests: New file.
59309         * modules/unictype/property-other-math-tests: New file.
59310         * modules/unictype/property-other-uppercase-tests: New file.
59311         * modules/unictype/property-paired-punctuation-tests: New file.
59312         * modules/unictype/property-paragraph-separator-tests: New file.
59313         * modules/unictype/property-pattern-syntax-tests: New file.
59314         * modules/unictype/property-pattern-white-space-tests: New file.
59315         * modules/unictype/property-private-use-tests: New file.
59316         * modules/unictype/property-punctuation-tests: New file.
59317         * modules/unictype/property-quotation-mark-tests: New file.
59318         * modules/unictype/property-radical-tests: New file.
59319         * modules/unictype/property-sentence-terminal-tests: New file.
59320         * modules/unictype/property-soft-dotted-tests: New file.
59321         * modules/unictype/property-space-tests: New file.
59322         * modules/unictype/property-terminal-punctuation-tests: New file.
59323         * modules/unictype/property-test-tests: New file.
59324         * modules/unictype/property-titlecase-tests: New file.
59325         * modules/unictype/property-unassigned-code-value-tests: New file.
59326         * modules/unictype/property-unified-ideograph-tests: New file.
59327         * modules/unictype/property-uppercase-tests: New file.
59328         * modules/unictype/property-variation-selector-tests: New file.
59329         * modules/unictype/property-white-space-tests: New file.
59330         * modules/unictype/property-xid-continue-tests: New file.
59331         * modules/unictype/property-xid-start-tests: New file.
59332         * modules/unictype/property-zero-width-tests: New file.
59333         * modules/unictype/scripts-tests: New file.
59334         * modules/unictype/syntax-c-ident-tests: New file.
59335         * modules/unictype/syntax-c-whitespace-tests: New file.
59336         * modules/unictype/syntax-java-ident-tests: New file.
59337         * modules/unictype/syntax-java-whitespace-tests: New file.
59338         * tests/unictype/test-bidi_byname.c: New file.
59339         * tests/unictype/test-bidi_name.c: New file.
59340         * tests/unictype/test-bidi_of.c: New file.
59341         * tests/unictype/test-bidi_test.c: New file.
59342         * tests/unictype/test-block_list.c: New file.
59343         * tests/unictype/test-block_of.c: New file.
59344         * tests/unictype/test-block_test.c: New file.
59345         * tests/unictype/test-categ_and.c: New file.
59346         * tests/unictype/test-categ_and_not.c: New file.
59347         * tests/unictype/test-categ_byname.c: New file.
59348         * tests/unictype/test-categ_name.c: New file.
59349         * tests/unictype/test-categ_none.c: New file.
59350         * tests/unictype/test-categ_of.c: New file.
59351         * tests/unictype/test-categ_or.c: New file.
59352         * tests/unictype/test-categ_test_withtable.c: New file.
59353         * tests/unictype/test-combining.c: New file.
59354         * tests/unictype/test-decdigit.c: New file.
59355         * tests/unictype/test-digit.c: New file.
59356         * tests/unictype/test-mirror.c: New file.
59357         * tests/unictype/test-numeric.c: New file.
59358         * tests/unictype/test-pr_byname.c: New file.
59359         * tests/unictype/test-pr_test.c: New file.
59360         * tests/unictype/test-predicate-part1.h: New file.
59361         * tests/unictype/test-predicate-part2.h: New file.
59362         * tests/unictype/test-scripts.c: New file.
59363         * tests/unictype/test-sy_c_ident.c: New file.
59364         * tests/unictype/test-sy_java_ident.c: New file.
59365
59366         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59367         for Unicode 5.0.0.
59368         * tests/unictype/test-categ_Cc.c: Likewise.
59369         * tests/unictype/test-categ_Cf.c: Likewise.
59370         * tests/unictype/test-categ_Cn.c: Likewise.
59371         * tests/unictype/test-categ_Co.c: Likewise.
59372         * tests/unictype/test-categ_Cs.c: Likewise.
59373         * tests/unictype/test-categ_L.c: Likewise.
59374         * tests/unictype/test-categ_Ll.c: Likewise.
59375         * tests/unictype/test-categ_Lm.c: Likewise.
59376         * tests/unictype/test-categ_Lo.c: Likewise.
59377         * tests/unictype/test-categ_Lt.c: Likewise.
59378         * tests/unictype/test-categ_Lu.c: Likewise.
59379         * tests/unictype/test-categ_M.c: Likewise.
59380         * tests/unictype/test-categ_Mc.c: Likewise.
59381         * tests/unictype/test-categ_Me.c: Likewise.
59382         * tests/unictype/test-categ_Mn.c: Likewise.
59383         * tests/unictype/test-categ_N.c: Likewise.
59384         * tests/unictype/test-categ_Nd.c: Likewise.
59385         * tests/unictype/test-categ_Nl.c: Likewise.
59386         * tests/unictype/test-categ_No.c: Likewise.
59387         * tests/unictype/test-categ_P.c: Likewise.
59388         * tests/unictype/test-categ_Pc.c: Likewise.
59389         * tests/unictype/test-categ_Pd.c: Likewise.
59390         * tests/unictype/test-categ_Pe.c: Likewise.
59391         * tests/unictype/test-categ_Pf.c: Likewise.
59392         * tests/unictype/test-categ_Pi.c: Likewise.
59393         * tests/unictype/test-categ_Po.c: Likewise.
59394         * tests/unictype/test-categ_Ps.c: Likewise.
59395         * tests/unictype/test-categ_S.c: Likewise.
59396         * tests/unictype/test-categ_Sc.c: Likewise.
59397         * tests/unictype/test-categ_Sk.c: Likewise.
59398         * tests/unictype/test-categ_Sm.c: Likewise.
59399         * tests/unictype/test-categ_So.c: Likewise.
59400         * tests/unictype/test-categ_Z.c: Likewise.
59401         * tests/unictype/test-categ_Zl.c: Likewise.
59402         * tests/unictype/test-categ_Zp.c: Likewise.
59403         * tests/unictype/test-categ_Zs.c: Likewise.
59404         * tests/unictype/test-ctype_alnum.c: Likewise.
59405         * tests/unictype/test-ctype_alpha.c: Likewise.
59406         * tests/unictype/test-ctype_blank.c: Likewise.
59407         * tests/unictype/test-ctype_cntrl.c: Likewise.
59408         * tests/unictype/test-ctype_digit.c: Likewise.
59409         * tests/unictype/test-ctype_graph.c: Likewise.
59410         * tests/unictype/test-ctype_lower.c: Likewise.
59411         * tests/unictype/test-ctype_print.c: Likewise.
59412         * tests/unictype/test-ctype_punct.c: Likewise.
59413         * tests/unictype/test-ctype_space.c: Likewise.
59414         * tests/unictype/test-ctype_upper.c: Likewise.
59415         * tests/unictype/test-ctype_xdigit.c: Likewise.
59416         * tests/unictype/test-decdigit.h: Likewise.
59417         * tests/unictype/test-digit.h: Likewise.
59418         * tests/unictype/test-numeric.h: Likewise.
59419         * tests/unictype/test-pr_alphabetic.c: Likewise.
59420         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59421         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59422         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59423         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59424         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59425         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59426         * tests/unictype/test-pr_bidi_control.c: Likewise.
59427         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59428         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59429         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59430         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59431         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59432         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59433         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59434         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59435         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59436         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59437         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59438         * tests/unictype/test-pr_combining.c: Likewise.
59439         * tests/unictype/test-pr_composite.c: Likewise.
59440         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59441         * tests/unictype/test-pr_dash.c: Likewise.
59442         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59443         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59444         * tests/unictype/test-pr_deprecated.c: Likewise.
59445         * tests/unictype/test-pr_diacritic.c: Likewise.
59446         * tests/unictype/test-pr_extender.c: Likewise.
59447         * tests/unictype/test-pr_format_control.c: Likewise.
59448         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59449         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59450         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59451         * tests/unictype/test-pr_hex_digit.c: Likewise.
59452         * tests/unictype/test-pr_hyphen.c: Likewise.
59453         * tests/unictype/test-pr_id_continue.c: Likewise.
59454         * tests/unictype/test-pr_id_start.c: Likewise.
59455         * tests/unictype/test-pr_ideographic.c: Likewise.
59456         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59457         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59458         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59459         * tests/unictype/test-pr_iso_control.c: Likewise.
59460         * tests/unictype/test-pr_join_control.c: Likewise.
59461         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59462         * tests/unictype/test-pr_line_separator.c: Likewise.
59463         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59464         * tests/unictype/test-pr_lowercase.c: Likewise.
59465         * tests/unictype/test-pr_math.c: Likewise.
59466         * tests/unictype/test-pr_non_break.c: Likewise.
59467         * tests/unictype/test-pr_not_a_character.c: Likewise.
59468         * tests/unictype/test-pr_numeric.c: Likewise.
59469         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59470         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59471         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59472         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59473         * tests/unictype/test-pr_other_id_start.c: Likewise.
59474         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59475         * tests/unictype/test-pr_other_math.c: Likewise.
59476         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59477         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59478         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59479         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59480         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59481         * tests/unictype/test-pr_private_use.c: Likewise.
59482         * tests/unictype/test-pr_punctuation.c: Likewise.
59483         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59484         * tests/unictype/test-pr_radical.c: Likewise.
59485         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59486         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59487         * tests/unictype/test-pr_space.c: Likewise.
59488         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59489         * tests/unictype/test-pr_titlecase.c: Likewise.
59490         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59491         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59492         * tests/unictype/test-pr_uppercase.c: Likewise.
59493         * tests/unictype/test-pr_variation_selector.c: Likewise.
59494         * tests/unictype/test-pr_white_space.c: Likewise.
59495         * tests/unictype/test-pr_xid_continue.c: Likewise.
59496         * tests/unictype/test-pr_xid_start.c: Likewise.
59497         * tests/unictype/test-pr_zero_width.c: Likewise.
59498         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59499         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59500
59501 2007-11-12  Bruno Haible  <bruno@clisp.org>
59502
59503         Unicode character classification functions.
59504         * lib/unictype.h: New file.
59505         * modules/unictype/base: New file.
59506         * modules/unictype/category-L: New file.
59507         * modules/unictype/category-Lu: New file.
59508         * modules/unictype/category-Ll: New file.
59509         * modules/unictype/category-Lt: New file.
59510         * modules/unictype/category-Lm: New file.
59511         * modules/unictype/category-Lo: New file.
59512         * modules/unictype/category-M: New file.
59513         * modules/unictype/category-Mn: New file.
59514         * modules/unictype/category-Mc: New file.
59515         * modules/unictype/category-Me: New file.
59516         * modules/unictype/category-N: New file.
59517         * modules/unictype/category-Nd: New file.
59518         * modules/unictype/category-Nl: New file.
59519         * modules/unictype/category-No: New file.
59520         * modules/unictype/category-P: New file.
59521         * modules/unictype/category-Pc: New file.
59522         * modules/unictype/category-Pd: New file.
59523         * modules/unictype/category-Ps: New file.
59524         * modules/unictype/category-Pe: New file.
59525         * modules/unictype/category-Pi: New file.
59526         * modules/unictype/category-Pf: New file.
59527         * modules/unictype/category-Po: New file.
59528         * modules/unictype/category-S: New file.
59529         * modules/unictype/category-Sm: New file.
59530         * modules/unictype/category-Sc: New file.
59531         * modules/unictype/category-Sk: New file.
59532         * modules/unictype/category-So: New file.
59533         * modules/unictype/category-Z: New file.
59534         * modules/unictype/category-Zs: New file.
59535         * modules/unictype/category-Zl: New file.
59536         * modules/unictype/category-Zp: New file.
59537         * modules/unictype/category-C: New file.
59538         * modules/unictype/category-Cc: New file.
59539         * modules/unictype/category-Cf: New file.
59540         * modules/unictype/category-Cs: New file.
59541         * modules/unictype/category-Co: New file.
59542         * modules/unictype/category-Cn: New file.
59543         * modules/unictype/category-or: New file.
59544         * modules/unictype/category-of: New file.
59545         * modules/unictype/category-test: New file.
59546         * modules/unictype/category-test-withtable: New file.
59547         * modules/unictype/category-byname: New file.
59548         * modules/unictype/category-none: New file.
59549         * modules/unictype/category-and: New file.
59550         * modules/unictype/category-and-not: New file.
59551         * modules/unictype/category-name: New file.
59552         * modules/unictype/combining-class: New file.
59553         * modules/unictype/category-all: New file.
59554         * modules/unictype/bidicategory-all: New file.
59555         * modules/unictype/bidicategory-byname: New file.
59556         * modules/unictype/bidicategory-name: New file.
59557         * modules/unictype/bidicategory-of: New file.
59558         * modules/unictype/bidicategory-test: New file.
59559         * modules/unictype/decimal-digit: New file.
59560         * modules/unictype/digit: New file.
59561         * modules/unictype/numeric: New file.
59562         * modules/unictype/mirror: New file.
59563         * modules/unictype/property-white-space: New file.
59564         * modules/unictype/property-alphabetic: New file.
59565         * modules/unictype/property-other-alphabetic: New file.
59566         * modules/unictype/property-not-a-character: New file.
59567         * modules/unictype/property-default-ignorable-code-point: New file.
59568         * modules/unictype/property-other-default-ignorable-code-point: New
59569         file.
59570         * modules/unictype/property-deprecated: New file.
59571         * modules/unictype/property-logical-order-exception: New file.
59572         * modules/unictype/property-variation-selector: New file.
59573         * modules/unictype/property-private-use: New file.
59574         * modules/unictype/property-unassigned-code-value: New file.
59575         * modules/unictype/property-uppercase: New file.
59576         * modules/unictype/property-other-uppercase: New file.
59577         * modules/unictype/property-lowercase: New file.
59578         * modules/unictype/property-other-lowercase: New file.
59579         * modules/unictype/property-titlecase: New file.
59580         * modules/unictype/property-soft-dotted: New file.
59581         * modules/unictype/property-id-start: New file.
59582         * modules/unictype/property-other-id-start: New file.
59583         * modules/unictype/property-id-continue: New file.
59584         * modules/unictype/property-other-id-continue: New file.
59585         * modules/unictype/property-xid-start: New file.
59586         * modules/unictype/property-xid-continue: New file.
59587         * modules/unictype/property-pattern-white-space: New file.
59588         * modules/unictype/property-pattern-syntax: New file.
59589         * modules/unictype/property-join-control: New file.
59590         * modules/unictype/property-grapheme-base: New file.
59591         * modules/unictype/property-grapheme-extend: New file.
59592         * modules/unictype/property-other-grapheme-extend: New file.
59593         * modules/unictype/property-grapheme-link: New file.
59594         * modules/unictype/property-bidi-control: New file.
59595         * modules/unictype/property-bidi-left-to-right: New file.
59596         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59597         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59598         * modules/unictype/property-bidi-european-digit: New file.
59599         * modules/unictype/property-bidi-eur-num-separator: New file.
59600         * modules/unictype/property-bidi-eur-num-terminator: New file.
59601         * modules/unictype/property-bidi-arabic-digit: New file.
59602         * modules/unictype/property-bidi-common-separator: New file.
59603         * modules/unictype/property-bidi-block-separator: New file.
59604         * modules/unictype/property-bidi-segment-separator: New file.
59605         * modules/unictype/property-bidi-whitespace: New file.
59606         * modules/unictype/property-bidi-non-spacing-mark: New file.
59607         * modules/unictype/property-bidi-boundary-neutral: New file.
59608         * modules/unictype/property-bidi-pdf: New file.
59609         * modules/unictype/property-bidi-embedding-or-override: New file.
59610         * modules/unictype/property-bidi-other-neutral: New file.
59611         * modules/unictype/property-hex-digit: New file.
59612         * modules/unictype/property-ascii-hex-digit: New file.
59613         * modules/unictype/property-ideographic: New file.
59614         * modules/unictype/property-unified-ideograph: New file.
59615         * modules/unictype/property-radical: New file.
59616         * modules/unictype/property-ids-binary-operator: New file.
59617         * modules/unictype/property-ids-trinary-operator: New file.
59618         * modules/unictype/property-zero-width: New file.
59619         * modules/unictype/property-space: New file.
59620         * modules/unictype/property-non-break: New file.
59621         * modules/unictype/property-iso-control: New file.
59622         * modules/unictype/property-format-control: New file.
59623         * modules/unictype/property-dash: New file.
59624         * modules/unictype/property-hyphen: New file.
59625         * modules/unictype/property-punctuation: New file.
59626         * modules/unictype/property-line-separator: New file.
59627         * modules/unictype/property-paragraph-separator: New file.
59628         * modules/unictype/property-quotation-mark: New file.
59629         * modules/unictype/property-sentence-terminal: New file.
59630         * modules/unictype/property-terminal-punctuation: New file.
59631         * modules/unictype/property-currency-symbol: New file.
59632         * modules/unictype/property-math: New file.
59633         * modules/unictype/property-other-math: New file.
59634         * modules/unictype/property-paired-punctuation: New file.
59635         * modules/unictype/property-left-of-pair: New file.
59636         * modules/unictype/property-combining: New file.
59637         * modules/unictype/property-composite: New file.
59638         * modules/unictype/property-decimal-digit: New file.
59639         * modules/unictype/property-numeric: New file.
59640         * modules/unictype/property-diacritic: New file.
59641         * modules/unictype/property-extender: New file.
59642         * modules/unictype/property-ignorable-control: New file.
59643         * modules/unictype/property-test: New file.
59644         * modules/unictype/property-byname: New file.
59645         * modules/unictype/property-all: New file.
59646         * modules/unictype/scripts: New file.
59647         * modules/unictype/scripts-all: New file.
59648         * modules/unictype/block-of: New file.
59649         * modules/unictype/block-test: New file.
59650         * modules/unictype/block-list: New file.
59651         * modules/unictype/block-all: New file.
59652         * modules/unictype/syntax-c-whitespace: New file.
59653         * modules/unictype/syntax-java-whitespace: New file.
59654         * modules/unictype/syntax-c-ident: New file.
59655         * modules/unictype/syntax-java-ident: New file.
59656         * modules/unictype/ctype-alnum: New file.
59657         * modules/unictype/ctype-alpha: New file.
59658         * modules/unictype/ctype-cntrl: New file.
59659         * modules/unictype/ctype-digit: New file.
59660         * modules/unictype/ctype-graph: New file.
59661         * modules/unictype/ctype-lower: New file.
59662         * modules/unictype/ctype-print: New file.
59663         * modules/unictype/ctype-punct: New file.
59664         * modules/unictype/ctype-space: New file.
59665         * modules/unictype/ctype-upper: New file.
59666         * modules/unictype/ctype-xdigit: New file.
59667         * modules/unictype/ctype-blank: New file.
59668         * lib/unictype/bidi_byname.c: New file.
59669         * lib/unictype/bidi_name.c: New file.
59670         * lib/unictype/bidi_of.c: New file.
59671         * lib/unictype/bidi_test.c: New file.
59672         * lib/unictype/bitmap.h: New file.
59673         * lib/unictype/block_test.c: New file.
59674         * lib/unictype/blocks.c: New file.
59675         * lib/unictype/categ_C.c: New file.
59676         * lib/unictype/categ_Cc.c: New file.
59677         * lib/unictype/categ_Cf.c: New file.
59678         * lib/unictype/categ_Cn.c: New file.
59679         * lib/unictype/categ_Co.c: New file.
59680         * lib/unictype/categ_Cs.c: New file.
59681         * lib/unictype/categ_L.c: New file.
59682         * lib/unictype/categ_Ll.c: New file.
59683         * lib/unictype/categ_Lm.c: New file.
59684         * lib/unictype/categ_Lo.c: New file.
59685         * lib/unictype/categ_Lt.c: New file.
59686         * lib/unictype/categ_Lu.c: New file.
59687         * lib/unictype/categ_M.c: New file.
59688         * lib/unictype/categ_Mc.c: New file.
59689         * lib/unictype/categ_Me.c: New file.
59690         * lib/unictype/categ_Mn.c: New file.
59691         * lib/unictype/categ_N.c: New file.
59692         * lib/unictype/categ_Nd.c: New file.
59693         * lib/unictype/categ_Nl.c: New file.
59694         * lib/unictype/categ_No.c: New file.
59695         * lib/unictype/categ_P.c: New file.
59696         * lib/unictype/categ_Pc.c: New file.
59697         * lib/unictype/categ_Pd.c: New file.
59698         * lib/unictype/categ_Pe.c: New file.
59699         * lib/unictype/categ_Pf.c: New file.
59700         * lib/unictype/categ_Pi.c: New file.
59701         * lib/unictype/categ_Po.c: New file.
59702         * lib/unictype/categ_Ps.c: New file.
59703         * lib/unictype/categ_S.c: New file.
59704         * lib/unictype/categ_Sc.c: New file.
59705         * lib/unictype/categ_Sk.c: New file.
59706         * lib/unictype/categ_Sm.c: New file.
59707         * lib/unictype/categ_So.c: New file.
59708         * lib/unictype/categ_Z.c: New file.
59709         * lib/unictype/categ_Zl.c: New file.
59710         * lib/unictype/categ_Zp.c: New file.
59711         * lib/unictype/categ_Zs.c: New file.
59712         * lib/unictype/categ_and.c: New file.
59713         * lib/unictype/categ_and_not.c: New file.
59714         * lib/unictype/categ_byname.c: New file.
59715         * lib/unictype/categ_name.c: New file.
59716         * lib/unictype/categ_none.c: New file.
59717         * lib/unictype/categ_of.c: New file.
59718         * lib/unictype/categ_or.c: New file.
59719         * lib/unictype/categ_test.c: New file.
59720         * lib/unictype/combining.c: New file.
59721         * lib/unictype/ctype_alnum.c: New file.
59722         * lib/unictype/ctype_alpha.c: New file.
59723         * lib/unictype/ctype_blank.c: New file.
59724         * lib/unictype/ctype_cntrl.c: New file.
59725         * lib/unictype/ctype_digit.c: New file.
59726         * lib/unictype/ctype_graph.c: New file.
59727         * lib/unictype/ctype_lower.c: New file.
59728         * lib/unictype/ctype_print.c: New file.
59729         * lib/unictype/ctype_punct.c: New file.
59730         * lib/unictype/ctype_space.c: New file.
59731         * lib/unictype/ctype_upper.c: New file.
59732         * lib/unictype/ctype_xdigit.c: New file.
59733         * lib/unictype/decdigit.c: New file.
59734         * lib/unictype/digit.c: New file.
59735         * lib/unictype/identsyntaxmap.h: New file.
59736         * lib/unictype/mirror.c: New file.
59737         * lib/unictype/numeric.c: New file.
59738         * lib/unictype/pr_alphabetic.c: New file.
59739         * lib/unictype/pr_ascii_hex_digit.c: New file.
59740         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59741         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59742         * lib/unictype/pr_bidi_block_separator.c: New file.
59743         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59744         * lib/unictype/pr_bidi_common_separator.c: New file.
59745         * lib/unictype/pr_bidi_control.c: New file.
59746         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59747         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59748         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59749         * lib/unictype/pr_bidi_european_digit.c: New file.
59750         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59751         * lib/unictype/pr_bidi_left_to_right.c: New file.
59752         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59753         * lib/unictype/pr_bidi_other_neutral.c: New file.
59754         * lib/unictype/pr_bidi_pdf.c: New file.
59755         * lib/unictype/pr_bidi_segment_separator.c: New file.
59756         * lib/unictype/pr_bidi_whitespace.c: New file.
59757         * lib/unictype/pr_byname.c: New file.
59758         * lib/unictype/pr_byname.gperf: New file.
59759         * lib/unictype/pr_combining.c: New file.
59760         * lib/unictype/pr_composite.c: New file.
59761         * lib/unictype/pr_currency_symbol.c: New file.
59762         * lib/unictype/pr_dash.c: New file.
59763         * lib/unictype/pr_decimal_digit.c: New file.
59764         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59765         * lib/unictype/pr_deprecated.c: New file.
59766         * lib/unictype/pr_diacritic.c: New file.
59767         * lib/unictype/pr_extender.c: New file.
59768         * lib/unictype/pr_format_control.c: New file.
59769         * lib/unictype/pr_grapheme_base.c: New file.
59770         * lib/unictype/pr_grapheme_extend.c: New file.
59771         * lib/unictype/pr_grapheme_link.c: New file.
59772         * lib/unictype/pr_hex_digit.c: New file.
59773         * lib/unictype/pr_hyphen.c: New file.
59774         * lib/unictype/pr_id_continue.c: New file.
59775         * lib/unictype/pr_id_start.c: New file.
59776         * lib/unictype/pr_ideographic.c: New file.
59777         * lib/unictype/pr_ids_binary_operator.c: New file.
59778         * lib/unictype/pr_ids_trinary_operator.c: New file.
59779         * lib/unictype/pr_ignorable_control.c: New file.
59780         * lib/unictype/pr_iso_control.c: New file.
59781         * lib/unictype/pr_join_control.c: New file.
59782         * lib/unictype/pr_left_of_pair.c: New file.
59783         * lib/unictype/pr_line_separator.c: New file.
59784         * lib/unictype/pr_logical_order_exception.c: New file.
59785         * lib/unictype/pr_lowercase.c: New file.
59786         * lib/unictype/pr_math.c: New file.
59787         * lib/unictype/pr_non_break.c: New file.
59788         * lib/unictype/pr_not_a_character.c: New file.
59789         * lib/unictype/pr_numeric.c: New file.
59790         * lib/unictype/pr_other_alphabetic.c: New file.
59791         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59792         * lib/unictype/pr_other_grapheme_extend.c: New file.
59793         * lib/unictype/pr_other_id_continue.c: New file.
59794         * lib/unictype/pr_other_id_start.c: New file.
59795         * lib/unictype/pr_other_lowercase.c: New file.
59796         * lib/unictype/pr_other_math.c: New file.
59797         * lib/unictype/pr_other_uppercase.c: New file.
59798         * lib/unictype/pr_paired_punctuation.c: New file.
59799         * lib/unictype/pr_paragraph_separator.c: New file.
59800         * lib/unictype/pr_pattern_syntax.c: New file.
59801         * lib/unictype/pr_pattern_white_space.c: New file.
59802         * lib/unictype/pr_private_use.c: New file.
59803         * lib/unictype/pr_punctuation.c: New file.
59804         * lib/unictype/pr_quotation_mark.c: New file.
59805         * lib/unictype/pr_radical.c: New file.
59806         * lib/unictype/pr_sentence_terminal.c: New file.
59807         * lib/unictype/pr_soft_dotted.c: New file.
59808         * lib/unictype/pr_space.c: New file.
59809         * lib/unictype/pr_terminal_punctuation.c: New file.
59810         * lib/unictype/pr_test.c: New file.
59811         * lib/unictype/pr_titlecase.c: New file.
59812         * lib/unictype/pr_unassigned_code_value.c: New file.
59813         * lib/unictype/pr_unified_ideograph.c: New file.
59814         * lib/unictype/pr_uppercase.c: New file.
59815         * lib/unictype/pr_variation_selector.c: New file.
59816         * lib/unictype/pr_white_space.c: New file.
59817         * lib/unictype/pr_xid_continue.c: New file.
59818         * lib/unictype/pr_xid_start.c: New file.
59819         * lib/unictype/pr_zero_width.c: New file.
59820         * lib/unictype/scripts.c: New file.
59821         * lib/unictype/sy_c_ident.c: New file.
59822         * lib/unictype/sy_c_whitespace.c: New file.
59823         * lib/unictype/sy_java_ident.c: New file.
59824         * lib/unictype/sy_java_whitespace.c: New file.
59825
59826         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59827         Unicode 5.0.0.
59828         * lib/unictype/blocks.h: Likewise.
59829         * lib/unictype/categ_C.h: Likewise.
59830         * lib/unictype/categ_Cc.h: Likewise.
59831         * lib/unictype/categ_Cf.h: Likewise.
59832         * lib/unictype/categ_Cn.h: Likewise.
59833         * lib/unictype/categ_Co.h: Likewise.
59834         * lib/unictype/categ_Cs.h: Likewise.
59835         * lib/unictype/categ_L.h: Likewise.
59836         * lib/unictype/categ_Ll.h: Likewise.
59837         * lib/unictype/categ_Lm.h: Likewise.
59838         * lib/unictype/categ_Lo.h: Likewise.
59839         * lib/unictype/categ_Lt.h: Likewise.
59840         * lib/unictype/categ_Lu.h: Likewise.
59841         * lib/unictype/categ_M.h: Likewise.
59842         * lib/unictype/categ_Mc.h: Likewise.
59843         * lib/unictype/categ_Me.h: Likewise.
59844         * lib/unictype/categ_Mn.h: Likewise.
59845         * lib/unictype/categ_N.h: Likewise.
59846         * lib/unictype/categ_Nd.h: Likewise.
59847         * lib/unictype/categ_Nl.h: Likewise.
59848         * lib/unictype/categ_No.h: Likewise.
59849         * lib/unictype/categ_P.h: Likewise.
59850         * lib/unictype/categ_Pc.h: Likewise.
59851         * lib/unictype/categ_Pd.h: Likewise.
59852         * lib/unictype/categ_Pe.h: Likewise.
59853         * lib/unictype/categ_Pf.h: Likewise.
59854         * lib/unictype/categ_Pi.h: Likewise.
59855         * lib/unictype/categ_Po.h: Likewise.
59856         * lib/unictype/categ_Ps.h: Likewise.
59857         * lib/unictype/categ_S.h: Likewise.
59858         * lib/unictype/categ_Sc.h: Likewise.
59859         * lib/unictype/categ_Sk.h: Likewise.
59860         * lib/unictype/categ_Sm.h: Likewise.
59861         * lib/unictype/categ_So.h: Likewise.
59862         * lib/unictype/categ_Z.h: Likewise.
59863         * lib/unictype/categ_Zl.h: Likewise.
59864         * lib/unictype/categ_Zp.h: Likewise.
59865         * lib/unictype/categ_Zs.h: Likewise.
59866         * lib/unictype/categ_of.h: Likewise.
59867         * lib/unictype/combining.h: Likewise.
59868         * lib/unictype/ctype_alnum.h: Likewise.
59869         * lib/unictype/ctype_alpha.h: Likewise.
59870         * lib/unictype/ctype_blank.h: Likewise.
59871         * lib/unictype/ctype_cntrl.h: Likewise.
59872         * lib/unictype/ctype_digit.h: Likewise.
59873         * lib/unictype/ctype_graph.h: Likewise.
59874         * lib/unictype/ctype_lower.h: Likewise.
59875         * lib/unictype/ctype_print.h: Likewise.
59876         * lib/unictype/ctype_punct.h: Likewise.
59877         * lib/unictype/ctype_space.h: Likewise.
59878         * lib/unictype/ctype_upper.h: Likewise.
59879         * lib/unictype/ctype_xdigit.h: Likewise.
59880         * lib/unictype/decdigit.h: Likewise.
59881         * lib/unictype/digit.h: Likewise.
59882         * lib/unictype/mirror.h: Likewise.
59883         * lib/unictype/numeric.h: Likewise.
59884         * lib/unictype/pr_alphabetic.h: Likewise.
59885         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59886         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59887         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59888         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59889         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59890         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59891         * lib/unictype/pr_bidi_control.h: Likewise.
59892         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59893         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59894         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59895         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59896         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59897         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59898         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59899         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59900         * lib/unictype/pr_bidi_pdf.h: Likewise.
59901         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59902         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59903         * lib/unictype/pr_combining.h: Likewise.
59904         * lib/unictype/pr_composite.h: Likewise.
59905         * lib/unictype/pr_currency_symbol.h: Likewise.
59906         * lib/unictype/pr_dash.h: Likewise.
59907         * lib/unictype/pr_decimal_digit.h: Likewise.
59908         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59909         * lib/unictype/pr_deprecated.h: Likewise.
59910         * lib/unictype/pr_diacritic.h: Likewise.
59911         * lib/unictype/pr_extender.h: Likewise.
59912         * lib/unictype/pr_format_control.h: Likewise.
59913         * lib/unictype/pr_grapheme_base.h: Likewise.
59914         * lib/unictype/pr_grapheme_extend.h: Likewise.
59915         * lib/unictype/pr_grapheme_link.h: Likewise.
59916         * lib/unictype/pr_hex_digit.h: Likewise.
59917         * lib/unictype/pr_hyphen.h: Likewise.
59918         * lib/unictype/pr_id_continue.h: Likewise.
59919         * lib/unictype/pr_id_start.h: Likewise.
59920         * lib/unictype/pr_ideographic.h: Likewise.
59921         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59922         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59923         * lib/unictype/pr_ignorable_control.h: Likewise.
59924         * lib/unictype/pr_iso_control.h: Likewise.
59925         * lib/unictype/pr_join_control.h: Likewise.
59926         * lib/unictype/pr_left_of_pair.h: Likewise.
59927         * lib/unictype/pr_line_separator.h: Likewise.
59928         * lib/unictype/pr_logical_order_exception.h: Likewise.
59929         * lib/unictype/pr_lowercase.h: Likewise.
59930         * lib/unictype/pr_math.h: Likewise.
59931         * lib/unictype/pr_non_break.h: Likewise.
59932         * lib/unictype/pr_not_a_character.h: Likewise.
59933         * lib/unictype/pr_numeric.h: Likewise.
59934         * lib/unictype/pr_other_alphabetic.h: Likewise.
59935         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59936         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59937         * lib/unictype/pr_other_id_continue.h: Likewise.
59938         * lib/unictype/pr_other_id_start.h: Likewise.
59939         * lib/unictype/pr_other_lowercase.h: Likewise.
59940         * lib/unictype/pr_other_math.h: Likewise.
59941         * lib/unictype/pr_other_uppercase.h: Likewise.
59942         * lib/unictype/pr_paired_punctuation.h: Likewise.
59943         * lib/unictype/pr_paragraph_separator.h: Likewise.
59944         * lib/unictype/pr_pattern_syntax.h: Likewise.
59945         * lib/unictype/pr_pattern_white_space.h: Likewise.
59946         * lib/unictype/pr_private_use.h: Likewise.
59947         * lib/unictype/pr_punctuation.h: Likewise.
59948         * lib/unictype/pr_quotation_mark.h: Likewise.
59949         * lib/unictype/pr_radical.h: Likewise.
59950         * lib/unictype/pr_sentence_terminal.h: Likewise.
59951         * lib/unictype/pr_soft_dotted.h: Likewise.
59952         * lib/unictype/pr_space.h: Likewise.
59953         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59954         * lib/unictype/pr_titlecase.h: Likewise.
59955         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59956         * lib/unictype/pr_unified_ideograph.h: Likewise.
59957         * lib/unictype/pr_uppercase.h: Likewise.
59958         * lib/unictype/pr_variation_selector.h: Likewise.
59959         * lib/unictype/pr_white_space.h: Likewise.
59960         * lib/unictype/pr_xid_continue.h: Likewise.
59961         * lib/unictype/pr_xid_start.h: Likewise.
59962         * lib/unictype/pr_zero_width.h: Likewise.
59963         * lib/unictype/scripts.h: Likewise.
59964         * lib/unictype/scripts_byname.gperf: Likewise.
59965         * lib/unictype/sy_c_ident.h: Likewise.
59966         * lib/unictype/sy_c_whitespace.h: Likewise.
59967         * lib/unictype/sy_java_ident.h: Likewise.
59968         * lib/unictype/sy_java_whitespace.h: Likewise.
59969
59970         * lib/unictype/Makefile: New file.
59971         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59972         glibc.
59973         * lib/unictype/3level.h: New file, copied from glibc.
59974         * lib/unictype/3levelbit.h: New file.
59975
59976 2007-11-11  Bruno Haible  <bruno@clisp.org>
59977
59978         * modules/gperf: New file.
59979         * modules/iconv_open (Depends-on): Add it.
59980         (Makefile.am): Remove the GPERF definition.
59981
59982 2007-11-11  Bruno Haible  <bruno@clisp.org>
59983
59984         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59985         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59986
59987 2007-11-11  Bruno Haible  <bruno@clisp.org>
59988
59989         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59990         (usage): Remove function.
59991
59992 2007-11-11  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59995         gl_FUNC_CEILF_LIBS.
59996         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59997         gl_FUNC_CEIL_LIBS.
59998         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59999         gl_FUNC_CEILL_LIBS.
60000         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60001         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60002         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60003
60004 2007-11-11  Bruno Haible  <bruno@clisp.org>
60005
60006         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60007         roundf were declared but do not exist on functions.
60008         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60009         roundl were declared but do not exist on functions.
60010         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60011         HAVE_FLOORL_AND_CEILL, respectively.
60012         Needed for Sun C on Solaris 10.
60013
60014 2007-11-11  Bruno Haible  <bruno@clisp.org>
60015
60016         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60017         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60018         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60019         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60021         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60022         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60023         HAVE_DECL_ROUNDF.
60024         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60025         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60027         of HAVE_DECL_ROUND*.
60028         * modules/math (Makefile.am): Update.
60029
60030 2007-11-10  Bruno Haible  <bruno@clisp.org>
60031
60032         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60033         ptrdiff_t as m4/intl.m4.
60034
60035 2007-11-10  Jim Meyering  <meyering@redhat.com>
60036
60037         Avoid link failure for the argmatch test.
60038         * tests/test-argmatch.c (usage): Define function to avoid a link
60039         failure: argmatch_die requires a usage function.
60040
60041 2007-11-09  Bruno Haible  <bruno@clisp.org>
60042
60043         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60044         * doc/functions/vsnprintf.texi: Likewise.
60045         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60046         with a size argument < 2.
60047
60048 2007-11-09  Bruno Haible  <bruno@clisp.org>
60049
60050         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60051         buffer. Fixes an inefficiency introduced on 2007-11-03.
60052
60053 2007-11-09  Bruno Haible  <bruno@clisp.org>
60054
60055         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60056         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60057
60058 2007-11-08  Jim Meyering  <meyering@redhat.com>
60059
60060         Change cache variable name prefix "jm_" to "gl_" everywhere.
60061         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60062         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60063         * m4/uptime.m4: s/gl_/jm_/
60064
60065 2007-11-07  Bruno Haible  <bruno@clisp.org>
60066
60067         Update to GNU gettext 0.17.
60068         * m4/intl.m4: Update to GNU gettext 0.17.
60069         * m4/po.m4: Likewise.
60070         * modules/gettext (Files): Remove m4/ulonglong.m4.
60071         (configure.ac): Require gettext infrastructure from version 0.17.
60072
60073 2007-11-06  Bruno Haible  <bruno@clisp.org>
60074
60075         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60076         symbolic values are not defined in a public header.
60077         * lib/freadable.c (freadable) [QNX]: Likewise.
60078         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60079         * lib/freading.c (freading) [QNX]: Likewise.
60080         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60081         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60082         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60083         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60084         Reported by Alain Magloire.
60085
60086         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60087
60088 2007-11-05  Bruno Haible  <bruno@clisp.org>
60089
60090         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60091         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60092         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60093         Reported by Eric Blake.
60094
60095 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60096             Bruno Haible  <bruno@clisp.org>
60097
60098         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60099         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60100         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60101         (malloc): Undefine also before including <stdlib.h>.
60102         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60103         Needed on OSF/1 4.0.
60104
60105 2007-11-05  Jim Meyering  <meyering@redhat.com>
60106
60107         git-version-gen: sync from coreutils.
60108         * build-aux/git-version-gen: Add comments.
60109         Change the first '-' to '.' in the snapshot version string,
60110         e.g., 6.9-377-08144 -> 6.9.377-08144
60111         Remove first parameter.
60112         Don't declare a version "-dirty" merely because a time
60113         stamp has changed.
60114
60115 2007-11-04  Bruno Haible  <bruno@clisp.org>
60116
60117         * lib/lock.h: Protect all macro definitions containing an 'if'
60118         statement through a "do { ... } while (0)".
60119         * lib/tls.h: Likewise.
60120
60121 2007-11-04  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60124
60125 2007-11-04  Bruno Haible  <bruno@clisp.org>
60126
60127         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60128         * modules/fprintf-posix (Depends-on): Add nocrash.
60129         * modules/snprintf-posix (Depends-on): Likewise.
60130         * modules/sprintf-posix (Depends-on): Likewise.
60131         * modules/vasnprintf-posix (Depends-on): Likewise.
60132         * modules/vasprintf-posix (Depends-on): Likewise.
60133         * modules/vfprintf-posix (Depends-on): Likewise.
60134         * modules/vsnprintf-posix (Depends-on): Likewise.
60135         * modules/vsprintf-posix (Depends-on): Likewise.
60136         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60137         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60138         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60139         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60140         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60141         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60142         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60143
60144 2007-11-04  Bruno Haible  <bruno@clisp.org>
60145
60146         * modules/nocrash: New file.
60147         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60148         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60149
60150 2007-11-04  Bruno Haible  <bruno@clisp.org>
60151
60152         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60153         precision handling.
60154         * tests/test-vasprintf-posix.c (test_function): Likewise.
60155         * tests/test-snprintf-posix.h (test_function): Likewise.
60156         * tests/test-sprintf-posix.h (test_function): Likewise.
60157
60158         Fix *printf behaviour for large precisions on mingw and BeOS.
60159         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60160         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60162         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60163         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60164         gl_PRINTF_PRECISION and test its result. Invoke
60165         gl_PREREQ_VASNPRINTF_PRECISION.
60166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60167         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60168         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60170         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60172         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60173         * doc/functions/fprintf.texi: Update.
60174         * doc/functions/printf.texi: Update.
60175         * doc/functions/snprintf.texi: Update.
60176         * doc/functions/sprintf.texi: Update.
60177         * doc/functions/vfprintf.texi: Update.
60178         * doc/functions/vprintf.texi: Update.
60179         * doc/functions/vsnprintf.texi: Update.
60180         * doc/functions/vsprintf.texi: Update.
60181
60182 2007-11-04  Bruno Haible  <bruno@clisp.org>
60183
60184         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60185
60186 2007-11-04  Bruno Haible  <bruno@clisp.org>
60187
60188         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60189         Reported by Sylvain Beucler <beuc@gnu.org>.
60190
60191 2007-11-03  Bruno Haible  <bruno@clisp.org>
60192
60193         * tests/test-fprintf-posix2.sh: New file.
60194         * tests/test-fprintf-posix2.c: New file.
60195         * modules/fprintf-posix-tests (Files): Add them.
60196         (TESTS): Add test-fprintf-posix2.sh.
60197         (configure.ac): Check for getrlimit and setrlimit.
60198         (check_PROGRAMS): Add test-fprintf-posix2.
60199
60200         * tests/test-printf-posix2.sh: New file.
60201         * tests/test-printf-posix2.c: New file.
60202         * modules/printf-posix-tests (Files): Add them.
60203         (TESTS): Add test-printf-posix2.sh.
60204         (configure.ac): Check for getrlimit and setrlimit.
60205         (check_PROGRAMS): Add test-printf-posix2.
60206
60207         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60208         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60209         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60210         (decode_double): New function, copied from decode_long_double.
60211         (scale10_round_decimal_decoded): New function, extracted from
60212         scale10_round_decimal_long_double.
60213         (scale10_round_decimal_long_double): Use it.
60214         (scale10_round_decimal_double): New function.
60215         (floorlog10): New function.
60216         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60218         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60219         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60220         gl_PRINTF_ENOMEM and test its result. Invoke
60221         gl_PREREQ_VASNPRINTF_ENOMEM.
60222         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60229         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60230         * modules/snprintf-posix (Depends-on): Likewise.
60231         * modules/sprintf-posix (Depends-on): Likewise.
60232         * modules/vasnprintf-posix (Depends-on): Likewise.
60233         * modules/vasprintf-posix (Depends-on): Likewise.
60234         * modules/vfprintf-posix (Depends-on): Likewise.
60235         * modules/vsnprintf-posix (Depends-on): Likewise.
60236         * modules/vsprintf-posix (Depends-on): Likewise.
60237         * doc/functions/fprintf.texi: Update.
60238         * doc/functions/printf.texi: Update.
60239         * doc/functions/snprintf.texi: Update.
60240         * doc/functions/sprintf.texi: Update.
60241         * doc/functions/vfprintf.texi: Update.
60242         * doc/functions/vprintf.texi: Update.
60243         * doc/functions/vsnprintf.texi: Update.
60244         * doc/functions/vsprintf.texi: Update.
60245
60246 2007-11-03  Bruno Haible  <bruno@clisp.org>
60247
60248         * modules/frexp-nolibm-tests: New file.
60249
60250         * modules/frexp-nolibm: New file.
60251         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60252
60253 2007-11-03  Bruno Haible  <bruno@clisp.org>
60254
60255         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60256         value is C99 compliant.
60257         Needed for OSF/1 5.1.
60258
60259 2007-11-03  Bruno Haible  <bruno@clisp.org>
60260
60261         Fix out-of-memory handling of vasnprintf.
60262         * lib/printf-parse.c: Include <errno.h>.
60263         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60264         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60265         is already set.
60266
60267 2007-11-02  Eric Blake  <ebb9@byu.net>
60268
60269         Fix tests on cygwin.
60270         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60271
60272 2007-11-01  Bruno Haible  <bruno@clisp.org>
60273
60274         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60275         warning.
60276         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60277         needed for POSIX compatibility.
60278
60279 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60282         for compatibility with GNU.
60283
60284 2007-11-01  Bruno Haible  <bruno@clisp.org>
60285
60286         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60287         (putenv): Renamed from rpl_putenv. Change argument type from
60288         'const char *' to 'char *'.
60289         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60290         of defining putenv in config.h, just set REPLACE_PUTENV.
60291         * modules/putenv (Depends-on): Add stdlib.
60292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60293         (Include): Use <stdlib.h>.
60294         * lib/stdlib.in.h (putenv): New declaration.
60295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60296         REPLACE_PUTENV.
60297         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60298         REPLACE_PUTENV.
60299         Needed for MacOS X 10.5.0.
60300         Reported by Peter O'Gorman <peter@pogma.com>.
60301
60302 2007-11-01  Jim Meyering  <meyering@redhat.com>
60303
60304         Treat an empty date string exactly like "0".
60305         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60306         if the remaining date string (to be parsed) is empty, use "0".
60307         Reported by Mischa Molhoek and discussed in this thread:
60308         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60309
60310 2007-10-31  Bruno Haible  <bruno@clisp.org>
60311
60312         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60313         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60314         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60315         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60316         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60317         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60318
60319 2007-10-31  Bruno Haible  <bruno@clisp.org>
60320
60321         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60322         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60323         (AC_TYPE_LONG_LONG_INT): Use it.
60324         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60325         it as well.
60326         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60327         to m4/longlong.m4.
60328         * modules/stdint (Files): Remove m4/ulonglong.m4.
60329         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60330         m4/ulonglong.m4.
60331         * modules/strtoumax (Files): Likewise.
60332
60333 2007-10-30  Bruno Haible  <bruno@clisp.org>
60334
60335         * modules/xvasprintf-posix: New file.
60336         Suggested by Eric Blake.
60337
60338 2007-10-30  Bruno Haible  <bruno@clisp.org>
60339
60340         * modules/xprintf-posix-tests: New file.
60341         * tests/test-xprintf-posix.sh: New file.
60342         * tests/test-xprintf-posix.c: New file.
60343         * tests/test-xfprintf-posix.c: New file.
60344
60345         * modules/xprintf-posix: New file.
60346
60347 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60348
60349         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60350         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60351         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60352
60353 2007-10-29  Bruno Haible  <bruno@clisp.org>
60354
60355         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60356         contain the special marker '_cv_'.
60357         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60358         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60359         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60360         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60361         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60362         Reported by Ralf Wildenhues.
60363
60364 2007-10-29  Bruno Haible  <bruno@clisp.org>
60365
60366         * gnulib-tool (func_import): When --lgpl is not specified, set
60367         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60368         GPLv3.
60369         Reported by Simon Josefsson.
60370
60371 2007-10-28  Bruno Haible  <bruno@clisp.org>
60372
60373         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60374         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60375         HAVE_DECL_ISFINITE.
60376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60377         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60378         HAVE_DECL_ISFINITE.
60379
60380 2007-10-28  Bruno Haible  <bruno@clisp.org>
60381
60382         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60383         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60384
60385 2007-10-28  Bruno Haible  <bruno@clisp.org>
60386
60387         Fix link errors with Sun C 5.0 on Solaris 10.
60388         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60389         function is declared but not present in the compiler's libm.
60390         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60391         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60392         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60393         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60394         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60395         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60396         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60398         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60399         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60400         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60401         HAVE_DECL_FLOORL.
60402
60403 2007-10-28  Bruno Haible  <bruno@clisp.org>
60404
60405         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60406         gl_FUNC_FLOORL. Cache the result.
60407         (gl_FUNC_FLOORL): Use it.
60408         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60409         gl_FUNC_CEILL. Cache the result.
60410         (gl_FUNC_CEILL): Use it.
60411
60412         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60413         gl_FUNC_FLOOR. Cache the result.
60414         (gl_FUNC_FLOOR): Use it.
60415         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60416         gl_FUNC_CEIL. Cache the result.
60417         (gl_FUNC_CEIL): Use it.
60418
60419         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60420         gl_FUNC_FLOORF. Cache the result.
60421         (gl_FUNC_FLOORF): Use it.
60422         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60423         gl_FUNC_CEILF. Cache the result.
60424         (gl_FUNC_CEILF): Use it.
60425
60426 2007-10-28  Bruno Haible  <bruno@clisp.org>
60427
60428         * gnulib-tool: Allow specifying the LGPL version number through
60429         --lgpl=2 or --lgpl=3.
60430         (func_usage): Document --lgpl with argument.
60431         Handle --lgpl=... arguments.
60432         (func_import): Recognize also gl_LGPL calls with an argument. When
60433         --lgpl=2 is used and the module's license is just LGPL, report an
60434         error. Set sed_transform_lib_file according to the lgpl variable. In
60435         the generated files, use --lgpl or gl_LGPL invocations with argument,
60436         if necessary.
60437         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60438         an LGPv2+ license.
60439         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60440         gl_LGPL macro.
60441
60442 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60443             Bruno Haible  <bruno@clisp.org>
60444
60445         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60446         (u16_uctomb_aux): Likewise.
60447         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60448         !HAVE_INLINE.
60449         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60450
60451 2007-10-28  Bruno Haible  <bruno@clisp.org>
60452
60453         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60454         Invoke AM_GETTEXT_OPTION if it exists.
60455         * modules/vasprintf: Likewise.
60456         * modules/verror: Likewise.
60457         * modules/xprintf: Likewise.
60458         * modules/xvasprintf: Likewise.
60459
60460 2007-10-27  Ben Pfaff  <blp@gnu.org>
60461
60462         * lib/math.in.h: Define isfinite macro and prototypes for
60463         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60464         implementations.
60465         * m4/math_h.m4: New substitutions for isfinite module.
60466         * lib/isfinite.c: New file.
60467         * m4/isfinite.m4: New file.
60468         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60469         * modules/isfinite: New file.
60470         * modules/isfinite-tests: New file.
60471         * tests/tests-isfinite.c: New file.
60472         * doc/functions/isfinite.texi: Mention isfinite module.
60473         * MODULES.html.sh: Mention new module.
60474
60475 2007-10-27  Ben Pfaff  <blp@gnu.org>
60476
60477         Ralf Wildenhues reported that Tru64 4.0D declares the round
60478         functions but does not have definitions.
60479         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60480         cannot be found in any library, set the output variable to
60481         "missing" instead of "".
60482         * m4/round.m4: Also use our substitute if we cannot find round in
60483         any library, even if it is declared.
60484         * m4/roundf.m4: Likewise for roundf.
60485         * m4/roundl.m4: Likewise for roundl.
60486         * lib/math.in.h: Undefine roundf, round, roundl before defining
60487         their replacements, to allow for hypothetical systems where these
60488         may be defined as macros but not available in libraries.
60489
60490 2007-10-27  Bruno Haible  <bruno@clisp.org>
60491
60492         * doc/gnulib.texi: Invoke @firstparagraphindent.
60493         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60494         changes in gnulib.
60495         (Source changes): New section.
60496
60497 2007-10-26  Bruno Haible  <bruno@clisp.org>
60498
60499         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60500         borrowed from autoconf.
60501
60502 2007-10-26  Bruno Haible  <bruno@clisp.org>
60503
60504         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60505         strerror returned the empty string. Needed on HP-UX 11.00.
60506
60507 2007-10-24  Micah Cowan  <micah@cowan.name>
60508
60509         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60510         * build-aux/bootstrap: Remove support for now-unnecessary option,
60511         --cvs-user, and envvars CVS_USER, CVS_RSH.
60512
60513 2007-10-24  Jim Meyering  <meyering@redhat.com>
60514
60515         Avoid diagnostics from sha1sum when there is no cached checksum.
60516         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60517         if the po.s1 file hasn't been created yet.
60518
60519         * build-aux/bootstrap: Sync from coreutils:
60520         2007-10-24  Jim Meyering  <meyering@redhat.com>
60521         Get gnulib from the git repository, not from an obsolete cvs one.
60522         * build-aux/bootstrap: Suggestion from Micah Cowan.
60523         2007-10-04  Jim Meyering  <jim@meyering.net>
60524         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60525         (update_po_files): Work also when there are no .po files in po/.
60526
60527 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60528
60529         * README: Append ".git" to git and cg examples.
60530         Problem reported by Benoit Sigoure.
60531
60532 2007-10-23  Micah Cowan  <micah@cowan.name>
60533
60534         * users.txt: Add wget.
60535
60536 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60537
60538         Fix linking of some unistdio tests on FreeBSD.
60539         * modules/unistdio/u16-vsnprintf-tests
60540         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60541         * modules/unistdio/u16-vsprintf-tests
60542         (test_u16_vsnprintf1_LDADD): Likewise.
60543         * modules/unistdio/u32-vsnprintf-tests
60544         (test_u32_vsnprintf1_LDADD): Likewise.
60545         * modules/unistdio/u32-vsprintf-tests
60546         (test_u32_vsprintf1_LDADD): Likewise.
60547         * modules/unistdio/u8-vsnprintf-tests
60548         (test_u8_vsnprintf1_LDADD): Likewise.
60549         * modules/unistdio/u8-vsprintf-tests
60550         (test_u8_vsprintf1_LDADD): Likewise.
60551         * modules/unistdio/ulc-vsnprintf-tests
60552         (test_ulc_vsnprintf1_LDADD): Likewise.
60553         * modules/unistdio/ulc-vsprintf-tests
60554         (test_ulc_vsprintf1_LDADD): Likewise.
60555
60556         Fix linking of some uniconv tests on FreeBSD.
60557         * modules/uniconv/u16-conv-from-enc-tests
60558         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60559         * modules/uniconv/u16-conv-to-enc-tests
60560         (test_u16_conv_to_enc_LDADD): Likewise.
60561         * modules/uniconv/u16-strconv-from-enc-tests
60562         (test_u16_strconv_from_enc_LDADD): Likewise.
60563         * modules/uniconv/u16-strconv-to-enc-tests
60564         (test_u16_strconv_to_enc_LDADD): Likewise.
60565         * modules/uniconv/u32-conv-from-enc-tests
60566         (test_u32_conv_from_enc_LDADD): Likewise.
60567         * modules/uniconv/u32-conv-to-enc-tests
60568         (test_u32_conv_to_enc_LDADD): Likewise.
60569         * modules/uniconv/u32-strconv-from-enc-tests
60570         (test_u32_strconv_from_enc_LDADD): Likewise.
60571         * modules/uniconv/u32-strconv-to-enc-tests
60572         (test_u32_strconv_to_enc_LDADD): Likewise.
60573         * modules/uniconv/u8-conv-from-enc-tests
60574         (test_u8_conv_from_enc_LDADD): Likewise.
60575         * modules/uniconv/u8-conv-to-enc-tests
60576         (test_u8_conv_to_enc_LDADD): Likewise.
60577         * modules/uniconv/u8-strconv-from-enc-tests
60578         (test_u8_strconv_from_enc_LDADD): Likewise.
60579         * modules/uniconv/u8-strconv-to-enc-tests
60580         (test_u8_strconv_to_enc_LDADD): Likewise.
60581
60582 2007-10-22  Bruno Haible  <bruno@clisp.org>
60583
60584         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60585         size.
60586
60587 2007-10-22  Eric Blake  <ebb9@byu.net>
60588
60589         Tweak x*printf documentation.
60590         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60591         variable name and comments.
60592         Suggested by Bruno Haible.
60593
60594 2007-10-22  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/acl.c (copy_acl): Fix file name in comment.
60597
60598 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60599
60600         Fix Tru64 problem with stdbool.h.
60601         * lib/stdbool.in.h (false, true):
60602         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60603         Don't declare as an enum in this situation; it runs afoul of Tru64.
60604         Problem reported by Steven M. Schweda in
60605         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60606
60607 2007-10-22  Eric Blake  <ebb9@byu.net>
60608
60609         Also wrap vf?printf.
60610         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60611         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60612         (xvprintf, xvfprintf): New functions.
60613
60614 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60615
60616         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60617         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60618
60619         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60620         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60621
60622 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60625         by Bruno Haible.
60626
60627 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60628
60629         * lib/getloadavg.c
60630         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60631         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60632
60633         * tests/test-i-ring.c: Work for C89.
60634
60635 2007-10-22  Bruno Haible  <bruno@clisp.org>
60636
60637         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60638         -1u, in preprocessor expression, so that we don't test for the bug
60639         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60640         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60641
60642 2007-10-22  Eric Blake  <ebb9@byu.net>
60643
60644         * tests/test-yesno.sh: Silence stderr during test.
60645
60646 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60647
60648         * modules/crypto/gc-camellia: New file.
60649
60650         * m4/gc-camellia.m4: New file.
60651
60652         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60653
60654         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60655
60656 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60657
60658         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60659         --help to stdout.  Reported by sms@antinode.org (Steven
60660         M. Schweda).
60661
60662 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60663
60664         * users.txt: Fix link to libksba.
60665
60666 2007-10-21  Ben Pfaff  <blp@gnu.org>
60667
60668         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60669         round.c roundf implementation that depends on floorf and ceilf to
60670         be tested unconditionally.
60671
60672 2007-10-21  Ben Pfaff  <blp@gnu.org>
60673
60674         * m4/check-libm-func.m4: Removed.
60675         * m4/check-math-lib.m4: New file.
60676         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60677         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60678         definition and lack of AC_LIBOBJ([roundf]).
60679         * m4/roundl.m4: Ditto, and similarly for roundl.
60680         * modules/round: Reference new m4 file.
60681         * modules/roundf: Ditto.
60682         * modules/roundl: Ditto.
60683         * tests/test-round2.c (main): Use ROUND instead of round.
60684         Bug report from Bruno Haible.
60685
60686 2007-10-21  Bruno Haible  <bruno@clisp.org>
60687
60688         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60689         context.
60690
60691 2007-10-21  Bruno Haible  <bruno@clisp.org>
60692
60693         * tests/test-wcwidth.c (main): Allow negative result for some control
60694         characters.
60695
60696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60697         Needed on OSF/1 5.1.
60698
60699 2007-10-21  Bruno Haible  <bruno@clisp.org>
60700
60701         * tests/test-floorf1.c: Include isnanf.h.
60702         (main): Use isnanf() instead of isnan().
60703         * tests/test-ceilf1.c: Include isnanf.h.
60704         (main): Use isnanf() instead of isnan().
60705         * tests/test-truncf1.c: Include isnanf.h.
60706         (main): Use isnanf() instead of isnan().
60707         * tests/test-roundf1.c: Include isnanf.h.
60708         (main): Use isnanf() instead of isnan().
60709
60710 2007-10-21  Eric Blake  <ebb9@byu.net>
60711
60712         * users.txt: Update URL for m4.
60713
60714 2007-10-21  Bruno Haible  <bruno@clisp.org>
60715
60716         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60717
60718 2007-10-21  Bruno Haible  <bruno@clisp.org>
60719
60720         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60721         Git's management files if the CVS files are not present.
60722
60723 2007-10-20  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60726         gcc-3.4.x.
60727
60728 2007-10-20  Ben Pfaff  <blp@gnu.org>
60729
60730         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60731         implementations.
60732         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60733         * lib/round.c: New file.
60734         * lib/roundf.c: New file.
60735         * lib/roundl.c: New file.
60736         * m4/round.m4: New file.
60737         * m4/roundf.m4: New file.
60738         * m4/roundl.m4: New file.
60739         * m4/check-libm-func-m4: New file.
60740         * modules/math: Replace round, roundf, roundl related @VARS@ in
60741         math.in.h.
60742         * modules/round: New file.
60743         * modules/round-tests: New file.
60744         * modules/roundf: New file.
60745         * modules/roundf-tests: New file.
60746         * modules/roundl: New file.
60747         * modules/roundl-tests: New file.
60748         * tests/test-round1.c: New file.
60749         * tests/test-round2.c: New file.
60750         * tests/test-roundf1.c: New file.
60751         * tests/test-roundf2.c: New file.
60752         * tests/test-roundl.c: New file.
60753         * doc/functions/round.texi: Mention round module.
60754         * doc/functions/roundf.texi: Mention roundf module.
60755         * doc/functions/roundl.texi: Mention roundl module.
60756         * MODULES.html.sh: Mention new modules.
60757         Thanks to Bruno Haible for suggestions.
60758
60759 2007-10-20  Jim Meyering  <meyering@redhat.com>
60760
60761         * lib/xprintf.c: Include <config.h> unconditionally.
60762
60763         Change xprintf's license to GPL.
60764         * modules/xprintf (License): s/LGPL/GPL/, since this module
60765         depends on modules (exit and exitfail) which are GPL.
60766         Suggestion from Bruno Haible.
60767
60768         xprintf fixes.
60769         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60770         Use a clearer diagnostic.
60771         Patch from Bruno Haible.
60772
60773 2007-10-20  Bruno Haible  <bruno@clisp.org>
60774
60775         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60776         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60777         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60778
60779 2007-10-20  Bruno Haible  <bruno@clisp.org>
60780
60781         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60782         precision in the comparison result > x - 1 or similar.
60783         * tests/test-ceilf2.c (correct_result_p): Likewise.
60784         * tests/test-truncf2.c (correct_result_p): Likewise.
60785         * tests/test-trunc2.c (correct_result_p): Likewise.
60786         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60787
60788 2007-10-20  Bruno Haible  <bruno@clisp.org>
60789
60790         * modules/ceil: New file.
60791         * m4/ceil.m4: New file.
60792         * doc/functions/ceil.texi: Mention the 'ceil' module.
60793
60794 2007-10-20  Bruno Haible  <bruno@clisp.org>
60795
60796         * modules/floor: New file.
60797         * m4/floor.m4: New file.
60798         * doc/functions/floor.texi: Mention the 'floor' module.
60799
60800 2007-10-20  Bruno Haible  <bruno@clisp.org>
60801
60802         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60803         of %a.
60804         * modules/floorf-tests (Depends-on): Likewise.
60805         * modules/truncf-tests (Depends-on): Likewise.
60806         * modules/trunc-tests (Depends-on): Likewise.
60807         Reported by Ben Pfaff.
60808
60809 2007-10-19  Jim Meyering  <meyering@redhat.com>
60810
60811         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60812         Don't bother testing specific errno values.  Just test ferror.
60813
60814         New module: xprintf
60815         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60816
60817 2007-10-19  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60820         syntax.
60821         * modules/javaexec (Makefile.am): Likewise.
60822         * modules/relocatable-prog (Makefile.am): Likewise.
60823         Suggested by Jim Meyering.
60824
60825 2007-10-18  Bruno Haible  <bruno@clisp.org>
60826
60827         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60828         Reported by Jim Meyering.
60829
60830 2007-10-18  Eric Blake  <ebb9@byu.net>
60831
60832         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60833
60834 2007-10-18  Bruno Haible  <bruno@clisp.org>
60835
60836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60837         the format string into writable memory. Needed in Fortify conditions.
60838
60839 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60840             Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60843         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60844         * modules/trim (Depends-on): Add mbchar.
60845         (configure.ac): Add gl_FUNC_MBRTOWC.
60846         (Makefile.am): Augment lib_SOURCES.
60847
60848 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60849
60850         Modify glob.c to use fstatat and dirfd, to simplify it.
60851         Suggested by Eric Blake.
60852         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60853         Don't include <stdbool.h>; not used.
60854         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60855         (link_exists_p): Simplify implementation, since we can now assume
60856         dirfd and fstatat.
60857         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60858
60859 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60860
60861         * gnulib-tool (func_get_dependencies): Fix sed script to
60862         match only tests.
60863
60864 2007-10-17  Bruno Haible  <bruno@clisp.org>
60865
60866         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60867         allow locale names without encoding suffix.
60868         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60869         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60870
60871 2007-10-16  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60874         * lib/getgroups.c (getgroups): Likewise.
60875         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60876
60877 2007-10-16  Bruno Haible  <bruno@clisp.org>
60878
60879         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60880         * modules/malloc-posix (License): Likewise.
60881         * modules/realloc-posix (License): Likewise.
60882         * modules/calloc-posix (License): Likewise.
60883         * modules/intprops (License): Change from GPL to LGPL, with
60884         Paul Eggert's approval.
60885
60886 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         Merge glibc changes into lib/glob.c.
60889
60890         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60891         2007-10-15 04:59:03 UTC.  Here are the changes:
60892
60893         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60894
60895         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60896
60897         * lib/glob.c: Add some branch prediction throughout.
60898
60899         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60900
60901         [BZ #5103]
60902         * lib/glob.c (glob): Recognize patterns starting \/.
60903
60904         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60905
60906         [BZ #3996]
60907         * lib/glob.c (attribute_hidden): Define if not defined.
60908         (glob): Unescape dirname, filename or username when needed and not
60909         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60910         is NULL.  Handle unescaped [ in pattern without closing ].
60911         Don't pass GLOB_CHECK down to recursive glob for directories.
60912         (__glob_pattern_type): New function.
60913         (__glob_pattern_p): Implement using __glob_pattern_type.
60914         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60915         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60916         Remove unreachable code.
60917
60918         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60919
60920         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60921         explain why there are no leaks.
60922
60923         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60924
60925         [BZ #3253]
60926         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60927         time, rather allocate increasingly bigger arrays of pointers, if
60928         possible with alloca, if too large with malloc.
60929
60930 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60931
60932         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60933         Problem reported by H.Merijn Brand in
60934         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60935         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60936         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60937
60938 2007-10-15  Bruno Haible  <bruno@clisp.org>
60939
60940         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60941         with explicit rpl_ prefix.
60942         * lib/fopen.c (fopen): Likewise.
60943         * lib/freopen.c (freopen): Likewise.
60944         * lib/iconv.c (iconv): Likewise.
60945         * lib/iconv_close.c (iconv_close): Likewise.
60946
60947 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60948
60949         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60950
60951 2007-10-15  Bruno Haible  <bruno@clisp.org>
60952
60953         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60954         <stddef.h> instead of <stdlib.h> since we only need NULL.
60955         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60956
60957 2007-10-15  Bruno Haible  <bruno@clisp.org>
60958
60959         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60960         Replace paragraph talking about LIBOBJS.
60961         Reported by Colin Watson <cjwatson@debian.org>.
60962
60963 2007-10-15  Bruno Haible  <bruno@clisp.org>
60964
60965         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60966         <stdlib.h> before using NULL.
60967
60968 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60969
60970         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60971         Reported by Albert Chin <china@thewrittenword.com>.
60972
60973 2007-10-14  Bruno Haible  <bruno@clisp.org>
60974
60975         * modules/iconv_open-utf-tests: New file.
60976         * tests/test-iconv-utf.c: New file.
60977
60978         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60979         * modules/iconv_open-utf: New file.
60980         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60981         (iconv, iconv_close): New declarations.
60982         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60983         be defined.
60984         (iconv_open): Add special handling of conversion between UTF-8 and
60985         UTF-{16,32}{BE,LE}.
60986         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60987         * lib/iconv_close.c: New file.
60988         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60989         gl_FUNC_ICONV_OPEN.
60990         (gl_FUNC_ICONV_OPEN): Use it.
60991         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60992         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60993         and REPLACE_ICONV_UTF.
60994         * modules/iconv_open (Depends-on): Add c-strcase.
60995         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60996         ICONV_CONST.
60997         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60998
60999 2007-10-13  Albert Chin  <china@thewrittenword.com>
61000             Bruno Haible  <bruno@clisp.org>
61001
61002         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61003         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61004
61005 2007-10-13  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61008         defined, use the ISO C99 inline semantics.
61009         * lib/argp.h (ARGP_EI): Likewise.
61010
61011 2007-10-13  Bruno Haible  <bruno@clisp.org>
61012
61013         Handle 'inline' change in gcc 4.3.0.
61014         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61015         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61016         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61017         argp_fmtstream_point): Disable 'extern' declaration if the function
61018         definition is going to be provided inline.
61019         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61020         semantics, not the ISO C99 inline semantics.
61021         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61022         'extern' declaration if the function definition is going to be provided
61023         inline.
61024         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61025         the GNU C inline semantics, not the ISO C99 inline semantics. With
61026         GCC 4.2, avoid a warning.
61027
61028 2007-10-13  Bruno Haible  <bruno@clisp.org>
61029
61030         * lib/freading.h (freading): Enable the use of __freading for
61031         glibc >= 2.7.
61032         * lib/freading.c (freading): Likewise.
61033
61034 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61035
61036         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61037         "warning: C99 inline functions are not supported; using GNU89".
61038
61039 2007-10-12  Bruno Haible  <bruno@clisp.org>
61040
61041         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61042         of 2.
61043         * tests/test-ceilf2.c: New file.
61044         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61045
61046         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61047         * modules/ceilf-tests: Update.
61048
61049 2007-10-12  Bruno Haible  <bruno@clisp.org>
61050
61051         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61052         of 2.
61053         * tests/test-floorf2.c: New file.
61054         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61055
61056         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61057         * modules/floorf-tests: Update.
61058
61059 2007-10-12  Bruno Haible  <bruno@clisp.org>
61060
61061         * tests/test-trunc2.c: New file.
61062         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61063
61064         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61065         * modules/trunc-tests: Update.
61066
61067 2007-10-12  Bruno Haible  <bruno@clisp.org>
61068
61069         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61070         of 2.
61071         * tests/test-truncf2.c: New file.
61072         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61073
61074         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61075         * modules/truncf-tests: Update.
61076
61077 2007-10-11  Eric Blake  <ebb9@byu.net>
61078
61079         Don't claim strerror is broken on Interix.
61080         * doc/functions/strerror.texi (strerror): Known broken systems are
61081         now Solaris 8, and not Interix.
61082         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61083         Interix on cross-compile.
61084         Reported by Martin Koeppe in
61085         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61086
61087 2007-10-11  Bruno Haible  <bruno@clisp.org>
61088
61089         * modules/i-ring-tests: New file.
61090         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61091         instead of assert.
61092
61093 2007-10-11  Bruno Haible  <bruno@clisp.org>
61094
61095         * modules/filenamecat-tests: New file.
61096         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61097         * lib/filenamecat.c: Remove test code.
61098
61099 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61100
61101         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61102
61103         * lib/strerror.c: Include <string.h> always, to test interface,
61104         and to remove the need for the dummy.
61105         Include intprops.h to compute width instead of doing it ourselves
61106         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61107         (strerror): Define it to return NULL if there's no system strerror.
61108         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61109         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61110         ancient pre-strerror Unix systems well any more.  Saying "unknown
61111         system error" is enough.
61112         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61113         simpler strerror.c implementation.
61114         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61115         Simplify the tests to reflect the simpler strerror implementation.
61116         * modules/strerror (Depends-on): Add intprops.
61117
61118 2007-10-09  Eric Blake  <ebb9@byu.net>
61119
61120         Silence test-fpending.
61121         * modules/fpending-tests (Files): Add wrapper script.
61122         * tests/test-fpending.sh: New file.
61123
61124 2007-10-09  Bruno Haible  <bruno@clisp.org>
61125
61126         * MODULES.html.sh (func_module): Don't create a hyperlink for
61127         function names like 'printf_frexp'.
61128         (Misc): Add crc, memxor.
61129         (Characteristics of floating types): New section.
61130         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61131         isnanf-nolibm, signbit, trunc, truncf, truncl.
61132         (Enhancements for ISO C 99 functions): New subsection Input/output.
61133         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61134         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61135         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61136         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61137         (Enhancements for POSIX:2001 functions): Add chdir-long.
61138         (File system functions): Add areadlink, chdir-safer, read-file.
61139         Remove cycle-check.
61140         (File system as inode set): New section.
61141         (Date and time): Add gethrxtime.
61142         (Multithreading): Add openmp.
61143         (Internationalization functions): Add localename.
61144         (Unicode string functions): Add unistr/u*-mbsnlen.
61145         (Support for maintaining and releasing projects): Add git-version-gen.
61146         (Lone files): Remove directories.
61147
61148 2007-10-08  Ben Pfaff  <blp@gnu.org>
61149
61150         * lib/xmalloca.h: Fix typo in comment.
61151
61152 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61153
61154         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61155         when avoiding problems with integer overflow.  Use a portable test
61156         instead.
61157
61158 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61159
61160         * modules/dummy (License): Change to LGPLv2+.
61161         * modules/float (License): Likewise
61162         * modules/realloc (License): Likewise
61163         * modules/stdlib (License): Likewise
61164
61165 2007-10-07  Bruno Haible  <bruno@clisp.org>
61166
61167         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61168         * floor.c (TWO_MANT_DIG): Likewise.
61169         * ceil.c (TWO_MANT_DIG): Likewise.
61170         Reported by Ben Pfaff.
61171
61172 2007-10-07  Bruno Haible  <bruno@clisp.org>
61173
61174         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61175         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61176         * lib/frexp.c (FUNC): Likewise.
61177         * lib/printf-frexp.h (printf_frexp): Likewise.
61178         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61179         * lib/printf-frexp.c (FUNC): Likewise.
61180         Suggested by Jim Meyering.
61181
61182 2007-10-07  Jim Meyering  <meyering@redhat.com>
61183
61184         Make xnanosleep's integer overflow test more robust.
61185         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61186         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61187
61188 2007-10-07  Bruno Haible  <bruno@clisp.org>
61189
61190         * NEWS: Mention the license change.
61191
61192         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61193         abbreviations in the modules files.
61194
61195         Change copyright notice from GPLv2+ to GPLv3+.
61196         * README: Change copyright notice.
61197         * MODULES.html.sh: Likewise.
61198         * build-aux/bootstrap.conf: Likewise.
61199         * build-aux/config.libpath: Likewise.
61200         * build-aux/csharpcomp.sh.in: Likewise.
61201         * build-aux/csharpexec.sh.in: Likewise.
61202         * build-aux/install-reloc: Likewise.
61203         * build-aux/javacomp.sh.in: Likewise.
61204         * build-aux/javaexec.sh.in: Likewise.
61205         * build-aux/ldd.sh.in: Likewise.
61206         * build-aux/reloc-ldflags: Likewise.
61207         * build-aux/relocatable.sh.in: Likewise.
61208         * build-aux/x-to-1.in: Likewise.
61209         * check-module: Likewise.
61210         * config/srclistvars.sh: Likewise.
61211         * gnulib-tool: Likewise.
61212         * lib/acl-internal.h: Likewise.
61213         * lib/acl.c: Likewise.
61214         * lib/acl.h: Likewise.
61215         * lib/acl_entries.c: Likewise.
61216         * lib/areadlink-with-size.c: Likewise.
61217         * lib/areadlink.c: Likewise.
61218         * lib/areadlink.h: Likewise.
61219         * lib/argmatch.c: Likewise.
61220         * lib/argmatch.h: Likewise.
61221         * lib/argp-ba.c: Likewise.
61222         * lib/argp-eexst.c: Likewise.
61223         * lib/argp-fmtstream.c: Likewise.
61224         * lib/argp-fmtstream.h: Likewise.
61225         * lib/argp-fs-xinl.c: Likewise.
61226         * lib/argp-help.c: Likewise.
61227         * lib/argp-namefrob.h: Likewise.
61228         * lib/argp-parse.c: Likewise.
61229         * lib/argp-pin.c: Likewise.
61230         * lib/argp-pv.c: Likewise.
61231         * lib/argp-pvh.c: Likewise.
61232         * lib/argp-xinl.c: Likewise.
61233         * lib/argp.h: Likewise.
61234         * lib/at-func.c: Likewise.
61235         * lib/atanl.c: Likewise.
61236         * lib/backupfile.c: Likewise.
61237         * lib/backupfile.h: Likewise.
61238         * lib/basename.c: Likewise.
61239         * lib/binary-io.h: Likewise.
61240         * lib/byteswap.in.h: Likewise.
61241         * lib/c-stack.c: Likewise.
61242         * lib/c-stack.h: Likewise.
61243         * lib/c-strcasestr.c: Likewise.
61244         * lib/c-strcasestr.h: Likewise.
61245         * lib/c-strstr.c: Likewise.
61246         * lib/c-strstr.h: Likewise.
61247         * lib/c-strtod.c: Likewise.
61248         * lib/calloc.c: Likewise.
61249         * lib/canon-host.c: Likewise.
61250         * lib/canon-host.h: Likewise.
61251         * lib/canonicalize-lgpl.c: Likewise.
61252         * lib/canonicalize.c: Likewise.
61253         * lib/canonicalize.h: Likewise.
61254         * lib/ceil.c: Likewise.
61255         * lib/ceilf.c: Likewise.
61256         * lib/ceill.c: Likewise.
61257         * lib/chdir-long.c: Likewise.
61258         * lib/chdir-long.h: Likewise.
61259         * lib/chdir-safer.c: Likewise.
61260         * lib/chdir-safer.h: Likewise.
61261         * lib/chown.c: Likewise.
61262         * lib/classpath.c: Likewise.
61263         * lib/classpath.h: Likewise.
61264         * lib/clean-temp.c: Likewise.
61265         * lib/clean-temp.h: Likewise.
61266         * lib/cloexec.c: Likewise.
61267         * lib/close-stream.c: Likewise.
61268         * lib/closein.c: Likewise.
61269         * lib/closein.h: Likewise.
61270         * lib/closeout.c: Likewise.
61271         * lib/closeout.h: Likewise.
61272         * lib/concat-filename.c: Likewise.
61273         * lib/copy-file.c: Likewise.
61274         * lib/copy-file.h: Likewise.
61275         * lib/count-one-bits.h: Likewise.
61276         * lib/crc.c: Likewise.
61277         * lib/crc.h: Likewise.
61278         * lib/creat-safer.c: Likewise.
61279         * lib/csharpcomp.c: Likewise.
61280         * lib/csharpcomp.h: Likewise.
61281         * lib/csharpexec.c: Likewise.
61282         * lib/csharpexec.h: Likewise.
61283         * lib/cycle-check.c: Likewise.
61284         * lib/cycle-check.h: Likewise.
61285         * lib/diacrit.c: Likewise.
61286         * lib/diacrit.h: Likewise.
61287         * lib/diffseq.h: Likewise.
61288         * lib/dirchownmod.c: Likewise.
61289         * lib/dirent.in.h: Likewise.
61290         * lib/dirfd.c: Likewise.
61291         * lib/dirfd.h: Likewise.
61292         * lib/dirname.c: Likewise.
61293         * lib/dirname.h: Likewise.
61294         * lib/dummy.c: Likewise.
61295         * lib/dup-safer.c: Likewise.
61296         * lib/dup2.c: Likewise.
61297         * lib/eealloc.h: Likewise.
61298         * lib/error.c: Likewise.
61299         * lib/error.h: Likewise.
61300         * lib/euidaccess.c: Likewise.
61301         * lib/exclude.c: Likewise.
61302         * lib/exclude.h: Likewise.
61303         * lib/execute.c: Likewise.
61304         * lib/execute.h: Likewise.
61305         * lib/exitfail.c: Likewise.
61306         * lib/exitfail.h: Likewise.
61307         * lib/expl.c: Likewise.
61308         * lib/fatal-signal.c: Likewise.
61309         * lib/fatal-signal.h: Likewise.
61310         * lib/fbufmode.c: Likewise.
61311         * lib/fbufmode.h: Likewise.
61312         * lib/fchdir.c: Likewise.
61313         * lib/fchmodat.c: Likewise.
61314         * lib/fchownat.c: Likewise.
61315         * lib/fcntl--.h: Likewise.
61316         * lib/fcntl-safer.h: Likewise.
61317         * lib/fcntl.in.h: Likewise.
61318         * lib/fd-safer.c: Likewise.
61319         * lib/fflush.c: Likewise.
61320         * lib/file-has-acl.c: Likewise.
61321         * lib/file-set.c: Likewise.
61322         * lib/file-type.c: Likewise.
61323         * lib/file-type.h: Likewise.
61324         * lib/fileblocks.c: Likewise.
61325         * lib/filemode.c: Likewise.
61326         * lib/filemode.h: Likewise.
61327         * lib/filename.h: Likewise.
61328         * lib/filenamecat.c: Likewise.
61329         * lib/filenamecat.h: Likewise.
61330         * lib/findprog.c: Likewise.
61331         * lib/findprog.h: Likewise.
61332         * lib/float.in.h: Likewise.
61333         * lib/floor.c: Likewise.
61334         * lib/floorf.c: Likewise.
61335         * lib/floorl.c: Likewise.
61336         * lib/fopen-safer.c: Likewise.
61337         * lib/fopen.c: Likewise.
61338         * lib/fpending.c: Likewise.
61339         * lib/fpending.h: Likewise.
61340         * lib/fprintf.c: Likewise.
61341         * lib/fprintftime.h: Likewise.
61342         * lib/fpucw.h: Likewise.
61343         * lib/fpurge.c: Likewise.
61344         * lib/fpurge.h: Likewise.
61345         * lib/freadable.c: Likewise.
61346         * lib/freadable.h: Likewise.
61347         * lib/freadahead.c: Likewise.
61348         * lib/freadahead.h: Likewise.
61349         * lib/freading.c: Likewise.
61350         * lib/freading.h: Likewise.
61351         * lib/free.c: Likewise.
61352         * lib/freopen.c: Likewise.
61353         * lib/frexp.c: Likewise.
61354         * lib/frexpl.c: Likewise.
61355         * lib/fseek.c: Likewise.
61356         * lib/fseterr.c: Likewise.
61357         * lib/fseterr.h: Likewise.
61358         * lib/fstatat.c: Likewise.
61359         * lib/fstrcmp.c: Likewise.
61360         * lib/fstrcmp.h: Likewise.
61361         * lib/fsusage.c: Likewise.
61362         * lib/fsusage.h: Likewise.
61363         * lib/ftell.c: Likewise.
61364         * lib/ftello.c: Likewise.
61365         * lib/fts-cycle.c: Likewise.
61366         * lib/fts.c: Likewise.
61367         * lib/fts_.h: Likewise.
61368         * lib/full-read.c: Likewise.
61369         * lib/full-read.h: Likewise.
61370         * lib/full-write.c: Likewise.
61371         * lib/full-write.h: Likewise.
61372         * lib/fwritable.c: Likewise.
61373         * lib/fwritable.h: Likewise.
61374         * lib/fwriteerror.c: Likewise.
61375         * lib/fwriteerror.h: Likewise.
61376         * lib/fwriting.c: Likewise.
61377         * lib/fwriting.h: Likewise.
61378         * lib/gcd.c: Likewise.
61379         * lib/gcd.h: Likewise.
61380         * lib/getcwd.c: Likewise.
61381         * lib/getdate.h: Likewise.
61382         * lib/getdate.y: Likewise.
61383         * lib/getdomainname.c: Likewise.
61384         * lib/getdomainname.h: Likewise.
61385         * lib/getgroups.c: Likewise.
61386         * lib/gethostname.c: Likewise.
61387         * lib/gethrxtime.c: Likewise.
61388         * lib/gethrxtime.h: Likewise.
61389         * lib/getloadavg.c: Likewise.
61390         * lib/getndelim2.c: Likewise.
61391         * lib/getndelim2.h: Likewise.
61392         * lib/getnline.c: Likewise.
61393         * lib/getnline.h: Likewise.
61394         * lib/getopt.c: Likewise.
61395         * lib/getopt.in.h: Likewise.
61396         * lib/getopt1.c: Likewise.
61397         * lib/getopt_int.h: Likewise.
61398         * lib/getpagesize.h: Likewise.
61399         * lib/getsubopt.c: Likewise.
61400         * lib/gettime.c: Likewise.
61401         * lib/getugroups.c: Likewise.
61402         * lib/getugroups.h: Likewise.
61403         * lib/getusershell.c: Likewise.
61404         * lib/gl_anyavltree_list1.h: Likewise.
61405         * lib/gl_anyavltree_list2.h: Likewise.
61406         * lib/gl_anyhash_list1.h: Likewise.
61407         * lib/gl_anyhash_list2.h: Likewise.
61408         * lib/gl_anylinked_list1.h: Likewise.
61409         * lib/gl_anylinked_list2.h: Likewise.
61410         * lib/gl_anyrbtree_list1.h: Likewise.
61411         * lib/gl_anyrbtree_list2.h: Likewise.
61412         * lib/gl_anytree_list1.h: Likewise.
61413         * lib/gl_anytree_list2.h: Likewise.
61414         * lib/gl_anytree_oset.h: Likewise.
61415         * lib/gl_anytreehash_list1.h: Likewise.
61416         * lib/gl_anytreehash_list2.h: Likewise.
61417         * lib/gl_array_list.c: Likewise.
61418         * lib/gl_array_list.h: Likewise.
61419         * lib/gl_array_oset.c: Likewise.
61420         * lib/gl_array_oset.h: Likewise.
61421         * lib/gl_avltree_list.c: Likewise.
61422         * lib/gl_avltree_list.h: Likewise.
61423         * lib/gl_avltree_oset.c: Likewise.
61424         * lib/gl_avltree_oset.h: Likewise.
61425         * lib/gl_avltreehash_list.c: Likewise.
61426         * lib/gl_avltreehash_list.h: Likewise.
61427         * lib/gl_carray_list.c: Likewise.
61428         * lib/gl_carray_list.h: Likewise.
61429         * lib/gl_linked_list.c: Likewise.
61430         * lib/gl_linked_list.h: Likewise.
61431         * lib/gl_linkedhash_list.c: Likewise.
61432         * lib/gl_linkedhash_list.h: Likewise.
61433         * lib/gl_list.c: Likewise.
61434         * lib/gl_list.h: Likewise.
61435         * lib/gl_oset.c: Likewise.
61436         * lib/gl_oset.h: Likewise.
61437         * lib/gl_rbtree_list.c: Likewise.
61438         * lib/gl_rbtree_list.h: Likewise.
61439         * lib/gl_rbtree_oset.c: Likewise.
61440         * lib/gl_rbtree_oset.h: Likewise.
61441         * lib/gl_rbtreehash_list.c: Likewise.
61442         * lib/gl_rbtreehash_list.h: Likewise.
61443         * lib/gl_sublist.c: Likewise.
61444         * lib/gl_sublist.h: Likewise.
61445         * lib/group-member.c: Likewise.
61446         * lib/group-member.h: Likewise.
61447         * lib/hard-locale.c: Likewise.
61448         * lib/hard-locale.h: Likewise.
61449         * lib/hash-pjw.c: Likewise.
61450         * lib/hash-pjw.h: Likewise.
61451         * lib/hash-triple.c: Likewise.
61452         * lib/hash.c: Likewise.
61453         * lib/hash.h: Likewise.
61454         * lib/human.c: Likewise.
61455         * lib/human.h: Likewise.
61456         * lib/i-ring.c: Likewise.
61457         * lib/i-ring.h: Likewise.
61458         * lib/idcache.c: Likewise.
61459         * lib/imaxabs.c: Likewise.
61460         * lib/imaxdiv.c: Likewise.
61461         * lib/inet_pton.c: Likewise.
61462         * lib/inet_pton.h: Likewise.
61463         * lib/intprops.h: Likewise.
61464         * lib/inttostr.c: Likewise.
61465         * lib/inttostr.h: Likewise.
61466         * lib/inttypes.in.h: Likewise.
61467         * lib/isapipe.c: Likewise.
61468         * lib/isdir.c: Likewise.
61469         * lib/isnan.c: Likewise.
61470         * lib/isnan.h: Likewise.
61471         * lib/isnanf.c: Likewise.
61472         * lib/isnanf.h: Likewise.
61473         * lib/isnanl-nolibm.h: Likewise.
61474         * lib/isnanl.c: Likewise.
61475         * lib/isnanl.h: Likewise.
61476         * lib/javacomp.c: Likewise.
61477         * lib/javacomp.h: Likewise.
61478         * lib/javaexec.c: Likewise.
61479         * lib/javaexec.h: Likewise.
61480         * lib/javaversion.c: Likewise.
61481         * lib/javaversion.h: Likewise.
61482         * lib/javaversion.java: Likewise.
61483         * lib/lbrkprop.h: Likewise.
61484         * lib/lchmod.h: Likewise.
61485         * lib/lchown.c: Likewise.
61486         * lib/ldexpl.c: Likewise.
61487         * lib/linebreak.c: Likewise.
61488         * lib/linebreak.h: Likewise.
61489         * lib/linebuffer.c: Likewise.
61490         * lib/linebuffer.h: Likewise.
61491         * lib/locale.in.h: Likewise.
61492         * lib/logl.c: Likewise.
61493         * lib/long-options.c: Likewise.
61494         * lib/long-options.h: Likewise.
61495         * lib/lstat.c: Likewise.
61496         * lib/lstat.h: Likewise.
61497         * lib/math.in.h: Likewise.
61498         * lib/mbchar.c: Likewise.
61499         * lib/mbchar.h: Likewise.
61500         * lib/mbfile.h: Likewise.
61501         * lib/mbiter.h: Likewise.
61502         * lib/mbscasecmp.c: Likewise.
61503         * lib/mbscasestr.c: Likewise.
61504         * lib/mbschr.c: Likewise.
61505         * lib/mbscspn.c: Likewise.
61506         * lib/mbslen.c: Likewise.
61507         * lib/mbsncasecmp.c: Likewise.
61508         * lib/mbsnlen.c: Likewise.
61509         * lib/mbspbrk.c: Likewise.
61510         * lib/mbspcasecmp.c: Likewise.
61511         * lib/mbsrchr.c: Likewise.
61512         * lib/mbssep.c: Likewise.
61513         * lib/mbsspn.c: Likewise.
61514         * lib/mbsstr.c: Likewise.
61515         * lib/mbstok_r.c: Likewise.
61516         * lib/mbswidth.c: Likewise.
61517         * lib/mbswidth.h: Likewise.
61518         * lib/mbuiter.h: Likewise.
61519         * lib/memcasecmp.c: Likewise.
61520         * lib/memcasecmp.h: Likewise.
61521         * lib/memchr.c: Likewise.
61522         * lib/memcmp.c: Likewise.
61523         * lib/memcoll.c: Likewise.
61524         * lib/memcoll.h: Likewise.
61525         * lib/memcpy.c: Likewise.
61526         * lib/memrchr.c: Likewise.
61527         * lib/mkancesdirs.c: Likewise.
61528         * lib/mkdir-p.c: Likewise.
61529         * lib/mkdir-p.h: Likewise.
61530         * lib/mkdir.c: Likewise.
61531         * lib/mkdirat.c: Likewise.
61532         * lib/mkdtemp.c: Likewise.
61533         * lib/mkstemp-safer.c: Likewise.
61534         * lib/mkstemp.c: Likewise.
61535         * lib/modechange.c: Likewise.
61536         * lib/modechange.h: Likewise.
61537         * lib/mountlist.c: Likewise.
61538         * lib/mountlist.h: Likewise.
61539         * lib/mpsort.c: Likewise.
61540         * lib/nanosleep.c: Likewise.
61541         * lib/obstack.c: Likewise.
61542         * lib/obstack.h: Likewise.
61543         * lib/open-safer.c: Likewise.
61544         * lib/open.c: Likewise.
61545         * lib/openat-die.c: Likewise.
61546         * lib/openat-priv.h: Likewise.
61547         * lib/openat-proc.c: Likewise.
61548         * lib/openat.c: Likewise.
61549         * lib/openat.h: Likewise.
61550         * lib/pagealign_alloc.c: Likewise.
61551         * lib/pagealign_alloc.h: Likewise.
61552         * lib/physmem.c: Likewise.
61553         * lib/physmem.h: Likewise.
61554         * lib/pipe-safer.c: Likewise.
61555         * lib/pipe.c: Likewise.
61556         * lib/pipe.h: Likewise.
61557         * lib/posixtm.c: Likewise.
61558         * lib/posixtm.h: Likewise.
61559         * lib/posixver.c: Likewise.
61560         * lib/printf-frexp.c: Likewise.
61561         * lib/printf-frexp.h: Likewise.
61562         * lib/printf-frexpl.c: Likewise.
61563         * lib/printf-frexpl.h: Likewise.
61564         * lib/printf.c: Likewise.
61565         * lib/progname.c: Likewise.
61566         * lib/progname.h: Likewise.
61567         * lib/progreloc.c: Likewise.
61568         * lib/putenv.c: Likewise.
61569         * lib/quote.c: Likewise.
61570         * lib/quote.h: Likewise.
61571         * lib/quotearg.c: Likewise.
61572         * lib/quotearg.h: Likewise.
61573         * lib/raise.c: Likewise.
61574         * lib/readline.c: Likewise.
61575         * lib/readline.h: Likewise.
61576         * lib/readlink.c: Likewise.
61577         * lib/readtokens.c: Likewise.
61578         * lib/readtokens.h: Likewise.
61579         * lib/readtokens0.c: Likewise.
61580         * lib/readtokens0.h: Likewise.
61581         * lib/readutmp.c: Likewise.
61582         * lib/readutmp.h: Likewise.
61583         * lib/realloc.c: Likewise.
61584         * lib/relocwrapper.c: Likewise.
61585         * lib/rename-dest-slash.c: Likewise.
61586         * lib/rename.c: Likewise.
61587         * lib/rmdir.c: Likewise.
61588         * lib/rpmatch.c: Likewise.
61589         * lib/safe-read.c: Likewise.
61590         * lib/safe-read.h: Likewise.
61591         * lib/safe-write.c: Likewise.
61592         * lib/safe-write.h: Likewise.
61593         * lib/same-inode.h: Likewise.
61594         * lib/same.c: Likewise.
61595         * lib/same.h: Likewise.
61596         * lib/save-cwd.c: Likewise.
61597         * lib/save-cwd.h: Likewise.
61598         * lib/savedir.c: Likewise.
61599         * lib/savedir.h: Likewise.
61600         * lib/savewd.c: Likewise.
61601         * lib/savewd.h: Likewise.
61602         * lib/search.in.h: Likewise.
61603         * lib/setenv.c: Likewise.
61604         * lib/setenv.h: Likewise.
61605         * lib/settime.c: Likewise.
61606         * lib/sh-quote.c: Likewise.
61607         * lib/sh-quote.h: Likewise.
61608         * lib/sig2str.c: Likewise.
61609         * lib/sig2str.h: Likewise.
61610         * lib/signal.in.h: Likewise.
61611         * lib/signbitd.c: Likewise.
61612         * lib/signbitf.c: Likewise.
61613         * lib/signbitl.c: Likewise.
61614         * lib/sigprocmask.c: Likewise.
61615         * lib/sincosl.c: Likewise.
61616         * lib/sleep.c: Likewise.
61617         * lib/sprintf.c: Likewise.
61618         * lib/sqrtl.c: Likewise.
61619         * lib/stat-time.h: Likewise.
61620         * lib/stdio--.h: Likewise.
61621         * lib/stdio-safer.h: Likewise.
61622         * lib/stdlib--.h: Likewise.
61623         * lib/stdlib-safer.h: Likewise.
61624         * lib/stdlib.in.h: Likewise.
61625         * lib/stpcpy.c: Likewise.
61626         * lib/stpncpy.c: Likewise.
61627         * lib/strchrnul.c: Likewise.
61628         * lib/strcspn.c: Likewise.
61629         * lib/strerror.c: Likewise.
61630         * lib/strftime.c: Likewise.
61631         * lib/strftime.h: Likewise.
61632         * lib/striconveh.c: Likewise.
61633         * lib/striconveh.h: Likewise.
61634         * lib/striconveha.c: Likewise.
61635         * lib/striconveha.h: Likewise.
61636         * lib/stripslash.c: Likewise.
61637         * lib/strnlen1.c: Likewise.
61638         * lib/strnlen1.h: Likewise.
61639         * lib/strtod.c: Likewise.
61640         * lib/strtoimax.c: Likewise.
61641         * lib/strtok_r.c: Likewise.
61642         * lib/strtol.c: Likewise.
61643         * lib/strtoll.c: Likewise.
61644         * lib/strtoul.c: Likewise.
61645         * lib/strtoull.c: Likewise.
61646         * lib/sysexits.in.h: Likewise.
61647         * lib/tempname.c: Likewise.
61648         * lib/tempname.h: Likewise.
61649         * lib/timespec.h: Likewise.
61650         * lib/tls.c: Likewise.
61651         * lib/tls.h: Likewise.
61652         * lib/tmpdir.c: Likewise.
61653         * lib/tmpdir.h: Likewise.
61654         * lib/tmpfile-safer.c: Likewise.
61655         * lib/tmpfile.c: Likewise.
61656         * lib/trigl.c: Likewise.
61657         * lib/trigl.h: Likewise.
61658         * lib/trim.c: Likewise.
61659         * lib/trim.h: Likewise.
61660         * lib/trunc.c: Likewise.
61661         * lib/truncf.c: Likewise.
61662         * lib/truncl.c: Likewise.
61663         * lib/tsearch.c: Likewise.
61664         * lib/unicodeio.c: Likewise.
61665         * lib/unicodeio.h: Likewise.
61666         * lib/unistd--.h: Likewise.
61667         * lib/unistd-safer.h: Likewise.
61668         * lib/unistdio/ulc-fprintf.c: Likewise.
61669         * lib/unistdio/ulc-vfprintf.c: Likewise.
61670         * lib/unlinkdir.c: Likewise.
61671         * lib/unlinkdir.h: Likewise.
61672         * lib/unlocked-io.h: Likewise.
61673         * lib/unsetenv.c: Likewise.
61674         * lib/userspec.c: Likewise.
61675         * lib/utime.c: Likewise.
61676         * lib/utimecmp.c: Likewise.
61677         * lib/utimecmp.h: Likewise.
61678         * lib/utimens.c: Likewise.
61679         * lib/verify.h: Likewise.
61680         * lib/verror.c: Likewise.
61681         * lib/verror.h: Likewise.
61682         * lib/version-etc-fsf.c: Likewise.
61683         * lib/version-etc.c: Likewise.
61684         * lib/version-etc.h: Likewise.
61685         * lib/vfprintf.c: Likewise.
61686         * lib/vprintf.c: Likewise.
61687         * lib/vsprintf.c: Likewise.
61688         * lib/w32spawn.h: Likewise.
61689         * lib/wait-process.c: Likewise.
61690         * lib/wait-process.h: Likewise.
61691         * lib/wcwidth.c: Likewise.
61692         * lib/write-any-file.c: Likewise.
61693         * lib/xalloc-die.c: Likewise.
61694         * lib/xalloc.h: Likewise.
61695         * lib/xasprintf.c: Likewise.
61696         * lib/xgetcwd.c: Likewise.
61697         * lib/xgetcwd.h: Likewise.
61698         * lib/xgetdomainname.c: Likewise.
61699         * lib/xgetdomainname.h: Likewise.
61700         * lib/xgethostname.c: Likewise.
61701         * lib/xmalloc.c: Likewise.
61702         * lib/xmalloca.c: Likewise.
61703         * lib/xmalloca.h: Likewise.
61704         * lib/xmemcoll.c: Likewise.
61705         * lib/xnanosleep.c: Likewise.
61706         * lib/xreadlink.c: Likewise.
61707         * lib/xreadlink.h: Likewise.
61708         * lib/xsetenv.c: Likewise.
61709         * lib/xsetenv.h: Likewise.
61710         * lib/xstriconv.c: Likewise.
61711         * lib/xstriconv.h: Likewise.
61712         * lib/xstrndup.c: Likewise.
61713         * lib/xstrndup.h: Likewise.
61714         * lib/xstrtod.c: Likewise.
61715         * lib/xstrtod.h: Likewise.
61716         * lib/xstrtol-error.c: Likewise.
61717         * lib/xstrtol.c: Likewise.
61718         * lib/xstrtol.h: Likewise.
61719         * lib/xtime.h: Likewise.
61720         * lib/xvasprintf.c: Likewise.
61721         * lib/xvasprintf.h: Likewise.
61722         * lib/yesno.c: Likewise.
61723         * lib/yesno.h: Likewise.
61724         * posix-modules: Likewise.
61725         * tests/test-alloca-opt.c: Likewise.
61726         * tests/test-arcfour.c: Likewise.
61727         * tests/test-arctwo.c: Likewise.
61728         * tests/test-argmatch.c: Likewise.
61729         * tests/test-argp-2.sh: Likewise.
61730         * tests/test-argp.c: Likewise.
61731         * tests/test-arpa_inet.c: Likewise.
61732         * tests/test-array_list.c: Likewise.
61733         * tests/test-array_oset.c: Likewise.
61734         * tests/test-atexit.c: Likewise.
61735         * tests/test-avltree_list.c: Likewise.
61736         * tests/test-avltree_oset.c: Likewise.
61737         * tests/test-avltreehash_list.c: Likewise.
61738         * tests/test-base64.c: Likewise.
61739         * tests/test-binary-io.c: Likewise.
61740         * tests/test-byteswap.c: Likewise.
61741         * tests/test-c-ctype.c: Likewise.
61742         * tests/test-c-strcasecmp.c: Likewise.
61743         * tests/test-c-strcasestr.c: Likewise.
61744         * tests/test-c-strncasecmp.c: Likewise.
61745         * tests/test-c-strstr.c: Likewise.
61746         * tests/test-canonicalize-lgpl.c: Likewise.
61747         * tests/test-canonicalize.c: Likewise.
61748         * tests/test-carray_list.c: Likewise.
61749         * tests/test-ceilf.c: Likewise.
61750         * tests/test-ceill.c: Likewise.
61751         * tests/test-count-one-bits.c: Likewise.
61752         * tests/test-crc.c: Likewise.
61753         * tests/test-dirname.c: Likewise.
61754         * tests/test-fbufmode.c: Likewise.
61755         * tests/test-fcntl.c: Likewise.
61756         * tests/test-fflush.c: Likewise.
61757         * tests/test-floorf.c: Likewise.
61758         * tests/test-floorl.c: Likewise.
61759         * tests/test-fopen.c: Likewise.
61760         * tests/test-fprintf-posix.c: Likewise.
61761         * tests/test-fprintf-posix.h: Likewise.
61762         * tests/test-fpurge.c: Likewise.
61763         * tests/test-freadable.c: Likewise.
61764         * tests/test-freadahead.c: Likewise.
61765         * tests/test-freading.c: Likewise.
61766         * tests/test-freopen.c: Likewise.
61767         * tests/test-frexp.c: Likewise.
61768         * tests/test-frexpl.c: Likewise.
61769         * tests/test-fseek.c: Likewise.
61770         * tests/test-fseeko.c: Likewise.
61771         * tests/test-fseterr.c: Likewise.
61772         * tests/test-fstrcmp.c: Likewise.
61773         * tests/test-ftell.c: Likewise.
61774         * tests/test-ftello.c: Likewise.
61775         * tests/test-fwritable.c: Likewise.
61776         * tests/test-fwriting.c: Likewise.
61777         * tests/test-getaddrinfo.c: Likewise.
61778         * tests/test-getpass.c: Likewise.
61779         * tests/test-gettimeofday.c: Likewise.
61780         * tests/test-hmac-md5.c: Likewise.
61781         * tests/test-hmac-sha1.c: Likewise.
61782         * tests/test-iconv.c: Likewise.
61783         * tests/test-iconvme.c: Likewise.
61784         * tests/test-inttypes.c: Likewise.
61785         * tests/test-isnan.c: Likewise.
61786         * tests/test-isnanf.c: Likewise.
61787         * tests/test-isnanl-nolibm.c: Likewise.
61788         * tests/test-isnanl.c: Likewise.
61789         * tests/test-isnanl.h: Likewise.
61790         * tests/test-ldexpl.c: Likewise.
61791         * tests/test-linked_list.c: Likewise.
61792         * tests/test-linkedhash_list.c: Likewise.
61793         * tests/test-locale.c: Likewise.
61794         * tests/test-localename.c: Likewise.
61795         * tests/test-lock.c: Likewise.
61796         * tests/test-lseek.c: Likewise.
61797         * tests/test-malloca.c: Likewise.
61798         * tests/test-math.c: Likewise.
61799         * tests/test-mbscasecmp.c: Likewise.
61800         * tests/test-mbscasestr1.c: Likewise.
61801         * tests/test-mbscasestr2.c: Likewise.
61802         * tests/test-mbscasestr3.c: Likewise.
61803         * tests/test-mbscasestr4.c: Likewise.
61804         * tests/test-mbschr.c: Likewise.
61805         * tests/test-mbscspn.c: Likewise.
61806         * tests/test-mbsncasecmp.c: Likewise.
61807         * tests/test-mbspbrk.c: Likewise.
61808         * tests/test-mbspcasecmp.c: Likewise.
61809         * tests/test-mbsrchr.c: Likewise.
61810         * tests/test-mbsspn.c: Likewise.
61811         * tests/test-mbsstr1.c: Likewise.
61812         * tests/test-mbsstr2.c: Likewise.
61813         * tests/test-mbsstr3.c: Likewise.
61814         * tests/test-md5.c: Likewise.
61815         * tests/test-memmem.c: Likewise.
61816         * tests/test-netinet_in.c: Likewise.
61817         * tests/test-open.c: Likewise.
61818         * tests/test-printf-frexp.c: Likewise.
61819         * tests/test-printf-frexpl.c: Likewise.
61820         * tests/test-printf-posix.c: Likewise.
61821         * tests/test-printf-posix.h: Likewise.
61822         * tests/test-rbtree_list.c: Likewise.
61823         * tests/test-rbtree_oset.c: Likewise.
61824         * tests/test-rbtreehash_list.c: Likewise.
61825         * tests/test-read-file.c: Likewise.
61826         * tests/test-rijndael.c: Likewise.
61827         * tests/test-search.c: Likewise.
61828         * tests/test-signbit.c: Likewise.
61829         * tests/test-sleep.c: Likewise.
61830         * tests/test-snprintf-posix.c: Likewise.
61831         * tests/test-snprintf-posix.h: Likewise.
61832         * tests/test-snprintf.c: Likewise.
61833         * tests/test-sprintf-posix.c: Likewise.
61834         * tests/test-sprintf-posix.h: Likewise.
61835         * tests/test-stat-time.c: Likewise.
61836         * tests/test-stdbool.c: Likewise.
61837         * tests/test-stdint.c: Likewise.
61838         * tests/test-stdio.c: Likewise.
61839         * tests/test-stdlib.c: Likewise.
61840         * tests/test-stpncpy.c: Likewise.
61841         * tests/test-strcasestr.c: Likewise.
61842         * tests/test-striconv.c: Likewise.
61843         * tests/test-striconveh.c: Likewise.
61844         * tests/test-striconveha.c: Likewise.
61845         * tests/test-string.c: Likewise.
61846         * tests/test-sys_select.c: Likewise.
61847         * tests/test-sys_socket.c: Likewise.
61848         * tests/test-sys_stat.c: Likewise.
61849         * tests/test-sys_time.c: Likewise.
61850         * tests/test-sysexits.c: Likewise.
61851         * tests/test-time.c: Likewise.
61852         * tests/test-tls.c: Likewise.
61853         * tests/test-trunc.c: Likewise.
61854         * tests/test-truncf.c: Likewise.
61855         * tests/test-truncl.c: Likewise.
61856         * tests/test-unistd.c: Likewise.
61857         * tests/test-vasnprintf-posix.c: Likewise.
61858         * tests/test-vasnprintf-posix2.c: Likewise.
61859         * tests/test-vasnprintf.c: Likewise.
61860         * tests/test-vasprintf-posix.c: Likewise.
61861         * tests/test-vasprintf.c: Likewise.
61862         * tests/test-verify.c: Likewise.
61863         * tests/test-vfprintf-posix.c: Likewise.
61864         * tests/test-vprintf-posix.c: Likewise.
61865         * tests/test-vsnprintf-posix.c: Likewise.
61866         * tests/test-vsnprintf.c: Likewise.
61867         * tests/test-vsprintf-posix.c: Likewise.
61868         * tests/test-wchar.c: Likewise.
61869         * tests/test-wctype.c: Likewise.
61870         * tests/test-wcwidth.c: Likewise.
61871         * tests/test-xstrtol.c: Likewise.
61872         * tests/test-xvasprintf.c: Likewise.
61873         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61874         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61875         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61876         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61877         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61878         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61879         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61880         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61881         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61882         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61883         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61884         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61885         * tests/uniname/test-uninames.c: Likewise.
61886         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61887         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61888         * tests/unistdio/test-u16-printf1.h: Likewise.
61889         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61890         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61891         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61892         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61893         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61894         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61895         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61896         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61897         * tests/unistdio/test-u32-printf1.h: Likewise.
61898         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61899         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61900         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61901         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61902         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61903         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61904         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61905         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61906         * tests/unistdio/test-u8-printf1.h: Likewise.
61907         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61908         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61909         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61910         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61911         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61912         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61913         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61914         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61915         * tests/unistdio/test-ulc-printf1.h: Likewise.
61916         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61917         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61918         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61919         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61920         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61921         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61922         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61923         * tests/uniwidth/test-u16-width.c: Likewise.
61924         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61925         * tests/uniwidth/test-u32-width.c: Likewise.
61926         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61927         * tests/uniwidth/test-u8-width.c: Likewise.
61928         * tests/uniwidth/test-uc_width.c: Likewise.
61929         * config/srclist-update: Likewise.
61930         (fixlicense): Update to GPLv3+.
61931
61932         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61933         * tests/test-tsearch.c: Change copyright notice.
61934
61935         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61936         * lib/c-strcaseeq.h: Change copyright notice.
61937         * lib/streq.h: Likewise.
61938         * lib/uniconv.h: Likewise.
61939         * lib/uniconv/u-conv-from-enc.h: Likewise.
61940         * lib/uniconv/u-conv-to-enc.h: Likewise.
61941         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61942         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61943         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61944         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61945         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61946         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61947         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61948         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61949         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61950         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61951         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61952         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61953         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61954         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61955         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61956         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61957         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61958         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61959         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61960         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61961         * lib/uniname.h: Likewise.
61962         * lib/uniname/uniname.c: Likewise.
61963         * lib/unistdio.h: Likewise.
61964         * lib/unistdio/u-asnprintf.h: Likewise.
61965         * lib/unistdio/u-asprintf.h: Likewise.
61966         * lib/unistdio/u-printf-args.c: Likewise.
61967         * lib/unistdio/u-printf-args.h: Likewise.
61968         * lib/unistdio/u-printf-parse.h: Likewise.
61969         * lib/unistdio/u-snprintf.h: Likewise.
61970         * lib/unistdio/u-sprintf.h: Likewise.
61971         * lib/unistdio/u-vasprintf.h: Likewise.
61972         * lib/unistdio/u-vsnprintf.h: Likewise.
61973         * lib/unistdio/u-vsprintf.h: Likewise.
61974         * lib/unistdio/u16-asnprintf.c: Likewise.
61975         * lib/unistdio/u16-asprintf.c: Likewise.
61976         * lib/unistdio/u16-printf-parse.c: Likewise.
61977         * lib/unistdio/u16-snprintf.c: Likewise.
61978         * lib/unistdio/u16-sprintf.c: Likewise.
61979         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61980         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61981         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61982         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61983         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61984         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61985         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61986         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61987         * lib/unistdio/u16-vasnprintf.c: Likewise.
61988         * lib/unistdio/u16-vasprintf.c: Likewise.
61989         * lib/unistdio/u16-vsnprintf.c: Likewise.
61990         * lib/unistdio/u16-vsprintf.c: Likewise.
61991         * lib/unistdio/u32-asnprintf.c: Likewise.
61992         * lib/unistdio/u32-asprintf.c: Likewise.
61993         * lib/unistdio/u32-printf-parse.c: Likewise.
61994         * lib/unistdio/u32-snprintf.c: Likewise.
61995         * lib/unistdio/u32-sprintf.c: Likewise.
61996         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61997         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61998         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61999         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62000         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62001         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62002         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62003         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62004         * lib/unistdio/u32-vasnprintf.c: Likewise.
62005         * lib/unistdio/u32-vasprintf.c: Likewise.
62006         * lib/unistdio/u32-vsnprintf.c: Likewise.
62007         * lib/unistdio/u32-vsprintf.c: Likewise.
62008         * lib/unistdio/u8-asnprintf.c: Likewise.
62009         * lib/unistdio/u8-asprintf.c: Likewise.
62010         * lib/unistdio/u8-printf-parse.c: Likewise.
62011         * lib/unistdio/u8-snprintf.c: Likewise.
62012         * lib/unistdio/u8-sprintf.c: Likewise.
62013         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62014         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62015         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62016         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62017         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62018         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62019         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62020         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62021         * lib/unistdio/u8-vasnprintf.c: Likewise.
62022         * lib/unistdio/u8-vasprintf.c: Likewise.
62023         * lib/unistdio/u8-vsnprintf.c: Likewise.
62024         * lib/unistdio/u8-vsprintf.c: Likewise.
62025         * lib/unistdio/ulc-asnprintf.c: Likewise.
62026         * lib/unistdio/ulc-asprintf.c: Likewise.
62027         * lib/unistdio/ulc-printf-parse.c: Likewise.
62028         * lib/unistdio/ulc-snprintf.c: Likewise.
62029         * lib/unistdio/ulc-sprintf.c: Likewise.
62030         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62031         * lib/unistdio/ulc-vasprintf.c: Likewise.
62032         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62033         * lib/unistdio/ulc-vsprintf.c: Likewise.
62034         * lib/unistr.h: Likewise.
62035         * lib/unistr/u-cpy-alloc.h: Likewise.
62036         * lib/unistr/u-cpy.h: Likewise.
62037         * lib/unistr/u-endswith.h: Likewise.
62038         * lib/unistr/u-move.h: Likewise.
62039         * lib/unistr/u-set.h: Likewise.
62040         * lib/unistr/u-startswith.h: Likewise.
62041         * lib/unistr/u-stpcpy.h: Likewise.
62042         * lib/unistr/u-stpncpy.h: Likewise.
62043         * lib/unistr/u-strcat.h: Likewise.
62044         * lib/unistr/u-strcpy.h: Likewise.
62045         * lib/unistr/u-strcspn.h: Likewise.
62046         * lib/unistr/u-strdup.h: Likewise.
62047         * lib/unistr/u-strlen.h: Likewise.
62048         * lib/unistr/u-strncat.h: Likewise.
62049         * lib/unistr/u-strncpy.h: Likewise.
62050         * lib/unistr/u-strnlen.h: Likewise.
62051         * lib/unistr/u-strpbrk.h: Likewise.
62052         * lib/unistr/u-strspn.h: Likewise.
62053         * lib/unistr/u-strstr.h: Likewise.
62054         * lib/unistr/u-strtok.h: Likewise.
62055         * lib/unistr/u16-check.c: Likewise.
62056         * lib/unistr/u16-chr.c: Likewise.
62057         * lib/unistr/u16-cmp.c: Likewise.
62058         * lib/unistr/u16-cpy-alloc.c: Likewise.
62059         * lib/unistr/u16-cpy.c: Likewise.
62060         * lib/unistr/u16-endswith.c: Likewise.
62061         * lib/unistr/u16-mblen.c: Likewise.
62062         * lib/unistr/u16-mbsnlen.c: Likewise.
62063         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62064         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62065         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62066         * lib/unistr/u16-mbtouc.c: Likewise.
62067         * lib/unistr/u16-mbtoucr.c: Likewise.
62068         * lib/unistr/u16-move.c: Likewise.
62069         * lib/unistr/u16-next.c: Likewise.
62070         * lib/unistr/u16-prev.c: Likewise.
62071         * lib/unistr/u16-set.c: Likewise.
62072         * lib/unistr/u16-startswith.c: Likewise.
62073         * lib/unistr/u16-stpcpy.c: Likewise.
62074         * lib/unistr/u16-stpncpy.c: Likewise.
62075         * lib/unistr/u16-strcat.c: Likewise.
62076         * lib/unistr/u16-strchr.c: Likewise.
62077         * lib/unistr/u16-strcmp.c: Likewise.
62078         * lib/unistr/u16-strcpy.c: Likewise.
62079         * lib/unistr/u16-strcspn.c: Likewise.
62080         * lib/unistr/u16-strdup.c: Likewise.
62081         * lib/unistr/u16-strlen.c: Likewise.
62082         * lib/unistr/u16-strmblen.c: Likewise.
62083         * lib/unistr/u16-strmbtouc.c: Likewise.
62084         * lib/unistr/u16-strncat.c: Likewise.
62085         * lib/unistr/u16-strncmp.c: Likewise.
62086         * lib/unistr/u16-strncpy.c: Likewise.
62087         * lib/unistr/u16-strnlen.c: Likewise.
62088         * lib/unistr/u16-strpbrk.c: Likewise.
62089         * lib/unistr/u16-strrchr.c: Likewise.
62090         * lib/unistr/u16-strspn.c: Likewise.
62091         * lib/unistr/u16-strstr.c: Likewise.
62092         * lib/unistr/u16-strtok.c: Likewise.
62093         * lib/unistr/u16-to-u32.c: Likewise.
62094         * lib/unistr/u16-to-u8.c: Likewise.
62095         * lib/unistr/u16-uctomb-aux.c: Likewise.
62096         * lib/unistr/u16-uctomb.c: Likewise.
62097         * lib/unistr/u32-check.c: Likewise.
62098         * lib/unistr/u32-chr.c: Likewise.
62099         * lib/unistr/u32-cmp.c: Likewise.
62100         * lib/unistr/u32-cpy-alloc.c: Likewise.
62101         * lib/unistr/u32-cpy.c: Likewise.
62102         * lib/unistr/u32-endswith.c: Likewise.
62103         * lib/unistr/u32-mblen.c: Likewise.
62104         * lib/unistr/u32-mbsnlen.c: Likewise.
62105         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62106         * lib/unistr/u32-mbtouc.c: Likewise.
62107         * lib/unistr/u32-mbtoucr.c: Likewise.
62108         * lib/unistr/u32-move.c: Likewise.
62109         * lib/unistr/u32-next.c: Likewise.
62110         * lib/unistr/u32-prev.c: Likewise.
62111         * lib/unistr/u32-set.c: Likewise.
62112         * lib/unistr/u32-startswith.c: Likewise.
62113         * lib/unistr/u32-stpcpy.c: Likewise.
62114         * lib/unistr/u32-stpncpy.c: Likewise.
62115         * lib/unistr/u32-strcat.c: Likewise.
62116         * lib/unistr/u32-strchr.c: Likewise.
62117         * lib/unistr/u32-strcmp.c: Likewise.
62118         * lib/unistr/u32-strcpy.c: Likewise.
62119         * lib/unistr/u32-strcspn.c: Likewise.
62120         * lib/unistr/u32-strdup.c: Likewise.
62121         * lib/unistr/u32-strlen.c: Likewise.
62122         * lib/unistr/u32-strmblen.c: Likewise.
62123         * lib/unistr/u32-strmbtouc.c: Likewise.
62124         * lib/unistr/u32-strncat.c: Likewise.
62125         * lib/unistr/u32-strncmp.c: Likewise.
62126         * lib/unistr/u32-strncpy.c: Likewise.
62127         * lib/unistr/u32-strnlen.c: Likewise.
62128         * lib/unistr/u32-strpbrk.c: Likewise.
62129         * lib/unistr/u32-strrchr.c: Likewise.
62130         * lib/unistr/u32-strspn.c: Likewise.
62131         * lib/unistr/u32-strstr.c: Likewise.
62132         * lib/unistr/u32-strtok.c: Likewise.
62133         * lib/unistr/u32-to-u16.c: Likewise.
62134         * lib/unistr/u32-to-u8.c: Likewise.
62135         * lib/unistr/u32-uctomb.c: Likewise.
62136         * lib/unistr/u8-check.c: Likewise.
62137         * lib/unistr/u8-chr.c: Likewise.
62138         * lib/unistr/u8-cmp.c: Likewise.
62139         * lib/unistr/u8-cpy-alloc.c: Likewise.
62140         * lib/unistr/u8-cpy.c: Likewise.
62141         * lib/unistr/u8-endswith.c: Likewise.
62142         * lib/unistr/u8-mblen.c: Likewise.
62143         * lib/unistr/u8-mbsnlen.c: Likewise.
62144         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62145         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62146         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62147         * lib/unistr/u8-mbtouc.c: Likewise.
62148         * lib/unistr/u8-mbtoucr.c: Likewise.
62149         * lib/unistr/u8-move.c: Likewise.
62150         * lib/unistr/u8-next.c: Likewise.
62151         * lib/unistr/u8-prev.c: Likewise.
62152         * lib/unistr/u8-set.c: Likewise.
62153         * lib/unistr/u8-startswith.c: Likewise.
62154         * lib/unistr/u8-stpcpy.c: Likewise.
62155         * lib/unistr/u8-stpncpy.c: Likewise.
62156         * lib/unistr/u8-strcat.c: Likewise.
62157         * lib/unistr/u8-strchr.c: Likewise.
62158         * lib/unistr/u8-strcmp.c: Likewise.
62159         * lib/unistr/u8-strcpy.c: Likewise.
62160         * lib/unistr/u8-strcspn.c: Likewise.
62161         * lib/unistr/u8-strdup.c: Likewise.
62162         * lib/unistr/u8-strlen.c: Likewise.
62163         * lib/unistr/u8-strmblen.c: Likewise.
62164         * lib/unistr/u8-strmbtouc.c: Likewise.
62165         * lib/unistr/u8-strncat.c: Likewise.
62166         * lib/unistr/u8-strncmp.c: Likewise.
62167         * lib/unistr/u8-strncpy.c: Likewise.
62168         * lib/unistr/u8-strnlen.c: Likewise.
62169         * lib/unistr/u8-strpbrk.c: Likewise.
62170         * lib/unistr/u8-strrchr.c: Likewise.
62171         * lib/unistr/u8-strspn.c: Likewise.
62172         * lib/unistr/u8-strstr.c: Likewise.
62173         * lib/unistr/u8-strtok.c: Likewise.
62174         * lib/unistr/u8-to-u16.c: Likewise.
62175         * lib/unistr/u8-to-u32.c: Likewise.
62176         * lib/unistr/u8-uctomb-aux.c: Likewise.
62177         * lib/unistr/u8-uctomb.c: Likewise.
62178         * lib/unitypes.h: Likewise.
62179         * lib/uniwidth.h: Likewise.
62180         * lib/uniwidth/cjk.h: Likewise.
62181         * lib/uniwidth/u16-strwidth.c: Likewise.
62182         * lib/uniwidth/u16-width.c: Likewise.
62183         * lib/uniwidth/u32-strwidth.c: Likewise.
62184         * lib/uniwidth/u32-width.c: Likewise.
62185         * lib/uniwidth/u8-strwidth.c: Likewise.
62186         * lib/uniwidth/u8-width.c: Likewise.
62187         * lib/uniwidth/width.c: Likewise.
62188
62189 2007-10-07  Bruno Haible  <bruno@clisp.org>
62190
62191         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62192         The file is still under LGPL (see modules/inttypes).
62193
62194 2007-10-06  Bruno Haible  <bruno@clisp.org>
62195
62196         * modules/trunc (Dependencies): Add 'extensions'.
62197         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62198         Reported by Ben Pfaff <blp@gnu.org>.
62199
62200 2007-10-06  Bruno Haible  <bruno@clisp.org>
62201
62202         * modules/freopen-tests: New file.
62203         * tests/test-freopen.c: New file.
62204
62205         * modules/fopen-tests: New file.
62206         * tests/test-fopen.c: New file.
62207
62208         * modules/fopen: New file.
62209         * lib/fopen.c: New file.
62210         * m4/fopen.m4: New file.
62211         * modules/freopen: New file.
62212         * lib/freopen.c: New file.
62213         * m4/freopen.m4: New file.
62214         * lib/stdio.in.h (fopen, freopen): New declarations.
62215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62216         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62217         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62218         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62219         * doc/functions/fopen.texi: Mention the 'fopen' module.
62220         * doc/functions/freopen.texi: Mention the 'freopen' module.
62221
62222 2007-10-06  Bruno Haible  <bruno@clisp.org>
62223
62224         * modules/open-tests: New file.
62225         * tests/test-open.c: New file.
62226
62227         * modules/open: New file.
62228         * lib/open.c: New file.
62229         * m4/open.m4: New file.
62230         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62231         lib/open.c does.
62232         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62233         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62234         macros.
62235         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62236         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62237         REPLACE_OPEN.
62238         * doc/functions/open.texi: Mention the 'open' module.
62239
62240 2007-10-04  Bruno Haible  <bruno@clisp.org>
62241
62242         * modules/ceill-tests: New file.
62243         * tests/test-ceill.c: New file.
62244
62245         * modules/ceill: New file.
62246         * lib/ceill.c: Replace entire file.
62247         * m4/ceill.m4: New file.
62248         * lib/math.in.h (ceill): Replace declaration.
62249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62250         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62251         * doc/functions/ceill.texi: Mention the 'ceill' module.
62252         * modules/mathl (Files): Remove lib/ceill.c.
62253         (Depends-on): Add ceill.
62254
62255 2007-10-04  Bruno Haible  <bruno@clisp.org>
62256
62257         * modules/ceilf-tests: New file.
62258         * tests/test-ceilf.c: New file.
62259
62260         * modules/ceilf: New file.
62261         * lib/ceil.c: New file.
62262         * lib/ceilf.c: New file.
62263         * m4/ceilf.m4: New file.
62264         * lib/math.in.h (ceilf): New declaration.
62265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62266         HAVE_DECL_CEILF.
62267         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62268         HAVE_DECL_CEILF.
62269         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62270
62271 2007-10-04  Bruno Haible  <bruno@clisp.org>
62272
62273         * modules/floorl-tests: New file.
62274         * tests/test-floorl.c: New file.
62275
62276         * modules/floorl: New file.
62277         * lib/floorl.c: Replace entire file.
62278         * m4/floorl.m4: New file.
62279         * lib/math.in.h (floorl): Replace declaration.
62280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62281         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62282         * doc/functions/floorl.texi: Mention the 'floorl' module.
62283         * modules/mathl (Files): Remove lib/floorl.c.
62284         (Depends-on): Add floorl.
62285
62286 2007-10-04  Bruno Haible  <bruno@clisp.org>
62287
62288         * modules/floorf-tests: New file.
62289         * tests/test-floorf.c: New file.
62290
62291         * modules/floorf: New file.
62292         * lib/floor.c: New file.
62293         * lib/floorf.c: New file.
62294         * m4/floorf.m4: New file.
62295         * lib/math.in.h (floorf): New declaration.
62296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62297         HAVE_DECL_FLOORF.
62298         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62299         HAVE_DECL_FLOORF.
62300         * doc/functions/floorf.texi: Mention the 'floorf' module.
62301
62302 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62303             Bruno Haible  <bruno@clisp.org>
62304
62305         Advertise for the Git server instead of the CVS server.
62306         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62307         repository instead of the CVS one.
62308         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62309         about all VCS systems generically.
62310         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62311
62312 2007-10-04  Bruno Haible  <bruno@clisp.org>
62313
62314         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62315         means.
62316         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62317
62318 2007-10-04  Bruno Haible  <bruno@clisp.org>
62319
62320         * modules/truncl-tests: New file.
62321         * tests/test-truncl.c: New file.
62322
62323         * modules/truncl: New file.
62324         * lib/truncl.c: New file.
62325         * m4/truncl.m4: New file.
62326         * lib/math.in.h (truncl): New declaration.
62327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62328         HAVE_DECL_TRUNCL.
62329         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62330         HAVE_DECL_TRUNCL.
62331         * doc/functions/truncl.texi: Mention the 'truncl' module.
62332
62333 2007-10-04  Bruno Haible  <bruno@clisp.org>
62334
62335         * modules/truncf-tests: New file.
62336         * tests/test-truncf.c: New file.
62337
62338         * modules/truncf: New file.
62339         * lib/trunc.c: Make paramerizable through USE_* macros.
62340         * lib/truncf.c: New file.
62341         * m4/truncf.m4: New file.
62342         * lib/math.in.h (truncf): New declaration.
62343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62344         HAVE_DECL_TRUNCF.
62345         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62346         HAVE_DECL_TRUNCF.
62347         * doc/functions/truncf.texi: Mention the 'truncf' module.
62348
62349 2007-10-03  Bruno Haible  <bruno@clisp.org>
62350
62351         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62352         augmentation also for tests modules.
62353         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62354         * modules/atexit-tests (Makefile.am): Likewise.
62355         * modules/binary-io-tests (Makefile.am): Likewise.
62356         * modules/c-strcase-tests (Makefile.am): Likewise.
62357         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62358         * modules/canonicalize-tests (Makefile.am): Likewise.
62359         * modules/closein-tests (Makefile.am): Likewise.
62360         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62361         * modules/freadahead-tests (Makefile.am): Likewise.
62362         * modules/fseek-tests (Makefile.am): Likewise.
62363         * modules/fseeko-tests (Makefile.am): Likewise.
62364         * modules/ftell-tests (Makefile.am): Likewise.
62365         * modules/ftello-tests (Makefile.am): Likewise.
62366         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62367         * modules/isnanl-tests (Makefile.am): Likewise.
62368         * modules/lseek-tests (Makefile.am): Likewise.
62369         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62370         * modules/mbscasestr-tests (Makefile.am): Likewise.
62371         * modules/mbschr-tests (Makefile.am): Likewise.
62372         * modules/mbscspn-tests (Makefile.am): Likewise.
62373         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62374         * modules/mbspbrk-tests (Makefile.am): Likewise.
62375         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62376         * modules/mbsrchr-tests (Makefile.am): Likewise.
62377         * modules/mbsspn-tests (Makefile.am): Likewise.
62378         * modules/mbsstr-tests (Makefile.am): Likewise.
62379         * modules/printf-posix-tests (Makefile.am): Likewise.
62380         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62381         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62382         * modules/tsearch-tests (Makefile.am): Likewise.
62383         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62384         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62385         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62386         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62387         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62388         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62389         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62390         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62391         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62392         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62393         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62394         * modules/xstrtol-tests (Makefile.am): Likewise.
62395         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62396         * modules/yesno-tests (Makefile.am): Likewise.
62397
62398 2007-10-03  Bruno Haible  <bruno@clisp.org>
62399
62400         * modules/trunc-tests: New file.
62401         * tests/test-trunc.c: New file.
62402
62403         * modules/trunc: New file.
62404         * lib/trunc.c: New file.
62405         * m4/trunc.m4: New file.
62406         * lib/math.in.h (trunc): New declaration.
62407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62408         HAVE_DECL_TRUNC.
62409         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62410         HAVE_DECL_TRUNC.
62411         * doc/functions/trunc.texi: Mention the 'trunc' module.
62412
62413 2007-10-03  Bruno Haible  <bruno@clisp.org>
62414
62415         * tests/test-fpending.c: New file, mostly copied
62416         from coreutils/lib/t-fpending.c.
62417         * modules/fpending-tests: New file.
62418
62419 2007-10-03  Bruno Haible  <bruno@clisp.org>
62420
62421         Port the stdio extensions to QNX (untested).
62422         * lib/fseterr.c (fseterr): Add support for QNX.
62423         * lib/fbufmode.c (fbufmode): Likewise.
62424         * lib/freadable.c (freadable): Likewise.
62425         * lib/fwritable.c (fwritable): Likewise.
62426         * lib/freading.c (freading): Likewise.
62427         * lib/fwriting.c (fwriting): Likewise.
62428         * lib/freadahead.c (freadahed): Likewise.
62429         * lib/fpurge.c (fpurge): Likewise.
62430         * lib/fseeko.c (rpl_fseeko): Likewise.
62431
62432 2007-10-03  Bruno Haible  <bruno@clisp.org>
62433             Jim Meyering  <jim@meyering.net>
62434             Eric Blake  <ebb9@byu.net>
62435
62436         * doc/relocatable.texi: Use @command instead of @program.
62437
62438 2007-10-02  Jim Meyering  <jim@meyering.net>
62439
62440         Perform one more "_.h" -> ".in.h" substitution.
62441         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62442         instead of unistd_.h here, too.
62443
62444 2007-10-01  Bruno Haible  <bruno@clisp.org>
62445
62446         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62447         Needed for the alloca-opt module.
62448
62449 2007-09-30  Bruno Haible  <bruno@clisp.org>
62450
62451         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62452         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62453         alloca_.h.
62454         * lib/argz.in.h: Renamed from lib/argz_.h.
62455         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62456         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62457         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62458         byteswap_.h.
62459         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62460         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62461         dirent_.h.
62462         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62463         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62464         fcntl_.h.
62465         * lib/float.in.h: Renamed from lib/float_.h.
62466         * modules/float (Files, Makefile.am): Use float.in.h instead of
62467         float_.h.
62468         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62469         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62470         fnmatch_.h.
62471         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62472         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62473         getopt_.h.
62474         * lib/glob.in.h: Renamed from lib/glob_.h.
62475         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62476         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62477         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62478         iconv_.h.
62479         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62480         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62481         inttypes_.h.
62482         * lib/locale.in.h: Renamed from lib/locale_.h.
62483         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62484         locale_.h.
62485         * lib/math.in.h: Renamed from lib/math_.h.
62486         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62487         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62488         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62489         of netinet_in_.h. Add dependency.
62490         * lib/poll.in.h: Renamed from lib/poll_.h.
62491         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62492         * lib/search.in.h: Renamed from lib/search_.h.
62493         * modules/search (Files, Makefile.am): Use search.in.h instead of
62494         search_.h.
62495         * lib/signal.in.h: Renamed from lib/signal_.h.
62496         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62497         _signal.h.
62498         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62499         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62500         stdbool_.h.
62501         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62502         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62503         stdint_.h.
62504         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62505         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62506         stdio_.h.
62507         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62508         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62509         stdlib_.h.
62510         * lib/string.in.h: Renamed from lib/string_.h.
62511         * modules/string (Files, Makefile.am): Use string.in.h instead of
62512         string_.h.
62513         * doc/gnulib-tool.texi (Initial import): Update.
62514         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62515         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62516         of sys_select_.h. Add dependency.
62517         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62518         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62519         of sys_socket_.h.
62520         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62521         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62522         sys_stat_.h.
62523         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62524         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62525         sys_time_.h.
62526         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62527         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62528         sysexits_.h.
62529         * lib/time.in.h: Renamed from lib/time_.h.
62530         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62531         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62532         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62533         unistd_.h.
62534         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62535         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62536         wchar_.h.
62537         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62538         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62539         wctype_.h.
62540         * build-aux/bootstrap (slurp): Update.
62541         * lib/.cppi-disable: Update.
62542
62543 2007-09-30  Bruno Haible  <bruno@clisp.org>
62544
62545         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62546         Needed on BeOS.
62547
62548 2007-09-30  Bruno Haible  <bruno@clisp.org>
62549
62550         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62551
62552 2007-09-29  Bruno Haible  <bruno@clisp.org>
62553
62554         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62555
62556 2007-09-29  Bruno Haible  <bruno@clisp.org>
62557
62558         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62559         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62560         * build-aux/install-reloc: Compile also areadlink.c.
62561         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62562
62563 2007-09-29  Bruno Haible  <bruno@clisp.org>
62564
62565         * gnulib-tool (func_emit_initmacro_done): Indentation.
62566
62567 2007-09-29  Bruno Haible  <bruno@clisp.org>
62568
62569         * README: Add CVS checkout update instructions.
62570         Info from Bob Proulx <bob@proulx.com>.
62571
62572 2007-09-28  Eric Blake  <ebb9@byu.net>
62573
62574         Provide move-if-change.
62575         * build-aux/move-if-change: New file, based on best practice
62576         rather than any canonical upstream location.
62577
62578 2007-09-28  Jim Meyering  <jim@meyering.net>
62579
62580         Fix canonicalize loop-detection corner case.
62581         Do not attempt to stat the symlink values stored via seen_triple.
62582         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62583         on linux-2.6.18, (but not 2.6.22).
62584         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62585         triple_compare.  The former compares dev,ino,filename, while the latter
62586         would actually stat dirname(filename) when dev and ino were equal.
62587         * lib/hash-triple.c: Install <string.h>.
62588         (STREQ): Define.
62589         (triple_compare_ino_str): New function.
62590         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62591
62592 2007-09-28  Eric Blake  <ebb9@byu.net>
62593
62594         Enforce that AC_REPLACE_FUNCS files exist.
62595         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62596         override check for typos.
62597
62598         Fix test-closein on Solaris 10.
62599         * tests/test-closein.c (main): Don't assume stdin can be inherited
62600         closed on all systems.
62601         * tests/test-closein.sh: Likewise.
62602         Reported by Piotr Tarnowski.
62603
62604 2007-09-28  Jim Meyering  <jim@meyering.net>
62605
62606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62607
62608 2007-09-27  Jim Meyering  <jim@meyering.net>
62609
62610         canonicalize: Avoid a false-positive cycle failure.
62611         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62612         Sort.  Remove cycle-check.
62613         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62614         not cycle-check.h.
62615         (seen_triple): New function.
62616         (canonicalize_filename_mode): Use it instead of cycle-check.
62617         * tests/test-canonicalize.c: Add a test for this bug.
62618         * tests/test-canonicalize.sh: Set up and run the test.
62619
62620         New module, file-set, from coreutils.
62621         * modules/file-set: Define it.
62622         * lib/file-set.c, lib/file-set.h: Implement.
62623
62624         New module, hash-triple, from coreutils.
62625         * modules/hash-triple: Define it.
62626         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62627
62628 2007-09-25  Eric Blake  <ebb9@byu.net>
62629
62630         Fix strerror on Interix.
62631         * lib/string_.h (strerror): Declare replacement.
62632         * doc/functions/strerror.texi (strerror): Document the Interix
62633         shortcoming.
62634         * modules/string (Makefile.am): Support new hooks.
62635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62636         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62637         gl_FUNC_STRERROR_SEPARATE.
62638         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62639         * lib/strerror.c (rpl_strerror): Provide replacement.
62640         * modules/strerror (Depends-on): Add string.
62641         (configure.ac): Detect use of module.
62642         * tests/test-strerror.c: New file.
62643         * modules/strerror-tests: New test module.
62644         * modules/argp (Depends-on): Add strerror.
62645         * modules/error (Depends-on): Likewise.
62646         Reported by Martin Koeppe.
62647
62648 2007-09-24  Bruno Haible  <bruno@clisp.org>
62649
62650         * README: Update git instructions.
62651
62652 2007-09-24  Eric Blake  <ebb9@byu.net>
62653
62654         Revert fpending breakage from 2007-09-08.
62655         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62656         __fpending.c.
62657
62658 2007-09-24  Jim Meyering  <jim@meyering.net>
62659
62660         filenamecat.c: Add a test.
62661         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62662         showing how the function works when DIR is the empty string.
62663
62664 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62665
62666         * tests/test-canonicalize.sh: Turn on executable bit.
62667
62668 2007-09-19  Eric Blake  <ebb9@byu.net>
62669
62670         * README: Update CVS instructions.
62671
62672 2007-09-18  Bruno Haible  <bruno@clisp.org>
62673
62674         * modules/areadlink: New file.
62675         * lib/areadlink.h (areadlink): New declaration.
62676         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62677
62678 2007-09-17  Jim Meyering  <jim@meyering.net>
62679
62680         * lib/savewd.c (ESTALE) [!defined]: Define.
62681         Reported to be required on Interix by Martin Koeppe.
62682
62683 2007-09-17  Bruno Haible  <bruno@clisp.org>
62684
62685         * gnulib-tool (func_version): Use $version.
62686
62687 2007-09-16  Bruno Haible  <bruno@clisp.org>
62688
62689         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62690         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62691         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62692         Reported by Greg Schafer <gschafer@zip.com.au>.
62693
62694 2007-09-15  Bruno Haible  <bruno@clisp.org>
62695
62696         * gnulib-tool (sed): Try a little harder to make bash understand the
62697         alias.
62698         Reported by Bruce Korb <bruce.korb@gmail.com>.
62699
62700 2007-09-13  Eric Blake  <ebb9@byu.net>
62701
62702         * ChangeLog: Remove conflict markers.
62703
62704 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62705
62706         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62707         Reported by Bruno Haible <bruno@clisp.org>.
62708
62709 2007-09-12  Bruno Haible  <bruno@clisp.org>
62710
62711         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62712         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62713         is not defined.
62714
62715 2007-09-12  Eric Blake  <ebb9@byu.net>
62716
62717         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62718         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62719         Autoconf definition.
62720         * modules/euidaccess (Depends-on): Add extensions, for
62721         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62722         * modules/fnmatch (Depends-on): Likewise.
62723         * modules/getaddrinfo (Depends-on): Likewise.
62724         * modules/getdelim (Depends-on): Likewise.
62725         * modules/getline (Depends-on): Likewise.
62726         * modules/getsubopt (Depends-on): Likewise.
62727         * modules/gettext (Depends-on): Likewise.
62728         * modules/group-member (Depends-on): Likewise.
62729         * modules/mbchar (Depends-on): Likewise.
62730         * modules/memmem (Depends-on): Likewise.
62731         * modules/mempcpy (Depends-on): Likewise.
62732         * modules/memrchr (Depends-on): Likewise.
62733         * modules/pagealign_alloc (Depends-on): Likewise.
62734         * modules/readutmp (Depends-on): Likewise.
62735         * modules/stpcpy (Depends-on): Likewise.
62736         * modules/stpncpy (Depends-on): Likewise.
62737         * modules/strchrnul (Depends-on): Likewise.
62738         * modules/strndup (Depends-on): Likewise.
62739         * modules/strsep (Depends-on): Likewise.
62740         * modules/strverscmp (Depends-on): Likewise.
62741         * modules/vasprintf (Depends-on): Likewise.
62742         * modules/wcwidth (Depends-on): Likewise.
62743         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62744         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62745         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62746         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62747         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62748         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62749         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62750         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62751         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62752         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62754         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62755         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62756         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62757         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62758         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62759         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62760         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62762         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62763         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62764         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62765         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62766         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62767         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62769         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62770         so that lock.m4 can be used in gettext without extensions module.
62771
62772 2007-09-11  Bruno Haible  <bruno@clisp.org>
62773
62774         * m4/isc-posix.m4: Remove file.
62775         Suggested by Eric Blake.
62776
62777 2007-09-11  Eric Blake  <ebb9@byu.net>
62778
62779         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62780
62781 2007-09-10  Bruno Haible  <bruno@clisp.org>
62782
62783         * posix-modules: Fix typo in error message.
62784         Reported by Matt <mkraai@beckman.com>.
62785
62786 2007-09-09  Bruno Haible  <bruno@clisp.org>
62787
62788         * doc/functions/getdelim.texi: Update list of platforms lacking the
62789         function.
62790         * doc/functions/getline.texi: Likewise.
62791
62792 2007-09-09  Jim Meyering  <jim@meyering.net>
62793
62794         * lib/hash.c (hash_initialize): Detect calloc failure.
62795         Reported by Bruno Haible.
62796
62797 2007-09-09  Bruno Haible  <bruno@clisp.org>
62798
62799         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62800         malloc or realloc fails.
62801
62802 2007-09-09  Bruno Haible  <bruno@clisp.org>
62803
62804         * modules/getcwd (Depends-on): Add malloc-posix.
62805         * modules/glob (Depends-on): Likewise.
62806         * modules/putenv (Depends-on): Likewise.
62807         * modules/strdup (Depends-on): Likewise.
62808         * modules/getdelim (Depends-on): Add realloc-posix.
62809         * modules/read-file (Depends-on): Likewise.
62810
62811 2007-09-09  Bruno Haible  <bruno@clisp.org>
62812
62813         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62814         (gl_FUNC_MALLOC_POSIX): Require it.
62815         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62816         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62817         * modules/realloc (Files): Add m4/malloc.m4.
62818         * modules/calloc (Files): Likewise.
62819
62820 2007-09-09  Bruno Haible  <bruno@clisp.org>
62821
62822         * modules/malloc-posix: New file.
62823         * modules/malloc (Depends-on): Add malloc-posix.
62824         * lib/malloc.c: Include errno.h.
62825         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62826         and a POSIX-compatible malloc into a single function. Set ENOMEM
62827         when returning NULL.
62828         * m4/malloc.m4: New file.
62829         * doc/functions/malloc.texi: Mention the malloc-posix module.
62830         * lib/stdlib_.h (malloc): New declaration.
62831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62832         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62833         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62834         and HAVE_MALLOC_POSIX.
62835
62836 2007-09-09  Bruno Haible  <bruno@clisp.org>
62837
62838         * modules/realloc-posix: New file.
62839         * modules/realloc (Depends-on): Add realloc-posix.
62840         * lib/realloc.c: Include errno.h.
62841         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62842         and a POSIX-compatible realloc into a single function. Set ENOMEM
62843         when returning NULL.
62844         * m4/realloc.m4: New file.
62845         * doc/functions/realloc.texi: Mention the realloc-posix module.
62846         * lib/stdlib_.h (realloc): New declaration.
62847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62848         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62849         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62850         and HAVE_REALLOC_POSIX.
62851
62852 2007-09-09  Bruno Haible  <bruno@clisp.org>
62853
62854         * modules/calloc-posix: New file.
62855         * modules/calloc (Depends-on): Add calloc-posix.
62856         * lib/calloc.c: Include errno.h.
62857         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62858         and a POSIX-compatible calloc into a single function. Set ENOMEM
62859         when returning NULL.
62860         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62861         * doc/functions/calloc.texi: Mention the calloc-posix module.
62862         * lib/stdlib_.h (calloc): New declaration.
62863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62864         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62865         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62866         and HAVE_CALLOC_POSIX.
62867
62868 2007-09-09  Bruno Haible  <bruno@clisp.org>
62869
62870         Allow for modules to show an arbitrary notice.
62871         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62872         * gnulib-tool: New option --extract-notice.
62873         (func_usage): Document it.
62874         (sed_extract_prog): Update.
62875         (func_get_notice): New function.
62876         (func_modules_notice): New function.
62877         (func_import, func_create_testdir): Invoke it.
62878         Suggested by Jim Meyering.
62879
62880 2007-09-09  Bruno Haible  <bruno@clisp.org>
62881
62882         * gnulib-tool: New options --verbose, --quiet.
62883         (func_usage): Document them.
62884         (verbose): New variable.
62885         (func_execute_command): New function.
62886         (func_import): Don't show the module list and the file list if
62887         $verbose < 0.
62888         (func_create_testdir): Likewise. Use func_execute_command.
62889         (func_create_megatestdir): Use func_execute_command.
62890
62891 2007-09-08  Bruno Haible  <bruno@clisp.org>
62892
62893         * gnulib-tool (func_import): Prefer rsync over wget when available,
62894         for fetching the PO files.
62895
62896 2007-09-08  Bruno Haible  <bruno@clisp.org>
62897
62898         * posix-modules: New file. Portions copied from gnulib-tool.
62899         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62900
62901 2007-09-08  Jim Meyering  <jim@meyering.net>
62902
62903         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62904         * lib/fpending.h: Rename from __fpending.h.
62905         * lib/fpending.c: Rename from __fpending.c.
62906         Include "fpending.h", not "__fpending.h".
62907         * lib/__fpending.h, lib/__fpending.c: Remove files.
62908         * modules/fpending (Files): Reflect new file names.
62909         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62910
62911 2007-09-08  Bruno Haible  <bruno@clisp.org>
62912
62913         * m4/inttypes-h.m4: Remove stub file.
62914
62915 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62916
62917         * doc/headers/stdint.texi: Discuss #include_next issue.
62918
62919 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62920
62921         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62922
62923 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62924
62925         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62926         in variable name.
62927
62928 2007-09-03  Jim Meyering  <jim@meyering.net>
62929
62930         New module: git-version-gen.
62931         * modules/git-version-gen: New file.
62932
62933         Import changes from coreutils for bootstrap script.
62934
62935         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62936
62937         bootstrap: uses rsync to download the .po files
62938         * build-aux/bootstrap (po_download_command_format): New global.
62939         (download_po_files): Use rsync.
62940         (update_po_files): Don't remove .po files after download,
62941         so future rsync runs can take advantage of the copies.
62942
62943         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62944
62945         Solve the unnecessary-.po-file-regeneration problem once and for all.
62946         * build-aux/bootstrap (download_po_files): New function, renamed from
62947         get_translations.  Now, downloads, but doesn't update LINGUAS.
62948         (update_po_files): New function.
62949
62950         bootstrap: Ignore more.
62951         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62952         uniwidth to e.g., lib/.gitignore.
62953         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62954
62955         * build-aux/bootstrap: New setting: vc_ignore.
62956         (insert_sorted_if_absent): Create $file if absent.
62957         Adapt to new, possibly empty, list: $vc_ignore.
62958
62959         bootstrap: generate more ignorable names
62960         * build-aux/bootstrap (slurp): When generating ignorable names,
62961         also map .sin to .sed, .gperf to .c, and .y to .c.
62962
62963 2007-09-03  Jim Meyering  <jim@meyering.net>
62964
62965         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62966         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62967
62968 2007-09-02  Bruno Haible  <bruno@clisp.org>
62969
62970         Fix mis-recognition of 'mcs' on QNX 6.
62971         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62972         output contains the string "Mono".
62973         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62974         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62975
62976 2007-09-01  Bruno Haible  <bruno@clisp.org>
62977
62978         Fix collision between uniwidth/* and linebreak modules.
62979         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62980         u32_width): Remove declarations.
62981         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62982         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62983         streq3, streq2, streq1, streq0): Remove functions.
62984         (STREQ): Remove macro.
62985         (is_cjk_encoding): Remove function.
62986         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62987         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62988         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62989         * NEWS: Document the change.
62990
62991 2007-09-01  Bruno Haible  <bruno@clisp.org>
62992
62993         * lib/streq.h: Add double-inclusion guard.
62994
62995 2007-09-01  Karl Berry  <karl@gnu.org>
62996
62997         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62998
62999 2007-08-28  Jim Meyering  <jim@meyering.net>
63000
63001         Rename mreadlink_with_size to areadlink_with_size.
63002         * NEWS: Document the change.
63003         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63004         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63005         * lib/mreadlink.h: Rename this to...
63006         * lib/areadlink.h: ...this.
63007         * modules/mreadlink-with-size: Rename this to...
63008         * modules/areadlink-with-size: ...this.
63009         * lib/canonicalize.c: Reflect the renaming.
63010         * modules/canonicalize: Likewise.
63011
63012 2007-08-26  Bruno Haible  <bruno@clisp.org>
63013
63014         * gnulib-tool (func_import): When deciding which files to remove,
63015         consider also dangling symbolic links.
63016         Reported by Eric Blake.
63017
63018 2007-08-26  Bruno Haible  <bruno@clisp.org>
63019
63020         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63021
63022 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63023
63024         * lib/readline.c: Don't include getline.h, the prototype is now
63025         found in stdio.h.
63026
63027 2007-08-23  Jim Meyering  <jim@meyering.net>
63028
63029         Getdelim touchup.
63030         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63031         around the funlockfile call, since funlockfile never sets errno.
63032         Don't set errno upon failed realloc.
63033
63034 2007-08-22  Eric Blake  <ebb9@byu.net>
63035
63036         Getline touchups.
63037         * lib/getdelim.c (getdelim): Revert regression that required *n to
63038         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63039         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63040         getdelim, rather than whether implementation is missing.
63041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63042         * lib/stdio_.h (getline): Also declare if replacement is
63043         required.
63044         * doc/functions/getdelim.texi: New file.
63045         * doc/functions/getline.texi: Likewise.
63046         * doc/gnulib.texi (Function Substitutes): Add new files.
63047         Reported by Bruno Haible.
63048
63049 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63050
63051         * users.txt: Add Guile.
63052
63053 2007-08-22  Eric Blake  <ebb9@byu.net>
63054
63055         * tests/test-getdelim.c (main): Use remove, not unlink.
63056         * tests/test-getline.c (main): Likewise.
63057
63058         Move getline and getdelim into stdio.h, per POSIX 200x.
63059         * modules/getline (Files): Remove getline.h.
63060         (Depends-on): Add stdio.
63061         (configure.ac): Add module indicator.
63062         * modules/getdelim (Files): Remove getdelim.h.
63063         (Depends-on): Add stdio.
63064         (configure.ac): Add module indicator.
63065         * modules/stdio (Makefile.am): Work with new indicators.
63066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63067         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63068         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63069         * lib/getdelim.h: Delete.
63070         * lib/getline.h: Delete.
63071         * lib/stdio_.h (getdelim, getline): Declare.
63072         * modules/getdelim-tests: New module.
63073         * modules/getline-tests: Likewise.
63074         * tests/test-getdelim.c: New file.
63075         * tests/test-getline.c: Likewise.
63076         * NEWS: Document the change.
63077         * lib/getline.c: Update choice of header.
63078         * lib/csharpcomp.c: Likewise.
63079         * lib/getpass.c: Likewise.
63080         * lib/javacomp.c: Likewise.
63081         * lib/javaversion.c: Likewise.
63082         * lib/yesno.c: Likewise.
63083         * lib/getdelim.c: Likewise.
63084         (getdelim): Set errno on failure, and avoid memory leak.
63085
63086 2007-08-19  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/closein (Depends-on): Add freadahead.
63089         * lib/closein.c: Include freadahead.h.
63090         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63091         is zero.
63092
63093 2007-08-19  Bruno Haible  <bruno@clisp.org>
63094
63095         * modules/freadahead-tests: New file.
63096         * tests/test-freadahead.sh: New file.
63097         * tests/test-freadahead.c: New file.
63098
63099         * modules/freadahead: New file.
63100         * lib/freadahead.h: New file.
63101         * lib/freadahead.c: New file.
63102         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63103         fbufmode, fpurge, freadable, fwritable.
63104
63105 2007-08-19  Eric Blake  <ebb9@byu.net>
63106
63107         Test yesno in combination with closein.
63108         * lib/yesno.c (yesno): Document use of stdin.
63109         * modules/yesno-tests (Files): New module.
63110         * tests/test-yesno.c (main): New file.
63111         * tests/test-yesno.sh: Likewise.
63112
63113 2007-08-19  Bruno Haible  <bruno@clisp.org>
63114
63115         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63116         * lib/fseeko.c (rpl_fseeko): Likewise.
63117         * lib/fseterr.c (fseterr): Likewise.
63118
63119 2007-08-19  Bruno Haible  <bruno@clisp.org>
63120
63121         * tests/test-lseek.c (main): Disable a test for BeOS.
63122         * doc/functions/lseek.texi: Document the BeOS bug.
63123
63124 2007-08-19  Bruno Haible  <bruno@clisp.org>
63125             Eric Blake  <ebb9@byu.net>
63126
63127         * lib/lseek.c: Include <sys/stat.h>.
63128         (rpl_lseek): Add workaround code also for Unix platforms.
63129         Needed for BeOS.
63130         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63131         * doc/functions/lseek.texi: Document BeOS definiency.
63132
63133 2007-08-18  Bruno Haible  <bruno@clisp.org>
63134
63135         * modules/fstrcmp-tests: New file.
63136         * tests/test-fstrcmp.c: New file.
63137
63138 2007-08-18  Bruno Haible  <bruno@clisp.org>
63139
63140         * modules/fstrcmp: New file, from GNU gettext with modifications.
63141         * lib/fstrcmp.h: New file, from GNU gettext.
63142         * lib/fstrcmp.c: New file, from GNU gettext.
63143         * MODULES.html.sh (String handling): Add fstrcmp.
63144
63145 2007-08-18  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63148         'bool'.
63149         (diag, compareseq): Remove const from the ctxt argument.
63150         (USE_HEURISTIC): Undefine at the end.
63151
63152 2007-08-18  Jim Meyering  <jim@meyering.net>
63153
63154         New file: lib/idcache.h
63155         * NEWS: Mention the addition.
63156         * modules/idcache (Files): Add lib/idcache.h
63157         * lib/idcache.c: Include "idcache.h".
63158         Don't include <sys/types.h>.
63159         Add a FIXME comment.
63160         Move file-scoped "static" declarations to the top.
63161         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63162
63163 2007-08-17  Bruno Haible  <bruno@clisp.org>
63164         and Paul Eggert  <eggert@cs.ucla.edu>
63165
63166         * MODULES.html.sh: Add diffseq.
63167         * modules/diffseq: New file.
63168         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63169         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63170
63171 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         Import changes from coreutils for bootstrap script.
63174
63175         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63176
63177         * build-aux/bootstrap (slurp): Work even in environments where
63178         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63179         current code does not slurp files whose names start with ".", and
63180         this looks like it might be a troublesome area.
63181
63182         2007-07-11  Jim Meyering  <jim@meyering.net>
63183
63184         If there's a GPL vN copyright comment, require that N == 3.
63185
63186         2007-07-08  Jim Meyering  <jim@meyering.net>
63187
63188         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63189         * build-aux/bootstrap (mam_template): Move definition out of loop.
63190
63191         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63192
63193         * build-aux/bootstrap (symlink_to_dir): Rename function from
63194         symlink_to_gnulib.  Add a directory parameter.  Update all
63195         callers.
63196         (cp_mark_as_generated): Also check for -- and link to -- files in
63197         gl/.
63198
63199         2007-07-08  Jim Meyering  <jim@meyering.net>
63200
63201         Adapt to deeper hierarchy in gnulib.
63202         * build-aux/bootstrap (symlink_to_dir): If the destination
63203         directory doesn't exist, create it. This is required at least for
63204         "lib/uniwidth/cjk.h".
63205
63206         2007-05-15  Jim Meyering  <jim@meyering.net>
63207
63208         * build-aux/bootstrap: Now that generated Makefile.am files
63209         are no longer under version control, they must be created at
63210         bootstrap time.
63211
63212 2007-08-14  Ben Pfaff  <blp@gnu.org>
63213
63214         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63215
63216 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63219         given the changes below.
63220         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63221         even on hosts that have padding bits beyond the supported 64.
63222
63223 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63224
63225         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63226         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63227         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63228         depends on it.
63229         (xstrtol_error): Remove.
63230         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63231         but with a different signature.
63232         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63233         * lib/xstrtol-error.c: Include exitfail.h.
63234         (xstrtol_fatal): New function, with a different signature from the
63235         old xstrtol_error, so that the caller need not worry about passing
63236         in an exit status, or about storage management of the option argument.
63237         (xstrtol_error): Now a static function.  Redo signature to
63238         implement xstrtol_fatal.  Output the correct number of hyphens in
63239         front of the option so that the caller need not worry about
63240         storage management.
63241         (N_): New macro.
63242         (_): Remove; not used now.
63243         * modules/xstrtol: Depend on getopt.
63244         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63245         of old STRTOL_FATAL_ERROR macro.
63246         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63247         of test program.
63248         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63249         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63250
63251 2007-08-08  Eric Blake  <ebb9@byu.net>
63252
63253         * lib/xstrtol-error.c: Add missing include.
63254
63255         Move xstrtol messages into gnulib domain, when --pobase is used.
63256         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63257         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63258         * modules/xstrtol (Files): Distribute new file.
63259         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63260         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63261         * tests/test-xstrtol.c: ...into new file.
63262         * tests/test-xstrtoul.c: Also test xstrtoul.
63263         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63264         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63265         * tests/test-xstrtol.sh: Drive the tests.
63266         * tests/test-xstrtoimax.sh: Likewise.
63267         * tests/test-xstrtoumax.sh: Likewise.
63268         * modules/xstrtol-tests: New module.
63269         * modules/xstrtoimax-tests: Likewise.
63270         * modules/xstrtoumax-tests: Likewise.
63271
63272 2007-08-08  Jim Meyering  <jim@meyering.net>
63273
63274         New function: mfile_name_concat.
63275         * lib/filenamecat.c (mfile_name_concat): New function, just like
63276         file_name_concat, but return NULL upon failure rather than exiting
63277         with a diagnostic.
63278         * lib/filenamecat.h: Declare it.
63279
63280 2007-08-07  Bruno Haible  <bruno@clisp.org>
63281
63282         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63283         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63284         warning from gcc.
63285         Reported by Eric Blake.
63286
63287 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63288
63289         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63290         * modules/crypto/arcfour (License): Likewise.
63291         * modules/crypto/des-tests (License): Likewise.
63292         * modules/crypto/gc-arctwo-tests (License): Likewise.
63293         * modules/crypto/gc-des-tests (License): Likewise.
63294         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63295         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63296         * modules/crypto/gc-md2-tests (License): Likewise.
63297         * modules/crypto/gc-md4-tests (License): Likewise.
63298         * modules/crypto/gc-md5-tests (License): Likewise.
63299         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63300         * modules/crypto/gc-rijndael-tests (License): Likewise.
63301         * modules/crypto/gc-sha1-tests (License): Likewise.
63302         * modules/crypto/gc-tests (License): Likewise.
63303         * modules/crypto/hmac-md5 (License): Likewise.
63304         * modules/crypto/hmac-sha1 (License): Likewise.
63305         * modules/crypto/md2-tests (License): Likewise.
63306         * modules/crypto/md4-tests (License): Likewise.
63307         * modules/crypto/md5 (License): Likewise.
63308         * modules/crypto/rijndael (License): Likewise.
63309         * modules/crypto/sha1 (License): Likewise.
63310         * modules/memxor (License): Likewise.
63311
63312 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63313         and Bruno Haible  <bruno@clisp.org>
63314
63315         * NEWS: Describe interface changes to human, xstrtol.
63316         * lib/human.h: Include <xstrtol.h>.
63317         (human_options): Return enum strtol_error, not int.  Remove
63318         bool arg; take int * instead.
63319         * lib/human.c: Don't include "gettext.h".
63320         (_): Remove; no longer used.
63321         Don't include <xstrtol.h>, since human.h does it.
63322         (human_options): Adjust to abovementioned interface changes.
63323         Do not report error to stderr; that's now the caller's
63324         responsibility.
63325         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63326         interface change.
63327         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63328         Str, Argument_type_string.  All uses changed.  Put " argument"
63329         in diagnostics to make them clearer.  Change wording of suffix
63330         message for clarity.
63331         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63332         Argument_type_string.
63333         (STRTOL_FATAL_WARN): Remove; no longer used.
63334         * modules/human (Depends-on): Remove gettext-h.
63335
63336 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63337
63338         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63339
63340 2007-07-31  Bruno Haible  <bruno@clisp.org>
63341
63342         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63343         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63344         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63345
63346 2007-07-31  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63349         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63350
63351 2007-07-30  Bruno Haible  <bruno@clisp.org>
63352
63353         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63354         * modules/c-ctype (License): Likewise.
63355         * modules/c-strcase (License): Likewise.
63356         * modules/check-version (License): Likewise.
63357         * modules/iconv (License): Likewise.
63358         * modules/iconv_open (License): Likewise.
63359         * modules/read-file (License): Likewise.
63360         * modules/striconv (License): Likewise.
63361         * modules/strverscmp (License): Likewise.
63362         * modules/vasprintf (License): Likewise.
63363         * modules/crypto/des (License): Likewise.
63364         * modules/crypto/gc (License): Likewise.
63365         * modules/crypto/gc-arcfour (License): Likewise.
63366         * modules/crypto/gc-arctwo (License): Likewise.
63367         * modules/crypto/gc-des (License): Likewise.
63368         * modules/crypto/gc-hmac-md5 (License): Likewise.
63369         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63370         * modules/crypto/gc-md2 (License): Likewise.
63371         * modules/crypto/gc-md4 (License): Likewise.
63372         * modules/crypto/gc-md5 (License): Likewise.
63373         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63374         * modules/crypto/gc-random (License): Likewise.
63375         * modules/crypto/gc-rijndael (License): Likewise.
63376         * modules/crypto/gc-sha1 (License): Likewise.
63377         * modules/crypto/md2 (License): Likewise.
63378         * modules/crypto/md4 (License): Likewise.
63379
63380 2007-07-30  Jim Meyering  <jim@meyering.net>
63381
63382         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63383         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63384         it has valid stat data.  This bug would cause du not to count the
63385         sizes of inaccessible directories.
63386         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63387         in <http://bugzilla.redhat.com/250077>.
63388
63389 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63390             Bruno Haible  <bruno@clisp.org>
63391
63392         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63393         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63394         #include_next, gives a diagnostic about it, but reports no error in
63395         the exit code.
63396         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63397
63398 2007-07-24  Ben Pfaff  <blp@gnu.org>
63399
63400         Improve name: "count-one-bits" is better than "popcount".
63401         * MODULES.html.sh: Update name.
63402         * lib/popcount.h: Renamed lib/count-one-bits.h.
63403         (popcount): Renamed count_one_bits.
63404         (popcountl): Renamed count_one_bits_l.
63405         (popcountll): Renamed count_one_bits_ll.
63406         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63407         * modules/popcount: Renamed module/count-one-bits.
63408         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63409         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63410
63411 2007-07-23  Ben Pfaff  <blp@gnu.org>
63412
63413         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63414         better code generation, and add U to large constants to avoid
63415         warnings, in non-GCC case.
63416         Suggested by Bruno Haible.
63417
63418 2007-07-23  Ben Pfaff  <blp@gnu.org>
63419
63420         * lib/popcount.h: Use verify_true instead of if...abort.
63421         * modules/popcount: Depend on verify module.
63422         Suggested by Jim Meyering.
63423
63424 2007-07-23  Bruno Haible  <bruno@clisp.org>
63425
63426         * gnulib-tool (func_import): Create a .cvsignore file also when the
63427         directory is not yet in CVS but the toplevel directory is. When
63428         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63429         Reported by Karl Berry.
63430
63431 2007-07-22  Ben Pfaff  <blp@gnu.org>
63432
63433         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63434         case.
63435         Suggested by Eric Blake.
63436
63437 2007-07-22  Ben Pfaff  <blp@gnu.org>
63438
63439         New module: popcount.
63440         * MODULES.html.sh: Add popcount.
63441         * modules/popcount: New file.
63442         * modules/popcount-tests: New file.
63443         * tests/test-popcount.c: New file.
63444         * lib/popcount.h: New file.
63445         * m4/popcount.m4: New file.
63446
63447 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         * build-aux/announce-gen: Update to GPLv3.
63450
63451         * build-aux/config.guess: Update from config.
63452
63453 2007-07-21  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63456         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63457
63458 2007-07-20  Jim Meyering  <jim@meyering.net>
63459
63460         * check-module: Diagnose a self-dependency.
63461
63462 2007-07-19  Bruno Haible  <bruno@clisp.org>
63463
63464         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63465         empty.
63466         Reported by Eric Blake.
63467
63468 2007-07-18  Bruno Haible  <bruno@clisp.org>
63469
63470         * gnulib-tool: New options --po-base, --po-domain.
63471         (func_usage): Document them.
63472         (pobase, po_domain): New variables.
63473         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63474         DEFAULT_TEXT_DOMAIN.
63475         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63476         (func_import): Consider pobase and po_domain. Create a po/ directory.
63477         (func_create_testdir): Set pobase and po_domain to empty.
63478         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63479         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63480
63481 2007-07-18  Bruno Haible  <bruno@clisp.org>
63482
63483         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63484         EXTRA_DIST augmentation for files in build-aux/.
63485
63486 2007-07-16  Bruno Haible  <bruno@clisp.org>
63487
63488         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63489         * modules/getdelim (License): Likewise.
63490
63491 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63492
63493         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63494         * modules/d-type (License): Likewise.
63495         * modules/extensions (License): Likewise.
63496         * modules/fnmatch (License): Likewise.
63497         * modules/fseeko (License): Likewise.
63498         * modules/getaddrinfo (License): Likewise.
63499         * modules/getline (License): Likewise.
63500         * modules/getlogin_r (License): Likewise.
63501         * modules/getpass (License): Likewise.
63502         * modules/gettimeofday (License): Likewise.
63503         * modules/glob (License): Likewise.
63504         * modules/inet_ntop (License): Likewise.
63505         * modules/malloc (License): Likewise.
63506         * modules/malloca (License): Likewise.
63507         * modules/memmem (License): Likewise.
63508         * modules/mempcpy (License): Likewise.
63509         * modules/memset (License): Likewise.
63510         * modules/minmax (License): Likewise.
63511         * modules/mktime (License): Likewise.
63512         * modules/netinet_in (License): Likewise.
63513         * modules/pathmax (License): Likewise.
63514         * modules/poll (License): Likewise.
63515         * modules/regex (License): Likewise.
63516         * modules/snprintf (License): Likewise.
63517         * modules/stdbool (License): Likewise.
63518         * modules/stdint (License): Likewise.
63519         * modules/stdio (License): Likewise.
63520         * modules/strcase (License): Likewise.
63521         * modules/strcasestr (License): Likewise.
63522         * modules/strdup (License): Likewise.
63523         * modules/string (License): Likewise.
63524         * modules/strndup (License): Likewise.
63525         * modules/strnlen (License): Likewise.
63526         * modules/strpbrk (License): Likewise.
63527         * modules/strptime (License): Likewise.
63528         * modules/strsep (License): Likewise.
63529         * modules/sys_select (License): Likewise.
63530         * modules/sys_socket (License): Likewise.
63531         * modules/sys_stat (License): Likewise.
63532         * modules/sys_time (License): Likewise.
63533         * modules/time (License): Likewise.
63534         * modules/time_r (License): Likewise.
63535         * modules/timegm (License): Likewise.
63536         * modules/unistd (License): Likewise.
63537         * modules/vsnprintf (License): Likewise.
63538         * modules/wctype (License): Likewise.
63539
63540 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63541
63542         * modules/argz (License): LGPLv2+.
63543
63544 2007-07-15  Karl Berry  <karl@gnu.org>
63545
63546         * doc/gnulib.texi: revise node structure per new fdl.texi.
63547
63548 2007-07-14  Bruno Haible  <bruno@clisp.org>
63549
63550         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63551         the output file.
63552         * lib/uniname/uninames.h: Regenerated.
63553
63554 2007-07-14  Karl Berry  <karl@gnu.org>
63555
63556         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63557         omitting sectioning and index commands.
63558
63559 2007-07-13  Bruno Haible  <bruno@clisp.org>
63560
63561         New gnulib-tool option --more-symlinks.
63562         * gnulib-tool (func_usage): Document --more-symlinks.
63563         (do_copyrights): New variable.
63564         Recognize option --more-symlinks.
63565         (func_import): Don't add a copyright notice transform to
63566         sed_transform_lib_file if do_copyrights is empty.
63567
63568 2007-07-13  Bruno Haible  <bruno@clisp.org>
63569
63570         * lib/vasnprintf.c (decimal_point_char): Define also if
63571         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63572         && !NEED_PRINTF_DIRECTIVE_A.
63573         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63574         Gary V. Vaughan <gary@gnu.org>.
63575
63576 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63577
63578         * lib/inttypes_.h: Undo previous change, since it was fixed
63579         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63580
63581 2007-07-13  Bruno Haible  <bruno@clisp.org>
63582
63583         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63584         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63585
63586 2007-07-13  Jim Meyering  <jim@meyering.net>
63587
63588         df: Don't fail for Tru64's "file-on-file mount".
63589         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63590         so we fall through and use statfs instead.  Details here:
63591         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63592         Reported by Albert Chin.
63593
63594 2007-07-13  Bruno Haible  <bruno@clisp.org>
63595
63596         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63597         * modules/configmake (License): Likewise.
63598         * modules/gettext (License): Likewise.
63599         * modules/gettext-h (License): Likewise.
63600         * modules/include_next (License): Likewise.
63601         * modules/link-warning (License): Likewise.
63602         * modules/localcharset (License): Likewise.
63603         * modules/localename (License): Likewise.
63604         * modules/lock (License): Likewise.
63605         * modules/relocatable-lib-lgpl (License): Likewise.
63606         * modules/size_max (License): Likewise.
63607         * modules/vasnprintf (License): Likewise.
63608         * modules/wchar (License): Likewise.
63609         * modules/xsize (License): Likewise.
63610
63611 2007-07-13  Bruno Haible  <bruno@clisp.org>
63612
63613         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63614         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63615
63616 2007-07-12  Bruno Haible  <bruno@clisp.org>
63617
63618         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63619         in the modules files.
63620
63621 2007-07-11  Karl Berry  <karl@gnu.org>
63622
63623         * MODULES.html.sh (func_module): use
63624          sed -e '\|^'"${includefile}"'$|d'
63625          instead of /.../d, to avoid errors on $includefile's containing /.
63626
63627 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63628
63629         * gnulib-tool (func_import): Avoid duplication of --avoid
63630         statements
63631         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63632         names to `_' in variable names.
63633
63634 2007-07-10  Eric Blake  <ebb9@byu.net>
63635
63636         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63637         * NEWS: Document this change.
63638
63639 2007-07-08  Bruno Haible  <bruno@clisp.org>
63640
63641         Update to Unicode 5.0.
63642         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63643         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63644         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63645         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63646         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63647         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63648         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63649         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63650         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63651         U+10A3F, U+1D242..U+1D244.
63652         (nonspacing_table_ind): Update.
63653         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63654         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63655
63656 2007-07-08  Bruno Haible  <bruno@clisp.org>
63657
63658         Update to Unicode 5.0.
63659         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63660         code transform. Extend the name index field of unicode_name_to_code and
63661         unicode_code_to_name from 16 to 24 bits.
63662         * lib/uniname/uniname.c (unicode_character_name,
63663         unicode_name_character): Add the range 0x12xxx to the code transform.
63664         * lib/uniname/uninames.h: Regenerated.
63665         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63666
63667 2007-07-07  Bruno Haible  <bruno@clisp.org>
63668
63669         * modules/wcwidth-tests: New file.
63670         * tests/test-wcwidth.c: New file.
63671
63672         Work around MacOS X wcwidth() bug.
63673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63674         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63675         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63676         original wcwidth in non-UTF-8 locales.
63677         * modules/wcwidth (Depends-on): Add localcharset, streq,
63678         uniwidth/width.
63679         * doc/functions/wcwidth.texi: Update.
63680
63681 2007-07-07  Bruno Haible  <bruno@clisp.org>
63682
63683         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63684         (wcwidth): New declaration.
63685         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63686         macros.
63687         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63688         here. Prepare for creating <wchar.h> unconditionally.
63689         * modules/wchar (Depends-on): Add link-warning.
63690         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63691         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63692         * lib/wcwidth.h: Remove file.
63693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63694         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63695         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63696         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63697         (Include): Replace wcwidth.h with <wchar.h>.
63698         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63699         * lib/mbchar.h: Don't include wcwidth.h.
63700         * lib/mbswidth.c: Likewise.
63701         * NEWS: Mention the change.
63702
63703 2007-07-07  Bruno Haible  <bruno@clisp.org>
63704
63705         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63706         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63707         definition with an external declaration.
63708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63709         defined as a function. Remove AC_C_INLINE requirement.
63710         * modules/wcwidth (Files): Add lib/wcwidth.c.
63711         (Makefile.am): Remove redundant statement.
63712
63713 2007-07-07  Bruno Haible  <bruno@clisp.org>
63714
63715         * MODULES.html.sh (Unicode string functions): Add the new modules.
63716
63717         * tests/uniwidth/test-u32-strwidth.c: New file.
63718         * modules/uniwidth/u32-strwidth-tests: New file.
63719
63720         * lib/uniwidth/u32-strwidth.c: New file.
63721         * modules/uniwidth/u32-strwidth: New file.
63722
63723         * tests/uniwidth/test-u16-strwidth.c: New file.
63724         * modules/uniwidth/u16-strwidth-tests: New file.
63725
63726         * lib/uniwidth/u16-strwidth.c: New file.
63727         * modules/uniwidth/u16-strwidth: New file.
63728
63729         * tests/uniwidth/test-u8-strwidth.c: New file.
63730         * modules/uniwidth/u8-strwidth-tests: New file.
63731
63732         * lib/uniwidth/u8-strwidth.c: New file.
63733         * modules/uniwidth/u8-strwidth: New file.
63734
63735         * tests/uniwidth/test-u32-width.c: New file.
63736         * modules/uniwidth/u32-width-tests: New file.
63737
63738         * lib/uniwidth/u32-width.c: New file.
63739         * modules/uniwidth/u32-width: New file.
63740
63741         * tests/uniwidth/test-u16-width.c: New file.
63742         * modules/uniwidth/u16-width-tests: New file.
63743
63744         * lib/uniwidth/u16-width.c: New file.
63745         * modules/uniwidth/u16-width: New file.
63746
63747         * tests/uniwidth/test-u8-width.c: New file.
63748         * modules/uniwidth/u8-width-tests: New file.
63749
63750         * lib/uniwidth/u8-width.c: New file.
63751         * modules/uniwidth/u8-width: New file.
63752
63753         * tests/uniwidth/test-uc_width.c: New file.
63754         * modules/uniwidth/width-tests: New file.
63755
63756         * lib/uniwidth/width.c: New file, from GNU libiconv.
63757         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63758         * modules/uniwidth/width: New file.
63759
63760         * lib/uniwidth.h: New file, from GNU libiconv.
63761         * modules/uniwidth/base: New file.
63762
63763 2007-07-07  Bruno Haible  <bruno@clisp.org>
63764
63765         * lib/uniname.h: New file, from GNU gettext.
63766         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63767         * lib/uniname/uninames.h: New file, from GNU gettext.
63768         * lib/uniname/uniname.c: New file, from GNU gettext.
63769         * tests/uniname/test-uninames.sh: New file.
63770         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63771         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63772         * modules/uniname/base: New file.
63773         * modules/uniname/uniname: New file.
63774         * modules/uniname/uniname-tests: New file.
63775         * MODULES.html.sh (Unicode string functions): Add the new modules.
63776
63777 2007-07-06  Bruno Haible  <bruno@clisp.org>
63778
63779         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63780
63781 2007-07-06  Bruno Haible  <bruno@clisp.org>
63782
63783         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63784         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63785         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63786         include <sys/time.h>.
63787         Reported by Eric Blake.
63788
63789 2007-07-06  Eric Blake  <ebb9@byu.net>
63790
63791         Fix testing canonicalize on cygwin.
63792         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63793         Revert patch from 2007-06-19.
63794         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63795         canonicalize module is also in use.
63796         * tests/test-canonicalize.c: New file.
63797         * tests/test-canonicalize.sh: Likewise.
63798         * modules/canonicalize-tests: Likewise.
63799
63800 2007-07-06  Jim Meyering  <jim@meyering.net>
63801
63802         * lib/getugroups.c (getugroups): Detect getgrent failure.
63803         Adjust comment to reflect reality: this function may return -1.
63804
63805 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63806
63807         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63808         the new TP address.
63809         (usage): Fix typo
63810         (gnulib_mk): New variable.
63811
63812 2007-07-05  Jim Meyering  <jim@meyering.net>
63813
63814         Don't let endgrent clobber errno, no matter how improbable.
63815         * lib/getugroups.c (getugroups): Save and restore errno around
63816         endgrent call.
63817
63818         Close the group DB even when failing with 2^31 or more members.
63819         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63820
63821 2007-07-04  Jim Meyering  <jim@meyering.net>
63822
63823         * lib/getugroups.h: New file.
63824         * lib/getugroups.c: Include "getugroups.h".
63825         Remove uses of "register" keyword.
63826         Move local variable, "cp", down into scope where used.
63827         Give "username" parameter the "const" attribute.
63828         * modules/getugroups (Files): Add lib/getugroups.h
63829
63830 2007-07-04  Karl Berry  <karl@gnu.org>
63831
63832         * MODULES.html.sh (func_all_modules): Complete rename of
63833         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63834
63835 2007-07-02  Bruno Haible  <bruno@clisp.org>
63836
63837         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63838         mode, when inttypes.h comes from gnulib.
63839         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63840
63841 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63842
63843         * NEWS: Mention lgpl module name change.
63844
63845         * modules/lgpl-2.1: Renamed from lgpl.
63846
63847         * NEWS: Mention gpl module name change.
63848
63849         * modules/gpl-3.0: New file, based on gpl-2.0.
63850
63851         * modules/gpl-2.0: Renamed from gpl.
63852
63853         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63854         doc/gpl-2.0.texi.
63855
63856 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63859         #define __STDC_LIMIT_MACROS temporarily while including
63860         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63861         Problem reported by Joel E. Denny in
63862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63863
63864 2007-07-01  Bruno Haible  <bruno@clisp.org>
63865
63866         * lib/unistdio.h: New file.
63867         * lib/unistdio/u-asnprintf.h: New file.
63868         * lib/unistdio/u-asprintf.h: New file.
63869         * lib/unistdio/u-printf-args.c: New file.
63870         * lib/unistdio/u-printf-args.h: New file.
63871         * lib/unistdio/u-printf-parse.h: New file.
63872         * lib/unistdio/u-snprintf.h: New file.
63873         * lib/unistdio/u-sprintf.h: New file.
63874         * lib/unistdio/u-vasprintf.h: New file.
63875         * lib/unistdio/u-vsnprintf.h: New file.
63876         * lib/unistdio/u-vsprintf.h: New file.
63877         * lib/unistdio/ulc-asnprintf.c: New file.
63878         * lib/unistdio/ulc-asprintf.c: New file.
63879         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63880         * lib/unistdio/ulc-printf-parse.c: New file.
63881         * lib/unistdio/ulc-snprintf.c: New file.
63882         * lib/unistdio/ulc-sprintf.c: New file.
63883         * lib/unistdio/ulc-vasnprintf.c: New file.
63884         * lib/unistdio/ulc-vasprintf.c: New file.
63885         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63886         * lib/unistdio/ulc-vsnprintf.c: New file.
63887         * lib/unistdio/ulc-vsprintf.c: New file.
63888         * lib/unistdio/u8-asnprintf.c: New file.
63889         * lib/unistdio/u8-asprintf.c: New file.
63890         * lib/unistdio/u8-printf-parse.c: New file.
63891         * lib/unistdio/u8-snprintf.c: New file.
63892         * lib/unistdio/u8-sprintf.c: New file.
63893         * lib/unistdio/u8-vasnprintf.c: New file.
63894         * lib/unistdio/u8-vasprintf.c: New file.
63895         * lib/unistdio/u8-vsnprintf.c: New file.
63896         * lib/unistdio/u8-vsprintf.c: New file.
63897         * lib/unistdio/u8-u8-asnprintf.c: New file.
63898         * lib/unistdio/u8-u8-asprintf.c: New file.
63899         * lib/unistdio/u8-u8-snprintf.c: New file.
63900         * lib/unistdio/u8-u8-sprintf.c: New file.
63901         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63902         * lib/unistdio/u8-u8-vasprintf.c: New file.
63903         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63904         * lib/unistdio/u8-u8-vsprintf.c: New file.
63905         * lib/unistdio/u16-asnprintf.c: New file.
63906         * lib/unistdio/u16-asprintf.c: New file.
63907         * lib/unistdio/u16-printf-parse.c: New file.
63908         * lib/unistdio/u16-snprintf.c: New file.
63909         * lib/unistdio/u16-sprintf.c: New file.
63910         * lib/unistdio/u16-vasnprintf.c: New file.
63911         * lib/unistdio/u16-vasprintf.c: New file.
63912         * lib/unistdio/u16-vsnprintf.c: New file.
63913         * lib/unistdio/u16-vsprintf.c: New file.
63914         * lib/unistdio/u16-u16-asnprintf.c: New file.
63915         * lib/unistdio/u16-u16-asprintf.c: New file.
63916         * lib/unistdio/u16-u16-snprintf.c: New file.
63917         * lib/unistdio/u16-u16-sprintf.c: New file.
63918         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63919         * lib/unistdio/u16-u16-vasprintf.c: New file.
63920         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63921         * lib/unistdio/u16-u16-vsprintf.c: New file.
63922         * lib/unistdio/u32-asnprintf.c: New file.
63923         * lib/unistdio/u32-asprintf.c: New file.
63924         * lib/unistdio/u32-printf-parse.c: New file.
63925         * lib/unistdio/u32-snprintf.c: New file.
63926         * lib/unistdio/u32-sprintf.c: New file.
63927         * lib/unistdio/u32-vasnprintf.c: New file.
63928         * lib/unistdio/u32-vasprintf.c: New file.
63929         * lib/unistdio/u32-vsnprintf.c: New file.
63930         * lib/unistdio/u32-vsprintf.c: New file.
63931         * lib/unistdio/u32-u32-asnprintf.c: New file.
63932         * lib/unistdio/u32-u32-asprintf.c: New file.
63933         * lib/unistdio/u32-u32-snprintf.c: New file.
63934         * lib/unistdio/u32-u32-sprintf.c: New file.
63935         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63936         * lib/unistdio/u32-u32-vasprintf.c: New file.
63937         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63938         * lib/unistdio/u32-u32-vsprintf.c: New file.
63939         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63940         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63941         * tests/unistdio/test-ulc-printf1.h: New file.
63942         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63943         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63944         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63945         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63946         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63947         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63948         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63949         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63950         * tests/unistdio/test-u8-asnprintf1.c: New file.
63951         * tests/unistdio/test-u8-asnprintf1.h: New file.
63952         * tests/unistdio/test-u8-printf1.h: New file.
63953         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63954         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63955         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63956         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63957         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63958         * tests/unistdio/test-u8-vasprintf1.c: New file.
63959         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63960         * tests/unistdio/test-u8-vsprintf1.c: New file.
63961         * tests/unistdio/test-u16-asnprintf1.c: New file.
63962         * tests/unistdio/test-u16-asnprintf1.h: New file.
63963         * tests/unistdio/test-u16-printf1.h: New file.
63964         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63965         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63966         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63967         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63968         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63969         * tests/unistdio/test-u16-vasprintf1.c: New file.
63970         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63971         * tests/unistdio/test-u16-vsprintf1.c: New file.
63972         * tests/unistdio/test-u32-asnprintf1.c: New file.
63973         * tests/unistdio/test-u32-asnprintf1.h: New file.
63974         * tests/unistdio/test-u32-printf1.h: New file.
63975         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63976         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63977         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63978         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63979         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63980         * tests/unistdio/test-u32-vasprintf1.c: New file.
63981         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63982         * tests/unistdio/test-u32-vsprintf1.c: New file.
63983         * modules/unistdio/base: New file.
63984         * modules/unistdio/u-printf-args: New file.
63985         * modules/unistdio/ulc-asnprintf: New file.
63986         * modules/unistdio/ulc-asprintf: New file.
63987         * modules/unistdio/ulc-fprintf: New file.
63988         * modules/unistdio/ulc-printf-parse: New file.
63989         * modules/unistdio/ulc-snprintf: New file.
63990         * modules/unistdio/ulc-sprintf: New file.
63991         * modules/unistdio/ulc-vasnprintf: New file.
63992         * modules/unistdio/ulc-vasprintf: New file.
63993         * modules/unistdio/ulc-vfprintf: New file.
63994         * modules/unistdio/ulc-vsnprintf: New file.
63995         * modules/unistdio/ulc-vsprintf: New file.
63996         * modules/unistdio/u8-asnprintf: New file.
63997         * modules/unistdio/u8-asprintf: New file.
63998         * modules/unistdio/u8-printf-parse: New file.
63999         * modules/unistdio/u8-snprintf: New file.
64000         * modules/unistdio/u8-sprintf: New file.
64001         * modules/unistdio/u8-vasnprintf: New file.
64002         * modules/unistdio/u8-vasprintf: New file.
64003         * modules/unistdio/u8-vsnprintf: New file.
64004         * modules/unistdio/u8-vsprintf: New file.
64005         * modules/unistdio/u8-u8-asnprintf: New file.
64006         * modules/unistdio/u8-u8-asprintf: New file.
64007         * modules/unistdio/u8-u8-snprintf: New file.
64008         * modules/unistdio/u8-u8-sprintf: New file.
64009         * modules/unistdio/u8-u8-vasnprintf: New file.
64010         * modules/unistdio/u8-u8-vasprintf: New file.
64011         * modules/unistdio/u8-u8-vsnprintf: New file.
64012         * modules/unistdio/u8-u8-vsprintf: New file.
64013         * modules/unistdio/u16-asnprintf: New file.
64014         * modules/unistdio/u16-asprintf: New file.
64015         * modules/unistdio/u16-printf-parse: New file.
64016         * modules/unistdio/u16-snprintf: New file.
64017         * modules/unistdio/u16-sprintf: New file.
64018         * modules/unistdio/u16-vasnprintf: New file.
64019         * modules/unistdio/u16-vasprintf: New file.
64020         * modules/unistdio/u16-vsnprintf: New file.
64021         * modules/unistdio/u16-vsprintf: New file.
64022         * modules/unistdio/u16-u16-asnprintf: New file.
64023         * modules/unistdio/u16-u16-asprintf: New file.
64024         * modules/unistdio/u16-u16-snprintf: New file.
64025         * modules/unistdio/u16-u16-sprintf: New file.
64026         * modules/unistdio/u16-u16-vasnprintf: New file.
64027         * modules/unistdio/u16-u16-vasprintf: New file.
64028         * modules/unistdio/u16-u16-vsnprintf: New file.
64029         * modules/unistdio/u16-u16-vsprintf: New file.
64030         * modules/unistdio/u32-asnprintf: New file.
64031         * modules/unistdio/u32-asprintf: New file.
64032         * modules/unistdio/u32-printf-parse: New file.
64033         * modules/unistdio/u32-snprintf: New file.
64034         * modules/unistdio/u32-sprintf: New file.
64035         * modules/unistdio/u32-vasnprintf: New file.
64036         * modules/unistdio/u32-vasprintf: New file.
64037         * modules/unistdio/u32-vsnprintf: New file.
64038         * modules/unistdio/u32-vsprintf: New file.
64039         * modules/unistdio/u32-u32-asnprintf: New file.
64040         * modules/unistdio/u32-u32-asprintf: New file.
64041         * modules/unistdio/u32-u32-snprintf: New file.
64042         * modules/unistdio/u32-u32-sprintf: New file.
64043         * modules/unistdio/u32-u32-vasnprintf: New file.
64044         * modules/unistdio/u32-u32-vasprintf: New file.
64045         * modules/unistdio/u32-u32-vsnprintf: New file.
64046         * modules/unistdio/u32-u32-vsprintf: New file.
64047         * modules/unistdio/ulc-asnprintf-tests: New file.
64048         * modules/unistdio/ulc-vasnprintf-tests: New file.
64049         * modules/unistdio/ulc-vasprintf-tests: New file.
64050         * modules/unistdio/ulc-vsnprintf-tests: New file.
64051         * modules/unistdio/ulc-vsprintf-tests: New file.
64052         * modules/unistdio/u8-asnprintf-tests: New file.
64053         * modules/unistdio/u8-vasnprintf-tests: New file.
64054         * modules/unistdio/u8-vasprintf-tests: New file.
64055         * modules/unistdio/u8-vsnprintf-tests: New file.
64056         * modules/unistdio/u8-vsprintf-tests: New file.
64057         * modules/unistdio/u16-asnprintf-tests: New file.
64058         * modules/unistdio/u16-vasnprintf-tests: New file.
64059         * modules/unistdio/u16-vasprintf-tests: New file.
64060         * modules/unistdio/u16-vsnprintf-tests: New file.
64061         * modules/unistdio/u16-vsprintf-tests: New file.
64062         * modules/unistdio/u32-asnprintf-tests: New file.
64063         * modules/unistdio/u32-vasnprintf-tests: New file.
64064         * modules/unistdio/u32-vasprintf-tests: New file.
64065         * modules/unistdio/u32-vsnprintf-tests: New file.
64066         * modules/unistdio/u32-vsprintf-tests: New file.
64067         * MODULES.html.sh (Unicode string functions): Add the new modules.
64068
64069 2007-07-01  Bruno Haible  <bruno@clisp.org>
64070
64071         * lib/sprintf.c (sprintf): Limit the available length estimation,
64072         to avoid address wraparound.
64073         * lib/vsprintf.c (vsprintf): Likewise.
64074         * modules/sprintf-posix (Dependencies): Add stdint.
64075         * modules/vsprintf-posix (Dependencies): Likewise.
64076
64077 2007-07-01  Bruno Haible  <bruno@clisp.org>
64078
64079         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64080         Windows PATH as well. Conservative double-quoting. Comments.
64081
64082 2007-07-01  Bruno Haible  <bruno@clisp.org>
64083             Eric Blake  <ebb9@byu.net>
64084             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64085
64086         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64087         empty components in $PATH, denoting '.'.
64088
64089 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64090
64091         * gnulib-tool: Fix indentation.
64092         (func_create_megatestdir): Likewise.
64093         Report by Bruno Haible.
64094
64095 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64096
64097         Sync from Automake.
64098         * build-aux/gnupload: Fix shell portability issues with for loops.
64099         Report by Karl Berry.
64100
64101 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64102
64103         * build-aux/maint.mk (POURL): Use translationproject.org.
64104
64105 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64106             Bruno Haible  <bruno@clisp.org>
64107
64108         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64109         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64110         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64111         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64112         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64113
64114 2007-06-27  Bruno Haible  <bruno@clisp.org>
64115
64116         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64117         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64118
64119 2007-06-26  Karl Berry  <karl@gnu.org>
64120
64121         * MODULES.html.sh: remove xreadlink-with-size.
64122
64123 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64126         method that I hope also handles the double-include problem noted
64127         by Bruno Haible in
64128         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64129
64130 2007-06-23  Bruno Haible  <bruno@clisp.org>
64131
64132         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64133         Don't let the 'mostlyclean' target fail if the last subdirectory could
64134         not be removed.
64135         Reported by Karl Berry.
64136
64137 2007-06-23  Bruno Haible  <bruno@clisp.org>
64138
64139         * gnulib-tool (echo): Add a speedier workaround for ksh.
64140         * tests/test-echo.sh: Likewise.
64141
64142 2007-06-23  Bruno Haible  <bruno@clisp.org>
64143
64144         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64145         * tests/test-echo.sh: Likewise.
64146
64147 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64148
64149         * gnulib-tool (IFS): Initialize early, so we don't set it to
64150         empty later.
64151         (self_abspathname): Rewrite algorithm to set it, reindent.
64152         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64153         (func_create_megatestdir): Merge some sed scripts.
64154
64155 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64156
64157         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64158         exposed by Sun Studio 11 cc on Solaris 8.
64159
64160 2007-06-22  Bruno Haible  <bruno@clisp.org>
64161
64162         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64163         backslashes.
64164         * tests/test-echo.sh: New file.
64165
64166 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64167
64168         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64169         simplify `sed_replace_build_aux' scripts, they are portable but
64170         echoing them with `echo' is not.
64171         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64172
64173 2007-06-21  Karl Berry  <karl@gnu.org>
64174
64175         * config/srclist.txt: guess we can't handle the licenses via
64176         srclist at the moment.
64177
64178 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64179
64180         * MODULES.html.sh: Add include_next.
64181         * modules/include_next: New file.
64182
64183 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64186         INCLUDE_NEXT.
64187         (gl_CHECK_NEXT_HEADERS): New macro.
64188         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64189         the obsolescent gl_ABSOLUTE_HEADER.
64190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64191         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64192         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64193         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64194         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64195         * m4/math_h.m4 (gl_MATH_H): Likewise.
64196         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64197         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64198         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64199         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64200         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64201         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64202         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64203         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64204         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64205         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64206         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64207         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64208         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64209         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64210         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64211         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64212         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64213         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64214         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64215         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64216         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64217         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64218         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64219         * lib/float_.h: Likewise.
64220         * lib/inttypes_.h: Likewise.
64221         * lib/math_.h: Likewise.
64222         * lib/search_.h: Likewise.
64223         * lib/signal_.h: Likewise.
64224         * lib/stdint_.h: Likewise.
64225         * lib/stdio_.h: Likewise.
64226         * lib/stdlib_.h: Likewise.
64227         * lib/string_.h: Likewise.
64228         * lib/sys_stat_.h: Likewise.
64229         * lib/sys_time_.h: Likewise.
64230         * lib/time_.h: Likewise.
64231         * lib/unistd_.h: Likewise.
64232         * lib/wchar_.h: Likewise.
64233         * lib/wctype_.h: Likewise.
64234         * lib/dirent_.h: Likewise.
64235         * lib/iconv_.h: Likewise.
64236         * lib/locale_.h: Likewise.
64237         * lib/netinet_in_.h: Likewise.
64238         * lib/sys_select_.h: Likewise.
64239         * lib/sys_socket_.h: Likewise.
64240         * lib/sysexits_.h: Likewise.
64241         * modules/fcntl (Depends-on): Depend on include_next, not
64242         absolute_header.
64243         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64244         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64245         * modules/fchdir: Likewise.
64246         * modules/float: Likewise.
64247         * modules/iconv_open: Likewise.
64248         * modules/inttypes: Likewise.
64249         * modules/locale: Likewise.
64250         * modules/math: Likewise.
64251         * modules/netinet_in: Likewise.
64252         * modules/search: Likewise.
64253         * modules/signal: Likewise.
64254         * modules/stdint: Likewise.
64255         * modules/stdio: Likewise.
64256         * modules/stdlib: Likewise.
64257         * modules/string: Likewise.
64258         * modules/sys_select: Likewise.
64259         * modules/sys_socket: Likewise.
64260         * modules/sys_stat: Likewise.
64261         * modules/sys_time: Likewise.
64262         * modules/sysexits: Likewise.
64263         * modules/time: Likewise.
64264         * modules/unistd: Likewise.
64265         * modules/wchar: Likewise.
64266         * modules/wctype: Likewise.
64267         * modules/sys_stat: Change maintainer to "all".
64268         * modules/unistd: Likewise.
64269
64270 2007-06-20  Karl Berry  <karl@gnu.org>
64271
64272         * config/srclist.txt: track www changes in license files.
64273
64274 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64275
64276         * build-aux/bootstrap: Remove stray dot.
64277         Make sure build_aux settings are honored when linking
64278         gnulib_extra_files.
64279
64280 2007-06-19  Eric Blake  <ebb9@byu.net>
64281
64282         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64283         Allow compilation on cygwin.
64284
64285 2007-06-19  Jim Meyering  <jim@meyering.net>
64286
64287         xreadlink-with-size: Remove module.  No longer used.
64288         Ex-callers now use xreadlink or mreadlink-with-size.
64289         * modules/xreadlink-with-size: Remove module.
64290         * lib/xreadlink-with-size.c: Remove file.
64291         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64292         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64293         just before the function definition *is* accurate.
64294
64295         Eliminate one way canonicalize_filename_mode could exit.
64296         * lib/canonicalize.c (canonicalize_filename_mode):
64297         Use mreadlink_with_size, not xreadlink_with_size.
64298
64299 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64300
64301         Detect porting problems to FreeBSD/arm, which has time_t wider than
64302         long int.  Original problem reported for GNU diff by Xin Li in
64303         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64304         * modules/getdate (Depends-on): Add intprops, verify.
64305         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64306         is an integer type no wider than long int.
64307
64308 2007-06-18  Jim Meyering  <jim@meyering.net>
64309
64310         New module: mreadlink-with-size.
64311         * MODULES.html.sh: Add mreadlink-with-size.
64312         * modules/mreadlink-with-size: New module
64313         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64314         not xreadlink-with-size.
64315         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64316
64317 2007-06-16  Bruno Haible  <bruno@clisp.org>
64318
64319         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64320         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64321         Reported by Gary V. Vaughan <gary@gnu.org>.
64322
64323 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64324
64325         Revamp lchown so that it lives in unistd.h where it belongs.
64326         * lib/lchown.h: Remove.
64327         * lib/dirchownmod.c: Don't include lib/lchown.h.
64328         * lib/fchownat.c: Likewise.
64329         * lib/openat.c: Likewise.
64330         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64331         does not follow symlinks.
64332         (EOPNOTSUPP): Define if not defined.
64333         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64334         is defined to 0.
64335         (lchown): New decl.
64336         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64337         Do not check for lchown decl.
64338         Set REPLACE_LCHOWN.
64339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64340         REPLACE_LCHOWN.
64341         * modules/chown: Make it clear it follows symlinks.
64342         * modules/lchown: Make it clear it doesn't follow symlinks.
64343         (Files): Remove lib/lchown.h
64344         (Depends-on): Add unistd.
64345         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64346         (Include): Include <unistd.h>, not "lchown.h".
64347         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64348         REPLACE_LCHOWN.
64349
64350 2007-06-15  Jim Meyering  <jim@meyering.net>
64351
64352         Change license (GPL to LGPL) of fsusage and dependents.
64353         * modules/fsusage (License): Change to LGPL.
64354         * modules/full-read (License): Likewise.
64355         * modules/full-write (License): Likewise.
64356         * modules/safe-read (License): Likewise.
64357         * modules/safe-write (License): Likewise.
64358
64359 2007-06-14  Ben Pfaff  <blp@gnu.org>
64360
64361         Missing part of allocsa -> malloca transition.
64362         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64363         gl_MALLOCA.
64364
64365 2007-06-12  Bruno Haible  <bruno@clisp.org>
64366
64367         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64368         to ia64, x86_64, i386.
64369         Reported by Eric Blake.
64370
64371 2007-06-12  Bruno Haible  <bruno@clisp.org>
64372
64373         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64374         cross-compiling to x86_64.
64375
64376 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64377
64378         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64379         glitch reported by Ralf Wildenhues in
64380         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64381
64382         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64383         Vin Shelton.
64384
64385 2007-06-11  Bruno Haible  <bruno@clisp.org>
64386
64387         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64388         replacement string.
64389         Reported by Eric Blake.
64390
64391 2007-06-10  Bruno Haible  <bruno@clisp.org>
64392
64393         Prepare vasnprintf code for use with Unicode strings.
64394         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64395         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64396         TYPE_U32_STRING.
64397         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64398         a_u32_string variants.
64399         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64400         * lib/printf-args.c: Don't include config.h and the specification
64401         header if PRINTF_FETCHARGS is already defined.
64402         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64403         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64404         TYPE_U16_STRING, TYPE_U32_STRING.
64405         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64406         u16_directive, u16_directives, u32_directive, u32_directives): New
64407         types.
64408         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64409         New declarations.
64410         * lib/printf-parse.c: Don't include config.h and the specification
64411         header if PRINTF_PARSE is already defined. Eliminate the set of
64412         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64413         them now. Include c-ctype.h.
64414         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64415         directive and CHAR_T_ONLY_ASCII.
64416         * lib/vasnprintf.c: Don't include config.h and the specification header
64417         if VASNPRINTF is already defined.
64418         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64419         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64420         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64421         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64422         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64423         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64424         code accordingly.
64425         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64426         pad_ourselves also in this case, with the 'c' and 's' directives, and
64427         with a different notion of "width".
64428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64429
64430 2007-06-10  Bruno Haible  <bruno@clisp.org>
64431
64432         * modules/unistr/u32-mbsnlen: New file.
64433         * lib/unistr/u32-mbsnlen.c: New file.
64434
64435         * modules/unistr/u16-mbsnlen: New file.
64436         * lib/unistr/u16-mbsnlen.c: New file.
64437
64438         * modules/unistr/u8-mbsnlen: New file.
64439         * lib/unistr/u8-mbsnlen.c: New file.
64440
64441         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64442         declarations.
64443
64444 2007-06-10  Bruno Haible  <bruno@clisp.org>
64445
64446         * lib/string_.h (mbsnlen): New declaration.
64447         * lib/mbsnlen.c: New file.
64448         * m4/mbsnlen.m4: New file.
64449         * modules/mbsnlen: New file.
64450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64451         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64452         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64453
64454 2007-06-10  Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64457
64458 2007-06-10  Bruno Haible  <bruno@clisp.org>
64459
64460         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64461         * lib/mbuiter.h: Likewise.
64462
64463 2007-06-10  Bruno Haible  <bruno@clisp.org>
64464
64465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64466         declaration.
64467
64468 2007-06-10  Karl Berry  <karl@gnu.org>
64469
64470         * config/srclist.txt: remove gettext entries, Bruno prefers
64471         to update individually.
64472
64473 2007-06-10  Bruno Haible  <bruno@clisp.org>
64474
64475         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64476         'maxlen'. Ensure only length + width bytes are allocated, not
64477         length + 1 + width.
64478
64479 2007-06-09  Bruno Haible  <bruno@clisp.org>
64480
64481         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64482         (CHAR_T): Remove macro.
64483         (VASNPRINTF): Update.
64484
64485 2007-06-09  Bruno Haible  <bruno@clisp.org>
64486
64487         * MODULES.html.sh (Unicode string functions): Add the new modules.
64488
64489         * modules/uniconv/u32-conv-to-enc: New file.
64490         * lib/uniconv/u32-conv-to-enc.c: New file.
64491         * modules/uniconv/u32-conv-to-enc-tests: New file.
64492         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64493
64494         * modules/uniconv/u16-conv-to-enc: New file.
64495         * lib/uniconv/u16-conv-to-enc.c: New file.
64496         * lib/uniconv/u-conv-to-enc.h: New file.
64497         * modules/uniconv/u16-conv-to-enc-tests: New file.
64498         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64499
64500         * modules/uniconv/u8-conv-to-enc: New file.
64501         * lib/uniconv/u8-conv-to-enc.c: New file.
64502         * modules/uniconv/u8-conv-to-enc-tests: New file.
64503         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64504
64505         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64506         u32_conv_to_encoding): New declarations.
64507
64508 2007-06-09  Bruno Haible  <bruno@clisp.org>
64509
64510         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64511
64512 2007-06-09  Bruno Haible  <bruno@clisp.org>
64513
64514         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64515         * modules/malloca: Renamed from modules/allocsa, updated.
64516         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64517         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64518         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64519         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64520         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64521         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64522         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64523         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64524         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64525         * modules/c-strcasestr (Depends-on): Update.
64526         * lib/c-strcasestr.c: Update.
64527         * modules/c-strstr (Depends-on): Update.
64528         * lib/c-strstr.c: Update.
64529         * modules/canonicalize-lgpl (Depends-on): Update.
64530         * lib/canonicalize-lgpl.c: Update.
64531         * modules/clean-temp (Depends-on): Update.
64532         * lib/clean-temp.c: Update.
64533         * modules/csharpcomp (Depends-on): Update.
64534         * lib/csharpcomp.c: Update.
64535         * modules/csharpexec (Depends-on): Update.
64536         * lib/csharpexec.c: Update.
64537         * modules/javacomp (Depends-on): Update.
64538         * lib/javacomp.c: Update.
64539         * modules/javaexec (Depends-on): Update.
64540         * lib/javaexec.c: Update.
64541         * modules/mbscasestr (Depends-on): Update.
64542         * lib/mbscasestr.c: Update.
64543         * modules/mbsstr (Depends-on): Update.
64544         * lib/mbsstr.c: Update.
64545         * modules/setenv (Depends-on): Update.
64546         * lib/setenv.c: Update.
64547         * modules/strcasestr (Depends-on): Update.
64548         * lib/strcasestr.c: Update.
64549         * modules/striconveha (Depends-on): Update.
64550         * lib/striconveha.c: Update.
64551         * modules/relocatable-prog-wrapper (Files): Update.
64552         * lib/relocwrapper.c: Update.
64553         * build-aux/install-reloc: Update.
64554         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64555
64556 2007-06-08  Bruno Haible  <bruno@clisp.org>
64557
64558         Port to uClibc.
64559         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64560         * lib/fpurge.c (fpurge): Likewise.
64561         * lib/freading.c (freading): Likewise.
64562         * lib/fseeko.c (rpl_fseeko): Likewise.
64563         * lib/fseterr.c (fseterr): Likewise.
64564         * lib/fwriting.c (fwriting): Likewise.
64565         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64566
64567 2007-06-08  Bruno Haible  <bruno@clisp.org>
64568
64569         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64570         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64571         * modules/gettext (Files): Add m4/intlmacosx.m4.
64572
64573 2007-06-07  Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/localename-tests: New file.
64576         * tests/test-localename.c: New file.
64577
64578         New module 'localename'.
64579         * lib/localename.h: New file.
64580         * lib/localename.c: New file, from GNU gettext.
64581         * m4/localename.m4: New file.
64582         * modules/localename: New file.
64583
64584 2007-06-07  Bruno Haible  <bruno@clisp.org>
64585
64586         Work around the lack of <wchar.h> on some builds of uClibc.
64587         * doc/headers/wchar.texi: Update.
64588         * lib/wchar_.h: Include <wchar.h> only if it exists.
64589         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64590         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64591         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64592         doesn't exist.
64593         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64594         * modules/mbfile (Depends-on): Add wchar.
64595         * modules/mbiter (Depends-on): Likewise.
64596         * modules/mbuiter (Depends-on): Likewise.
64597         Reported by Simon Josefsson.
64598
64599 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         Work around problem reported by Steven M. Schweda in
64602         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64603         Tru64 5.1B with the Compaq compiler environment installed declares
64604         an 'isblank' function but does not define it in the C library.
64605         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64606         * lib/regex_internal.h (isblank): Likewise.
64607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64608         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64609
64610 2007-06-05  Bruno Haible  <bruno@clisp.org>
64611
64612         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64613         ia64.
64614         * modules/printf-safe: New file.
64615         * modules/fprintf-posix (Depends-on): Add printf-safe.
64616         * modules/printf-posix (Depends-on): Likewise.
64617         * modules/snprintf-posix (Depends-on): Likewise.
64618         * modules/sprintf-posix (Depends-on): Likewise.
64619         * modules/vasnprintf-posix (Depends-on): Likewise.
64620         * modules/vasprintf-posix (Depends-on): Likewise.
64621         * modules/vfprintf-posix (Depends-on): Likewise.
64622         * modules/vprintf-posix (Depends-on): Likewise.
64623         * modules/vsnprintf-posix (Depends-on): Likewise.
64624         * modules/vsprintf-posix (Depends-on): Likewise.
64625         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64626         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64627         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64628         "no" on i386, x86_64, ia64.
64629         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
64633         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64634         on i386, x86_64, ia64.
64635         * tests/test-vasnprintf-posix.c: Include float.h.
64636         (LDBL80_WORDS): New macro.
64637         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64638         on i386, x86_64, ia64.
64639         * tests/test-vasprintf-posix.c: Include float.h.
64640         (LDBL80_WORDS): New macro.
64641         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64642         on i386, x86_64, ia64.
64643         * tests/test-snprintf-posix.c: Include float.h.
64644         * tests/test-sprintf-posix.c: Likewise.
64645         * tests/test-vsnprintf-posix.c: Likewise.
64646         * tests/test-vsprintf-posix.c: Likewise.
64647
64648 2007-06-05  Bruno Haible  <bruno@clisp.org>
64649
64650         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64651         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64652         non-IEEE numbers on i386, x86_64, ia64.
64653         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64654         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64655         * tests/test-isnanl.h: Include float.h.
64656         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64657
64658 2007-06-05  Bruno Haible  <bruno@clisp.org>
64659
64660         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64661         also the %a / %A. Handle the %a / %A code before this extra handling.
64662
64663 2007-06-05  Bruno Haible  <bruno@clisp.org>
64664
64665         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64666         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64667
64668 2007-06-05  Bruno Haible  <bruno@clisp.org>
64669
64670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64671         typo in variable name.
64672
64673 2007-06-05  Eric Blake  <ebb9@byu.net>
64674
64675         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64676         Reported by Simon Josefsson.
64677
64678 2007-06-04  Bruno Haible  <bruno@clisp.org>
64679
64680         Avoid test failures on some PowerPC platforms.
64681         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64682         Define differently for PowerPC.
64683         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64684         Reported by Gary V. Vaughan <gary@gnu.org>.
64685
64686 2007-06-02  Bruno Haible  <bruno@clisp.org>
64687
64688         Fix test-stdint failure on FreeBSD/ia64.
64689         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64690         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64691         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64692         * doc/headers/stdint.texi: Update.
64693
64694 2007-06-01  Bruno Haible  <bruno@clisp.org>
64695
64696         * tests/test-binary-io.c (main): Pass a third argument to open().
64697         Reported by Gary V. Vaughan <gary@gnu.org>.
64698
64699 2007-06-01  Bruno Haible  <bruno@clisp.org>
64700
64701         * doc/functions/frexpl.texi: Update for mingw.
64702
64703 2007-06-01  Bruno Haible  <bruno@clisp.org>
64704
64705         * tests/test-lseek.c (main): Disable test of errno for invalid third
64706         argument.
64707         * doc/functions/lseek.texi: Update.
64708         Reported by Gary V. Vaughan <gary@gnu.org>.
64709
64710 2007-05-28  Bruno Haible  <bruno@clisp.org>
64711
64712         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64713
64714 2007-05-31  Eric Blake  <ebb9@byu.net>
64715
64716         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64717         cross compiling.
64718
64719 2007-05-30  Eric Blake  <ebb9@byu.net>
64720         and Bruno Haible  <bruno@clisp.org>
64721
64722         Work around mingw test failures exposed by m4-1.4.9b.
64723         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64724         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64725         moment.
64726
64727 2007-05-30  Bruno Haible  <bruno@clisp.org>
64728
64729         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64730         assuming that they are closed. Needed on HP-UX 11.
64731
64732 2007-05-29  Bruno Haible  <bruno@clisp.org>
64733
64734         Fix a problem with #include_next.
64735         * lib/dirent_.h: Split the double-inclusion guard.
64736         * lib/fcntl_.h: Likewise.
64737         * lib/float_.h: Likewise.
64738         * lib/iconv_.h: Likewise.
64739         * lib/inttypes_.h: Likewise.
64740         * lib/locale_.h: Likewise.
64741         * lib/math_.h: Likewise.
64742         * lib/netinet_in_.h: Likewise.
64743         * lib/search_.h: Likewise.
64744         * lib/signal_.h: Likewise.
64745         * lib/stdint_.h: Likewise.
64746         * lib/stdio_.h: Likewise.
64747         * lib/stdlib_.h: Likewise.
64748         * lib/string_.h: Likewise.
64749         * lib/sys_select_.h: Likewise.
64750         * lib/sys_socket_.h: Likewise.
64751         * lib/sys_stat_.h: Likewise.
64752         * lib/sys_time_.h: Likewise.
64753         * lib/sysexits_.h: Likewise.
64754         * lib/time_.h: Likewise.
64755         * lib/unistd_.h: Likewise.
64756         * lib/wchar_.h: Likewise.
64757         * lib/wctype_.h: Likewise.
64758
64759 2007-05-29  Bruno Haible  <bruno@clisp.org>
64760
64761         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64762         for the moment.
64763
64764 2007-05-29  Bruno Haible  <bruno@clisp.org>
64765
64766         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64767         invocation.
64768         Reported by Eric Blake.
64769
64770 2007-05-29  Bruno Haible  <bruno@clisp.org>
64771
64772         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64773         compiling case.
64774
64775 2007-05-29  Eric Blake  <ebb9@byu.net>
64776             Bruno Haible  <bruno@clisp.org>
64777
64778         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64779         cross compiles.
64780
64781 2007-05-28  Eric Blake  <ebb9@byu.net>
64782
64783         * modules/closein-tests (test_closein_LDADD): Support test on
64784         cygwin with libtool.
64785
64786 2007-05-28  Bruno Haible  <bruno@clisp.org>
64787
64788         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64789         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64790         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64791         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64792         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64793         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64794         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64795         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64796         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64797
64798 2007-05-28  Eric Blake  <ebb9@byu.net>
64799
64800         Unconditionally include <config.h> in unit tests.
64801         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64802         * tests/test-allocsa.c, tests/test-arcfour.c,
64803         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64804         tests/test-array_list.c, tests/test-array_oset.c,
64805         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64806         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64807         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64808         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64809         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64810         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64811         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64812         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64813         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64814         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64815         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64816         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64817         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64818         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64819         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64820         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64821         test-md5.c, test-memmem.c, test-printf-posix.c,
64822         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64823         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64824         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64825         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64826         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64827         test-vasnprintf-posix2.c, test-vasnprintf.c,
64828         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64829         test-vfprintf-posix.c, test-vprintf-posix.c,
64830         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64831         test-xvasprintf.c: Likewise.
64832
64833 2007-05-28  Bruno Haible  <bruno@clisp.org>
64834
64835         * gnulib-tool (func_import): Remember the --with-tests command-line
64836         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64837         Reported by Eric Blake.
64838
64839 2007-05-28  Bruno Haible  <bruno@clisp.org>
64840
64841         * modules/ftell-tests: New file.
64842         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64843         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64844
64845         * lib/ftell.c: New file.
64846         * modules/ftell: New file.
64847         * m4/ftell.m4: New file.
64848         * doc/functions/ftell.texi: Update.
64849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64850         REPLACE_FTELL.
64851         * lib/stdio_.h (rpl_ftell): New declaration.
64852         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64853         REPLACE_FTELL.
64854
64855 2007-05-28  Eric Blake  <ebb9@byu.net>
64856
64857         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64858
64859 2007-05-28  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/fseek-tests: New file.
64862         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64863         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64864
64865         * lib/fseek.c: New file.
64866         * modules/fseek: New file.
64867         * m4/fseek.m4: New file.
64868         * doc/functions/fseek.texi: Update.
64869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64870         REPLACE_FSEEK.
64871         * lib/stdio_.h (rpl_fseek): New declaration.
64872         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64873         REPLACE_FSEEK.
64874
64875 2007-05-28  Bruno Haible  <bruno@clisp.org>
64876
64877         * lib/stdio_.h (fflush): More comments.
64878
64879 2007-05-28  Bruno Haible  <bruno@clisp.org>
64880
64881         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64882         runtime test.
64883
64884 2007-05-28  Eric Blake  <ebb9@byu.net>
64885
64886         Improve lseek module.
64887         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64888         * lib/unistd_.h (lseek): Scale back link warning message.
64889         * tests/test-lseek.c: Beef up test.
64890         * tests/test-lseek.sh: Exercise more facets of lseek.
64891         Reported by Bruno Haible.
64892
64893 2007-05-28  Bruno Haible  <bruno@clisp.org>
64894
64895         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64896         to define.
64897
64898 2007-05-27  Bruno Haible  <bruno@clisp.org>
64899
64900         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64901
64902 2007-05-27  Bruno Haible  <bruno@clisp.org>
64903
64904         * modules/openmp: New file.
64905         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64906         Noah Misch.
64907
64908 2007-05-26  Bruno Haible  <bruno@clisp.org>
64909
64910         * modules/chdir-long (Depends-on): Add fchdir.
64911         * modules/chdir-safer (Depends-on): Likewise.
64912         * modules/fts (Depends-on): Likewise.
64913         * modules/fts-lgpl (Depends-on): Likewise.
64914         * modules/openat (Depends-on): Likewise.
64915         * modules/savewd (Depends-on): Likewise.
64916
64917 2007-05-24  Eric Blake  <ebb9@byu.net>
64918
64919         Fix lseek on mingw.
64920         * modules/lseek: New module.
64921         * m4/lseek.m4: New file.
64922         * lib/lseek.c: New file.
64923         * modules/lseek-tests: New file.
64924         * tests/test-lseek.c: New file.
64925         * tests/test-lseek.sh: New file.
64926         * MODULES.html.sh: Document lseek module.
64927         * modules/fflush (Depends-on): Add lseek, fseeko.
64928         * modules/fseeko (Depends-on): Likewise.
64929         * modules/ftello (Depends-on): Likewise.
64930         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64931         broken.
64932         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64933         broken.
64934         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64935         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64936         * lib/ftello.c (rpl_ftello): Likewise.
64937         * tests/test-fseeko.c (main): Test this.
64938         * tests/test-fseeko.sh: Likewise.
64939         * tests/test-ftello.c (main): Likewise.
64940         * tests/test-ftello.sh: Likewise.
64941         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64942         implies replacing fseek.
64943         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64944         HAVE_FTELLO.
64945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64946         * modules/unistd (Makefile.am): Likewise.
64947         * lib/unistd_.h (lseek): Declare a replacement.
64948         * doc/functions/lseek.texi (lseek): Document this fix.
64949         * doc/functions/fseek.texi (fseek): Likewise.
64950         * doc/functions/ftell.texi (ftell): Likewise.
64951
64952 2007-05-24  Bruno Haible  <bruno@clisp.org>
64953
64954         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64955         in the printed representation of a NaN.
64956         * tests/test-vasprintf-posix.c (test_function): Likewise.
64957         * tests/test-snprintf-posix.h (test_function): Likewise.
64958         * tests/test-sprintf-posix.h (test_function): Likewise.
64959         Reported by Eric Blake.
64960
64961 2007-05-23  Eric Blake  <ebb9@byu.net>
64962
64963         Fix fseeko/ftello on cygwin 1.5.24.
64964         * doc/functions/fseeko.texi (fseeko): Document the fix.
64965         * doc/functions/ftello.texi (ftello): Document the fix.
64966         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64967         * doc/functions/stdout.text (stdout): New file.
64968         * doc/functions/stderr.text (stderr): New file.
64969         * doc/gnulib.texi (Function Substitutes): Use new files.
64970         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64971         prior to 1.7.0.
64972         * tests/test-ftello.c (main): Likewise for ftello.
64973         * tests/test-fseeko.sh: New file.
64974         * tests/test-ftello.sh: New file.
64975         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64976         with seekable stdin.
64977         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64978         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64979         (gl_REPLACE_FSEEKO): New macro.
64980         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64981         * modules/fseeko (Files): Distribute fseeko.c.
64982         * modules/ftello (Files): Distribute ftello.c.
64983         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64984         mode.
64985         * lib/ftello.c (rpl_ftello): New file.
64986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64987         fseeko, ftello.
64988         (gl_STDIN_LARGE_OFFSET): New macro.
64989         * modules/stdio (Makefile.am): Perform the replacement.
64990         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64991
64992 2007-05-23  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64995         GNULIB_POSIXCHECK is defined.
64996
64997 2007-05-21  Bruno Haible  <bruno@clisp.org>
64998
64999         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65000         Check also the output for NaN arguments. When cross-compiling, guess
65001         no on IRIX.
65002         * lib/vasnprintf.c: Update comments.
65003         * tests/test-vasnprintf-posix.c (strisnan): New function.
65004         (test_function): Use it.
65005         * tests/test-vasprintf-posix.c (strisnan): New function.
65006         (test_function): Use it.
65007         * tests/test-snprintf-posix.h (strisnan): New function.
65008         (test_function): Use it.
65009         * tests/test-sprintf-posix.h (strisnan): New function.
65010         (test_function): Use it.
65011         Reported by Eric Blake.
65012
65013 2007-05-20  Bruno Haible  <bruno@clisp.org>
65014
65015         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65016         numbers that fails on BeOS.
65017         * doc/functions/frexpl.texi: Update.
65018
65019 2007-05-20  Jim Meyering  <jim@meyering.net>
65020
65021         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65022         forced upon us by glibc-2.6.
65023
65024 2007-05-20  Bruno Haible  <bruno@clisp.org>
65025
65026         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65027         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65028         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65029         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65030         NEED_PRINTF_INFINITE.
65031         (is_infinitel): New function.
65032         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65034         gl_PREREQ_VASNPRINTF_INFINITE.
65035         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65036         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65037         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65038         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65039         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65040         gl_PREREQ_VASNPRINTF_INFINITE.
65041         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65042         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65044         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65045         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65047         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65048         * doc/functions/fprintf.texi: Update.
65049         * doc/functions/printf.texi: Update.
65050         * doc/functions/snprintf.texi: Update.
65051         * doc/functions/sprintf.texi: Update.
65052         * doc/functions/vfprintf.texi: Update.
65053         * doc/functions/vprintf.texi: Update.
65054         * doc/functions/vsnprintf.texi: Update.
65055         * doc/functions/vsprintf.texi: Update.
65056
65057 2007-05-20  Bruno Haible  <bruno@clisp.org>
65058
65059         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65060         was not found in libc.
65061         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65062
65063 2007-05-20  Bruno Haible  <bruno@clisp.org>
65064
65065         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65066         printed as "-nan" instead of "nan".
65067         * tests/test-vasprintf-posix.c (test_function): Likewise.
65068         * tests/test-snprintf-posix.h (test_function): Likewise.
65069         * tests/test-sprintf-posix.h (test_function): Likewise.
65070         Needed for HP-UX 11.
65071
65072 2007-05-20  Jim Meyering  <jim@meyering.net>
65073
65074         Fix buggy test for the fchownat-deref bug.
65075         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65076         symlink required for the run-test.  Without it, this test would
65077         always declare that fchownat doesn't work, and client code would
65078         unnecessarily use the replacement function with fixed libc.
65079         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65080         Reported by Greg Schafer.
65081
65082 2007-05-19  Bruno Haible  <bruno@clisp.org>
65083
65084         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65085         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65086         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65087         Needed for IRIX 6.5 and Solaris 2.5.1.
65088
65089 2007-05-19  Bruno Haible  <bruno@clisp.org>
65090
65091         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65092         (test_function): Skip tests involving -0.0 on platforms where
65093         -0.0 = 0.0.
65094         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65095         (test_function): Skip tests involving -0.0 on platforms where
65096         -0.0 = 0.0.
65097         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65098         (test_function): Skip tests involving -0.0 on platforms where
65099         -0.0 = 0.0.
65100         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65101         (test_function): Skip tests involving -0.0 on platforms where
65102         -0.0 = 0.0.
65103         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65104         tests.
65105         * tests/test-printf-posix.h (test_function): Likewise.
65106         * tests/test-printf-posix.output: Remove all -0.0 related results.
65107         Needed for IRIX 6.5.
65108
65109 2007-05-19  Bruno Haible  <bruno@clisp.org>
65110
65111         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65112         printed as "nan0x7fffffff" instead of "nan".
65113         * tests/test-vasprintf-posix.c (test_function): Likewise.
65114         * tests/test-snprintf-posix.h (test_function): Likewise.
65115         * tests/test-sprintf-posix.h (test_function): Likewise.
65116         * tests/test-fprintf-posix.h (NaN): Remove macro.
65117         (test_function): Remove all NaN related tests.
65118         * tests/test-printf-posix.h (NaN): Remove macro.
65119         (test_function): Remove all NaN related tests.
65120         * tests/test-printf-posix.output: Remove all NaN related results.
65121         Needed for IRIX 6.5.
65122
65123 2007-05-19  Bruno Haible  <bruno@clisp.org>
65124
65125         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65127
65128 2007-05-19  Bruno Haible  <bruno@clisp.org>
65129
65130         * lib/float_.h: New file.
65131         * m4/float_h.m4: New file.
65132         * modules/float: New file.
65133         * modules/isnanl (Dependencies): Add float.
65134         * modules/isnanl-nolibm (Dependencies): Likewise.
65135         * modules/mathl (Dependencies): Likewise.
65136         * modules/printf-frexpl (Dependencies): Likewise.
65137         * modules/signbit (Dependencies): Likewise.
65138         * modules/vasnprintf (Dependencies): Likewise.
65139         * doc/headers/float.texi: Update.
65140
65141 2007-05-19  Jim Meyering  <jim@meyering.net>
65142
65143         * lib/utimens.c (gl_futimens): Rename from futimens,
65144         now that glibc-2.6 declares futimens.
65145         * lib/utimens.h: Likewise.
65146
65147 2007-05-19  Bruno Haible  <bruno@clisp.org>
65148
65149         Avoid test failures on mingw.
65150         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65151         * tests/test-printf-posix.sh: Likewise.
65152         * tests/test-vfprintf-posix.sh: Likewise.
65153         * tests/test-vprintf-posix.sh: Likewise.
65154
65155 2007-05-19  Bruno Haible  <bruno@clisp.org>
65156
65157         Fix *printf result for NaN, Inf, -0.0 on mingw.
65158         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65159         * lib/vasnprintf.c: Include math.h and isnan.h.
65160         (is_infinite_or_zero): New function.
65161         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65162         values in the %f, %F, %e, %E, %g, %G directives.
65163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65165         gl_PRINTF_INFINITE and test its result. Invoke
65166         gl_PREREQ_VASNPRINTF_INFINITE.
65167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65168         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65171         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65174         * doc/functions/fprintf.texi: Update.
65175         * doc/functions/printf.texi: Update.
65176         * doc/functions/snprintf.texi: Update.
65177         * doc/functions/sprintf.texi: Update.
65178         * doc/functions/vfprintf.texi: Update.
65179         * doc/functions/vprintf.texi: Update.
65180         * doc/functions/vsnprintf.texi: Update.
65181         * doc/functions/vsprintf.texi: Update.
65182
65183 2007-05-19  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65186         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65187         Instead of multiplying with 10^k, set extra_zeroes to k.
65188         (scale10_round_long_double): Remove function.
65189
65190 2007-05-18  Bruno Haible  <bruno@clisp.org>
65191
65192         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65193         introduced on 2007-05-06.
65194
65195 2007-05-18  Bruno Haible  <bruno@clisp.org>
65196
65197         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65198         %g directives.
65199         * tests/test-vasprintf-posix.c (test_function): Likewise.
65200         * tests/test-snprintf-posix.h (test_function): Likewise.
65201         * tests/test-sprintf-posix.h (test_function): Likewise.
65202
65203 2007-05-18  Bruno Haible  <bruno@clisp.org>
65204
65205         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65206         (strmatch): New function.
65207         (test_function): Test the %f directive on numbers of various exponents.
65208         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65209         (strmatch): New function.
65210         (test_function): Test the %f directive on numbers of various exponents.
65211         * tests/test-snprintf-posix.h (strmatch): New function.
65212         (test_function): Test the %f directive on numbers of various exponents.
65213         * tests/test-sprintf-posix.h (strmatch): New function.
65214         (test_function): Test the %f directive on numbers of various exponents.
65215         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65216         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65217         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65218         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65219
65220 2007-05-18  Bruno Haible  <bruno@clisp.org>
65221
65222         Add support for 'long double' number output.
65223         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65224         * lib/vasnprintf.c: Include math.h and float+.h.
65225         (mp_limb_t): New type.
65226         (GMP_LIMB_BITS): New macro.
65227         (mp_twolimb_t): New type.
65228         (GMP_TWOLIMB_BITS): New macro.
65229         (mpn_t): New type.
65230         (multiply, divide, convert_to_decimal, decode_long_double,
65231         scale10_round_long_double, scale10_round_decimal_long_double,
65232         floorlog10l): New functions.
65233         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65234         for the %f, %F, %e, %E, %g, %G directives.
65235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65237         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65238         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65246         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65247         * modules/snprintf-posix (Depends-on): Likewise.
65248         * modules/sprintf-posix (Depends-on): Likewise.
65249         * modules/vasnprintf-posix (Depends-on): Likewise.
65250         * modules/vasprintf-posix (Depends-on): Likewise.
65251         * modules/vfprintf-posix (Depends-on): Likewise.
65252         * modules/vsnprintf-posix (Depends-on): Likewise.
65253         * modules/vsprintf-posix (Depends-on): Likewise.
65254         * modules/vasnprintf (Files): Add lib/float+.h.
65255         * doc/functions/fprintf.texi: Update.
65256         * doc/functions/printf.texi: Update.
65257         * doc/functions/snprintf.texi: Update.
65258         * doc/functions/sprintf.texi: Update.
65259         * doc/functions/vfprintf.texi: Update.
65260         * doc/functions/vprintf.texi: Update.
65261         * doc/functions/vsnprintf.texi: Update.
65262         * doc/functions/vsprintf.texi: Update.
65263
65264 2007-05-18  Bruno Haible  <bruno@clisp.org>
65265
65266         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65267
65268 2007-05-18  Bruno Haible  <bruno@clisp.org>
65269
65270         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65271         for printing 64-bit integers. Needed for mingw.
65272
65273 2007-05-18  Bruno Haible  <bruno@clisp.org>
65274
65275         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65276         gl_FUNC_FREXPL_WORKS.
65277         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65278
65279 2007-05-18  Bruno Haible  <bruno@clisp.org>
65280
65281         * modules/frexpl-nolibm-tests: New file.
65282
65283         * modules/frexpl-nolibm: New file.
65284         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65285
65286 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65287
65288         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65289         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65290         GCC 4.2, which otherwise issues a lot of warnings.
65291         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65292         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65293         Likewise.
65294         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65295         * modules/iconv_open (iconv.h): Likewise.
65296         * modules/locale (locale.h): Likewise.
65297         * modules/netinet_in (netinet/in.h): Likewise.
65298         * modules/sys_select (sys_select.h): Likewise.
65299         * modules/sys_socket (sys/socket.h): Likewise.
65300         * modules/sys_stat (sys/stat.h): Likewise.
65301         * modules/sysexits (sysexits.h): Likewise.
65302         * modules/unistd (unistd.h): Likewise.
65303
65304 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65305
65306         * modules/closein-tests (Makefile.am): Distribute
65307         `test-closein.sh'.
65308
65309 2007-05-17  Bruno Haible  <bruno@clisp.org>
65310
65311         * tests/test-printf-posix.output: Renamed from
65312         tests/test-fprintf-posix.out.
65313         * modules/fprintf-posix-tests: Update.
65314         * modules/printf-posix-tests: Update.
65315         * modules/vfprintf-posix-tests: Update.
65316         * modules/vprintf-posix-tests: Update.
65317         * tests/test-fprintf-posix.sh: Update.
65318         * tests/test-printf-posix.sh: Update.
65319         * tests/test-vfprintf-posix.sh: Update.
65320         * tests/test-vprintf-posix.sh: Update.
65321         Reported by Ralf Wildenhues.
65322
65323 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65326         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65327         GCC 4.2, which otherwise issues a lot of warnings.
65328         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65329         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65330         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65331         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65332         it should no longer be needed.
65333         * lib/string_.h: Likewise.
65334         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65335         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65336         * modules/inttypes (inttypes.h): Likewise.
65337         * modules/math (math.h): Likewise.
65338         * modules/search (search.h): Likewise.
65339         * modules/signal (signal.h): Likewise.
65340         * modules/stdint (stdint.h): Likewise.
65341         * modules/stdio (stdio.h): Likewise.
65342         * modules/stdlib (stdlib.h): Likewise.
65343         * modules/string (string.h): Likewise.
65344         * modules/sys_time (sys/time.h): Likewise.
65345         * modules/time (time.h): Likewise.
65346         * modules/wchar (wchar.h): Likewise.
65347         * modules/wctype (wtype.h): Likewise.
65348
65349 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65350
65351         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65352
65353 2007-05-13  Bruno Haible  <bruno@clisp.org>
65354
65355         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65356         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65357         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65358         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65359         (gl_PREREQ_STRTOK_R): Don't require it here.
65360
65361 2007-05-13  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65364         when used in C++ mode.
65365
65366 2007-05-12  Bruno Haible  <bruno@clisp.org>
65367
65368         * lib/linebuffer.h: Tweak doc.
65369         * lib/linebuffer.c: Likewise.
65370
65371 2007-05-12  James Youngman  <jay@gnu.org>
65372
65373         * lib/linebuffer.c (readlinebuffer_delim): New function,
65374         like readlinebuffer, but use a caller-specified delimiter.
65375         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65376         as the delimiter.
65377         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65378
65379 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65380
65381         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65382         * modules/openat (Files): Remove openat-die.c.
65383         (Depends-on): Add openat-die.
65384         * modules/openat-die: New module.
65385
65386 2007-05-06  Bruno Haible  <bruno@clisp.org>
65387
65388         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65389         Update with info about Cygwin.
65390         * doc/functions/fprintf.texi: Update.
65391         * doc/functions/printf.texi: Update.
65392         * doc/functions/snprintf.texi: Update.
65393         * doc/functions/sprintf.texi: Update.
65394         * doc/functions/vfprintf.texi: Update.
65395         * doc/functions/vprintf.texi: Update.
65396         * doc/functions/vsnprintf.texi: Update.
65397         * doc/functions/vsprintf.texi: Update.
65398         Reported by Eric Blake.
65399
65400 2007-05-06  Bruno Haible  <bruno@clisp.org>
65401
65402         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65403         padding ourselves for the floating-point directives.
65404         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65407         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65408         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65409         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65410         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65411         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65413         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65415         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65416         * tests/test-snprintf-posix.h (test_function): Also check the width
65417         and some flags in the %f directive.
65418         * tests/test-sprintf-posix.h (test_function): Likewise.
65419         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65420         * tests/test-vasprintf-posix.c (test_function): Likewise.
65421         * doc/functions/fprintf.texi: Update.
65422         * doc/functions/printf.texi: Update.
65423         * doc/functions/snprintf.texi: Update.
65424         * doc/functions/sprintf.texi: Update.
65425         * doc/functions/vfprintf.texi: Update.
65426         * doc/functions/vprintf.texi: Update.
65427         * doc/functions/vsnprintf.texi: Update.
65428         * doc/functions/vsprintf.texi: Update.
65429
65430 2007-05-06  Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65433         pass the ' flag character to sprintf or snprintf.
65434         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65436         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65437         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65438         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65439         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65441         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65442         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65443         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65445         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65446         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65447         flag.
65448         * tests/test-sprintf-posix.h (test_function): Likewise.
65449         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65450         * tests/test-vasprintf-posix.c (test_function): Likewise.
65451         * doc/functions/fprintf.texi: Update.
65452         * doc/functions/printf.texi: Update.
65453         * doc/functions/snprintf.texi: Update.
65454         * doc/functions/sprintf.texi: Update.
65455         * doc/functions/vfprintf.texi: Update.
65456         * doc/functions/vprintf.texi: Update.
65457         * doc/functions/vsnprintf.texi: Update.
65458         * doc/functions/vsprintf.texi: Update.
65459
65460 2007-05-01  Bruno Haible  <bruno@clisp.org>
65461
65462         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65463
65464 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65467         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65468
65469 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65472         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65474
65475 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65476
65477         * lib/argp-help.c (struct hol_entry): New member `ord'.
65478         (HOL_ENTRY_PTRCMP): Use ord for comparison
65479         (hol_sort): Initialize ord.
65480
65481 2007-05-01  Bruno Haible  <bruno@clisp.org>
65482
65483         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65484         Reported by Eric Blake.
65485         * doc/gnulib.texi (Function Substitutes): Update.
65486
65487 2007-05-01  Bruno Haible  <bruno@clisp.org>
65488
65489         * doc/functions.texi: Remove file, now redundant through
65490         doc/functions/*.texi.
65491
65492 2007-05-01  Bruno Haible  <bruno@clisp.org>
65493
65494         * modules/argp (Depends-on): Add sleep.
65495
65496 2007-05-01  Bruno Haible  <bruno@clisp.org>
65497
65498         * modules/sleep-tests: New file.
65499         * tests/test-sleep.c: New file.
65500
65501         * modules/sleep: New file.
65502         * lib/sleep.c: New file.
65503         * m4/sleep.m4: New file.
65504         * lib/unistd_.h (sleep): New declaration.
65505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65506         HAVE_SLEEP.
65507         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65508         * doc/functions/sleep.texi: Document the sleep module.
65509
65510 2007-05-01  Bruno Haible  <bruno@clisp.org>
65511
65512         * lib/sigprocmask.h: Remove file.
65513         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65514         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65515         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65516         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65517         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65518         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65519         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65520         HAVE_SIGSET_T as a shell variable.
65521         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65522         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65523         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65524         (Depends-on): Add signal. Remove verify.
65525         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65526         (Include): Mention <signal.h> instead of sigprocmask.h.
65527         * NEWS: Mention the change.
65528         * lib/fatal-signal.c: Don't include sigprocmask.h.
65529
65530 2007-05-01  Bruno Haible  <bruno@clisp.org>
65531
65532         * modules/signal: New file.
65533         * lib/signal_.h: New file.
65534         * m4/signal_h.m4: New file.
65535
65536 2007-05-01  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65539         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65540         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65541         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65542
65543 2007-05-01  Bruno Haible  <bruno@clisp.org>
65544
65545         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65546         configure time.
65547         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65548         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65549         * modules/sys_stat (Makefile.am): Substitute their values into
65550         sys/stat.h.
65551
65552 2007-05-01  Bruno Haible  <bruno@clisp.org>
65553
65554         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65555         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65556         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65557
65558 2007-05-01  Bruno Haible  <bruno@clisp.org>
65559
65560         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65561         'assert' module here.
65562
65563 2007-05-01  Bruno Haible  <bruno@clisp.org>
65564
65565         * doc/functions/*.texi: New files.
65566         * doc/functions/google-ranking.txt: New file.
65567         * doc/gnulib.texi (Function Substitutes): New chapter.
65568         (ctime, inet_ntoa): Remove sections.
65569         * doc/ctime.texi: Remove file.
65570         * doc/inet_ntoa.texi: Remove file.
65571         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65572         dependencies.
65573         (%.info): New rule, specifying a --reference-limit.
65574
65575 2007-05-01  Bruno Haible  <bruno@clisp.org>
65576
65577         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65578
65579 2007-05-01  Bruno Haible  <bruno@clisp.org>
65580
65581         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65582         the portability of 'mkdir' to mingw systems.
65583
65584 2007-05-01  Bruno Haible  <bruno@clisp.org>
65585
65586         * doc/headers/google-ranking.txt: New file.
65587
65588 2007-04-30  Eric Blake  <ebb9@byu.net>
65589
65590         Prefer fseeko to fseek.
65591         * modules/getpass (Depends-on): Add fseeko.
65592         * lib/getpass.c (getpass): Use fseeko, not fseek.
65593
65594 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65595
65596         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65597         assumes the sorting is stable, while most qsort implementations
65598         are not.  Use argument addresses to ensure they never compare as
65599         equal.
65600
65601         * tests/test-argp-2.sh (usage-indent test): Fix output
65602         (func_compare): Restore diff options
65603         * tests/test-argp.c: Restore #include "progname.h"
65604
65605 2007-04-29  Bruno Haible  <bruno@clisp.org>
65606
65607         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65608         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65609         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65610         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65611         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65612         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65613         (TESTS, check_PROGRAMS): Add test-snprintf.
65614         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65615         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65616         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65617         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65618         assertions that fail on HP-UX, OSF/1, or IRIX.
65619         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65620
65621 2007-04-29  Bruno Haible  <bruno@clisp.org>
65622
65623         * MODULES.html.sh (posix_functions): Remove 'contents'.
65624
65625 2007-04-29  Karl Berry  <karl@gnu.org>
65626
65627         * config/srclist.txt (gendocs_template_min): new entry.
65628
65629 2007-04-29  Bruno Haible  <bruno@clisp.org>
65630
65631         Work around fpurge bug on BSD systems.
65632         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65633         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65634         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65635         fpurge to rpl_fpurge if the system already has this function.
65636         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65637         the case where the system already has this function. Correct invariants
65638         on BSD systems.
65639         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65640         BSD systems.
65641
65642 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65643
65644         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65645         proposed by Sven Verdoolaege.
65646
65647         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65648         options.
65649         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65650         (usage and help tests): Update
65651
65652 2007-04-29  Bruno Haible  <bruno@clisp.org>
65653
65654         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65655         Print more information in case of failure. Disable a test on BeOS.
65656
65657 2007-04-29  Bruno Haible  <bruno@clisp.org>
65658
65659         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65660         This helps debugging on systems on which no gdb is available.
65661
65662 2007-04-29  Bruno Haible  <bruno@clisp.org>
65663
65664         * lib/freading.h: Improve comments.
65665         * lib/fwriting.h: Likewise.
65666         * tests/test-freading.c (main): Don't check freading immediately after
65667         repositioning. Needed for glibc.
65668
65669 2007-04-29  Bruno Haible  <bruno@clisp.org>
65670
65671         * lib/freading.c (freading): Trivial simplification.
65672
65673 2007-04-28  Bruno Haible  <bruno@clisp.org>
65674
65675         * tests/test-fwriting.c (main): Also test the interaction between
65676         fflush and fwriting.
65677         * modules/fwriting-tests (Depends-on): Add fflush.
65678
65679         * tests/test-freading.c (main): Also test the interaction between
65680         fflush and freading.
65681         * modules/freading-tests (Depends-on): Add fflush.
65682
65683 2007-04-28  Bruno Haible  <bruno@clisp.org>
65684
65685         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65686         fseeko and ftello.
65687         Suggested by Eric Blake.
65688
65689 2007-04-28  Jim Meyering  <jim@meyering.net>
65690
65691         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65692         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65693         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65694
65695 2007-04-27  Eric Blake  <ebb9@byu.net>
65696
65697         * doc/headers/assert.texi (assert.h): Document assert module use.
65698
65699 2007-04-27  Bruno Haible  <bruno@clisp.org>
65700
65701         * doc/headers/*.texi: New files.
65702         * doc/gnulib.texi (Header File Substitutes): New chapter.
65703         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65704         dependencies.
65705         (standards.info ,standards.html, standards.dvi): Update dependencies.
65706         (mostlyclean, clean): New targets.
65707
65708 2007-04-27  Bruno Haible  <bruno@clisp.org>
65709
65710         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65711         * modules/sysexits (Files, Makefile.am): Update.
65712
65713         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65714         * modules/sys_socket (Files, Makefile.am): Update.
65715
65716         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65717         * modules/sys_stat (Files, Makefile.am): Update.
65718
65719 2007-04-27  Eric Blake  <ebb9@byu.net>
65720
65721         * lib/freading.h: Improve comments.
65722         * lib/fwriting.h: Likewise.
65723         * lib/fflush.c: Likewise.
65724
65725         Fix closein for mingw.
65726         * modules/closein-tests: Add tests for closein.
65727         * tests/test-closein.c: New file.
65728         * tests/test-closein.sh: Likewise.
65729         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65730         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65731
65732 2007-04-27  Bruno Haible  <bruno@clisp.org>
65733
65734         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65735         version is < 6.
65736         * lib/math_.h [__DECC]: Likewise.
65737         * lib/stdio_.h [__DECC]: Likewise.
65738         * lib/stdlib_.h [__DECC]: Likewise.
65739         * lib/string_.h [__DECC]: Likewise.
65740         * lib/time_.h [__DECC]: Likewise.
65741         * lib/wchar_.h [__DECC]: Likewise.
65742         * lib/wctype_.h [__DECC]: Likewise.
65743
65744 2007-04-27  Bruno Haible  <bruno@clisp.org>
65745
65746         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65747
65748 2007-04-27  Bruno Haible  <bruno@clisp.org>
65749
65750         * lib/fflush.c: Add comments.
65751         * modules/fpurge-tests (Depends-on): Add fflush.
65752         * modules/freadable-tests (Depends-on): Likewise.
65753         * modules/fwritable-tests (Depends-on): Likewise.
65754
65755 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65756
65757         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65758         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65759         Report by Bruno Haible <bruno@clisp.org>.
65760
65761 2007-04-26  Eric Blake  <ebb9@byu.net>
65762
65763         Fix fflush on mingw.
65764         * modules/fflush (Depends-on): Add freading.
65765         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65766         but unread data.
65767
65768 2007-04-26  Eric Blake  <ebb9@byu.net>
65769         and Bruno Haible  <bruno@clisp.org>
65770
65771         Implement freading and fwriting.
65772         * lib/freading.c: New file.
65773         * lib/freading.h: Likewise.
65774         * m4/freading.m4: Likewise.
65775         * modules/freading: Likewise.
65776         * modules/freading-tests: Likewise.
65777         * tests/test-freading.c: Likewise.
65778         * lib/fwriting.c: New file.
65779         * lib/fwriting.h: Likewise.
65780         * m4/fwriting.m4: Likewise.
65781         * modules/fwriting: Likewise.
65782         * modules/fwriting-tests: Likewise.
65783         * tests/test-fwriting.c: Likewise.
65784         * MODULES.html.sh (File stream based Input/Output): Mention them.
65785
65786 2007-04-26  Bruno Haible  <bruno@clisp.org>
65787
65788         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65789         'long' when we assume it.
65790         Suggested by Eric Blake.
65791
65792 2007-04-26  Bruno Haible  <bruno@clisp.org>
65793
65794         Ensure fseeko, ftello are declared on glibc systems.
65795         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65796         * modules/fseeko (configure.ac-early): Likewise.
65797         * modules/ftello (configure.ac-early): Likewise.
65798         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65799         AC_FUNC_FSEEKO for this.
65800         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65801         (gl_CHECK_FSEEKO): Remove macro.
65802
65803 2007-04-26  Bruno Haible  <bruno@clisp.org>
65804
65805         * tests/test-fflush.c (main): Also check the ftell result after
65806         fflush and fseek/fseeko.
65807         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65808         file descriptor position cache in the stream.
65809         * lib/fseeko.c (rpl_fseeko): Likewise.
65810
65811 2007-04-26  Bruno Haible  <bruno@clisp.org>
65812
65813         * modules/fflush-tests (Depends-on): Add fseeko.
65814
65815 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65816             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65817
65818         * lib/argz_.h: ensure error_t definition is obtained in same
65819         mechanism system argz.h would have.
65820         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65821         argz facilities are known bad.  Err on the side of caution if
65822         cross-compiling.
65823
65824 2007-04-25  Eric Blake  <ebb9@byu.net>
65825
65826         * lib/fpurge.c (includes): Use stdlib.h for free.
65827         * tests/test-fflush.c (main): Also test fflush-fseeko.
65828
65829 2007-04-25  Bruno Haible  <bruno@clisp.org>
65830
65831         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65832         * lib/fseeko.c: New file.
65833         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65834         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65835         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65836         gl_FUNC_FSEEKO.
65837         (gl_FUNC_FSEEKO): Invoke it.
65838         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65839         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65840         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65841
65842 2007-04-25  Bruno Haible  <bruno@clisp.org>
65843
65844         * modules/fflush (Depends-on): Add ftello.
65845
65846 2007-04-25  Bruno Haible  <bruno@clisp.org>
65847
65848         * modules/ftello-tests: New file.
65849         * tests/test-ftello.c: New file.
65850
65851         * modules/ftello: New file.
65852         * m4/ftello.m4: New file.
65853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65854         HAVE_FTELLO.
65855         * lib/stdio_.h (ftello): New declaration.
65856         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65857         HAVE_FTELLO.
65858
65859 2007-04-25  Bruno Haible  <bruno@clisp.org>
65860
65861         * modules/fseeko-tests: New file.
65862         * tests/test-fseeko.c: New file.
65863
65864         * modules/fseeko: New file.
65865         * m4/fseeko.m4: New file.
65866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65867         HAVE_FSEEKO.
65868         * lib/stdio_.h (fseeko): New declaration.
65869         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65870         HAVE_FSEEKO.
65871
65872 2007-04-25  Bruno Haible  <bruno@clisp.org>
65873
65874         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65875
65876 2007-04-25  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65879         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65880         * tests/test-unistd.c: Likewise.
65881         * tests/test-fcntl.c: Likewise.
65882
65883 2007-04-23  Eric Blake  <ebb9@byu.net>
65884
65885         * lib/fflush.c: Fix missing include.
65886         Reported by Bruno Haible.
65887
65888 2007-04-23  Bruno Haible  <bruno@clisp.org>
65889
65890         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65891         Reported by Eric Blake.
65892
65893 2007-04-23  Bruno Haible  <bruno@clisp.org>
65894
65895         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65896
65897 2007-04-23  Bruno Haible  <bruno@clisp.org>
65898
65899         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65900
65901 2007-04-23  Bruno Haible  <bruno@clisp.org>
65902
65903         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65904         Needed on HP-UX 11.
65905
65906 2007-04-16  Eric Blake  <ebb9@byu.net>
65907
65908         Make fflush rely on fpurge.
65909         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65910         open coding all variants.
65911         * modules/fflush (Depends-on): Add fpurge and unistd.
65912         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65913         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65914
65915         Fix --with-tests compilation on cygwin.
65916         * modules/argmatch-tests (Makefile.am): List gnulib library first
65917         in LDADD.
65918         * modules/argp-tests (Makefile.am): Likewise.
65919         * modules/array-list-tests (Makefile.am): Likewise.
65920         * modules/array-oset-tests (Makefile.am): Likewise.
65921         * modules/avltree-list-tests (Makefile.am): Likewise.
65922         * modules/avltree-oset-tests (Makefile.am): Likewise.
65923         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65924         * modules/carray-list-tests (Makefile.am): Likewise.
65925         * modules/dirname-tests (Makefile.am): Likewise.
65926         * modules/frexp-tests (Makefile.am): Likewise.
65927         * modules/isnanl-tests (Makefile.am): Likewise.
65928         * modules/linked-list-tests (Makefile.am): Likewise.
65929         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65930         * modules/lock-tests (Makefile.am): Likewise.
65931         * modules/rbtree-list-tests (Makefile.am): Likewise.
65932         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65933         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65934         * modules/tls-tests (Makefile.am): Likewise.
65935         * modules/tsearch-tests (Makefile.am): Likewise.
65936         * modules/xvasprintf-tests (Makefile.am): Likewise.
65937
65938         Fix fpurge for cygwin.
65939         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65940         value.
65941         * modules/fpurge-tests (Depends-on): Clean up trash.
65942
65943 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65944
65945         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65946
65947         * m4/autobuild.m4: Re-indent.
65948
65949 2007-04-13  Bruno Haible  <bruno@clisp.org>
65950
65951         * modules/fpurge-tests: New file.
65952         * tests/test-fpurge.c: New file.
65953
65954         * modules/fpurge: New file.
65955         * lib/fpurge.h: New file.
65956         * lib/fpurge.c: New file.
65957         * m4/fpurge.m4: New file.
65958
65959 2007-04-13  Bruno Haible  <bruno@clisp.org>
65960
65961         * modules/fbufmode-tests: New file.
65962         * tests/test-fbufmode.c: New file.
65963
65964         * modules/fbufmode: New file.
65965         * lib/fbufmode.h: New file.
65966         * lib/fbufmode.c: New file.
65967         * m4/fbufmode.m4: New file.
65968
65969 2007-04-13  Bruno Haible  <bruno@clisp.org>
65970
65971         * modules/fwritable-tests: New file.
65972         * tests/test-fwritable.c: New file.
65973
65974         * modules/fwritable: New file.
65975         * lib/fwritable.h: New file.
65976         * lib/fwritable.c: New file.
65977         * m4/fwritable.m4: New file.
65978
65979 2007-04-13  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/freadable-tests: New file.
65982         * tests/test-freadable.c: New file.
65983
65984         * modules/freadable: New file.
65985         * lib/freadable.h: New file.
65986         * lib/freadable.c: New file.
65987         * m4/freadable.m4: New file.
65988
65989 2007-04-13  Bruno Haible  <bruno@clisp.org>
65990
65991         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65992         MOSTLYCLEANFILES.
65993
65994 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65995
65996         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65997         gzip bootstrap.conf to avoid dragging in i18n machinery.
65998         (gnulib_tool_option): Use it.
65999
66000 2007-04-13  Bruno Haible  <bruno@clisp.org>
66001
66002         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66003         %F directives.
66004         * tests/test-vasprintf-posix.c (test_function): Likewise.
66005         * tests/test-snprintf-posix.h (test_function): Likewise.
66006         * tests/test-sprintf-posix.h (test_function): Likewise.
66007         * tests/test-fprintf-posix.h (test_function): Likewise.
66008         * tests/test-printf-posix.h (test_function): Likewise.
66009         * tests/test-fprintf-posix.out: Likewise.
66010
66011 2007-04-13  Bruno Haible  <bruno@clisp.org>
66012
66013         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66014         * modules/tls-tests (configure.ac): Likewise.
66015         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66016
66017 2007-04-13  Bruno Haible  <bruno@clisp.org>
66018
66019         * lib/tls.c (glthread_tls_get): Fix return type.
66020         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66021
66022 2007-04-12  Eric Blake  <ebb9@byu.net>
66023
66024         * modules/gettime (Depends-on): Remove gettime.
66025         Reported by Dmitry V. Levin.
66026
66027 2007-04-12  Bruno Haible  <bruno@clisp.org>
66028
66029         * modules/fflush (Include): Mention <stdio.h>.
66030         * modules/strtoimax (Include): Mention <inttypes.h>.
66031         * modules/strtoumax (Include): Likewise.
66032
66033 2007-04-12  Eric Blake  <ebb9@byu.net>
66034
66035         * .cvsignore: New file.
66036         * .gitignore: Likewise.
66037
66038 2007-04-12  Bruno Haible  <bruno@clisp.org>
66039
66040         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66041         not before, since $(LDADD) often contains libgnu.a.
66042         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66043         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66044         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66045         Needed on Cygwin.
66046
66047 2007-04-12  Eric Blake  <ebb9@byu.net>
66048
66049         Work around glibc's failure to flush stdin on fclose.
66050         * lib/closein.c (close_stdin): Flush stdin before closing.
66051
66052         Work around glibc's failure to reset seekable stdin on exit.
66053         * modules/closein: New module.
66054         * lib/closein.c: New file.
66055         * lib/closein.h: Likewise.
66056         * m4/closein.m4: Likewise.
66057         * MODULES.html.sh (File stream based Input/Output): Document it.
66058
66059 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66060
66061         * gnulib-tool: Rename generated 'autobuild' script to
66062         'do-autobuild' in --create-megatestdir output.
66063
66064         * doc/gnulib.texi (Build robot for gnulib): Fix.
66065
66066 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66067
66068         * modules/sysexits (Depends-on): Add absolute-header.
66069
66070 2007-04-12  Eric Blake  <ebb9@byu.net>
66071
66072         No need to preserve errno on success.
66073         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66074         Reported by Bruno Haible.
66075
66076 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66077
66078         * MODULES.html.sh (Support for maintaining and releasing
66079         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66080
66081 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66082
66083         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66084
66085 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66086
66087         * modules/autobuild: New module.
66088
66089         * m4/autobuild.m4: New file.
66090
66091 2007-04-11  Bruno Haible  <bruno@clisp.org>
66092
66093         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66094         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66098         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66099         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66101         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66102         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66104         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66105         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66107         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66108         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66110         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66111         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66112         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66113         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66114         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66116         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66117         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66118         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66119         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66120         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66121         Reported by Eric Blake.
66122
66123 2007-04-11  Bruno Haible  <bruno@clisp.org>
66124
66125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66126
66127 2007-04-10  Bruno Haible  <bruno@clisp.org>
66128
66129         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66130         for NaN and Infinity. Needed on FreeBSD 6.1.
66131         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66132         regarding results for "%010a" of Infinity and NaN.
66133         * tests/test-vasprintf-posix.c (test_function): Likewise.
66134         * tests/test-snprintf-posix.h (test_function): Likewise.
66135         * tests/test-sprintf-posix.h (test_function): Likewise.
66136         * tests/test-fprintf-posix.h (test_function): Likewise.
66137         * tests/test-printf-posix.h (test_function): Likewise.
66138         * tests/test-fprintf-posix.out: Likewise.
66139
66140 2007-04-10  Bruno Haible  <bruno@clisp.org>
66141
66142         * modules/locale-tests: New file.
66143         * tests/test-locale.c: New file.
66144
66145         * modules/locale: New file.
66146         * lib/locale_.h: New file.
66147         * m4/locale_h.m4: New file.
66148
66149 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66150             Bruno Haible  <bruno@clisp.org>
66151
66152         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66153         be determined, test for availability of the copysignf, copysign,
66154         copysignl functions.
66155         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66156         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66157         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66158
66159 2007-04-09  Eric Blake  <ebb9@byu.net>
66160
66161         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66162         * modules/stdio (Makefile.am): Support fflush.
66163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66164         * modules/fflush: New file.
66165         * lib/fflush.c: Likewise.
66166         * m4/fflush.m4: Likewise.
66167         * modules/fflush-tests: New test.
66168         * tests/test-fflush.c: Likewise.
66169         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66170
66171 2007-04-06  Bruno Haible  <bruno@clisp.org>
66172
66173         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66174         (VASNPRINTF): Use signbit for faster determination whether to print a
66175         minus sign.
66176         * modules/vasnprintf (Files): Remove lib/float+.h.
66177         * modules/fprintf-posix (Depends-on): Add signbit.
66178         * modules/snprintf-posix (Depends-on): Likewise.
66179         * modules/sprintf-posix (Depends-on): Likewise.
66180         * modules/vasnprintf-posix (Depends-on): Likewise.
66181         * modules/vasprintf-posix (Depends-on): Likewise.
66182         * modules/vfprintf-posix (Depends-on): Likewise.
66183         * modules/vsnprintf-posix (Depends-on): Likewise.
66184         * modules/vsprintf-posix (Depends-on): Likewise.
66185
66186 2007-04-06  Bruno Haible  <bruno@clisp.org>
66187
66188         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66189         * tests/test-frexpl.c (main): Likewise.
66190         * tests/test-ldexpl.c (main): Likewise.
66191         * modules/frexp-tests (Depends-on): Add signbit.
66192         * modules/frexpl-tests (Depdends-on): Likewise.
66193         * modules/ldexpl-tests (Depdends-on): Likewise.
66194
66195 2007-04-06  Bruno Haible  <bruno@clisp.org>
66196
66197         * modules/signbit-tests: New file.
66198         * tests/test-signbit.c: New file.
66199
66200         * modules/signbit: New file.
66201         * lib/signbitf.c: New file.
66202         * lib/signbitd.c: New file.
66203         * lib/signbitl.c: New file.
66204         * m4/signbit.m4: New file.
66205         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66206         (signbit): New macro.
66207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66208         REPLACE_SIGNBIT.
66209         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66210         REPLACE_FREXPL into math.h.
66211
66212 2007-04-06  Bruno Haible  <bruno@clisp.org>
66213
66214         * modules/isnanf-nolibm-tests: New file.
66215         * tests/test-isnanf.c: New file.
66216
66217         * modules/isnanf-nolibm: New file.
66218         * lib/isnanf.h: New file.
66219         * lib/isnanf.c: New file.
66220         * lib/isnan.c: Consider the USE_FLOAT macro.
66221         * m4/isnanf.m4: New file.
66222
66223 2007-04-06  Bruno Haible  <bruno@clisp.org>
66224
66225         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66226         (Link): New section.
66227
66228         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66229
66230 2007-04-06  Bruno Haible  <bruno@clisp.org>
66231
66232         Assume the 'long double' type.
66233         * m4/longdouble.m4: Remove file.
66234         * config/srclist.txt: Don't mention longdouble.m4.
66235         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66236         * lib/float+.h: Likewise.
66237         * lib/frexp.c: Likewise.
66238         * lib/printf-args.h: Likewise.
66239         * lib/printf-args.c: Likewise.
66240         * lib/printf-frexp.c: Likewise.
66241         * lib/printf-parse.c: Likewise.
66242         * lib/vasnprintf.c: Likewise.
66243         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66244         * m4/intl.m4: Likewise.
66245         * m4/isnanl.m4: Likewise.
66246         * m4/printf.m4: Likewise.
66247         * m4/printf-frexpl.m4: Likewise.
66248         * m4/vasnprintf.m4: Likewise.
66249         * modules/allocsa (Files): Remove m4/longdouble.m4.
66250         * modules/gettext (Files): Likewise.
66251         * modules/relocatable-prog-wrapper (Files): Likewise.
66252         * modules/vasnprintf (Files): Likewise.
66253         * modules/isnanl (Files): Likewise.
66254         (Include): Simplify.
66255         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66256         (Include): Simplify.
66257         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66258         (Include): Simplify.
66259         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66260         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66261         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66262         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66263         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66264         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66265         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66266         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66267         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66268         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66269         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66270         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66271         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66272         * tests/test-isnanl.c: Likewise.
66273         * tests/test-snprintf-posix.h: Likewise.
66274         * tests/test-sprintf-posix.h: Likewise.
66275         * tests/test-vasnprintf-posix.c: Likewise.
66276         * tests/test-vasnprintf-posix2.c: Likewise.
66277         * tests/test-vasprintf-posix.c: Likewise.
66278
66279 2007-04-06  Bruno Haible  <bruno@clisp.org>
66280
66281         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66282         * lib/math_.h [__DECC]: Include the overridden include file through
66283         #include_next, outside the double-inclusion guard.
66284         * lib/stdio_.h [__DECC]: Likewise.
66285         * lib/stdlib_.h [__DECC]: Likewise.
66286         * lib/string_.h [__DECC]: Likewise.
66287         * lib/time_.h [__DECC]: Likewise.
66288         * lib/wchar_.h [__DECC]: Likewise.
66289         * lib/wctype_.h [__DECC]: Likewise.
66290         * lib/inttypes_.h [__DECC]: Likewise.
66291         Reported by Albert Chin <china@thewrittenword.com> in
66292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66293
66294 2007-04-04  Eric Blake  <ebb9@byu.net>
66295
66296         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66297         1.5.x.
66298
66299 2007-04-04  Bruno Haible  <bruno@clisp.org>
66300
66301         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66302         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66303
66304 2007-04-04  Bruno Haible  <bruno@clisp.org>
66305
66306         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66307         results for "%010a" of Infinity and NaN.
66308         * tests/test-vasprintf-posix.c (test_function): Likewise.
66309         * tests/test-snprintf-posix.h (test_function): Likewise.
66310         * tests/test-sprintf-posix.h (test_function): Likewise.
66311         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66312         * tests/test-printf-posix.h (test_function): Likewise.
66313         * tests/test-fprintf-posix.out: Update.
66314         Needed for FreeBSD 6.1.
66315
66316 2007-04-04  Bruno Haible  <bruno@clisp.org>
66317
66318         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66319         directly used by the gnulib modules nor by gnulib-tool.
66320
66321 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         * DEPENDENCIES: Give overall description of version dependency
66324         desirability.  Use more-typical names for apps.
66325         Add shell, coreutils, diffutils, grep, tar, gzip.
66326
66327 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66328
66329         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66330
66331 2007-04-04  Karl Berry  <karl@gnu.org>
66332
66333         * MODULES.html.sh (func_module): missing '.
66334
66335 2007-04-03  Bruno Haible  <bruno@clisp.org>
66336
66337         * modules/argmatch-tests (Makefile.am): New variable
66338         test_argmatch_LDADD.
66339         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66340         * modules/array-list-tests (Makefile.am): New variable
66341         test_array_list_LDADD.
66342         * modules/array-oset-tests (Makefile.am): New variable
66343         test_array_oset_LDADD.
66344         * modules/avltree-list-tests (Makefile.am): New variable
66345         test_avltree_list_LDADD.
66346         * modules/avltree-oset-tests (Makefile.am): New variable
66347         test_avltree_oset_LDADD.
66348         * modules/avltreehash-list-tests (Makefile.am): New variable
66349         test_avltreehash_list_LDADD.
66350         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66351         test_canonicalize_lgpl_LDADD.
66352         * modules/carray-list-tests (Makefile.am): New variable
66353         test_carray_list_LDADD.
66354         * modules/dirname-tests (Makefile.am): New variable
66355         test_dirname_LDADD.
66356         * modules/linked-list-tests (Makefile.am): New variable
66357         test_linked_list_LDADD.
66358         * modules/linkedhash-list-tests (Makefile.am): New variable
66359         test_linkedhash_list_LDADD.
66360         * modules/rbtree-list-tests (Makefile.am): New variable
66361         test_rbtree_list_LDADD.
66362         * modules/rbtree-oset-tests (Makefile.am): New variable
66363         test_rbtree_oset_LDADD.
66364         * modules/rbtreehash-list-tests (Makefile.am): New variable
66365         test_rbtreehash_list_LDADD.
66366         * modules/xvasprintf-tests (Makefile.am): New variable
66367         test_xvasprintf_LDADD.
66368         Reported by Eric Blake.
66369
66370 2007-04-03  Eric Blake  <ebb9@byu.net>
66371
66372         * DEPENDENCIES: Weaken m4 requirements.
66373
66374 2007-04-03  Bruno Haible  <bruno@clisp.org>
66375
66376         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66377         * modules/isnanl-tests (configure.ac): Likewise.
66378
66379 2007-04-03  Ben Pfaff  <blp@gnu.org>
66380
66381         * modules/iconv_open: Add $(srcdir)/ to source directory
66382         references in Makefile fragments that call gperf, to fix VPATH
66383         builds.
66384
66385 2007-04-03  Bruno Haible  <bruno@clisp.org>
66386
66387         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66388         * lib/ldexpl.c: Undo last change.
66389
66390 2007-04-03  Bruno Haible  <bruno@clisp.org>
66391
66392         * modules/printf-frexpl (Depends-on): Undo last change.
66393         (Files): Add m4/ldexpl.m4.
66394
66395 2007-04-03  Bruno Haible  <bruno@clisp.org>
66396
66397         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66398         * modules/isnanl (Link): New section.
66399
66400         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66401         * modules/frexp (Link): New section.
66402
66403         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66404         * modules/frexpl (Link): New section.
66405
66406         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66407         * modules/ldexpl (Link): New section.
66408
66409 2007-04-03  Bruno Haible  <bruno@clisp.org>
66410
66411         * modules/TEMPLATE-EXTENDED: New file.
66412         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66413
66414 2007-04-03  Bruno Haible  <bruno@clisp.org>
66415
66416         * DEPENDENCIES: New file.
66417         Suggested by Simon Josefsson.
66418
66419 2007-04-03  Bruno Haible  <bruno@clisp.org>
66420
66421         * doc/gnulib.texi: Escape @.
66422
66423 2007-04-03  James Youngman  <jay@gnu.org>
66424         and Paul Eggert  <eggert@cs.ucla.edu>
66425
66426         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66427         birthtime on all systems that have birthtime, not just those which
66428         use st_birthtimensec rather than st_birthtim.  Putting zero in
66429         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66430         that the birth time is not available for files on an NFS mount.
66431
66432 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66433
66434         * modules/memxor: Move back from crypto/, suggested by Bruno.
66435         * modules/crypto/hmac-sha1: Fix memxor dependency.
66436
66437         * modules/crypto/gc: Moved from ../.
66438
66439 2007-04-02  Eric Blake  <ebb9@byu.net>
66440
66441         * lib/ldexpl.c (includes): Avoid libm.
66442
66443         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66444
66445 2007-04-02  Bruno Haible  <bruno@clisp.org>
66446
66447         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66448         on IRIX.
66449
66450 2007-04-02  Bruno Haible  <bruno@clisp.org>
66451
66452         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66453         x86 or x86_64 platforms running MacOS X.
66454         Reported by Ryan Schmidt <@ryandesign.com>.
66455
66456 2007-04-02  Bruno Haible  <bruno@clisp.org>
66457
66458         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66459         i386.
66460
66461 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66462
66463         * modules/crypto/arcfour: Moved from ../.
66464         * modules/crypto/arcfour-tests: Moved from ../.
66465         * modules/crypto/arctwo: Moved from ../.
66466         * modules/crypto/arctwo-tests: Moved from ../.
66467         * modules/crypto/des: Moved from ../.
66468         * modules/crypto/des-tests: Moved from ../.
66469         * modules/crypto/gc-arcfour: Moved from ../.
66470         * modules/crypto/gc-arcfour-tests: Moved from ../.
66471         * modules/crypto/gc-arctwo: Moved from ../.
66472         * modules/crypto/gc-arctwo-tests: Moved from ../.
66473         * modules/crypto/gc-des: Moved from ../.
66474         * modules/crypto/gc-des-tests: Moved from ../.
66475         * modules/crypto/gc-hmac-md5: Moved from ../.
66476         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66477         * modules/crypto/gc-hmac-sha1: Moved from ../.
66478         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66479         * modules/crypto/gc-md2: Moved from ../.
66480         * modules/crypto/gc-md2-tests: Moved from ../.
66481         * modules/crypto/gc-md4: Moved from ../.
66482         * modules/crypto/gc-md4-tests: Moved from ../.
66483         * modules/crypto/gc-md5: Moved from ../.
66484         * modules/crypto/gc-md5-tests: Moved from ../.
66485         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66486         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66487         * modules/crypto/gc-random: Moved from ../.
66488         * modules/crypto/gc-rijndael: Moved from ../.
66489         * modules/crypto/gc-rijndael-tests: Moved from ../.
66490         * modules/crypto/gc-sha1: Moved from ../.
66491         * modules/crypto/gc-sha1-tests: Moved from ../.
66492         * modules/crypto/gc-tests: Moved from ../.
66493         * modules/crypto/hmac-md5: Moved from ../.
66494         * modules/crypto/hmac-md5-tests: Moved from ../.
66495         * modules/crypto/hmac-sha1: Moved from ../.
66496         * modules/crypto/hmac-sha1-tests: Moved from ../.
66497         * modules/crypto/md2: Moved from ../.
66498         * modules/crypto/md2-tests: Moved from ../.
66499         * modules/crypto/md4: Moved from ../.
66500         * modules/crypto/md4-tests: Moved from ../.
66501         * modules/crypto/md5: Moved from ../.
66502         * modules/crypto/md5-tests: Moved from ../.
66503         * modules/crypto/memxor: Moved from ../.
66504         * modules/crypto/rijndael: Moved from ../.
66505         * modules/crypto/rijndael-tests: Moved from ../.
66506         * modules/crypto/sha1: Moved from ../.
66507
66508 2007-03-30  James Youngman  <jay@gnu.org>
66509
66510         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66511         rename() to change the ctime of a file (because ctime is unaffected
66512         by rename on jfs2 on AIX 5.1).
66513         (main): Start by doing cleanup, in case a previous run failed leaving
66514         test files behind.
66515
66516 2007-03-31  Bruno Haible  <bruno@clisp.org>
66517
66518         Support old proprietary implementations of iconv.
66519         * modules/iconv_open: New file.
66520         * lib/iconv_.h: New file.
66521         * m4/iconv_h.m4: New file.
66522         * lib/iconv_open.c: New file.
66523         * lib/iconv_open-aix.gperf: New file.
66524         * lib/iconv_open-hpux.gperf: New file.
66525         * lib/iconv_open-irix.gperf: New file.
66526         * lib/iconv_open-osf.gperf: New file.
66527         * m4/iconv_open.m4: New file.
66528         * modules/linebreak (Depends-on): Add iconv_open.
66529         * modules/striconv (Depends-on): Likewise.
66530         * modules/striconveh (Depends-on): Likewise.
66531         * modules/unicodeio (Depends-on): Likewise.
66532         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66533         (iconv_t)(-1).
66534         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66535         conversion if cd is (iconv_t)(-1).
66536         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66537         is not possible.
66538
66539 2007-03-31  Bruno Haible  <bruno@clisp.org>
66540
66541         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66542         work on Solaris either. Protect also second use of "autodetect_jp".
66543
66544 2007-03-31  Bruno Haible  <bruno@clisp.org>
66545
66546         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66547         the function is not present.
66548
66549 2007-03-31  Bruno Haible  <bruno@clisp.org>
66550
66551         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66552         the function is not present.
66553
66554 2007-03-31  Bruno Haible  <bruno@clisp.org>
66555
66556         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66557         a bug in HP-UX iconv_open().
66558
66559 2007-03-31  Bruno Haible  <bruno@clisp.org>
66560
66561         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66562         (Mathematics <math.h>): New section, add fpieee.
66563         (Input/output <stdio.h>): Add fseterr.
66564         (Mathematics <math.h>): New section, add printf-frexp.
66565         (Container data structures): Add sublist.
66566         (Core language properties): Add fpucw, inline.
66567         (Functions for greatest-width integer types <inttypes.h>): Add
66568         imaxabs, imaxdiv, inttypes.
66569         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66570         isnanl-nolibm, ldexp.
66571         (Mathematics <math.h>): New section, add printf-frexpl.
66572         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66573         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66574         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66575         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66576         (Unicode string functions): Add unistr/u*-mbtoucr.
66577         (Java): Add javacomp-script, javaexec-script.
66578         (C#): Add csharpcomp-script, csharpexec-script.
66579         (Support for building libraries and executables): Add havelib,
66580         relocatable-*.
66581         (Support for maintaining and releasing projects): Renamed from
66582         'Support for maintaining and release projects'. Add announce-gen.
66583
66584 2007-03-31  Bruno Haible  <bruno@clisp.org>
66585
66586         * README: Talk primarily about git.
66587         (git and CVS): Renamed from CVS.
66588         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66589         gnulib is available through git.
66590         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66591
66592 2007-03-30  Bruno Haible  <bruno@clisp.org>
66593
66594         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66595         * lib/poll_.h: Likewise.
66596         * lib/stat_.h: Likewise.
66597         * lib/sys_time_.h: Likewise.
66598         * lib/sysexit_.h: Likewise.
66599         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66600         * lib/stdbool_.h: Likewise.
66601         * lib/byteswap_.h: Add double-inclusion guard.
66602
66603 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66604
66605         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66606
66607 2007-03-30  Karl Berry  <karl@gnu.org>
66608
66609         * config/srclist-update: double space after USA in the license
66610         substitution, since that's how it's usually (?) written.
66611
66612 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66613
66614         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66615         reported by Bruno Haible.
66616
66617 2007-03-29  Bruno Haible  <bruno@clisp.org>
66618
66619         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66620         a bug in AIX iconv().
66621
66622 2007-03-29  Bruno Haible  <bruno@clisp.org>
66623
66624         * modules/ldexpl-tests: New file.
66625         * tests/test-ldexpl.c: New file.
66626
66627 2007-03-29  Bruno Haible  <bruno@clisp.org>
66628
66629         * lib/ldexpl.c: Include fpucw.h.
66630         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66631         multiplication.
66632         * modules/ldexpl (Depends-on): Add fpucw.
66633
66634 2007-03-29  Bruno Haible  <bruno@clisp.org>
66635
66636         * modules/ldexpl: New file.
66637         * m4/ldexpl.m4: New file.
66638         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66639         set.
66640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66641         REPLACE_LDEXPL.
66642         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66643         REPLACE_LDEXPL.
66644         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66645         gl_FUNC_LDEXPL_WORKS.
66646         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66647         * modules/mathl (Files): Remove lib/ldexpl.c.
66648         (Depends-on): Add ldexpl.
66649
66650 2007-03-29  Bruno Haible  <bruno@clisp.org>
66651
66652         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66653
66654 2007-03-29  Bruno Haible  <bruno@clisp.org>
66655
66656         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66657         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66658         and possibly also HP-UX.
66659         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66660         work on AIX, IRIX, HP-UX, OSF/1.
66661         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66662         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66663         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66664         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66665         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66666         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66667
66668 2007-03-29  Bruno Haible  <bruno@clisp.org>
66669
66670         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66671
66672 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66675         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66676
66677 2007-03-29  Eric Blake  <ebb9@byu.net>
66678
66679         * lib/acl-internal.h: Remove redundant include.
66680         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66681         Cygwin when a file is locked.
66682
66683 2007-03-29  Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66686         file.
66687         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66688
66689 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66690
66691         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66692         try to remove a parent directory if the child couldn't be removed
66693         (except for the first rmdir, which could fail because the child
66694         doesn't exist).  Problem reported by Jeff Blaine in
66695         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66696
66697 2007-03-28  Bruno Haible  <bruno@clisp.org>
66698
66699         * lib/striconveh.c (utf8conv_carefully): New function.
66700         (mem_cd_iconveh_internal): Invoke it.
66701
66702 2007-03-28  Bruno Haible  <bruno@clisp.org>
66703
66704         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66705         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66706         input.
66707         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66708         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66709         unistr/u8-uctomb.
66710
66711 2007-03-28  Bruno Haible  <bruno@clisp.org>
66712
66713         * modules/unistr/u8-mbtoucr: New file.
66714         * lib/unistr/u8-mbtoucr.c: New file.
66715         * modules/unistr/u16-mbtoucr: New file.
66716         * lib/unistr/u16-mbtoucr.c: New file.
66717         * modules/unistr/u16-mbtoucr: New file.
66718         * lib/unistr/u16-mbtoucr.c: New file.
66719         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66720
66721 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66722             Bruno Haible  <bruno@clisp.org>
66723
66724         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66725         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66726         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66727
66728         * m4/stdio_h.m4: Add stubs for vasprintf too.
66729
66730         * modules/stdio: Support vasprintf in sed command.
66731
66732         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66733         vasprintf.h.  Add stdio module indicator.
66734
66735         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66736         vasprintf.h.
66737
66738         * lib/vasprintf.h: File removed.
66739
66740         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66741         * lib/vasprintf.c: Ditto.
66742         * lib/xvasprintf.c: Ditto.
66743         * tests/test-vasprintf-posix.c: Ditto.
66744         * tests/test-vasprintf.c: Ditto.
66745
66746 2007-03-27  Bruno Haible  <bruno@clisp.org>
66747
66748         Make vasnprintf multithread-safe.
66749         * lib/vasnprintf.c (decimal_point_char): New function.
66750         (VASNPRINTF): Use it.
66751         Suggested by Simon Josefsson.
66752
66753 2007-03-27  Eric Blake  <ebb9@byu.net>
66754
66755         Support sub-second birthtime on cygwin.
66756         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66757         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66758         (get_stat_birthtime): Also work with st_birthtim.
66759
66760 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66763         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66764         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66765         (get_stat_birthtime_ns): Simplify compile-time tests.
66766         (get_stat_birthtime): Change the API to look like
66767         get_stat_mtime etc., except return a negative tv_nsec on error.
66768         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66769         Don't check for "spare" fields.
66770         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66771         or for struct stat.st_birthtime, as these tests aren't used.
66772         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66773
66774 2007-03-27  Bruno Haible  <bruno@clisp.org>
66775
66776         * lib/stat-time.h: Include <sys/stat.h>.
66777
66778 2007-03-27  James Youngman  <jay@gnu.org>
66779
66780         * lib/stat-time.h (get_stat_birthtime): New function for
66781           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66782         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66783           and its variants.
66784         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66785         * modules/stat-time-test: New file.
66786         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66787
66788 2007-03-26  Bruno Haible  <bruno@clisp.org>
66789
66790         Better support of signalling NaNs.
66791         * lib/atanl.c: Include isnanl.h.
66792         (atanl): Perform test for NaN at the beginning of the function and
66793         through a call to isnanl.
66794         * lib/cosl.c: Include isnanl.h.
66795         (cosl): Perform test for NaN at the beginning of the function and
66796         through a call to isnanl.
66797         * lib/ldexpl.c: Include isnanl.h.
66798         (ldexpl): Perform test for NaN through a call to isnanl.
66799         * lib/logl.c: Include isnanl.h.
66800         (logl): Perform test for NaN at the beginning of the function and
66801         through a call to isnanl.
66802         * lib/sinl.c: Include isnanl.h.
66803         (sinl): Perform test for NaN at the beginning of the function and
66804         through a call to isnanl.
66805         * lib/sqrtl.c: Include isnanl.h.
66806         (sqrtl): Perform test for NaN at the beginning of the function and
66807         through a call to isnanl.
66808         * lib/tanl.c: Include isnanl.h.
66809         (tanl): Perform test for NaN at the beginning of the function and
66810         through a call to isnanl.
66811         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66812         * modules/mathl (Depends-on): Add isnanl.
66813
66814 2007-03-26  Eric Blake  <ebb9@byu.net>
66815
66816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66817         regression in logic sense of previous patch.
66818
66819 2007-03-26  Bruno Haible  <bruno@clisp.org>
66820
66821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66822         unportable shell command "if ! ...".
66823         Reported by Ralf Wildenhues.
66824
66825 2007-03-25  Bruno Haible  <bruno@clisp.org>
66826
66827         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66828         <sysexits.h> file, and only add EX_CONFIG.
66829         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66830         absolute file name and whether it is sufficient. Substitute also
66831         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66832         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66833         ABSOLUTE_SYSEXITS_H into sysexits.h.
66834
66835 2007-03-25  Bruno Haible  <bruno@clisp.org>
66836
66837         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66838         hints is NULL.
66839
66840 2007-03-25  Bruno Haible  <bruno@clisp.org>
66841
66842         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66843         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66844
66845 2007-03-25  Bruno Haible  <bruno@clisp.org>
66846
66847         * lib/vasnprintf.c: Include langinfo.h.
66848         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66849         multithread-safe.
66850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66853         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66854         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66856         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66857         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66858         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66859         Reported by Simon Josefsson.
66860
66861 2007-03-25  Bruno Haible  <bruno@clisp.org>
66862
66863         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66864         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66865         * modules/vasnprintf (Depends-on): Add stdint.
66866
66867 2007-03-25  Bruno Haible  <bruno@clisp.org>
66868
66869         * modules/fpieee: New file.
66870         * m4/fpieee.m4: New file.
66871         * modules/isnan-nolibm (Depends-on): Add fpieee.
66872         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66873         * modules/isnanl (Depends-on): Add fpieee.
66874
66875 2007-03-25  Bruno Haible  <bruno@clisp.org>
66876
66877         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66878
66879 2007-03-25  Bruno Haible  <bruno@clisp.org>
66880
66881         Avoid test failures on IRIX 6.5.
66882         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66883         (main): Use it.
66884         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66885         macros.
66886         (main): Use them.
66887
66888 2007-03-25  Bruno Haible  <bruno@clisp.org>
66889
66890         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66891         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66892         exists but doesn't work.
66893         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66894         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66896         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66897         math.h.
66898
66899 2007-03-25  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66902         returns inf. Needed on IRIX 6.5.
66903
66904 2007-03-25  Bruno Haible  <bruno@clisp.org>
66905
66906         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66907         (main): Use isnanl instead of x != x idiom.
66908         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66909
66910         * tests/test-frexp.c: Include isnan.h.
66911         (main): Use isnan instead of x != x idiom.
66912         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66913
66914 2007-03-25  Bruno Haible  <bruno@clisp.org>
66915
66916         * tests/test-frexp.c (NaN): New function/macro.
66917         (main): Use it instead of 0.0 / 0.0.
66918         * tests/test-isnan.c (NaN): New function/macro.
66919         (main): Use it instead of 0.0 / 0.0.
66920         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66921         (test_function): Use it instead of 0.0 / 0.0.
66922         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66923         (test_function): Use it instead of 0.0 / 0.0.
66924         * tests/test-snprintf-posix.h (NaN): New function/macro.
66925         (test_function): Use it instead of 0.0 / 0.0.
66926         * tests/test-sprintf-posix.h (NaN): New function/macro.
66927         (test_function): Use it instead of 0.0 / 0.0.
66928         * tests/test-fprintf-posix.h (NaN): New function/macro.
66929         (test_function): Use it instead of 0.0 / 0.0.
66930         * tests/test-printf-posix.h (NaN): New function/macro.
66931         (test_function): Use it instead of 0.0 / 0.0.
66932
66933         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66934
66935 2007-03-25  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66938
66939 2007-03-25  Bruno Haible  <bruno@clisp.org>
66940
66941         * lib/regexec.c (merge_state_with_log): Make static.
66942
66943 2007-03-25  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/trigl.c (kernel_rem_pio2): Make static.
66946
66947 2007-03-25  Bruno Haible  <bruno@clisp.org>
66948
66949         * lib/sincosl.c (sincosl_table): Make static.
66950
66951 2007-03-25  Bruno Haible  <bruno@clisp.org>
66952
66953         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66954         if the compiler does not support C99.
66955
66956 2007-03-25  Bruno Haible  <bruno@clisp.org>
66957
66958         * modules/time (Makefile.am): Ensure all rule action lines start with a
66959         tab.
66960
66961 2007-03-24  Bruno Haible  <bruno@clisp.org>
66962
66963         * modules/tsearch-tests: New file.
66964         * tests/test-tsearch.sh: New file.
66965         * tests/test-tsearch.c: New file, mostly copied from glibc.
66966
66967         * modules/search-tests: New file.
66968         * tests/test-search.c: New file.
66969
66970         * modules/search: New file.
66971         * lib/search_.h: New file, incorporating lib/tsearch.h.
66972         * m4/search_h.m4: New file.
66973         * lib/tsearch.h: Remove file.
66974         * lib/tsearch.c: Include search.h instead of tsearch.h.
66975         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66976         HAVE_TSEARCH.
66977         * modules/tsearch (Files): Remove lib/tsearch.h.
66978         (Depends-on): Add search.
66979         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66980         (Include): Change tsearch.h into search.h.
66981
66982 2007-03-24  Bruno Haible  <bruno@clisp.org>
66983
66984         * modules/fpucw: New file.
66985         * lib/fpucw.h: New file.
66986         * lib/frexp.c: Include fpucw.h.
66987         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66988         (FUNC): Use them.
66989         * lib/printf-frexp.c: Include fpucw.h.
66990         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66991         (FUNC): Use them.
66992         * lib/vasnprintf.c: Include fpucw.h.
66993         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66994         'long double' calculations.
66995         * tests/test-frexpl.c: Include fpucw.h.
66996         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66997         * tests/test-printf-frexpl.c: Include fpucw.h.
66998         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66999         * modules/frexpl (Depends-on): Add fpucw.
67000         * modules/printf-frexpl (Depends-on): Likewise.
67001         * modules/fprintf-posix (Depends-on): Likewise.
67002         * modules/snprintf-posix (Depends-on): Likewise.
67003         * modules/sprintf-posix (Depends-on): Likewise.
67004         * modules/vasnprintf-posix (Depends-on): Likewise.
67005         * modules/vasprintf-posix (Depends-on): Likewise.
67006         * modules/vfprintf-posix (Depends-on): Likewise.
67007         * modules/vsnprintf-posix (Depends-on): Likewise.
67008         * modules/vsprintf-posix (Depends-on): Likewise.
67009         * modules/frexpl-tests (Depends-on): Likewise.
67010         * modules/printf-frexpl-tests (Depends-on): Likewise.
67011
67012 2007-03-24  Bruno Haible  <bruno@clisp.org>
67013
67014         * lib/float+.h: New file.
67015         * lib/isnan.c: Include float+.h.
67016         (SIZE): New macro.
67017         (FUNC): Compare only SIZE bytes of the value.
67018         * lib/vasnprintf.c: Include float+.h.
67019         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67020         SIZEOF_LDBL or SIZEOF_DBL bytes.
67021         * modules/isnan-nolibm (Files): Add lib/float+.h.
67022         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67023         * modules/isnanl (Files): Add lib/float+.h.
67024         * modules/vasnprintf (Files): Add lib/float+.h.
67025
67026 2007-03-24  Bruno Haible  <bruno@clisp.org>
67027
67028         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67029         include isnanl-nolibm.h.
67030
67031 2007-03-24  Bruno Haible  <bruno@clisp.org>
67032
67033         * tests/test-read-file.c (main): Don't produce spurious output for
67034         expected situations. Make the test fail if it encountered unexpected
67035         results.
67036
67037 2007-03-24  Bruno Haible  <bruno@clisp.org>
67038
67039         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67040         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67041
67042 2007-03-24  Bruno Haible  <bruno@clisp.org>
67043
67044         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67045
67046 2007-03-24  Bruno Haible  <bruno@clisp.org>
67047
67048         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67049         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67050
67051         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67052         * modules/utf8-ucs4: Turn into a symbolic link to module
67053         unistr/u8-mbtouc.
67054
67055         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67056         utf8-ucs4-unsafe.
67057         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67058         unistr/u8-mbtouc-unsafe.
67059
67060         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67061         * modules/utf16-ucs4: Turn into a symbolic link to module
67062         unistr/u16-mbtouc.
67063
67064         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67065         utf16-ucs4-unsafe.
67066         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67067         unistr/u16-mbtouc-unsafe.
67068
67069         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67070         * modules/ucs4-utf8: Turn into a symbolic link to module
67071         unistr/u8-ubtomb.
67072
67073         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67074         * modules/ucs4-utf16: Turn into a symbolic link to module
67075         unistr/u16-ubtomb.
67076
67077 2007-03-24  Bruno Haible  <bruno@clisp.org>
67078
67079         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67080         Enable the function only if HAVE_INLINE.
67081         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67082         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67083         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67084         Enable the function only if HAVE_INLINE.
67085         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67086         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67087         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67088         Enable the function only if HAVE_INLINE.
67089         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67090         Enable the function only if HAVE_INLINE.
67091         * modules/utf8-ucs4: Update.
67092         * modules/utf8-ucs4-unsafe: Update.
67093         * modules/utf16-ucs4: Update.
67094         * modules/utf16-ucs4-unsafe: Update.
67095         * modules/ucs4-utf8: Update.
67096         * modules/ucs4-utf16: Update.
67097
67098 2007-03-24  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/utf8-ucs4.h: Remove file.
67101         * lib/utf8-ucs4-unsafe.h: Remove file.
67102         * lib/utf16-ucs4.h: Remove file.
67103         * lib/utf16-ucs4-unsafe.h: Remove file.
67104         * lib/ucs4-utf8.h: Remove file.
67105         * lib/ucs4-utf16.h: Remove file.
67106         * lib/unistr.h: Include their previous contents.
67107         * m4/utf-ucs4.m4: Remove file.
67108         * m4/ucs4-utf.m4: Remove file.
67109         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67110         (Depends-on): Add unistr/base.
67111         (configure.ac): Remove gl_UTF_UCS4.
67112         (Makefile.am): Update.
67113         (Include): Change to unistr.h.
67114         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67115         (Depends-on): Add unistr/base.
67116         (configure.ac): Remove gl_UTF_UCS4.
67117         (Makefile.am): Update.
67118         (Include): Change to unistr.h.
67119         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67120         (Depends-on): Add unistr/base.
67121         (configure.ac): Remove gl_UTF_UCS4.
67122         (Makefile.am): Update.
67123         (Include): Change to unistr.h.
67124         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67125         (Depends-on): Add unistr/base.
67126         (configure.ac): Remove gl_UTF_UCS4.
67127         (Makefile.am): Update.
67128         (Include): Change to unistr.h.
67129         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67130         (Depends-on): Add unistr/base.
67131         (configure.ac): Remove gl_UCS4_UTF.
67132         (Makefile.am): Update.
67133         (Include): Change to unistr.h.
67134         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67135         (Depends-on): Add unistr/base.
67136         (configure.ac): Remove gl_UCS4_UTF.
67137         (Makefile.am): Update.
67138         (Include): Change to unistr.h.
67139         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67140         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67141         utf8-ucs4-unsafe.h.
67142         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67143         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67144         utf16-ucs4-unsafe.h.
67145         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67146         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67147         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67148         * lib/unistr/u8-strchr.c: Likewise.
67149         * lib/unistr/u8-strrchr.c: Likewise.
67150         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67151         * lib/unistr/u16-strchr.c: Likewise.
67152         * lib/unistr/u16-strrchr.c: Likewise.
67153         * lib/striconveh.c: Update.
67154         * lib/linebreak.c: Update.
67155
67156 2007-03-24  Bruno Haible  <bruno@clisp.org>
67157
67158         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67159         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67160
67161 2007-03-22  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67164
67165 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * MODULES.html.sh (File system functions): New module write-any-file.
67168         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67169         * m4/write-any-file.m4: New files.
67170
67171 2007-03-23  Eric Blake  <ebb9@byu.net>
67172
67173         * gnulib-tool: Rearrange space-tab sequences, since some editors
67174         like to eat them.
67175
67176 2007-03-23  Eric Blake  <ebb9@byu.net>
67177
67178         * lib/version-etc.c (version_etc_va): Update license wording to
67179         be more concise.  Recommended by Richard Stallman.
67180
67181 2007-03-22  Bruno Haible  <bruno@clisp.org>
67182
67183         * lib/poll.c (MSG_PEEK): New fallback definition.
67184
67185 2007-03-22  Bruno Haible  <bruno@clisp.org>
67186
67187         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67188         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67189         (main): Update.
67190         Fixes a compilation error on BeOS.
67191
67192 2007-03-22  Bruno Haible  <bruno@clisp.org>
67193
67194         * modules/frexpl-tests: New file.
67195         * tests/test-frexpl.c: New file.
67196
67197         * modules/frexpl: New file.
67198         * m4/frexpl.m4: New file.
67199         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67200         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67202         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67203         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67204         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67205
67206 2007-03-22  Bruno Haible  <bruno@clisp.org>
67207
67208         * lib/frexpl.c: Share code with lib/frexp.c.
67209         * modules/mathl (Files): Add lib/frexp.c.
67210         (Depends-on): Add isnanl-nolibm.
67211
67212 2007-03-22  Bruno Haible  <bruno@clisp.org>
67213
67214         * modules/printf-frexp (Files): Add m4/frexp.m4.
67215         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67216         only if the found frexp function actually works.
67217
67218 2007-03-22  Bruno Haible  <bruno@clisp.org>
67219
67220         * lib/frexp.c: Remove older implementation that uses divisions.
67221
67222 2007-03-21  Bruno Haible  <bruno@clisp.org>
67223
67224         * modules/frexp-tests: New file.
67225         * tests/test-frexp.c: New file.
67226
67227         * modules/frexp: New file.
67228         * lib/frexp.c: New file.
67229         * m4/frexp.m4: New file.
67230         * lib/math_.h (frexp): New declaration.
67231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67232         REPLACE_FREXP.
67233         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67234
67235 2007-03-21  Bruno Haible  <bruno@clisp.org>
67236
67237         * modules/isnanl-tests: New file.
67238         * tests/test-isnanl.c: New file.
67239
67240         * modules/isnanl: New file.
67241         * lib/isnanl.h: New file.
67242         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67243         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67244         gl_FUNC_ISNANL_WORKS.
67245         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67246         New macros.
67247
67248 2007-03-21  Bruno Haible  <bruno@clisp.org>
67249
67250         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67251         lib/isnanl.h.
67252         (Include): Update.
67253         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67254         * lib/vasnprintf.c: Update.
67255         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67256         tests/test-isnanl.h, remove tests/test-isnanl.c.
67257         (Makefile.am): Update.
67258         * tests/test-isnanl-nolibm.c: New file.
67259         * tests/test-isnanl.h: New file.
67260         * tests/test-isnanl.c: Remove file.
67261
67262 2007-03-21  Jim Meyering  <jim@meyering.net>
67263
67264         When trying to open ".", treat ESTALE like EACCES.
67265         * lib/savewd.c (savewd_save): Resort to forking not just upon
67266         failure with EACCES, but also when errno is ESTALE.
67267
67268 2007-03-20  Bruno Haible  <bruno@clisp.org>
67269
67270         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67271         Needed on AIX 5.1. Reported by Matthew Woehlke.
67272
67273 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         Suggestions by Bruno Haible:
67276         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67277         our own.
67278         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67279         * modules/acl (Depends-on): Add gettext.
67280
67281 2007-03-19  Bruno Haible  <bruno@clisp.org>
67282
67283         * modules/iconvme: Remove file.
67284         * lib/iconvme.h: Remove file.
67285         * lib/iconvme.c: Remove file.
67286         * m4/iconvme.m4: Remove file.
67287
67288 2007-03-19  Bruno Haible  <bruno@clisp.org>
67289
67290         * doc/relocatable-maint.texi: Break long shell script line.
67291         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67292
67293 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67294
67295         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67296         handle file_has_acl.
67297         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67298         * lib/acl.c: Move header inclusions and related macro defns into
67299         lib/acl-internal.h.
67300         (S_ISLNK): Remove defn, since that's now done for us.
67301         (file_has_acl): Move to lib/file-has-acl.c.
67302         Call acl_trivial if available.  This is the crucial part of the fix.
67303         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67304         shared within the library.  Rewrite a bit, partly to make it compatible
67305         with the GNU coding style.
67306         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67307         Remove unnecessary double-quotes.
67308         Don't test for acl_to_text; the build will catch that.
67309         Replace acl_entries if it doesn't exist and it is needed.
67310         Check for -lsec and acl_trivial (as used on Solaris 10).
67311         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67312         lib/file-has-acl.c.
67313         (Depends-on): Add sys_stat, for S_ISLNK.
67314
67315 2007-03-19  Ben Pfaff  <blp@gnu.org>
67316
67317         * doc/gnulib.texi: Fix typos.
67318         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67319
67320 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67321
67322         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67323         If size is zero here, buf must be zero.
67324
67325 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67326
67327         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67328         <bruno@clisp.org>.
67329
67330 2007-03-18  Bruno Haible  <bruno@clisp.org>
67331
67332         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67333         Suggested by Eric Blake.
67334
67335 2007-03-18  Ben Pfaff  <blp@gnu.org>
67336
67337         * doc/relocatable.texi: Recommend using as prefix a directory
67338         that does not exist and will never be created.  Based on
67339         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67340         and others.
67341
67342 2007-03-17  Bruno Haible  <bruno@clisp.org>
67343
67344         * lib/fchownat.c: Include lchown.h.
67345
67346 2007-03-17  Bruno Haible  <bruno@clisp.org>
67347
67348         Fix endless loop when the given allocated size was > INT_MAX.
67349         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67350         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67351         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67352         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67353         * lib/sprintf.c (sprintf): Likewise.
67354
67355 2007-03-17  Bruno Haible  <bruno@clisp.org>
67356
67357         * tests/test-argp-2.sh (func_compare): Output a context diff.
67358
67359 2007-03-17  Bruno Haible  <bruno@clisp.org>
67360
67361         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67362         locale's decimal-point character.
67363
67364 2007-03-17  Bruno Haible  <bruno@clisp.org>
67365
67366         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67367         before comparing it. Needed because on some platforms (e.g. x86) a
67368         'long double' occupies less bytes than sizeof (long double).
67369
67370 2007-03-17  Bruno Haible  <bruno@clisp.org>
67371
67372         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67373         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67374         * tests/test-getaddrinfo.c (simple): Likewise.
67375         * tests/test-read-file.c (main): Likewise.
67376
67377 2007-03-17  Bruno Haible  <bruno@clisp.org>
67378
67379         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67380
67381 2007-03-17  Bruno Haible  <bruno@clisp.org>
67382
67383         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67384         unused variable.
67385
67386 2007-03-17  Bruno Haible  <bruno@clisp.org>
67387
67388         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67389         * tests/test-c-strncasecmp.c: Likewise.
67390
67391 2007-03-17  Bruno Haible  <bruno@clisp.org>
67392
67393         * modules/stdlib (Depends-on): Add unistd.
67394         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67395         Needed for MacOS X 10.3.
67396
67397 2007-03-17  Bruno Haible  <bruno@clisp.org>
67398
67399         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67400
67401 2007-03-17  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67404
67405 2007-03-17  Bruno Haible  <bruno@clisp.org>
67406
67407         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67408         to reflect files copied from gnulib (with or without modifications).
67409         Suggested by Jim Meyering.
67410
67411 2007-03-17  Eric Blake  <ebb9@byu.net>
67412
67413         * NEWS: Document stdlib change from 2007-02-18.
67414
67415 2007-03-17  Jim Meyering  <jim@meyering.net>
67416
67417         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67418         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67419         someone uses a name containing shell meta-characters.
67420         Reported by Alfred M. Szmidt.
67421
67422         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67423
67424 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67425
67426         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67427         and copy gettext configuration files only if configure.ac contains
67428         a use of AM_GNU_GETTEXT_VERSION.
67429
67430 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67431
67432         * build-aux/bootstrap (gnulib_name): New variable.
67433         (gnulib_tool_options): Use it.
67434
67435 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67436
67437         * tests/test-des.c: Use new namespace.
67438
67439 2007-03-15  Bruno Haible  <bruno@clisp.org>
67440
67441         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67442         Reported by James Youngman <jay@gnu.org>.
67443
67444 2007-03-15  Bruno Haible  <bruno@clisp.org>
67445
67446         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67447         declared prototype. Needed with cc on OSF/1 5.1.
67448
67449 2007-03-15  Bruno Haible  <bruno@clisp.org>
67450
67451         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67452         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67453         (struct gl_list_implementation): Add dispose_fn argument to the
67454         'create_empty', 'create' methods.
67455         (struct gl_list_impl_base): Add field 'dispose_fn'.
67456         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67457         argument.
67458         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67459         dispose_fn argument.
67460         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67461         dispose_fn on the dropped values.
67462         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67463         dispose_fn argument.
67464         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67465         dropped values.
67466         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67467         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67468         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67469         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67470         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67471         argument.
67472         (gl_tree_list_free): Call dispose_fn on the dropped values.
67473         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67474         the dropped values.
67475         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67476         Add dispose_fn argument.
67477         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67478         Call dispose_fn on the dropped values.
67479         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67480         Add dispose_fn argument.
67481         (gl_sublist_create): Initialize the 'dispose_fn' field.
67482         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67483         * tests/test-array_list.c (main): Update.
67484         * tests/test-carray_list.c (main): Update.
67485         * tests/test-avltree_list.c (main): Update.
67486         * tests/test-rbtree_list.c (main): Update.
67487         * tests/test-avltreehash_list.c (main): Update.
67488         * tests/test-rbtreehash_list.c (main): Update.
67489         * tests/test-linked_list.c (main): Update.
67490         * tests/test-linkedhash_list.c (main): Update.
67491         * tests/test-array_oset.c (main): Update.
67492
67493 2007-03-15  Bruno Haible  <bruno@clisp.org>
67494
67495         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67496         (gl_oset_create_empty): Add dispose_fn argument.
67497         (struct gl_oset_implementation): Add dispose_fn argument to
67498         'create_empty' method.
67499         (struct gl_oset_impl_base): Add dispose_fn field.
67500         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67501         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67502         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67503         values.
67504         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67505         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67506         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67507         dropped value.
67508         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67509         dropped value.
67510         * tests/test-array_oset.c (main): Update.
67511         * tests/test-avltree_oset.c (main): Update.
67512         * tests/test-rbtree_oset.c (main): Update.
67513         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67514
67515 2007-03-13  Bruno Haible  <bruno@clisp.org>
67516
67517         * tests/test-stdbool.c (i): Update after last patch.
67518
67519 2007-03-12  Bruno Haible  <bruno@clisp.org>
67520
67521         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67522         the iswprint macro. Needed on Solaris 2.5.1.
67523
67524 2007-03-12  Bruno Haible  <bruno@clisp.org>
67525
67526         * tests/test-printf-frexp.c (main): Declare x as volatile.
67527
67528 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67529
67530         * doc/gnulib.texi (Build robot for gnulib): New section.
67531
67532 2007-03-12  Jim Meyering  <jim@meyering.net>
67533
67534         * build-aux/bootstrap: New file.
67535         * build-aux/bootstrap.conf: New file, from coreutils.
67536
67537 2007-03-11  Bruno Haible  <bruno@clisp.org>
67538
67539         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67540
67541 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67542
67543         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67544         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67545         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67546
67547 2007-03-11  Bruno Haible  <bruno@clisp.org>
67548
67549         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67550         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67551
67552 2007-03-11  Bruno Haible  <bruno@clisp.org>
67553
67554         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67555         formula. Needed for SunPRO C 5.0.
67556
67557 2007-03-11  Bruno Haible  <bruno@clisp.org>
67558
67559         * modules/long-options (Depends-on): Add getopt.
67560
67561 2007-03-11  Bruno Haible  <bruno@clisp.org>
67562
67563         * modules/modechange (Depends-on): Add stdbool.
67564
67565 2007-03-11  Bruno Haible  <bruno@clisp.org>
67566
67567         * modules/i-ring (Depends-on): Add stdbool.
67568
67569 2007-03-11  Bruno Haible  <bruno@clisp.org>
67570
67571         * modules/gc-des (Depends-on): Add stdbool.
67572
67573 2007-03-11  Bruno Haible  <bruno@clisp.org>
67574
67575         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67576
67577 2007-03-11  Bruno Haible  <bruno@clisp.org>
67578
67579         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67580
67581 2007-03-11  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67584
67585 2007-03-11  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/vasnprintf.c (sprintf): Undefine.
67588
67589 2007-03-11  Bruno Haible  <bruno@clisp.org>
67590
67591         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67592         initializers in SunPRO C and Compaq C compilers.
67593
67594 2007-03-11  Bruno Haible  <bruno@clisp.org>
67595
67596         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67597         decrementing code ANSI C compliant.
67598
67599 2007-03-11  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67602         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67603
67604 2007-03-11  Bruno Haible  <bruno@clisp.org>
67605
67606         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67607         <stdbool.h> substitute doesn't pass.
67608
67609 2007-03-11  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67612
67613 2007-03-11  Bruno Haible  <bruno@clisp.org>
67614
67615         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67616         script, for submission to autobuild.josefsson.org.
67617
67618 2007-03-10  Bruno Haible  <bruno@clisp.org>
67619
67620         * modules/canonicalize-lgpl-tests: New file.
67621         * tests/test-canonicalize-lgpl.sh: New file.
67622         * tests/test-canonicalize-lgpl.c: New file.
67623
67624         * modules/c-strcase-tests: New file.
67625         * tests/test-c-strcase.sh: New file.
67626         * tests/test-c-strcasecmp.c: New file.
67627         * tests/test-c-strncasecmp.c: New file.
67628
67629         * modules/atexit-tests: New file.
67630         * tests/test-atexit.sh: New file.
67631         * tests/test-atexit.c: New file.
67632
67633 2007-03-10  Bruno Haible  <bruno@clisp.org>
67634
67635         * tests/test-binary-io.sh: Use temporary filenames that are not so
67636         likely to clash with those of other tests (in a parallel make).
67637         * tests/test-binary-io.c: Likewise.
67638
67639 2007-03-10  Bruno Haible  <bruno@clisp.org>
67640
67641         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67642         fallback; use #error instead.
67643         Suggested by Simon Josefsson.
67644
67645 2007-03-10  Bruno Haible  <bruno@clisp.org>
67646
67647         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67648         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67649         first and the last.
67650
67651 2007-03-10  Bruno Haible  <bruno@clisp.org>
67652
67653         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67654
67655 2007-03-10  Bruno Haible  <bruno@clisp.org>
67656
67657         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67658         "make distcheck".
67659         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67660         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67661         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67662
67663 2007-03-10  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67666         variable.
67667         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67668         variable.
67669
67670 2007-03-09  Eric Blake  <ebb9@byu.net>
67671         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67672
67673         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67674         types are not being provided by gnulib.
67675         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67676         types are supported.
67677
67678 2007-03-10  Bruno Haible  <bruno@clisp.org>
67679
67680         * lib/stdio_.h (__attribute__): New macro.
67681         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67682         vsprintf): Specify __attribute__ __format__ for GCC.
67683         Suggested by Eric Blake.
67684
67685 2007-03-09  Bruno Haible  <bruno@clisp.org>
67686
67687         * modules/printf-posix-tests: New file.
67688         * tests/test-printf-posix.sh: New file.
67689         * tests/test-printf-posix.c: New file.
67690
67691         * modules/printf-posix: New file.
67692         * lib/printf.c: New file.
67693         * m4/printf-posix-rpl.m4: New file.
67694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67695         REPLACE_PRINTF.
67696         * lib/stdio_.h (printf): New declaration.
67697         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67698         ____strfmon____): New macros.
67699         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67700         REPLACE_PRINTF.
67701
67702 2007-03-09  Bruno Haible  <bruno@clisp.org>
67703
67704         * tests/test-vasnprintf-posix2.sh: New file.
67705         * tests/test-vasnprintf-posix2.c: New file.
67706         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67707         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67708         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67709
67710         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67711         a locale dependent decimal point, rather than always '.'.
67712
67713 2007-03-09  Eric Blake  <ebb9@byu.net>
67714
67715         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67716         spite of platforms like Tandem/NSK that define it to -1.
67717
67718 2007-03-08  Bruno Haible  <bruno@clisp.org>
67719
67720         * modules/vprintf-posix-tests: New file.
67721         * tests/test-vprintf-posix.sh: New file.
67722         * tests/test-vprintf-posix.c: New file.
67723         * tests/test-printf-posix.h: New file.
67724
67725         * modules/vprintf-posix: New file.
67726         * lib/vprintf.c: New file.
67727         * m4/vprintf-posix.m4: New file.
67728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67729         REPLACE_VPRINTF.
67730         * lib/stdio_.h (vprintf): New declaration.
67731         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67732         REPLACE_VPRINTF.
67733
67734 2007-03-08  Bruno Haible  <bruno@clisp.org>
67735
67736         * modules/fprintf-posix-tests: New file.
67737         * tests/test-fprintf-posix.sh: New file.
67738         * tests/test-fprintf-posix.c: New file.
67739
67740         * modules/fprintf-posix: New file.
67741         * lib/fprintf.c: New file.
67742         * m4/fprintf-posix.m4: New file.
67743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67744         REPLACE_FPRINTF.
67745         * lib/stdio_.h (fprintf): New declaration.
67746         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67747         REPLACE_FPRINTF.
67748
67749 2007-03-08  Bruno Haible  <bruno@clisp.org>
67750
67751         * modules/vfprintf-posix-tests: New file.
67752         * tests/test-vfprintf-posix.sh: New file.
67753         * tests/test-vfprintf-posix.c: New file.
67754         * tests/test-fprintf-posix.h: New file.
67755         * tests/test-fprintf-posix.out: New file.
67756
67757         * modules/vfprintf-posix: New file.
67758         * lib/vfprintf.c: New file.
67759         * m4/vfprintf-posix.m4: New file.
67760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67761         REPLACE_VFPRINTF.
67762         * lib/stdio_.h (vfprintf): New declaration.
67763         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67764         REPLACE_VFPRINTF.
67765
67766 2007-03-08  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67769
67770 2007-03-08  Bruno Haible  <bruno@clisp.org>
67771
67772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67773         instead of 'expr' invocations.
67774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67777         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67779         Suggested by Paul Eggert.
67780
67781 2007-03-08  Bruno Haible  <bruno@clisp.org>
67782
67783         * modules/fseterr-tests: New file.
67784         * tests/test-fseterr.c: New file.
67785
67786         * modules/fseterr: New file.
67787         * lib/fseterr.h: New file.
67788         * lib/fseterr.c: New file.
67789
67790 2007-03-08  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67793         * lib/getopt_.h: Likewise.
67794         * lib/mbswidth.h: Likewise.
67795         * lib/setenv.h: Likewise.
67796         * lib/vasnprintf.h: Likewise.
67797         * lib/vasprintf.h: Likewise.
67798         * lib/verror.h: Likewise.
67799         * lib/xsetenv.h: Likewise.
67800         * lib/xvasprintf.h: Likewise.
67801
67802 2007-03-08  Jim Meyering  <jim@meyering.net>
67803
67804         * users.txt: Add parted.
67805
67806         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67807
67808 2007-03-07  Bruno Haible  <bruno@clisp.org>
67809
67810         * m4/printf.m4: Make the shell script snippets copy&pastable.
67811
67812 2007-03-02  Bruno Haible  <bruno@clisp.org>
67813
67814         * lib/netinet_in_.h: New file.
67815         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67816         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67817         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67818         (Depends-on): Add absolute-header.
67819         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67820         into netinet/in.h.
67821
67822 2007-03-03  Bruno Haible  <bruno@clisp.org>
67823
67824         * lib/sys_select_.h: New file.
67825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67826         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67827         * modules/sys_select (Files): Add lib/sys_select_.h.
67828         (Depends-on): Add absolute-header.
67829         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67830         into sys/select.h.
67831
67832 2007-03-02  Bruno Haible  <bruno@clisp.org>
67833
67834         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67835         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67836         values.
67837         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67838         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67839         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67840         * modules/sys_socket (Depends-on): Add absolute-header.
67841         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67842         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67843         (Include): Remove requirement of inclusion of <sys/types.h>.
67844
67845 2007-03-02  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/byteswap_.h (bswap_32): Fix formula.
67848
67849 2007-03-06  Bruno Haible  <bruno@clisp.org>
67850
67851         * modules/sprintf-posix-tests: New file.
67852         * tests/test-sprintf-posix.c: New file.
67853
67854         * modules/sprintf-posix: New file.
67855         * lib/sprintf.c: New file.
67856         * m4/sprintf-posix.m4: New file.
67857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67858         REPLACE_SPRINTF.
67859         * lib/stdio_.h (sprintf): New declaration.
67860         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67861         REPLACE_SPRINTF.
67862
67863 2007-03-06  Bruno Haible  <bruno@clisp.org>
67864
67865         * modules/vsprintf-posix-tests: New file.
67866         * tests/test-vsprintf-posix.c: New file.
67867         * tests/test-sprintf-posix.h: New file.
67868
67869         * modules/vsprintf-posix: New file.
67870         * lib/vsprintf.c: New file.
67871         * m4/vsprintf-posix.m4: New file.
67872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67873         REPLACE_VSPRINTF.
67874         * lib/stdio_.h (vsprintf): New declaration.
67875         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67876         REPLACE_VSPRINTF.
67877
67878 2007-03-06  Bruno Haible  <bruno@clisp.org>
67879
67880         * modules/vsnprintf (Depend-on): Remove minmax.
67881
67882 2007-03-06  Bruno Haible  <bruno@clisp.org>
67883
67884         * modules/snprintf-posix-tests: New file.
67885         * tests/test-snprintf-posix.c: New file.
67886
67887         * modules/snprintf-posix: New file.
67888         * m4/snprintf-posix.m4: New file.
67889         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67890         gl_FUNC_SNPRINTF.
67891         (gl_FUNC_SNPRINTF): Invoke it.
67892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67893         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67894         is set.
67895         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67896
67897 2007-03-06  Bruno Haible  <bruno@clisp.org>
67898
67899         * modules/vsnprintf-posix-tests: New file.
67900         * tests/test-vsnprintf-posix.c: New file.
67901         * tests/test-snprintf-posix.h: New file.
67902
67903         * modules/vsnprintf-posix: New file.
67904         * m4/vsnprintf-posix.m4: New file.
67905         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67906         gl_FUNC_VSNPRINTF.
67907         (gl_FUNC_VSNPRINTF): Invoke it.
67908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67909         * lib/stdio_.h (vsnprintf): Define as a replacement if
67910         REPLACE_VSNPRINTF is set.
67911         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67912
67913 2007-03-06  Bruno Haible  <bruno@clisp.org>
67914
67915         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67917
67918 2007-03-06  Bruno Haible  <bruno@clisp.org>
67919
67920         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67921         (asinl): Declare also if HAVE_DECL_ASINL is set.
67922         (atanl): Declare also if HAVE_DECL_ATANL is set.
67923         (ceill): Declare also if HAVE_DECL_CEILL is set.
67924         (cosl): Declare also if HAVE_DECL_COSL is set.
67925         (expl): Declare also if HAVE_DECL_EXPL is set.
67926         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67927         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67928         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67929         (logl): Declare also if HAVE_DECL_LOGL is set.
67930         (sinl): Declare also if HAVE_DECL_SINL is set.
67931         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67932         (tanl): Declare also if HAVE_DECL_TANL is set.
67933         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67935         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67936         declaration of frexpl, ldexpl.
67937         * modules/printf-frexpl (Depends-on): Add math.
67938         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67939
67940 2007-03-05  Bruno Haible  <bruno@clisp.org>
67941
67942         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67943         frexpl and ldexpl are declared.
67944         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67945
67946 2007-03-05  Bruno Haible  <bruno@clisp.org>
67947
67948         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67949         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67950
67951 2007-03-05  Bruno Haible  <bruno@clisp.org>
67952
67953         * lib/stdio_.h: Include <stddef.h>.
67954
67955 2007-03-05  Bruno Haible  <bruno@clisp.org>
67956
67957         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67958
67959 2007-03-05  Bruno Haible  <bruno@clisp.org>
67960
67961         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67962         NetBSD 4, from Ralf Wildenhues.
67963
67964 2007-03-04  Bruno Haible  <bruno@clisp.org>
67965
67966         * lib/vasprintf.h: Update #if logic for the case when the functions
67967         exist but are overridden.
67968
67969 2007-03-04  Bruno Haible  <bruno@clisp.org>
67970
67971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67972         implementations: glibc-2.4 and MacOS X 10.3.
67973         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67974         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67975         * tests/test-vasprintf-posix.c (test_function): Likewise.
67976
67977 2007-03-04  Bruno Haible  <bruno@clisp.org>
67978
67979         * modules/vasprintf-posix-tests: New file.
67980         * tests/test-vasprintf-posix.c: New file.
67981
67982         * modules/vasprintf-posix: New file.
67983         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67984         defined.
67985         * m4/vasprintf-posix.m4: New file.
67986         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67987         gl_FUNC_VASPRINTF.
67988         (gl_FUNC_VASPRINTF): Invoke it.
67989         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67990         here.
67991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67992
67993 2007-03-04  Bruno Haible  <bruno@clisp.org>
67994
67995         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67996         REPLACE_GETTIMEOFDAY.
67997         * modules/sys_time (Makefile.am): Likewise.
67998         * m4/sys_time_h.m4: Likewise.
67999         * m4/gettimeofday.m4: Likewise.
68000
68001 2007-03-04  Bruno Haible  <bruno@clisp.org>
68002
68003         * modules/vasnprintf-posix-tests: New file.
68004         * tests/test-vasnprintf-posix.c: New file.
68005
68006         * modules/vasnprintf-posix: New file.
68007         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68008         printf-frexpl.h.
68009         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68010         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68011         REPLACE_VASNPRINTF is defined.
68012         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68013         gl_FUNC_VASNPRINTF.
68014         (gl_FUNC_VASNPRINTF): Invoke it.
68015         * m4/vasnprintf-posix.m4: New file.
68016         * m4/printf.m4: New file.
68017
68018 2007-03-04  Bruno Haible  <bruno@clisp.org>
68019
68020         Compile progreloc.c only if --enable-relocatable is specified.
68021         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68022         if --enable-relocatable was specified.
68023         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68024         lib_SOURCES.
68025
68026 2007-03-04  Jim Meyering  <jim@meyering.net>
68027
68028         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68029         Use it consistently, rather than enumerating errno constants.
68030
68031 2007-03-04  Bruno Haible  <bruno@clisp.org>
68032
68033         * modules/xvasprintf-tests: New file.
68034         * tests/test-xvasprintf.c: New file.
68035
68036         * modules/vasprintf-tests: New file.
68037         * tests/test-vasprintf.c: New file.
68038
68039         * modules/vasnprintf-tests: New file.
68040         * tests/test-vasnprintf.c: New file.
68041
68042         * modules/vsnprintf-tests: New file.
68043         * tests/test-vsnprintf.c: New file.
68044
68045         * modules/snprintf-tests: New file.
68046         * tests/test-snprintf.c: New file.
68047
68048 2007-03-04  Bruno Haible  <bruno@clisp.org>
68049
68050         Compile relocatable.c only if --enable-relocatable is specified.
68051         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68052         gl_RELOCATABLE_LIBRARY.
68053         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68054         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68055         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68056         gl_RELOCATABLE_LIBRARY.
68057         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68058         (Makefile.am): Remove lib_SOURCES.
68059         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68060         gl_RELOCATABLE_LIBRARY.
68061         (Makefile.am): Remove lib_SOURCES.
68062         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68063         always.
68064         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68065         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68066
68067 2007-03-04  Bruno Haible  <bruno@clisp.org>
68068
68069         * modules/argmatch-tests: New file.
68070         * tests/test-argmatch.c: New file.
68071
68072         * tests/test-allocsa.c (main): Halve the number of loop runs.
68073
68074         * modules/alloca-opt-tests: New file.
68075         * tests/test-alloca-opt.c: New file.
68076
68077 2007-03-04  Jim Meyering  <jim@meyering.net>
68078
68079         Work around difference between Linux ACLs and Solaris 10 ZFS.
68080         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68081         for EINVAL.
68082
68083 2007-03-03  Bruno Haible  <bruno@clisp.org>
68084
68085         * modules/relocatable-prog (Depends-on): Add back progreloc's
68086         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68087
68088 2007-03-03  Bruno Haible  <bruno@clisp.org>
68089
68090         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68091         * modules/relocatable-lib: New file.
68092
68093 2007-03-03  Bruno Haible  <bruno@clisp.org>
68094
68095         * modules/relocatable-prog: Renamed from modules/relocatable.
68096         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68097
68098 2007-03-03  Bruno Haible  <bruno@clisp.org>
68099
68100         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68101         m4/relocatable-lib.m4.
68102         (Depends-on): Remove 'relocatable'.
68103         (configure.ac): Add gl_RELOCATABLE_NOP.
68104
68105 2007-03-03  Bruno Haible  <bruno@clisp.org>
68106
68107         * modules/relocatable-prog-wrapper: New file.
68108         * modules/relocatable (Depends-on): Add it. Remove all other
68109         dependencies except progname.
68110         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68111
68112         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68113         (gl_FUNC_STRERROR): Nop.
68114         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68115
68116         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68117         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68118
68119         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68120         (gl_FUNC_READLINK): Update.
68121
68122         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68123
68124 2007-03-03  Bruno Haible  <bruno@clisp.org>
68125
68126         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68127         * modules/xreadlink (Depends-on): Add unistd.
68128         * modules/xreadlink-with-size (Depends-on): Likewise.
68129
68130 2007-03-03  Bruno Haible  <bruno@clisp.org>
68131
68132         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68133         extracted from gt_FUNC_SETENV.
68134         (gt_FUNC_SETENV): Remove macro.
68135         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68136         remove gt_FUNC_SETENV.
68137
68138 2007-03-03  Bruno Haible  <bruno@clisp.org>
68139
68140         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68141         ENABLE_RELOCATABLE here.
68142         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68143
68144 2007-03-03  Bruno Haible  <bruno@clisp.org>
68145
68146         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68147         * tests/test-rbtreehash_list.c: Include progname.h.
68148         (main): Call set_program_name.
68149
68150         * modules/rbtree-oset-tests (Depends-on): Add progname.
68151         * tests/test-rbtree_oset.c: Include progname.h.
68152         (main): Call set_program_name.
68153
68154         * modules/rbtree-list-tests (Depends-on): Add progname.
68155         * tests/test-rbtree_list.c: Include progname.h.
68156         (main): Call set_program_name.
68157
68158         * modules/linked-list-tests (Depends-on): Add progname.
68159         * tests/test-linked_list.c: Include progname.h.
68160         (main): Call set_program_name.
68161
68162 2007-03-03  Bruno Haible  <bruno@clisp.org>
68163
68164         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68165         All uses of __restrict changed to _Restrict_.
68166         * lib/glob_.h (__restrict): Remove macro.
68167
68168 2007-03-02  Bruno Haible  <bruno@clisp.org>
68169
68170         * modules/gettext (configure.ac): Require gettext infrastructure
68171         from version 0.16.1.
68172
68173 2007-03-02  Bruno Haible  <bruno@clisp.org>
68174
68175         * modules/linkedhash-list-tests (Depends-on): Add progname.
68176         * tests/test-linkedhash_list.c: Include progname.h.
68177         (main): Call set_program_name.
68178
68179         * modules/carray-list-tests (Depends-on): Add progname.
68180         * tests/test-carray_list.c: Include progname.h.
68181         (main): Call set_program_name.
68182
68183         * modules/avltreehash-list-tests (Depends-on): Add progname.
68184         * tests/test-avltreehash_list.c: Include progname.h.
68185         (main): Call set_program_name.
68186
68187         * modules/avltree-oset-tests (Depends-on): Add progname.
68188         * tests/test-avltree_oset.c: Include progname.h.
68189         (main): Call set_program_name.
68190
68191         * modules/avltree-list-tests (Depends-on): Add progname.
68192         * tests/test-avltree_list.c: Include progname.h.
68193         (main): Call set_program_name.
68194
68195         * modules/array-oset-tests (Depends-on): Add progname.
68196         * tests/test-array_oset.c: Include progname.h.
68197         (main): Call set_program_name.
68198
68199         * modules/array-list-tests (Depends-on): Add progname.
68200         * tests/test-array_list.c: Include progname.h.
68201         (main): Call set_program_name.
68202
68203         * modules/argp-tests (Depends-on): Add progname.
68204         * tests/test-argp.c: Include argp.h first. Include progname.h.
68205         (main): Call set_program_name.
68206
68207 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * doc/gnulib-tool.texi (Initial import): Reword description of
68210         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68211         limited effect even if defined after the first system include.
68212
68213 2007-03-01  Bruno Haible  <bruno@clisp.org>
68214
68215         * build-aux/config.libpath: Update to libtool-1.5.22.
68216         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68217
68218 2007-03-01  Bruno Haible  <bruno@clisp.org>
68219
68220         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68221         foo_CFLAGS.
68222         Reported by Ralf Wildenhues.
68223
68224 2007-03-01  Bruno Haible  <bruno@clisp.org>
68225
68226         * build-aux/install-reloc: Remove object files left over by some
68227         compilers.
68228         Reported by Ralf Wildenhues.
68229
68230 2007-03-01  Bruno Haible  <bruno@clisp.org>
68231
68232         * build-aux/install-reloc: Break long lines.
68233
68234 2007-03-01  Bruno Haible  <bruno@clisp.org>
68235
68236         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68237         Reported by Ralf Wildenhues.
68238
68239 2007-03-01  Bruno Haible  <bruno@clisp.org>
68240
68241         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68242         include ordering constraints.
68243
68244 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68245
68246         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68247         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68248         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68249         as another example.
68250         * lib/time_.h: Fix misspelling.
68251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68252         Require gl_HEADER_TIME_H_DEFAULTS.
68253         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68254         * m4/time_r.m4 (gl_TIME_R): Likewise.
68255         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68256
68257 2007-03-01  Bruno Haible  <bruno@clisp.org>
68258
68259         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68260         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68261
68262 2007-03-01  Jim Meyering  <jim@meyering.net>
68263
68264         * modules/xreadlink (Maintainer): Add my name.
68265         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68266
68267 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68268             Bruno Haible  <bruno@clisp.org>
68269
68270         * build-aux/install-reloc: Compile also c-ctype.c.
68271         * build-aux/relocatable.sh.in: New file.
68272         * doc/relocatable.texi: New file.
68273         * doc/relocatable-maint.texi: New file.
68274         * doc/gnulib.texi: Include relocatable-maint.texi.
68275         * lib/progreloc.c: Include unistd.h unconditionally.
68276         * lib/relocwrapper.c: Include unistd.h unconditionally.
68277         Include c-ctype.h.
68278         (add_dotbin): Use c_tolower.
68279         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68280         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68281         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68282         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68283         to m4/relocatable-lib.m4.
68284         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68285         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68286         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68287         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68288         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68289         * modules/relocatable: New file.
68290         * modules/relocatable-lib: New file.
68291         * modules/relocatable-script: New file.
68292
68293 2007-02-28  Bruno Haible  <bruno@clisp.org>
68294
68295         Import --enable-relocatable infrastructure.
68296         * build-aux/config.libpath: New file, from GNU gettext.
68297         * build-aux/install-reloc: New file, from GNU gettext.
68298         * build-aux/reloc-ldflags: New file, from GNU gettext.
68299         * lib/relocatable.h: New file, from GNU gettext.
68300         * lib/relocatable.c: New file, from GNU gettext.
68301         * lib/relocwrapper.c: New file, from GNU gettext.
68302         * m4/relocatable.m4: New file, from GNU gettext.
68303
68304 2007-02-28  Bruno Haible  <bruno@clisp.org>
68305
68306         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68307
68308         * modules/xreadlink: New file, from GNU gettext with modifications.
68309         * lib/xreadlink.c: New file, from GNU gettext.
68310         * lib/xreadlink.h: Add comments.
68311         (xreadlink): New declaration.
68312
68313         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68314         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68315         lib/xreadlink-with-size.c.
68316         (configure.ac): Remove gl_XREADLINK invocation.
68317         (Makefile.am): Augment lib_SOURCES.
68318         * m4/xreadlink.m4: Remove file.
68319         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68320         (xreadlink_with_size): Renamed from xreadink.
68321         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68322         * modules/canonicalize (Depends-on): Replace xreadlink with
68323         xreadlink-with-size.
68324         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68325
68326 2007-02-25  Jim Meyering  <jim@meyering.net>
68327
68328         * build-aux/announce-gen: When complaining about excess arguments,
68329         list them.
68330
68331 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68332
68333         * README: Document signed integer overflow situation more
68334         accurately.
68335
68336 2007-02-25  Bruno Haible  <bruno@clisp.org>
68337
68338         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68339         'a' or 'A' conversion.
68340
68341 2007-02-25  Bruno Haible  <bruno@clisp.org>
68342
68343         * modules/filename: Renamed from modules/pathname.
68344         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68345         lib/concatpath.c with lib/concat-filename.c.
68346         (Makefile.am): Update.
68347         (Include): Replace pathname.h with filename.h.
68348         * lib/filename.h: Renamed from lib/pathname.h.
68349         (concatenated_filename): Renamed from concatenated_pathname.
68350         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68351         (concatenated_filename): Renamed from concatenated_pathname.
68352         * lib/findprog.c: Include filename.h instead of pathname.h.
68353         (find_in_path): Update.
68354         * lib/javacomp.c: Include filename.h instead of pathname.h.
68355         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68356         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68357         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68358         is_oldgcj_14_13_usable, is_javac_usable): Update.
68359         * lib/javaexec.c: Include filename.h instead of pathname.h.
68360         (execute_java_class): Update.
68361         * modules/findprog: Update.
68362         * modules/javacomp: Update.
68363         * modules/javaexec: Update.
68364         * MODULES.html.sh (File system functions): Add 'filename', remove
68365         'pathname'.
68366
68367 2007-02-25  Bruno Haible  <bruno@clisp.org>
68368
68369         * modules/printf-frexpl-tests: New file.
68370         * tests/test-printf-frexpl.c: New file.
68371
68372         * modules/printf-frexpl: New file.
68373         * lib/printf-frexpl.h: New file.
68374         * lib/printf-frexpl.c: New file.
68375         * m4/printf-frexpl.m4: New file.
68376
68377 2007-02-25  Bruno Haible  <bruno@clisp.org>
68378
68379         * modules/printf-frexp-tests: New file.
68380         * tests/test-printf-frexp.c: New file.
68381
68382         * modules/printf-frexp: New file.
68383         * lib/printf-frexp.h: New file.
68384         * lib/printf-frexp.c: New file.
68385         * m4/printf-frexp.m4: New file.
68386
68387 2007-02-25  Bruno Haible  <bruno@clisp.org>
68388
68389         Assume automake >= 1.10 for the tests.
68390         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68391         * modules/arctwo-tests: Likewise.
68392         * modules/argp-tests: Likewise.
68393         * modules/avltree-list-tests: Likewise.
68394         * modules/avltree-oset-tests: Likewise.
68395         * modules/avltreehash-list-tests: Likewise.
68396         * modules/carray-list-tests: Likewise.
68397         * modules/crc-tests: Likewise.
68398         * modules/des-tests: Likewise.
68399         * modules/gc-arcfour-tests: Likewise.
68400         * modules/gc-arctwo-tests: Likewise.
68401         * modules/gc-des-tests: Likewise.
68402         * modules/gc-hmac-md5-tests: Likewise.
68403         * modules/gc-hmac-sha1-tests: Likewise.
68404         * modules/gc-md2-tests: Likewise.
68405         * modules/gc-md4-tests: Likewise.
68406         * modules/gc-md5-tests: Likewise.
68407         * modules/gc-pbkdf2-sha1-tests: Likewise.
68408         * modules/gc-rijndael-tests: Likewise.
68409         * modules/gc-sha1-tests: Likewise.
68410         * modules/gc-tests: Likewise.
68411         * modules/getaddrinfo-tests: Likewise.
68412         * modules/hmac-md5-tests: Likewise.
68413         * modules/hmac-sha1-tests: Likewise.
68414         * modules/linked-list-tests: Likewise.
68415         * modules/linkedhash-list-tests: Likewise.
68416         * modules/lock-tests: Likewise.
68417         * modules/md2-tests: Likewise.
68418         * modules/md4-tests: Likewise.
68419         * modules/md5-tests: Likewise.
68420         * modules/rbtree-list-tests: Likewise.
68421         * modules/rbtree-oset-tests: Likewise.
68422         * modules/rbtreehash-list-tests: Likewise.
68423         * modules/read-file-tests: Likewise.
68424         * modules/rijndael-tests: Likewise.
68425         * modules/stdint-tests: Likewise.
68426         * modules/tls-tests: Likewise.
68427
68428 2007-02-24  Bruno Haible  <bruno@clisp.org>
68429
68430         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68431         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68432         function; instead check whether isnan with a double argument links.
68433         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68434         function; instead check whether isnan with a 'long double' argument
68435         links.
68436         Reported by Eric Blake <ebb9@byu.net>.
68437
68438 2007-02-24  Bruno Haible  <bruno@clisp.org>
68439
68440         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68441         defined.
68442         * lib/isnanl.c: Remove all code. Just include isnan.c.
68443         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68444
68445 2007-02-25  Jim Meyering  <jim@meyering.net>
68446
68447         Avoid conflicting types for 'unsetenv' on FreeBSD.
68448         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68449         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68450         in stdlib.h.
68451
68452 2007-02-24  Bruno Haible  <bruno@clisp.org>
68453
68454         * modules/isnanl-nolibm-tests: New file.
68455         * tests/test-isnanl.c: New file.
68456
68457         * modules/isnanl-nolibm: New file.
68458         * lib/isnanl.h: New file.
68459         * lib/isnanl.c: New file.
68460         * m4/isnanl.m4: New file.
68461
68462 2007-02-24  Bruno Haible  <bruno@clisp.org>
68463
68464         * modules/isnan-nolibm-tests: New file.
68465         * tests/test-isnan.c: New file.
68466
68467         * modules/isnan-nolibm: New file.
68468         * lib/isnan.h: New file.
68469         * lib/isnan.c: New file.
68470         * m4/isnan.m4: New file.
68471
68472 2007-02-24  Bruno Haible  <bruno@clisp.org>
68473
68474         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68475         assume that an exponent fits in 20 bits.
68476
68477 2007-02-24  Jim Meyering  <jim@meyering.net>
68478
68479         * m4/regex.m4: Update the description of the configure-time option,
68480         --without-included-regex, to state accurately what the defaults are,
68481         and perhaps to give people an idea why using this option is risky.
68482
68483 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68484
68485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68486         loops on small arguments.  This attempts to avoid the problem
68487         Bruno Haible reported for AIX 4.3.2 in
68488         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68489
68490 2007-02-23  Bruno Haible  <bruno@clisp.org>
68491
68492         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68493         Needed for help2man.
68494
68495 2007-02-23  Karl Berry  <karl@gnu.org>
68496
68497         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68498         exists, foo.h should be cvs-ignored, not committed.
68499
68500 2007-02-23  Eric Blake  <ebb9@byu.net>
68501
68502         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68503         * lib/stat-time.h (includes): Likewise.
68504         * lib/utimecmp.c (includes): Likewise.
68505         * lib/utimens.h (includes): Likewise.
68506         * lib/getdate.y (includes): Also include "timespec.h" for use
68507         internal to the module.
68508         * modules/utimens (Depends-on): Revert yesterday's patch.
68509         * modules/nanosleep (Depends-on): Add missing dependency.
68510
68511 2007-02-22  Bruno Haible  <bruno@clisp.org>
68512
68513         * lib/glob.c: Don't include getlogin_r.h.
68514
68515 2007-02-22  Jim Meyering  <jim@meyering.net>
68516
68517         * modules/utimens (Depends-on): Add timespec, required for
68518         utimens.h's inclusion of timespec.h.
68519
68520 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68523         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68524         Schwab in
68525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68526         I'll try to think of a better way to fix the Solaris problem.
68527
68528         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68529         like glibc; on Solaris 10, it fails with errno == EINVAL.
68530         POSIX says the behavior is unspecified if the first argument is NULL,
68531         so play it safe and never pass NULL to the system getcwd.
68532
68533 2007-02-21  Jim Meyering  <jim@meyering.net>
68534
68535         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68536         of gettimeofday.  It would conflict with the one now always
68537         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68538         an IRIX 6.5 build failure.
68539
68540 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68541
68542         Minor fixups to port to Solaris 10 with Sun C 5.8.
68543         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68544         * modules/getcwd (Depends-on): Add dirfd.
68545         * lib/putenv.c (putenv): #undef it.
68546         (rpl_putenv): New decl.
68547         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68548
68549 2007-02-20  Bruno Haible  <bruno@clisp.org>
68550
68551         * modules/stdio-tests: New file.
68552         * tests/test-stdio.c: New file.
68553
68554         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68555         (Depends-on): Add stdio.
68556         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68557         (Include): Use <stdio.h> instead of vsnprintf.h.
68558         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68559         HAVE_DECL_VSNPRINTF.
68560         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68561
68562         * modules/snprintf (Files): Remove lib/snprintf.h.
68563         (Depends-on): Add stdio.
68564         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68565         (Include): Use <stdio.h> instead of snprintf.h.
68566         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68567         HAVE_DECL_SNPRINTF.
68568         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68569         * lib/getaddrinfo.c: Likewise.
68570
68571         * modules/stdio: New file.
68572         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68573         * lib/snprintf.h: Remove file.
68574         * lib/vsnprintf.h: Remove file.
68575         * lib/.cppi-disable: Remove snprintf.h.
68576         * m4/stdio_h.m4: New file.
68577         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68578
68579 2007-02-20  Jim Meyering  <jim@meyering.net>
68580
68581         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68582         used by e.g., mingw.  From Bruno Haible.
68583
68584 2007-02-19  Bruno Haible  <bruno@clisp.org>
68585
68586         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68587         warnings.
68588         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68589
68590 2007-02-19  Bruno Haible  <bruno@clisp.org>
68591
68592         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68593         from mingw users.
68594
68595 2007-02-19  Bruno Haible  <bruno@clisp.org>
68596
68597         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68598         warnings.
68599         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68600
68601 2007-02-19  Jim Meyering  <jim@meyering.net>
68602
68603         Don't use FD after a successful "fdopendir (fd)".
68604         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68605         Reset it by calling dirfd on the just-obtained DIR*.
68606
68607         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68608         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68609
68610 2007-02-18  Bruno Haible  <bruno@clisp.org>
68611
68612         * lib/readlink.c: Include <unistd.h>.
68613         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68614         HAVE_READLINK.
68615         * modules/readlink (Depends-on): Add unistd.
68616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68617         (Include): Add <unistd.h>.
68618
68619         * lib/getlogin_r.h: Remove file.
68620         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68621         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68622         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68623         HAVE_DECL_GETLOGIN_R.
68624         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68625         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68626         (Include): Use <unistd.h> instead of getlogin_r.h.
68627
68628         * lib/getcwd.h: Remove file.
68629         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68630         * lib/xgetcwd.c: Likewise.
68631         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68632         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68633         * modules/getcwd (Files): Remove lib/getcwd.h.
68634         (Depends-on): Add unistd.
68635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68636         (Include): Use <unistd.h> instad of getcwd.h.
68637
68638         * lib/ftruncate.c: Include <unistd.h> first.
68639         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68640         Set HAVE_FTRUNCATE.
68641         * modules/ftruncate (Depends-on): Add unistd.
68642         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68643
68644         * lib/fchdir.c: Include <unistd.h> first.
68645         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68647         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68648         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68649         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68650
68651         * lib/dup2.c: Include <unistd.h> first.
68652         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68653         HAVE_DUP2.
68654         * modules/dup2 (Depends-on): Add unistd.
68655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68656
68657         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68658         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68659         REPLACE_CHOWN. Don't define chown as a macro here.
68660         * modules/chown (Depends-on): Add unistd.
68661         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68662
68663         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68664         Add definition for GL_LINK_WARNING.
68665         (chown, dup2): New declarations.
68666         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68667         link warning.
68668         (ftruncate): New declaration.
68669         (getcwd): New declaration, taken from old getcwd.h.
68670         (getlogin_r): New declaration, taken from old getlogin_r.h.
68671         (readlink): New declaration.
68672         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68673         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68674         (gl_PREREQ_UNISTD): Remove macro.
68675         (gl_UNISTD_MODULE_INDICATOR): New macro.
68676         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68677         many new variables. Don't set UNISTD_H.
68678         * modules/unistd (Description): Change.
68679         (Depends-on): Add link-warning.
68680         (configure.ac): Update.
68681         (Makefile.am): Create unistd.h always. Substitute many new variables
68682         into it.
68683
68684 2007-02-18  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68687         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68688         HAVE_GETSUBOPT.
68689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68690         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68691         * lib/getsubopt.h: Remove file.
68692         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68693         (Depends-on): Add stdlib.
68694         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68695         (Includes): Use <stdlib.h> instead of getsubopt.h.
68696         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68697         Set HAVE_GETSUBOPT.
68698         * lib/getsubopt.c: Don't include getsubopt.h.
68699
68700 2007-02-18  Bruno Haible  <bruno@clisp.org>
68701
68702         * modules/fchdir (Depends-on): Add dup2.
68703
68704 2007-02-18  Bruno Haible  <bruno@clisp.org>
68705
68706         * lib/stdlib_.h: Handle glibc's special invocation convention
68707         specially.
68708
68709 2007-02-18  Bruno Haible  <bruno@clisp.org>
68710
68711         * modules/stdlib-tests: New file.
68712         * tests/test-stdlib.c: New file.
68713
68714         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68715         (Depends-on): Add stdlib.
68716         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68717         (Includes): Use <stdlib.h> instead of mkstemp.h.
68718         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68719         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68720         * lib/mkstemp.c: Don't include mkstemp.h.
68721         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68722         * lib/stdlib--.h: Don't include mkstemp.h.
68723
68724         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68725         (Depends-on): Add stdlib.
68726         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68727         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68728         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68729         HAVE_MKDTEMP.
68730         * lib/mkdtemp.c: Don't include mkdtemp.h.
68731         * lib/clean-temp.c: Don't include mkdtemp.h.
68732
68733         * modules/exit (Files): Remove lib/exit.h.
68734         (Depends-on): Add stdlib.
68735         (Makefile.am): Remove lib_SOURCES.
68736         (Include): Use <stdlib.h> instead of exit.h.
68737         * lib/argmatch.c: Don't include exit.h.
68738         * lib/execute.c: Likewise.
68739         * lib/pagealign_alloc.c: Likewise.
68740         * lib/pipe.c: Likewise.
68741         * lib/wait-process.c: Likewise.
68742         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68743         * lib/exitfail.c: Likewise.
68744         * lib/savewd.c: Likewise.
68745         * lib/xsetenv.c: Likewise.
68746
68747         * modules/stdlib: New file.
68748         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68749         and extra comments about mkstemp().
68750         * lib/exit.h: Remove file.
68751         * lib/mkdtemp.h: Remove file.
68752         * lib/mkstemp.h: Remove file.
68753         * m4/stdlib_h.m4: New file.
68754         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68755
68756 2007-02-18  Bruno Haible  <bruno@clisp.org>
68757
68758         * modules/math-tests: New file.
68759         * tests/test-math.c: New file.
68760
68761         * modules/math: New file.
68762         * modules/mathl (Files): Remove lib/mathl.h.
68763         (Depends-on): Add math.
68764         (Makefile.am): Don't mention mathl.h.
68765         (Include): Use <math.h> instead of mathl.h.
68766         * lib/math_.h: New file.
68767         * lib/mathl.h: Remove file.
68768         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68769         mathl.h.
68770         * lib/asinl.c: Likewise.
68771         * lib/atanl.c: Likewise.
68772         * lib/ceill.c: Likewise.
68773         * lib/cosl.c: Likewise.
68774         * lib/expl.c: Likewise.
68775         * lib/floorl.c: Likewise.
68776         * lib/frexpl.c: Likewise.
68777         * lib/ldexpl.c: Likewise.
68778         * lib/logl.c: Likewise.
68779         * lib/sincosl.c: Likewise.
68780         * lib/sinl.c: Likewise.
68781         * lib/sqrtl.c: Likewise.
68782         * lib/tanl.c: Likewise.
68783         * lib/trigl.c: Likewise.
68784         * m4/math_h.m4: New file.
68785         * MODULES.html.sh (Mathematics): Add math.
68786
68787 2007-02-17  Bruno Haible  <bruno@clisp.org>
68788
68789         * modules/wctype-tests: New file.
68790         * tests/test-wctype.c: New file.
68791
68792         * modules/wchar-tests: New file.
68793         * tests/test-wchar.c: New file.
68794
68795         * modules/unistd-tests: New file.
68796         * tests/test-unistd.c: New file.
68797
68798         * modules/time-tests: New file.
68799         * tests/test-time.c: New file.
68800
68801         * modules/sysexits-tests: New file.
68802         * tests/test-sysexits.c: New file.
68803
68804         * modules/sys_time-tests: New file.
68805         * tests/test-sys_time.c: New file.
68806
68807         * modules/sys_stat-tests: New file.
68808         * tests/test-sys_stat.c: New file.
68809
68810         * modules/sys_socket-tests: New file.
68811         * tests/test-sys_socket.c: New file.
68812
68813         * modules/sys_select-tests: New file.
68814         * tests/test-sys_select.c: New file.
68815
68816         * modules/string-tests: New file.
68817         * tests/test-string.c: New file.
68818
68819         * modules/stdbool-tests: New file.
68820         * tests/test-stdbool.c: New file.
68821
68822         * modules/netinet_in-tests: New file.
68823         * tests/test-netinet_in.c: New file.
68824
68825         * modules/inttypes-tests: New file.
68826         * tests/test-inttypes.c: New file.
68827
68828         * modules/fcntl-tests: New file.
68829         * tests/test-fcntl.c: New file.
68830
68831         * modules/byteswap-tests: New file.
68832         * tests/test-byteswap.c: New file.
68833
68834         * modules/arpa_inet-tests: New file.
68835         * tests/test-arpa_inet.c: New file.
68836
68837 2007-02-17  Bruno Haible  <bruno@clisp.org>
68838
68839         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68840         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68841         if the corresponding module is not enabled. Emit link warnings if
68842         the function is used nevertheless.
68843         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68844         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68845         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68846         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68847         * modules/inttypes (Depends-on): Add link-warning.
68848         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68849         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68850         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68851         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68852         * modules/imaxdiv (configure.ac): Likewise.
68853         * modules/strtoimax (configure.ac): Likewise.
68854         * modules/strtoumax (configure.ac): Likewise.
68855
68856 2007-02-17  Bruno Haible  <bruno@clisp.org>
68857
68858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68859         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68860         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68861         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68862
68863 2007-02-17  Bruno Haible  <bruno@clisp.org>
68864
68865         * modules/link-warning: New file.
68866         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68867         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68868         * modules/string (Depends-on): Add link-warning.
68869         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68870         string.h.
68871         * MODULES.html.sh (Support for building libraries and executables): Add
68872         link-warning.
68873
68874 2007-02-17  Bruno Haible  <bruno@clisp.org>
68875
68876         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68877         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68878         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68879         long lines.
68880
68881 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68882             Bruno Haible  <bruno@clisp.org>
68883
68884         * modules/tmpfile: New file.
68885         * lib/tmpfile.c: New file.
68886         * m4/tmpfile.m4: New file.
68887         * MODULES.html.sh (func_all_modules): New section "Input/output".
68888
68889 2007-02-15  Bruno Haible  <bruno@clisp.org>
68890
68891         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68892         (supports_delete_on_close): New function.
68893         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68894
68895 2007-02-14  Bruno Haible  <bruno@clisp.org>
68896
68897         * modules/mbspcasecmp-tests: New file.
68898         * tests/test-mbspcasecmp.sh: New file.
68899         * tests/test-mbspcasecmp.c: New file.
68900
68901         New module mbspcasecmp.
68902         * modules/mbspcasecmp: New file.
68903         * lib/mbspcasecmp.c: New file.
68904         * lib/string_.h (strncasecmp): Change warning message.
68905         (mbspcasecmp): New declaration.
68906         * m4/mbspcasecmp.m4: New file.
68907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68908         GNULIB_MBSPCASECMP.
68909         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68910         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68911
68912 2007-02-14  Bruno Haible  <bruno@clisp.org>
68913
68914         * modules/mbsncasecmp-tests: New file.
68915         * tests/test-mbsncasecmp.sh: New file.
68916         * tests/test-mbsncasecmp.c: New file.
68917
68918         New module mbsncasecmp.
68919         * modules/mbsncasecmp: New file.
68920         * lib/mbsncasecmp.c: New file.
68921         * lib/string_.h (mbsncasecmp): New declaration.
68922         * m4/mbsncasecmp.m4: New file.
68923         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68924         GNULIB_MBSNCASECMP.
68925         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68926         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68927
68928 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68931         Verify that it doesn't overlap with our flags.
68932         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68933         do not have the desired effect in multibyte locales; instead, use
68934         mbscasecmp.
68935         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68936         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68937         we don't require GNU fnmatch ourselves (if our users require it, they
68938         should do so explicitly).
68939
68940         Fix regex code so it doesn't rely on strcasecmp.
68941         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68942         Otherwise, include gnulib's langinfo.h.
68943         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68944         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68945         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68946         * modules/regex (FILES): Remove m4/codeset.m4.
68947         (Depends-on): Add localcharset.  Remove strcase.
68948
68949 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68950
68951         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68952         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68953
68954 2007-02-13  Bruno Haible  <bruno@clisp.org>
68955
68956         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68958
68959 2007-02-12  Bruno Haible  <bruno@clisp.org>
68960
68961         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68962         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68963         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68964         time warning rather than a link error.
68965
68966 2007-02-12  Bruno Haible  <bruno@clisp.org>
68967
68968         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68969         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68971
68972 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68975         args, not 2.
68976
68977 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68978
68979         New module 'time', so that apps can include <time.h> as per
68980         POSIX and GNU instead of separate include files like time_r.h
68981         and timegm.h.  This implementation tries out a simpler approach
68982         for replacing decls in standard include files (as compared to
68983         the string module), somewhat as an experiment.
68984
68985         * config/srclist.txt: Comment out mktime.c for now.
68986         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68987         since it doesn't apply any more.  Use generic wording instead.
68988         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68989         'time'.
68990         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68991         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68992         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68993         Don't include <sys/types.h>; no longer needed since we assume C89.
68994         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68995         * lib/strftime.c: Likewise.
68996         * lib/time_r.c: Likewise.
68997         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68998         * lib/nanosleep.c: Include <time.h> first, to check interface.
68999         * lib/strptime.c: Likewise.
69000         * lib/time_r.c: Likewise.
69001         * lib/timegm.c: Likewise.
69002         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69003         needed.
69004         * lib/timegm.c: Don't include timegm.h; no longer needed.
69005         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69006         time.h now handles any problems in that area.
69007         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69008         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69009         that time.h defines struct timespec.
69010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69011         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69012         handles that.
69013         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69014         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69015         needed.  Set REPLACE_LOCALTIME.
69016         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69017         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69018         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69019         nanosleep; time_h.m4 now does that.  Don't require
69020         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69021         module handles this now.
69022         * modules/getdate (Depends-on): Remove timespec.  Add time.
69023         * modules/nanosleep (Depends-on): Likewise.
69024         * modules/stat-time (Depends-on): Likewise.
69025         * modules/nanosleep (Include): Include time.h, not timespec.h.
69026         * modules/strptime (Files): Remove lib/strptime.h.
69027         (Depends-on): Add extensions, time.
69028         (Include): Include time.h, not strptime.h.
69029         * modules/time_r (Files): Remove lib/time_r.h.
69030         (Depends-on): Add time.
69031         (Include): Include time.h, not time_r.h.
69032         * modules/timegm: Likewise.
69033         * modules/timespec (Description): Now does timespec-related decls
69034         of our own, instead of struct timespec itself.
69035         (Depends-on): Add time; remove extensions.
69036         (Maintainer): Add self.
69037         * modules/utimecmp (Depends-on): Add time; remove timespec.
69038         * modules/utimens (Depends-on): Likewise.
69039         * modules/xnanosleep (Depends-on): Likewise.
69040
69041 2007-02-11  Bruno Haible  <bruno@clisp.org>
69042
69043         * lib/c-strstr.c: Include allocsa.h.
69044         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69045         * lib/c-strcasestr.c: Include allocsa.h.
69046         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69047         * lib/strcasestr.c: Include allocsa.h.
69048         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69049         * lib/mbsstr.c: Include allocsa.h.
69050         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69051         allocsa/freesa instead of malloc/free.
69052         * lib/mbscasestr.c: Include allocsa.h.
69053         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69054         allocsa/freesa instead of malloc/free.
69055         * modules/c-strstr (Depends-on): Add allocsa.
69056         * modules/c-strcasestr (Depends-on): Likewise.
69057         * modules/strcasestr (Depends-on): Likewise.
69058         * modules/mbsstr (Depends-on): Likewise.
69059         * modules/mbscasestr (Depends-on): Likewise.
69060
69061 2007-02-11  Bruno Haible  <bruno@clisp.org>
69062
69063         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69064
69065         * modules/mbsspn-tests: New file.
69066         * tests/test-mbsspn.sh: New file.
69067         * tests/test-mbsspn.c: New file.
69068
69069 2007-02-11  Bruno Haible  <bruno@clisp.org>
69070
69071         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69072
69073         * modules/mbspbrk-tests: New file.
69074         * tests/test-mbspbrk.sh: New file.
69075         * tests/test-mbspbrk.c: New file.
69076
69077 2007-02-11  Bruno Haible  <bruno@clisp.org>
69078
69079         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69080         unneeded cast.
69081
69082         * modules/mbscspn-tests: New file.
69083         * tests/test-mbscspn.sh: New file.
69084         * tests/test-mbscspn.c: New file.
69085
69086 2007-02-11  Bruno Haible  <bruno@clisp.org>
69087
69088         * modules/mbscasecmp-tests: New file.
69089         * tests/test-mbscasecmp.sh: New file.
69090         * tests/test-mbscasecmp.c: New file.
69091
69092 2007-02-11  Bruno Haible  <bruno@clisp.org>
69093
69094         Ensure O(n) worst-case complexity of mbscasestr.
69095         * lib/mbscasestr.c: Include stdbool.h.
69096         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69097         functions.
69098         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69099         the bookkeeping indicates that it's worth it.
69100         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69101
69102         * modules/mbscasestr-tests: New file.
69103         * tests/test-mbscasestr1.c: New file.
69104         * tests/test-mbscasestr2.sh: New file.
69105         * tests/test-mbscasestr2.c: New file.
69106         * tests/test-mbscasestr3.sh: New file.
69107         * tests/test-mbscasestr3.c: New file.
69108         * tests/test-mbscasestr4.sh: New file.
69109         * tests/test-mbscasestr4.c: New file.
69110         * m4/locale-tr.m4: New file.
69111
69112 2007-02-11  Bruno Haible  <bruno@clisp.org>
69113
69114         Ensure O(n) worst-case complexity of mbsstr.
69115         * lib/mbsstr.c: Include stdbool.h.
69116         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69117         functions.
69118         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69119         bookkeeping indicates that it's worth it.
69120         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69121
69122         * modules/mbsstr-tests: New file.
69123         * tests/test-mbsstr1.c: New file.
69124         * tests/test-mbsstr2.sh: New file.
69125         * tests/test-mbsstr2.c: New file.
69126         * tests/test-mbsstr3.sh: New file.
69127         * tests/test-mbsstr3.c: New file.
69128         * m4/locale-fr.m4: New file.
69129
69130 2007-02-11  Bruno Haible  <bruno@clisp.org>
69131
69132         * lib/mbsrchr.c (mbsrchr): Fix bug.
69133
69134         * modules/mbsrchr-tests: New file.
69135         * tests/test-mbsrchr.sh: New file.
69136         * tests/test-mbsrchr.c: New file.
69137
69138 2007-02-11  Bruno Haible  <bruno@clisp.org>
69139
69140         * lib/mbschr.c (mbschr): Fix bug.
69141
69142         * modules/mbschr-tests: New file.
69143         * tests/test-mbschr.sh: New file.
69144         * tests/test-mbschr.c: New file.
69145         * m4/locale-zh.m4: New file.
69146
69147 2007-02-11  Bruno Haible  <bruno@clisp.org>
69148
69149         Support for copying multibyte string iterators.
69150         * lib/mbiter.h: Include <string.h>.
69151         (mbiter_multi_copy): New function.
69152         (mbi_copy): New macro.
69153         * lib/mbuiter.h: Include <string.h>.
69154         (mbuiter_multi_copy): New function.
69155         (mbui_copy): New macro.
69156
69157 2007-02-11  Bruno Haible  <bruno@clisp.org>
69158
69159         New module mbslen.
69160         * modules/mbslen: New file.
69161         * lib/mbslen.c: New file.
69162         * lib/string_.h (mbslen): New declaration.
69163         * m4/mbslen.m4: New file.
69164         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69165         GNULIB_MBSLEN.
69166         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69167         * MODULES.html.sh (Internationalization functions): Add mbslen.
69168
69169 2007-02-11  Bruno Haible  <bruno@clisp.org>
69170
69171         Ensure O(n) worst-case complexity of strcasestr substitute.
69172         * lib/strcasestr.c: Include stdbool.h.
69173         (knuth_morris_pratt): New function.
69174         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69175         bookkeeping indicates that it's worth it.
69176         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69177
69178         * modules/strcasestr-tests: New file.
69179         * tests/test-strcasestr.c: New file.
69180
69181 2007-02-11  Bruno Haible  <bruno@clisp.org>
69182
69183         Ensure O(n) worst-case complexity of c_strcasestr.
69184         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69185         (knuth_morris_pratt): New function.
69186         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69187         the bookkeeping indicates that it's worth it.
69188         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69189
69190         * modules/c-strcasestr-tests: New file.
69191         * tests/test-c-strcasestr.c: New file.
69192
69193 2007-02-11  Bruno Haible  <bruno@clisp.org>
69194
69195         Ensure O(n) worst-case complexity of c_strstr.
69196         * lib/c-strstr.c: Include stdbool.h, string.h.
69197         (knuth_morris_pratt): New function.
69198         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69199         bookkeeping indicates that it's worth it.
69200         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69201
69202         * lib/c-strstr.c: Complete rewrite for maintainability.
69203
69204         * modules/c-strstr-tests: New file.
69205         * tests/test-c-strstr.c: New file.
69206
69207 2007-02-11  Bruno Haible  <bruno@clisp.org>
69208
69209         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69210         5.2.1 and earlier, whereby \055 was treated just like the range
69211         delimiter '-'.
69212         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69213
69214 2007-02-08  Bruno Haible  <bruno@clisp.org>
69215
69216         * modules/regex (Depends-on): Add stdbool.
69217         Reported by Dalibor Topic <robilad@kaffe.org>.
69218
69219 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69220
69221         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69222         Prefer returning from main to exiting from it.
69223         Remove unnecessary parens after sizeof.
69224
69225 2007-02-05  Bruno Haible  <bruno@clisp.org>
69226
69227         New module mbssep.
69228         * modules/mbssep: New file.
69229         * lib/mbssep.c: New file.
69230         * lib/string_.h (strsep): Add a conditional link warning.
69231         (mbssep): New declaration.
69232         * m4/mbssep.m4: New file.
69233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69234         GNULIB_MBSSEP.
69235         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69236         * MODULES.html.sh (Internationalization functions): Add mbssep.
69237
69238 2007-02-05  Bruno Haible  <bruno@clisp.org>
69239
69240         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69241         Optimize search in case of 1 delimiter.
69242
69243 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69244
69245         * lib/acl.h: Include sys/types.h before sys/acl.h.
69246
69247 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69248
69249         Merge upstream fix for glibc bugzilla #3957:
69250
69251         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69252
69253         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69254         bit for RE_HAT_LISTS_NOT_NEWLINE.
69255         (build_charclass_op): Remove bogus comment.
69256
69257 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69258
69259         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69260
69261 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69264         * lib/memmem.c [!defined _LIBC]: Include config.h.
69265
69266 2007-02-04  Bruno Haible  <bruno@clisp.org>
69267
69268         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69269         warning message.
69270
69271 2007-02-04  Bruno Haible  <bruno@clisp.org>
69272
69273         New module mbstok_r.
69274         * modules/mbstok_r: New file.
69275         * lib/mbstok_r.c: New file.
69276         * lib/string_.h (strtok_r): Change argument names to match the
69277         comments. Add a conditional link warning.
69278         (mbstok_r): New declaration.
69279         * m4/mbstok_r.m4: New file.
69280         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69281         GNULIB_MBSTOK_R.
69282         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69283         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69284
69285 2007-02-04  Bruno Haible  <bruno@clisp.org>
69286
69287         New module mbsspn.
69288         * modules/mbsspn: New file.
69289         * lib/mbsspn.c: New file.
69290         * lib/string_.h (strspn): Add a conditional link warning.
69291         (mbsspn): New declaration.
69292         * m4/mbsspn.m4: New file.
69293         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69294         GNULIB_MBSSPN.
69295         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69296         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69297
69298 2007-02-04  Bruno Haible  <bruno@clisp.org>
69299
69300         New module mbspbrk.
69301         * modules/mbspbrk: New file.
69302         * lib/mbspbrk.c: New file.
69303         * lib/string_.h (strpbrk): Add a conditional link warning.
69304         (mbspbrk): New declaration.
69305         * m4/mbspbrk.m4: New file.
69306         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69307         GNULIB_MBSPBRK.
69308         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69309         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69310
69311 2007-02-04  Bruno Haible  <bruno@clisp.org>
69312
69313         New module mbscspn.
69314         * modules/mbscspn: New file.
69315         * lib/mbscspn.c: New file.
69316         * lib/string_.h (strcspn): Add a conditional link warning.
69317         (mbscspn): New declaration.
69318         * m4/mbscspn.m4: New file.
69319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69320         GNULIB_MBSCSPN.
69321         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69322         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69323
69324 2007-02-04  Bruno Haible  <bruno@clisp.org>
69325
69326         New module mbscasestr, reduced goal of strcasestr.
69327         * modules/mbscasestr: New file.
69328         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69329         (mbscasestr): Renamed from strcasestr.
69330         * lib/strcasestr.c: Don't include mbuiter.h.
69331         (strcasestr): Remove support for multibyte locales.
69332         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69333         Change the conditional link warning.
69334         (mbscasestr): New declaration.
69335         * m4/mbscasestr.m4: New file.
69336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69337         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69338         REPLACE_STRCASESTR.
69339         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69341         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69342         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69343         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69344         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69345         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69346         (Depends-on): Remove mbuiter.
69347         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69348
69349 2007-02-04  Bruno Haible  <bruno@clisp.org>
69350
69351         Simplify handling of strncasecmp.
69352         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69353         the conditional link warning.
69354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69355         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69356         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69357         * modules/strcase (configure.ac): Don't invoke
69358         gl_STRING_MODULE_INDICATOR.
69359         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69360
69361 2007-02-04  Bruno Haible  <bruno@clisp.org>
69362
69363         New module mbscasecmp, reduced goal of strcasecmp.
69364         * modules/mbscasecmp: New file.
69365         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69366         (mbscasecmp): Renamed from strcasecmp.
69367         * lib/strcasecmp.c: Don't include mbuiter.h.
69368         (strcasecmp): Remove support for multibyte locales.
69369         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69370         Change the conditional link warning.
69371         (mbscasecmp): New declaration.
69372         * m4/mbscasecmp.m4: New file.
69373         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69374         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69375         REPLACE_STRCASECMP.
69376         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69378         GNULIB_MBSCASECMP.
69379         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69380         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69381         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69382         (Depends-on): Remove mbuiter.
69383         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69384
69385 2007-02-04  Bruno Haible  <bruno@clisp.org>
69386
69387         New module mbsstr. Remove module strstr.
69388         * modules/mbsstr: New file.
69389         * modules/strstr: Remove file.
69390         * lib/mbsstr.c: Renamed from lib/strstr.c.
69391         (mbsstr): Renamed from strstr.
69392         * lib/string_.h (strstr): Remove declaration. Change the conditional
69393         link warning.
69394         (mbsstr): New declaration.
69395         * m4/mbsstr.m4: New file.
69396         * m4/strstr.m4: Remove file.
69397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69398         REPLACE_STRSTR.
69399         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69400         Don't initialize GNULIB_STRSTR.
69401         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69402         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69403         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69404         (Support for systems lacking ANSI C 89): Remove strstr.
69405
69406 2007-02-04  Bruno Haible  <bruno@clisp.org>
69407
69408         New module mbsrchr.
69409         * modules/mbsrchr: New file.
69410         * lib/mbsrchr.c: New file.
69411         * lib/string_.h (strrchr): Add a conditional link warning.
69412         (mbsrchr): New declaration.
69413         * m4/mbsrchr.m4: New file.
69414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69415         GNULIB_MBSRCHR.
69416         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69417         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69418
69419 2007-02-04  Bruno Haible  <bruno@clisp.org>
69420
69421         New module mbschr.
69422         * modules/mbschr: New file.
69423         * lib/mbschr.c: New file.
69424         * lib/string_.h (strchr): Add a conditional link warning.
69425         (mbschr): New declaration.
69426         * m4/mbschr.m4: New file.
69427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69428         GNULIB_MBSCHR.
69429         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69430         * MODULES.html.sh (Internationalization functions): Add mbschr.
69431
69432 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69433
69434         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69435
69436         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69437
69438 2007-02-04  Bruno Haible  <bruno@clisp.org>
69439
69440         New module description section 'configure.ac-early'.
69441         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69442         (func_get_autoconf_early_snippet): New function.
69443         (func_import, func_create_testdir): Use it. Remove special cases for
69444         modules 'extensions' and 'lock'.
69445         * modules/extensions (configure.ac-early): Require
69446         gl_USE_SYSTEM_EXTENSIONS.
69447         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69448
69449 2007-02-04  Bruno Haible  <bruno@clisp.org>
69450
69451         Make use of gcj-4.3's -fsource and -ftarget option.
69452         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69453         and if so try the options -fsource and -ftarget.
69454         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69455         source_version, ftarget_option, target_version arguments.
69456         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69457         (is_envjavac_oldgcj_14_14_usable): Renamed from
69458         is_envjavac_gcj_14_14_usable.
69459         (is_envjavac_oldgcj_14_13_usable): Renamed from
69460         is_envjavac_gcj_14_13_usable.
69461         (is_gcj_present): Update.
69462         (is_gcj_43, is_gcj43_usable): New functions.
69463         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69464         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69465         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69466         try the options -fsource and -ftarget.
69467
69468 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69471         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69472         larger value.
69473
69474 2007-02-03  Jim Meyering  <jim@meyering.net>
69475
69476         Give tools a better chance to allocate space for very large buffers.
69477         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69478
69479         Make pwd and readlink work also when run with an unreadable parent dir
69480         on systems with openat support.
69481         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69482         provided getcwd function, even when we have openat support.
69483         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69484
69485 2007-02-02  Bruno Haible  <bruno@clisp.org>
69486
69487         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69488         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69489         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69490         portability problems if one of these functions is only used on specific
69491         platforms.
69492         Reported by Paul Eggert.
69493
69494 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69495
69496         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69497         is causing more trouble than it's curing.
69498         * lib/regex_internal.h (__mempcpy): Remove.
69499         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69500         (and make the code a tad smaller to boot).
69501         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69502
69503 2007-02-02  Jim Meyering  <jim@meyering.net>
69504
69505         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69506         section, not in the Makefile.am: one.
69507
69508 2007-02-02  Eric Blake  <ebb9@byu.net>
69509
69510         * lib/strchrnul.c: Always include config.h first.
69511
69512         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69513         gnulib strstr is not necessary here.
69514
69515 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69516
69517         * m4/socklen.m4: Fix typo.
69518
69519 2007-02-02  Eric Blake  <ebb9@byu.net>
69520
69521         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69522         * modules/netinet_in (Makefile.am): Likewise.
69523
69524 2007-02-01  Bruno Haible  <bruno@clisp.org>
69525
69526         * lib/string_.h (GL_LINK_WARNING): New macro.
69527         (strcasecmp, strstr, strcasestr): If provided by the system,
69528         conditionally define as a macro that leads to a warning instead of to
69529         an error.
69530         (strncasecmp): Conditionally define as a macro that leads to a warning.
69531
69532 2007-02-01  Karl Berry  <karl@gnu.org>
69533
69534         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69535
69536 2007-02-01  Bruno Haible  <bruno@clisp.org>
69537
69538         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69539         renamings.
69540
69541 2007-02-01  Eric Blake  <ebb9@byu.net>
69542
69543         * modules/regex (Depends-on): Revert dependence on mempcpy.
69544         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69545         module's definition of mempcpy.
69546         Reported by Paul Eggert.
69547
69548 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69551         the symbol XYZ before redefining it.  This fixes a problem with
69552         programs that don't use XYZ, when compiled on systems that define
69553         XYZ to something else.
69554
69555 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69556
69557         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69558         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69559         writeable to group or other and (2) is intended to have a special
69560         mode bit that is set or cleared.  In such a case, the directory
69561         should be neither group- nor other-writeable until the special
69562         mode bits are right.
69563
69564 2007-01-31  Eric Blake  <ebb9@byu.net>
69565
69566         * modules/mountlist (Depends-on): Add strstr.
69567
69568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69569         bug.
69570         * modules/string (Makefile.am): Remove redundant replacement.
69571         * modules/regex (Depends-on): Add mempcpy.
69572
69573 2007-01-31  Bruno Haible  <bruno@clisp.org>
69574
69575         New module description field 'Link'.
69576         * gnulib-tool (func_usage): Document --extract-link-directive.
69577         (sed_extract_prog): Recognize 'Link' directive.
69578         (func_get_link_directive): New function.
69579         (func_import): Show summary of link directives.
69580         Handle --extract-link-directive option.
69581         * modules/acl (Link): New section.
69582         * modules/clock-time (Link): New section.
69583         * modules/euidaccess (Link): New section.
69584         * modules/gettext (Link): New section.
69585         * modules/iconv (Link): New section.
69586         * modules/lock (Link): New section.
69587         * modules/nanosleep (Link): New section.
69588         * modules/readline (Link): New section.
69589
69590 2007-01-27  Bruno Haible  <bruno@clisp.org>
69591
69592         Enforce the use of gnulib modules for unportable <string.h> functions.
69593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69594         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69595         (gl_HEADER_STRING_H_BODY): Require it.
69596         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69597         the symbol XYZ to one that gives a link error.
69598         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69599         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69600         * modules/mempcpy (configure.ac): Likewise.
69601         * modules/memrchr (configure.ac): Likewise.
69602         * modules/stpcpy (configure.ac): Likewise.
69603         * modules/stpncpy (configure.ac): Likewise.
69604         * modules/strcase (configure.ac): Likewise.
69605         * modules/strcasestr (configure.ac): Likewise.
69606         * modules/strchrnul (configure.ac): Likewise.
69607         * modules/strdup (configure.ac): Likewise.
69608         * modules/strndup (configure.ac): Likewise.
69609         * modules/strnlen (configure.ac): Likewise.
69610         * modules/strpbrk (configure.ac): Likewise.
69611         * modules/strsep (configure.ac): Likewise.
69612         * modules/strstr (configure.ac): Likewise.
69613         * modules/strtok_r (configure.ac): Likewise.
69614
69615 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69616
69617         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69618
69619 2007-01-30  Jim Meyering  <jim@meyering.net>
69620
69621         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69622
69623 2007-01-29  Bruno Haible  <bruno@clisp.org>
69624
69625         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69626         * lib/execute.c: Likewise.
69627         * lib/pipe.c: Likewise.
69628         * lib/printf-args.h: Likewise.
69629         * lib/printf-args.c: Likewise.
69630         * lib/printf-parse.c: Likewise.
69631         * lib/vasnprintf.c: Likewise.
69632
69633 2007-01-29  Eric Blake  <ebb9@byu.net>
69634
69635         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69636         declaration.
69637
69638 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         * lib/strptime.h (strptime): Use 'restrict' for args where
69641         POSIX requires this.
69642         * lib/strptime.c (strptime): Likewise.
69643         Change license notice from LGPL to GPL, since gnulib-tool will
69644         change this as needed.
69645         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69646         defined.
69647         Include "strptime.h" first, to check interface.
69648         Do not #undef _LIBC and _NL_CURRENT.
69649         Do not include <stdlib.h>; no longer needed.
69650         Include "time_r.h" and declare ptime_locale_status
69651         only if _LIBC is not defined.
69652         (__P): Remove unused macro.
69653         (match_string): Bring back glibc version, but use it only if _LIBC
69654         is defined.
69655         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69656         Remove unnecessary assertion and abort() call.
69657         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69658         * m4/strptime.m4: Fix serial number comment.
69659         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69660         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69661         (Depends-on): Add time_r.
69662
69663 2007-01-29  Bruno Haible  <bruno@clisp.org>
69664
69665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69666         strptime.
69667         * modules/strptime (Depends-on): Add stdbool.
69668         * lib/strptime.h: Include <time.h> always. Add comments.
69669
69670 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69671
69672         * modules/strptime: New file.
69673         * lib/strptime.h: New file.
69674         * lib/strptime.c: New file.
69675         * m4/strptime.m4: New file.
69676
69677 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * MODULES.html.sh: New module mpsort.
69680         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69681
69682         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69683         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69684         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69685         All uses changed.
69686         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69687         All uses changed.
69688         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69689         to _Restrict_.
69690         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69691         the parameter matches the prototype.
69692
69693 2007-01-28  Jim Meyering  <jim@meyering.net>
69694
69695         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69696         sys/time.h here, reverting that part of the previous patch:
69697         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69698
69699 2007-01-28  Bruno Haible  <bruno@clisp.org>
69700
69701         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69702         value of $(SYS_TIME_H).
69703         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69704         remove it conditionally, too. [added by Jim Meyering]
69705         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69706         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69707         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69708         GETTIMEOFDAY_REPLACEMENT to 1.
69709
69710 2007-01-28  Bruno Haible  <bruno@clisp.org>
69711
69712         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69713         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69715         Set UNISTD_H instead of UNISTD_H2.
69716         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69717
69718 2007-01-28  Bruno Haible  <bruno@clisp.org>
69719
69720         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69721         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69722
69723 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69724
69725         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69726         (func_create_testdir): Ensure C locale for `grep' and `tr'
69727         character ranges.
69728         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69729         ACLOCAL_AMFLAGS parsing state machine.
69730
69731 2007-01-27  Bruno Haible  <bruno@clisp.org>
69732
69733         * modules/unistr/base: Update.
69734
69735 2007-01-27  Bruno Haible  <bruno@clisp.org>
69736
69737         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69738         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69739         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69740         modules/unistr/u32-mbtouc.
69741         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69742         * lib/unistr.h: Update.
69743         * lib/linebreak.c: Update.
69744         * modules/unistr/u32-mbtouc: Renamed from
69745         modules/unistr/u32-mbtouc-safe.
69746         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69747         * lib/unistr.h: Update.
69748         * lib/unistr/u32-to-u8.c: Update.
69749         * lib/unistr/u32-to-u16.c: Update.
69750
69751 2007-01-27  Bruno Haible  <bruno@clisp.org>
69752
69753         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69754         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69755         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69756         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69757         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69758         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69759         modules/unistr/u16-mbtouc.
69760         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69761         * lib/unistr.h: Update.
69762         * lib/linebreak.c: Update.
69763         * modules/linebreak: Update.
69764         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69765         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69766         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69767         * modules/unistr/u16-mbtouc: Renamed from
69768         modules/unistr/u16-mbtouc-safe.
69769         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69770         * lib/unistr.h: Update.
69771         * lib/unistr/u16-to-u8.c: Update.
69772         * modules/unistr/u16-to-u8: Update.
69773         * lib/unistr/u16-to-u32.c: Update.
69774         * modules/unistr/u16-to-u32: Update.
69775
69776 2007-01-27  Bruno Haible  <bruno@clisp.org>
69777
69778         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69779         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69780         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69781         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69782         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69783         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69784         modules/unistr/u8-mbtouc.
69785         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69786         * lib/unistr.h: Update.
69787         * lib/striconveh.c: Update.
69788         * modules/striconveh: Update.
69789         * lib/linebreak.c: Update.
69790         * modules/linebreak: Update.
69791         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69792         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69793         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69794         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69795         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69796         * lib/unistr.h: Update.
69797         * lib/striconveh.c: Update.
69798         * modules/striconveh: Update.
69799         * lib/unistr/u8-to-u16.c: Update.
69800         * modules/unistr/u8-to-u16: Update.
69801         * lib/unistr/u8-to-u32.c: Update.
69802         * modules/unistr/u8-to-u32: Update.
69803
69804 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69805
69806         Sync from Libtool.
69807         * lib/argz.c: Do not include strings.h nor memory.h, include
69808         string.h unconditionally.  Patch by Simon Josefsson.
69809
69810 2007-01-27  Bruno Haible  <bruno@clisp.org>
69811
69812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69813         from gl_HEADER_STRING_H_BODY.
69814         (gl_HEADER_STRING_H_BODY): Require it.
69815         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69816         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69817         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69818         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69820         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69821         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69822         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69823         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69824         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69825         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69826         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69827         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69828         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69829         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69830
69831 2007-01-27  Bruno Haible  <bruno@clisp.org>
69832
69833         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69834         check_PROGRAMS into noinst_PROGRAMS.
69835         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69836         check_PROGRAMS in this case.
69837         (func_import): Set for_test to false.
69838         (func_create_testdir): Set for_test to true.
69839
69840 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69841             Bruno Haible  <bruno@clisp.org>
69842
69843         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69844         (Depends-on): Add string.
69845         (Includes): Use <string.h> instead of strcasestr.h.
69846         * modules/string (Makefile.am): Also substitute the value of
69847         REPLACE_STRCASESTR.
69848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69849         assume strcasestr is declared in <string.h> not <strings.h>. Also
69850         set REPLACE_STRCASESTR.
69851         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69852         REPLACE_STRCASESTR.
69853         * lib/strcasestr.h: Remove file.
69854         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69855         * lib/string_.h (strcasestr): New declaration.
69856
69857 2007-01-27  Bruno Haible  <bruno@clisp.org>
69858
69859         * lib/string_.h: Use 'extern'.
69860
69861 2007-01-27  Jim Meyering  <jim@meyering.net>
69862
69863         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69864         of set-but-not-used local, "q".
69865
69866         * lib/mempcpy.c: Include <config.h> before <string.h>.
69867         This fixes a compilation error on HP-UX, due to the system's
69868         "restrict"-using mempcpy prototype.
69869
69870 2007-01-26  Bruno Haible  <bruno@clisp.org>
69871
69872         Small optimization.
69873         * lib/javacomp.c: Include c-strstr.h.
69874          (is_envjavac_gcj): Use c_strstr instead of strstr.
69875         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69876
69877 2007-01-26  Bruno Haible  <bruno@clisp.org>
69878
69879         * MODULES.html.sh (Unicode string functions): Add the new modules.
69880
69881         * modules/uniconv/u32-strconv-to-locale: New file.
69882         * lib/uniconv/u32-strconv-to-locale.c: New file.
69883
69884         * modules/uniconv/u16-strconv-to-locale: New file.
69885         * lib/uniconv/u16-strconv-to-locale.c: New file.
69886
69887         * modules/uniconv/u8-strconv-to-locale: New file.
69888         * lib/uniconv/u8-strconv-to-locale.c: New file.
69889
69890         * modules/uniconv/u32-strconv-from-locale: New file.
69891         * lib/uniconv/u32-strconv-from-locale.c: New file.
69892
69893         * modules/uniconv/u16-strconv-from-locale: New file.
69894         * lib/uniconv/u16-strconv-from-locale.c: New file.
69895
69896         * modules/uniconv/u8-strconv-from-locale: New file.
69897         * lib/uniconv/u8-strconv-from-locale.c: New file.
69898
69899         * modules/uniconv/u32-strconv-to-enc: New file.
69900         * lib/uniconv/u32-strconv-to-enc.c: New file.
69901         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69902         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69903
69904         * modules/uniconv/u16-strconv-to-enc: New file.
69905         * lib/uniconv/u16-strconv-to-enc.c: New file.
69906         * lib/uniconv/u-strconv-to-enc.h: New file.
69907         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69908         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69909
69910         * modules/uniconv/u8-strconv-to-enc: New file.
69911         * lib/uniconv/u8-strconv-to-enc.c: New file.
69912         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69913         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69914
69915         * modules/uniconv/u32-strconv-from-enc: New file.
69916         * lib/uniconv/u32-strconv-from-enc.c: New file.
69917         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69918         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69919
69920         * modules/uniconv/u16-strconv-from-enc: New file.
69921         * lib/uniconv/u16-strconv-from-enc.c: New file.
69922         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69923         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69924
69925         * modules/uniconv/u8-strconv-from-enc: New file.
69926         * lib/uniconv/u8-strconv-from-enc.c: New file.
69927         * lib/uniconv/u-strconv-from-enc.h: New file.
69928         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69929         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69930
69931         * modules/uniconv/u32-conv-from-enc: New file.
69932         * lib/uniconv/u32-conv-from-enc.c: New file.
69933         * modules/uniconv/u32-conv-from-enc-tests: New file.
69934         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69935
69936         * modules/uniconv/u16-conv-from-enc: New file.
69937         * lib/uniconv/u16-conv-from-enc.c: New file.
69938         * lib/uniconv/u-conv-from-enc.h: New file.
69939         * modules/uniconv/u16-conv-from-enc-tests: New file.
69940         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69941
69942         * modules/uniconv/u8-conv-from-enc: New file.
69943         * lib/uniconv/u8-conv-from-enc.c: New file.
69944         * modules/uniconv/u8-conv-from-enc-tests: New file.
69945         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69946
69947         * modules/uniconv/base: New file.
69948         * lib/uniconv.h: New file.
69949
69950 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69951
69952         * doc/gnulib-tool.texi (Initial import): Update to match current
69953         behavior with strdup module.
69954         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69955         * lib/memmem.h: Remove; all uses removed.  This is now done
69956         by <string.h>.
69957         * lib/mempcpy.h: Likewise.
69958         * lib/memrchr.h: Likewise.
69959         * lib/stpcpy.h: Likewise.
69960         * lib/stpncpy.h: Likewise.
69961         * lib/strcase.h: Likewise.
69962         * lib/strchrnul.h: Likewise.
69963         * lib/strdup.h: Likewise.
69964         * lib/strndup.h: Likewise.
69965         * lib/strnlen.h: Likewise.
69966         * lib/strpbrk.h: Likewise.
69967         * lib/strsep.h: Likewise.
69968         * lib/strstr.h: Likewise.
69969         * lib/strtok_r.h: Likewise.
69970         * lib/string_.h: New file.
69971         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69972         Rely on <string.h> instead.
69973         * lib/canon-host.c: Likewise.
69974         * lib/chdir-long.c: Likewise.
69975         * lib/concatpath.c: Likewise.
69976         * lib/exclude.c: Likewise.
69977         * lib/fchdir.c: Likewise.
69978         * lib/getaddrinfo.c: Likewise.
69979         * lib/getcwd.c: Likewise.
69980         * lib/getsubopt.c: Likewise.
69981         * lib/glob.c: Likewise.
69982         * lib/hard-locale.c: Likewise.
69983         * lib/iconvme.c: Likewise.
69984         * lib/javacomp.c: Likewise.
69985         * lib/mempcpy.c: Likewise.
69986         * lib/memrchr.c: Likewise.
69987         * lib/regex_internal.h: Likewise.
69988         * lib/stpncpy.c: Likewise.
69989         * lib/strcasecmp.c: Likewise.
69990         * lib/strchrnul.c: Likewise.
69991         * lib/strdup.c: Likewise.
69992         * lib/striconv.c: Likewise.
69993         * lib/striconveh.c: Likewise.
69994         * lib/striconveha.c: Likewise.
69995         * lib/strncasecmp.c: Likewise.
69996         * lib/strndup.c: Likewise.
69997         * lib/strnlen.c: Likewise.
69998         * lib/strsep.c: Likewise.
69999         * lib/strstr.c: Likewise.
70000         * lib/strtok_r.c: Likewise.
70001         * lib/userspec.c: Likewise.
70002         * lib/w32spawn.h: Likewise.
70003         * lib/xstrndup.c: Likewise.
70004         * lib/mountlist.c (strstr): Remove decl.
70005         * m4/string_h.m4: New file.
70006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70007         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70008         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70009         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70010         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70011         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70012         Set REPLACE_STRCASECMP if necessary.
70013         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70014         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70015         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70016         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70017         HAVE_DECL_STRDUP if necessary.
70018         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70019         since gl_FUNC_STRNDUP does that now.
70020         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70021         Check for decl here...
70022         (gl_PREREQ_STRNLEN): ... not here.
70023         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70024         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70025         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70026         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70027         necessary.
70028         * modules/string: New file.
70029         * modules/memmem (Files): Remove special-purpose include file.
70030         (Depends-on): Add string.
70031         (Include): Include <string.h>, not the removed file.
70032         * modules/mempcpy: Likewise.
70033         * modules/memrchr: Likewise.
70034         * modules/stpcpy: Likewise.
70035         * modules/stpncpy: Likewise.
70036         * modules/strcase: Likewise.
70037         * modules/strchrnul: Likewise.
70038         * modules/strdup: Likewise.
70039         * modules/strndup: Likewise.
70040         * modules/strnlen: Likewise.
70041         * modules/strpbrk: Likewise.
70042         * modules/strsep: Likewise.
70043         * modules/strstr: Likewise.
70044         * modules/strtok_r: Likewise.
70045         * tests/test-dirname.c: Don't include "strdup.h", since
70046         <string.h> now suffices.
70047         * tests/test-memmem.c: Don't include "memmem.h", since
70048         <string.h> now suffices.
70049
70050 2007-01-25  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70053         *resultp is 0.
70054
70055         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70056         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70057         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70058         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70059
70060         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70061         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70062         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70063         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70064         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70065         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70066
70067 2007-01-24  Bruno Haible  <bruno@clisp.org>
70068
70069         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70070         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70071         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70072         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70073         gl_FUNC_FTS_CORE.
70074         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70075         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70076         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70077         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70078         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70079         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70080         gl_FUNC_FCHOWNAT.
70081         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70082         gl_FUNC_STRFTIME.
70083         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70084         Reported by Ralf Wildenhues.
70085
70086 2007-01-24  Bruno Haible  <bruno@clisp.org>
70087
70088         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70089         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70090         gl_GETADDRINFO.
70091         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70092         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70093         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70094
70095 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70098         Don't use 'exit'; just return from 'main'.
70099         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70100
70101         * lib/fnmatch_.h: Readjust white space and comments to match
70102         glibc, to avoid spurious diffs.
70103
70104 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70105
70106         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70107         2004-12-01 change by Jakub Jelinek, since this code won't compile
70108         if !LIBC.  Problem reported by Bob Proulx.
70109
70110 2007-01-23  Bruno Haible  <bruno@clisp.org>
70111
70112         * lib/striconveh.c: Include c-strcaseeq.h.
70113         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70114         * modules/striconveh (Depends-on): Add c-strcaseeq.
70115
70116 2007-01-23  Bruno Haible  <bruno@clisp.org>
70117
70118         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70119
70120         * modules/c-strcaseeq: New file.
70121         * lib/c-strcaseeq.h: New file.
70122
70123         * modules/streq: New file.
70124         * lib/streq.h: New file.
70125
70126 2007-01-23  Bruno Haible  <bruno@clisp.org>
70127
70128         * modules/striconveha-tests: New file.
70129         * tests/test-striconveha.c: New file.
70130
70131         * lib/striconveha.h: Include <stdbool.h>.
70132         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70133         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70134         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70135         (mem_iconveha): New function.
70136         (str_iconveha_notranslit): Renamed from str_iconveha.
70137         (str_iconveha): New function.
70138         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70139         c-strcase.
70140
70141 2007-01-23  Bruno Haible  <bruno@clisp.org>
70142
70143         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70144         encodings without forgiving before trying any encoding with handler.
70145         (str_iconveha): Try all encodings without forgiving before trying any
70146         encoding with handler.
70147
70148 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70149
70150         Import the following changes from libc.
70151
70152         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70153
70154         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70155
70156         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70157
70158         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70159         normal_bracket label.
70160
70161         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70162
70163         [BZ #361]
70164         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70165         to normal_bracket after fetching the next character.
70166
70167 2007-01-22  Bruno Haible  <bruno@clisp.org>
70168
70169         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70170         argument.
70171         * lib/striconveh.c (iconv_carefully_1): New function.
70172         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70173         argument.
70174         (str_cd_iconveh): Update.
70175         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70176         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70177         * tests/test-striconveh.c (MAGIC): New macro.
70178         (new_offsets): New function.
70179         (main): Test call with and without offsets.
70180
70181 2007-01-22  Bruno Haible  <bruno@clisp.org>
70182
70183         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70184         * modules/sys_select (Makefile.am): Likewise.
70185         * modules/sys_socket (Makefile.am): Likewise.
70186         * modules/sys_time (Makefile.am): Likewise.
70187
70188 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70189
70190         * modules/gettimeofday (License): Change from GPL to LGPL, since
70191         gettimeofday is a library function.
70192
70193 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70194
70195         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70196
70197 2007-01-21  Bruno Haible  <bruno@clisp.org>
70198
70199         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70200
70201 2007-01-21  Bruno Haible  <bruno@clisp.org>
70202
70203         * modules/striconveha: New file.
70204         * lib/striconveha.h: New file.
70205         * lib/striconveha.c: New file.
70206         * MODULES.html.sh (Internationalization functions): Add striconveha.
70207         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70208         string.
70209         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70210
70211 2007-01-21  Bruno Haible  <bruno@clisp.org>
70212
70213         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70214         * lib/striconveh.c (str_iconveh): Likewise.
70215
70216 2007-01-21  Bruno Haible  <bruno@clisp.org>
70217
70218         * lib/striconveh.h (mem_iconveh): New declaration.
70219         * lib/striconveh.c (mem_iconveh): New function.
70220         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70221
70222 2007-01-21  Bruno Haible  <bruno@clisp.org>
70223
70224         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70225
70226         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70227         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70228         original result buffer.
70229         (str_cd_iconveh): Update.
70230         * tests/test-striconveh.c (main): Update.
70231
70232         * lib/striconv.h (mem_cd_iconv): Change specification.
70233         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70234         result buffer.
70235         (str_cd_iconv): Update.
70236         * tests/test-striconv.c (main): Update.
70237
70238 2007-01-21  Bruno Haible  <bruno@clisp.org>
70239
70240         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70241
70242 2007-01-20  Jim Meyering  <jim@meyering.net>
70243
70244         * lib/userspec.c (parse_with_separator): If a user or group string
70245         starts with "+", skip the corresponding name-to-ID look-up, since
70246         such a look-up must fail: user and group names may not include "+".
70247
70248 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70251         since we now assume the sys_time module.
70252         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70253         check for sys/time.h; no longer needed.
70254         * modules/poll (Depends-on): Depend on sys_time.
70255
70256 2007-01-18  Bruno Haible  <bruno@clisp.org>
70257
70258         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70259         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70260
70261         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70262         gettimeofday.
70263
70264         * tests/test-gettimeofday.c: Include <time.h>.
70265         (dummy): Remove variable.
70266
70267         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70268         gl_HEADER_SYS_TIME_H.
70269         (gl_HEADER_SYS_TIME_H): New macro.
70270
70271         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70272         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70273         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70274         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70275         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70276         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70277         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70278         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70279         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70280         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70281         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70282
70283         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70284         last change; it caused a compilation error when cross-compiling to
70285         Cygwin.
70286
70287 2007-01-18  Jim Meyering  <jim@meyering.net>
70288
70289         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70290         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70291         than the race-prone "test -d sys || mkdir sys".
70292         (configure.ac): Use AC_PROG_MKDIR_P.
70293         * modules/sys_select: Likewise.
70294         * modules/sys_socket: Likewise.
70295         * modules/sys_time: Likewise.
70296
70297 2007-01-18  Eric Blake  <ebb9@byu.net>
70298
70299         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70300         replace gettimeofday.
70301         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70302         name, to avoid infinite recursion.
70303
70304 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70305
70306         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70307         module sys_time.
70308         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70309         assume timespec.h defines struct timeval.
70310         * lib/settime.c: Likewise.
70311         * lib/utimens.c: Likewise.
70312         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70313         since we now assume the gettimeofday module.
70314         * lib/tempname.c (__gen_tempname): Likewise.
70315         * lib/gettimeofday.h: Remove.
70316         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70317         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70318         Include <time.h>, for 'time()'.
70319         (localtime_buffer_addr): Also use this workaround if
70320         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70321         to simplify the uses.  All uses changed.
70322         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70323         that #undef is inside {}, and 'const' follows type name consistently.
70324         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70325         (gettimeofday): Do not use the maximum possible value for
70326         tv->tv_usec, since that might break usages other than ls.c.
70327         Instead, we'll leave ls.c alone.  This undoes today's patch
70328         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70329         we've never observed the problem but might as well keep the
70330         canary.
70331         * lib/nanosleep.c: Include timespec.h first, for interface check.
70332         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70333         now assume the sys_time module.
70334         * lib/tempname.c: Likewise.
70335         * lib/timespec.h: Likewise.
70336         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70337         needed.
70338         * lib/strftime.c: Likewise.
70339         * lib/timespec.h: Likewise.
70340         * lib/posixtm.c: Include posixtm.h first, for interface check.
70341         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70342         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70343         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70344         * lib/sys_time_.h: New file.
70345         * lib/timespec.h (struct timespec): Use long int, not long.
70346         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70347         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70348         Remove obsolescent call to AC_HEADER_TIME.
70349         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70351         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70352         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70353         Likewise.
70354         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70355         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70356         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70357         into the sys_time module.  Check for gettimeofday just once.
70358         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70359         for gettimeofday signature to just check the signature.  Merely
70360         compile it, since linking doesn't test signature.  Improve test for
70361         whether gettimeofday.o is actually needed.
70362         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70363         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70364         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70365         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70366         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70367         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70368         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70369         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70370         than worrying about sys/time.h.
70371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70372         Don't bother worrying about TIME_WITH_SYS_TIME.
70373         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70374         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70375         * m4/sys_time_h.m4: New file.
70376         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70377         Don't include sys/time.h.  Return from main rather than exiting.
70378         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70379         all uses changed.
70380         * modules/gethrxtime (Depends-on): Add sys_time.
70381         * modules/gettime (Depends-on): Likewise.
70382         * modules/gettimeofday (Depends-on): Likewise.
70383         * modules/nanosleep (Depends-on): Likewise.
70384         * modules/settime (Depends-on): Likewise.
70385         * modules/tempname (Depends-on): Likewise.
70386         * modules/utimens (Depends-on): Likewise.
70387         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70388         (Include): Change back to <sys/time.h>.
70389         (Maintainer): Add self.
70390         * modules/sys_time: New file.
70391         * modules/tempname (Depends-on): Add gettimeofday.
70392         * tests/test-gettimeofday.c: Include <sys/time.h>
70393         rather than gettimeofday.h.
70394
70395 2007-01-17  Bruno Haible  <bruno@clisp.org>
70396
70397         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70398         the license default to GPL.
70399         (func_create_testdir): Don't complain if a module is LGPL and its
70400         tests module depends on GPLed modules.
70401
70402 2007-01-17  Bruno Haible  <bruno@clisp.org>
70403
70404         * lib/gettimeofday.c (gettimeofday): Add code for the case
70405         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70406         maximum possible value for tv->tv_usec, rather than the minimum one.
70407
70408 2005-10-08  Martin Lambers  <marlam@marlam.de>
70409 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70410 2007-01-16  Bruno Haible  <bruno@clisp.org>
70411
70412         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70413         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70414         gl_FUNC_GETTIMEOFDAY.
70415         (Include): Add gettimeofday.h.
70416         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70417         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70418         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70419         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70420         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70421         * lib/gettimeofday.h: New file.
70422         * lib/gettimeofday.c: Include <sys/timeb.h>.
70423         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70424         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70425         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70426         fall back on time().
70427
70428         * tests/test-gettimeofday.c: New file.
70429         * modules/gettimeofday-tests: New file.
70430
70431 2007-01-16  Eric Blake  <ebb9@byu.net>
70432
70433         * modules/fnmatch (Depends-on): Depend on wchar.
70434         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70435         * m4/fnmatch.m4: Likewise.
70436         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70437         * m4/mbchar.m4: Likewise.
70438         * modules/mbswidth (Depends-on): Depend on wchar.
70439         * lib/mbswidth.c: Assume <wchar.h>.
70440         * m4/mbswidth.m4: Likewise.
70441         * modules/quotearg (Depends-on): Depend on wchar.
70442         * lib/quotearg.c: Assume <wchar.h>.
70443         * m4/quotearg.m4: Likewise.
70444         * modules/regex (Depends-on): Depend on wchar.
70445         * lib/regex_internal.h: Assume <wchar.h>.
70446         * m4/regex.m4: Likewise.
70447         * modules/stdint (Depends-on): Depend on wchar.
70448         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70449         * m4/stdint.m4: Likewise.
70450         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70451         * modules/strftime (Depends-on): Depend on wchar.
70452         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70453         * modules/strtol (Depends-on): Depend on wchar.
70454         * lib/strtol.c: Assume <wchar.h>.
70455         * modules/wcwidth (Depends-on): Depend on wchar.
70456         * lib/wcwidth.h: Assume <wchar.h>.
70457         * m4/wcwidth.m4: Likewise.
70458
70459 2007-01-16  Bruno Haible  <bruno@clisp.org>
70460
70461         * modules/csharpexec-script: New, created from...
70462         * modules/csharpexec: ... this.
70463
70464 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70465
70466         * modules/javaexec-script: New, created from...
70467         * modules/javaexec: ... this.
70468
70469 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70470
70471         * modules/poll (Dependencies): Add sys_select.
70472
70473 2007-01-15  Jim Meyering  <jim@meyering.net>
70474
70475         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70476         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70477         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70478         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70479
70480 2007-01-15  Bruno Haible  <bruno@clisp.org>
70481
70482         * modules/striconveh: New file.
70483         * lib/striconveh.h: New file.
70484         * lib/striconveh.c: New file.
70485         * MODULES.html.sh (Internationalization functions): Add striconveh.
70486
70487         * modules/striconveh-tests: New file.
70488         * tests/test-striconveh.c: New file.
70489
70490 2007-01-15  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70493         not from GNU libiconv or GNU libc.
70494
70495 2007-01-15  Bruno Haible  <bruno@clisp.org>
70496
70497         * doc/gnulib-intro.texi (Copyright): Explain the different license
70498         terms for module descriptions, autoconf macros, tests, documentation.
70499
70500 2007-01-14  Bruno Haible  <bruno@clisp.org>
70501
70502         * modules/striconv-tests: New file.
70503         * tests/test-striconv.c: New file.
70504
70505 2007-01-14  Bruno Haible  <bruno@clisp.org>
70506
70507         * modules/iconv-tests: New file.
70508         * tests/test-iconv.c: New file.
70509
70510 2007-01-14  Bruno Haible  <bruno@clisp.org>
70511
70512         * gnulib-tool (func_get_license): For test modules, use the license of
70513         the main module.
70514
70515 2007-01-14  Bruno Haible  <bruno@clisp.org>
70516
70517         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70518         if iconv is found to exist.
70519
70520 2007-01-14  Bruno Haible  <bruno@clisp.org>
70521
70522         * modules/c-ctype-tests: New file.
70523         * tests/test-c-ctype.c: New file.
70524
70525 2007-01-14  Bruno Haible  <bruno@clisp.org>
70526
70527         * modules/binary-io-tests: New file.
70528         * tests/test-binary-io.sh: New file.
70529         * tests/test-binary-io.c: New file.
70530
70531 2007-01-14  Bruno Haible  <bruno@clisp.org>
70532
70533         * modules/array-oset-tests: New file.
70534         * tests/test-array_oset.c: New file.
70535
70536 2007-01-14  Bruno Haible  <bruno@clisp.org>
70537
70538         * modules/array-list-tests: New file.
70539         * tests/test-array_list.c: New file.
70540
70541 2007-01-14  Bruno Haible  <bruno@clisp.org>
70542
70543         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70544         and make.
70545         Reported by Simon Josefsson in
70546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70547
70548 2007-01-14  Bruno Haible  <bruno@clisp.org>
70549
70550         * modules/allocsa-tests: New file.
70551         * tests/test-allocsa.c: New file.
70552
70553 2007-01-14  Bruno Haible  <bruno@clisp.org>
70554
70555         * modules/fchdir (Depends-on): Add absolute-header.
70556         * modules/unistd (Depends-on): Likewise.
70557
70558 2006-12-30  Bruno Haible  <bruno@clisp.org>
70559
70560         * modules/fchdir: New file.
70561         * modules/unistd (Files): Add lib/unistd_.h.
70562         (Makefile.am): Generate unistd.h from unistd_.h.
70563         * lib/fchdir.c: New file.
70564         * lib/dirent_.h: New file.
70565         * lib/unistd_.h: New file.
70566         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70567         * m4/fchdir.m4: New file.
70568         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70569         (gl_HEADER_UNISTD): Invoke it.
70570         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70571         function.
70572         * lib/backupfile.c (opendir, closedir): Undefine.
70573         * lib/chown.c (open, close): Undefine.
70574         * lib/clean-temp.c (open, close): Undefine.
70575         * lib/copy-file.c (open, close): Undefine.
70576         * lib/execute.c (open, close): Undefine.
70577         * lib/fsusage.c (open, close): Undefine.
70578         * lib/gc-gnulib.c (open, close): Undefine.
70579         * lib/getcwd.c (opendir, closedir): Undefine.
70580         * lib/glob.c (opendir, closedir): Undefine.
70581         * lib/javacomp.c (open, close): Undefine.
70582         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70583         * lib/openat-proc.c (open, close): Undefine.
70584         * lib/pagealign_alloc.c (open, close): Undefine.
70585         * lib/pipe.c (open, close): Undefine.
70586         * lib/progreloc.c (open, close): Undefine.
70587         * lib/savedir.c (opendir, closedir): Undefine.
70588         * lib/utime.c (open, close): Undefine.
70589         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70590
70591 2007-01-10  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70594
70595 2007-01-12  Eric Blake  <ebb9@byu.net>
70596
70597         Provide a robust <wchar.h>.  Further simplifications are now
70598         possible in other modules, but not included here.
70599         * modules/wchar: New module.
70600         * m4/wchar.m4: New file.
70601         * lib/wchar_.h: Likewise.
70602         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70603         of the new module.
70604         * MODULES.html.sh (Extended multibyte and wide character utilities):
70605         New section.
70606
70607 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70610         to a reasonable default for memory allocation.
70611         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70612         file system that reports garbage st_size values for symlinks.
70613         Problem reported by Liyang Hu.
70614
70615 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70616
70617         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70618         Emacs .#* auto-save files).
70619
70620 2007-01-11  Bruno Haible  <bruno@clisp.org>
70621
70622         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70623         directory.
70624
70625 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         Use @...@ consistently in lib/wctype_.h.
70628         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70629         on it being set to 1 or 0.
70630         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70631         go back to AC_SUBSTing it.
70632         * modules/wctype (Makefile.am): Undo previous change.
70633
70634 2007-01-10  Eric Blake  <ebb9@byu.net>
70635
70636         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70637         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70638         * modules/wctype (Makefile.am): Likewise.
70639         Reported by Chris McGuire.
70640
70641 2007-01-10  Jim Meyering  <jim@meyering.net>
70642
70643         fts.c: a small readability/maintainability improvement
70644         * lib/fts.c (fts_read): Make this code slightly more readable and
70645         maintainable by hoisting the "sp->fts_cur = p" assignments to
70646         immediately follow the statements that set P.  Derived from
70647         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70648
70649 2007-01-10  Eric Blake  <ebb9@byu.net>
70650
70651         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70652         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70654         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70655         Reported by Chris McGuire.
70656
70657 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70658
70659         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70660         in sed script.
70661
70662 2007-01-09  Bruno Haible  <bruno@clisp.org>
70663
70664         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70665         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70666         variables.
70667         (func_module): Use them.
70668
70669 2007-01-09  Bruno Haible  <bruno@clisp.org>
70670
70671         * modules/unistr/base: New file.
70672         * lib/unistr.h: New file.
70673
70674         * modules/unistr/u8-to-u16: New file.
70675         * lib/unistr/u8-to-u16.c: New file.
70676
70677         * modules/unistr/u8-to-u32: New file.
70678         * lib/unistr/u8-to-u32.c: New file.
70679
70680         * modules/unistr/u16-to-u8: New file.
70681         * lib/unistr/u16-to-u8.c: New file.
70682
70683         * modules/unistr/u16-to-u32: New file.
70684         * lib/unistr/u16-to-u32.c: New file.
70685
70686         * modules/unistr/u32-to-u8: New file.
70687         * lib/unistr/u32-to-u8.c: New file.
70688
70689         * modules/unistr/u32-to-u16: New file.
70690         * lib/unistr/u32-to-u16.c: New file.
70691
70692         * modules/unistr/u8-check: New file.
70693         * modules/unistr/u16-check: New file.
70694         * modules/unistr/u32-check: New file.
70695         * lib/unistr/u8-check.c: New file.
70696         * lib/unistr/u16-check.c: New file.
70697         * lib/unistr/u32-check.c: New file.
70698
70699         * modules/unistr/u8-chr: New file.
70700         * modules/unistr/u16-chr: New file.
70701         * modules/unistr/u32-chr: New file.
70702         * lib/unistr/u8-chr.c: New file.
70703         * lib/unistr/u16-chr.c: New file.
70704         * lib/unistr/u32-chr.c: New file.
70705
70706         * modules/unistr/u8-cmp: New file.
70707         * modules/unistr/u16-cmp: New file.
70708         * modules/unistr/u32-cmp: New file.
70709         * lib/unistr/u8-cmp.c: New file.
70710         * lib/unistr/u16-cmp.c: New file.
70711         * lib/unistr/u32-cmp.c: New file.
70712
70713         * modules/unistr/u8-cpy: New file.
70714         * modules/unistr/u16-cpy: New file.
70715         * modules/unistr/u32-cpy: New file.
70716         * lib/unistr/u8-cpy.c: New file.
70717         * lib/unistr/u16-cpy.c: New file.
70718         * lib/unistr/u32-cpy.c: New file.
70719         * lib/unistr/u-cpy.h: New file.
70720
70721         * modules/unistr/u8-cpy-alloc: New file.
70722         * modules/unistr/u16-cpy-alloc: New file.
70723         * modules/unistr/u32-cpy-alloc: New file.
70724         * lib/unistr/u8-cpy-alloc.c: New file.
70725         * lib/unistr/u16-cpy-alloc.c: New file.
70726         * lib/unistr/u32-cpy-alloc.c: New file.
70727         * lib/unistr/u-cpy-alloc.h: New file.
70728
70729         * modules/unistr/u8-endswith: New file.
70730         * modules/unistr/u16-endswith: New file.
70731         * modules/unistr/u32-endswith: New file.
70732         * lib/unistr/u8-endswith.c: New file.
70733         * lib/unistr/u16-endswith.c: New file.
70734         * lib/unistr/u32-endswith.c: New file.
70735         * lib/unistr/u-endswith.h: New file.
70736
70737         * modules/unistr/u8-mblen: New file.
70738         * modules/unistr/u16-mblen: New file.
70739         * modules/unistr/u32-mblen: New file.
70740         * lib/unistr/u8-mblen.c: New file.
70741         * lib/unistr/u16-mblen.c: New file.
70742         * lib/unistr/u32-mblen.c: New file.
70743
70744         * modules/unistr/u8-mbtouc: New file.
70745         * modules/unistr/u16-mbtouc: New file.
70746         * modules/unistr/u32-mbtouc: New file.
70747         * lib/unistr/u8-mbtouc.c: New file.
70748         * lib/unistr/u16-mbtouc.c: New file.
70749         * lib/unistr/u32-mbtouc.c: New file.
70750
70751         * modules/unistr/u8-mbtouc-safe: New file.
70752         * modules/unistr/u16-mbtouc-safe: New file.
70753         * modules/unistr/u32-mbtouc-safe: New file.
70754         * lib/unistr/u8-mbtouc-safe.c: New file.
70755         * lib/unistr/u16-mbtouc-safe.c: New file.
70756         * lib/unistr/u32-mbtouc-safe.c: New file.
70757
70758         * modules/unistr/u8-move: New file.
70759         * modules/unistr/u16-move: New file.
70760         * modules/unistr/u32-move: New file.
70761         * lib/unistr/u8-move.c: New file.
70762         * lib/unistr/u16-move.c: New file.
70763         * lib/unistr/u32-move.c: New file.
70764         * lib/unistr/u-move.h: New file.
70765
70766         * modules/unistr/u8-next: New file.
70767         * modules/unistr/u16-next: New file.
70768         * modules/unistr/u32-next: New file.
70769         * lib/unistr/u8-next.c: New file.
70770         * lib/unistr/u16-next.c: New file.
70771         * lib/unistr/u32-next.c: New file.
70772
70773         * modules/unistr/u8-prev: New file.
70774         * modules/unistr/u16-prev: New file.
70775         * modules/unistr/u32-prev: New file.
70776         * lib/unistr/u8-prev.c: New file.
70777         * lib/unistr/u16-prev.c: New file.
70778         * lib/unistr/u32-prev.c: New file.
70779
70780         * modules/unistr/u8-set: New file.
70781         * modules/unistr/u16-set: New file.
70782         * modules/unistr/u32-set: New file.
70783         * lib/unistr/u8-set.c: New file.
70784         * lib/unistr/u16-set.c: New file.
70785         * lib/unistr/u32-set.c: New file.
70786         * lib/unistr/u-set.h: New file.
70787
70788         * modules/unistr/u8-startswith: New file.
70789         * modules/unistr/u16-startswith: New file.
70790         * modules/unistr/u32-startswith: New file.
70791         * lib/unistr/u8-startswith.c: New file.
70792         * lib/unistr/u16-startswith.c: New file.
70793         * lib/unistr/u32-startswith.c: New file.
70794         * lib/unistr/u-startswith.h: New file.
70795
70796         * modules/unistr/u8-stpcpy: New file.
70797         * modules/unistr/u16-stpcpy: New file.
70798         * modules/unistr/u32-stpcpy: New file.
70799         * lib/unistr/u8-stpcpy.c: New file.
70800         * lib/unistr/u16-stpcpy.c: New file.
70801         * lib/unistr/u32-stpcpy.c: New file.
70802         * lib/unistr/u-stpcpy.h: New file.
70803
70804         * modules/unistr/u8-stpncpy: New file.
70805         * modules/unistr/u16-stpncpy: New file.
70806         * modules/unistr/u32-stpncpy: New file.
70807         * lib/unistr/u8-stpncpy.c: New file.
70808         * lib/unistr/u16-stpncpy.c: New file.
70809         * lib/unistr/u32-stpncpy.c: New file.
70810         * lib/unistr/u-stpncpy.h: New file.
70811
70812         * modules/unistr/u8-strcat: New file.
70813         * modules/unistr/u16-strcat: New file.
70814         * modules/unistr/u32-strcat: New file.
70815         * lib/unistr/u8-strcat.c: New file.
70816         * lib/unistr/u16-strcat.c: New file.
70817         * lib/unistr/u32-strcat.c: New file.
70818         * lib/unistr/u-strcat.h: New file.
70819
70820         * modules/unistr/u8-strchr: New file.
70821         * modules/unistr/u16-strchr: New file.
70822         * modules/unistr/u32-strchr: New file.
70823         * lib/unistr/u8-strchr.c: New file.
70824         * lib/unistr/u16-strchr.c: New file.
70825         * lib/unistr/u32-strchr.c: New file.
70826
70827         * modules/unistr/u8-strcmp: New file.
70828         * modules/unistr/u16-strcmp: New file.
70829         * modules/unistr/u32-strcmp: New file.
70830         * lib/unistr/u8-strcmp.c: New file.
70831         * lib/unistr/u16-strcmp.c: New file.
70832         * lib/unistr/u32-strcmp.c: New file.
70833
70834         * modules/unistr/u8-strcpy: New file.
70835         * modules/unistr/u16-strcpy: New file.
70836         * modules/unistr/u32-strcpy: New file.
70837         * lib/unistr/u8-strcpy.c: New file.
70838         * lib/unistr/u16-strcpy.c: New file.
70839         * lib/unistr/u32-strcpy.c: New file.
70840         * lib/unistr/u-strcpy.h: New file.
70841
70842         * modules/unistr/u8-strcspn: New file.
70843         * modules/unistr/u16-strcspn: New file.
70844         * modules/unistr/u32-strcspn: New file.
70845         * lib/unistr/u8-strcspn.c: New file.
70846         * lib/unistr/u16-strcspn.c: New file.
70847         * lib/unistr/u32-strcspn.c: New file.
70848         * lib/unistr/u-strcspn.h: New file.
70849
70850         * modules/unistr/u8-strdup: New file.
70851         * modules/unistr/u16-strdup: New file.
70852         * modules/unistr/u32-strdup: New file.
70853         * lib/unistr/u8-strdup.c: New file.
70854         * lib/unistr/u16-strdup.c: New file.
70855         * lib/unistr/u32-strdup.c: New file.
70856         * lib/unistr/u-strdup.h: New file.
70857
70858         * modules/unistr/u8-strlen: New file.
70859         * modules/unistr/u16-strlen: New file.
70860         * modules/unistr/u32-strlen: New file.
70861         * lib/unistr/u8-strlen.c: New file.
70862         * lib/unistr/u16-strlen.c: New file.
70863         * lib/unistr/u32-strlen.c: New file.
70864         * lib/unistr/u-strlen.h: New file.
70865
70866         * modules/unistr/u8-strmblen: New file.
70867         * modules/unistr/u16-strmblen: New file.
70868         * modules/unistr/u32-strmblen: New file.
70869         * lib/unistr/u8-strmblen.c: New file.
70870         * lib/unistr/u16-strmblen.c: New file.
70871         * lib/unistr/u32-strmblen.c: New file.
70872
70873         * modules/unistr/u8-strmbtouc: New file.
70874         * modules/unistr/u16-strmbtouc: New file.
70875         * modules/unistr/u32-strmbtouc: New file.
70876         * lib/unistr/u8-strmbtouc.c: New file.
70877         * lib/unistr/u16-strmbtouc.c: New file.
70878         * lib/unistr/u32-strmbtouc.c: New file.
70879
70880         * modules/unistr/u8-strncat: New file.
70881         * modules/unistr/u16-strncat: New file.
70882         * modules/unistr/u32-strncat: New file.
70883         * lib/unistr/u8-strncat.c: New file.
70884         * lib/unistr/u16-strncat.c: New file.
70885         * lib/unistr/u32-strncat.c: New file.
70886         * lib/unistr/u-strncat.h: New file.
70887
70888         * modules/unistr/u8-strncmp: New file.
70889         * modules/unistr/u16-strncmp: New file.
70890         * modules/unistr/u32-strncmp: New file.
70891         * lib/unistr/u8-strncmp.c: New file.
70892         * lib/unistr/u16-strncmp.c: New file.
70893         * lib/unistr/u32-strncmp.c: New file.
70894
70895         * modules/unistr/u8-strncpy: New file.
70896         * modules/unistr/u16-strncpy: New file.
70897         * modules/unistr/u32-strncpy: New file.
70898         * lib/unistr/u8-strncpy.c: New file.
70899         * lib/unistr/u16-strncpy.c: New file.
70900         * lib/unistr/u32-strncpy.c: New file.
70901         * lib/unistr/u-strncpy.h: New file.
70902
70903         * modules/unistr/u8-strnlen: New file.
70904         * modules/unistr/u16-strnlen: New file.
70905         * modules/unistr/u32-strnlen: New file.
70906         * lib/unistr/u8-strnlen.c: New file.
70907         * lib/unistr/u16-strnlen.c: New file.
70908         * lib/unistr/u32-strnlen.c: New file.
70909         * lib/unistr/u-strnlen.h: New file.
70910
70911         * modules/unistr/u8-strpbrk: New file.
70912         * modules/unistr/u16-strpbrk: New file.
70913         * modules/unistr/u32-strpbrk: New file.
70914         * lib/unistr/u8-strpbrk.c: New file.
70915         * lib/unistr/u16-strpbrk.c: New file.
70916         * lib/unistr/u32-strpbrk.c: New file.
70917         * lib/unistr/u-strpbrk.h: New file.
70918
70919         * modules/unistr/u8-strrchr: New file.
70920         * modules/unistr/u16-strrchr: New file.
70921         * modules/unistr/u32-strrchr: New file.
70922         * lib/unistr/u8-strrchr.c: New file.
70923         * lib/unistr/u16-strrchr.c: New file.
70924         * lib/unistr/u32-strrchr.c: New file.
70925
70926         * modules/unistr/u8-strspn: New file.
70927         * modules/unistr/u16-strspn: New file.
70928         * modules/unistr/u32-strspn: New file.
70929         * lib/unistr/u8-strspn.c: New file.
70930         * lib/unistr/u16-strspn.c: New file.
70931         * lib/unistr/u32-strspn.c: New file.
70932         * lib/unistr/u-strspn.h: New file.
70933
70934         * modules/unistr/u8-strstr: New file.
70935         * modules/unistr/u16-strstr: New file.
70936         * modules/unistr/u32-strstr: New file.
70937         * lib/unistr/u8-strstr.c: New file.
70938         * lib/unistr/u16-strstr.c: New file.
70939         * lib/unistr/u32-strstr.c: New file.
70940         * lib/unistr/u-strstr.h: New file.
70941
70942         * modules/unistr/u8-strtok: New file.
70943         * modules/unistr/u16-strtok: New file.
70944         * modules/unistr/u32-strtok: New file.
70945         * lib/unistr/u8-strtok.c: New file.
70946         * lib/unistr/u16-strtok.c: New file.
70947         * lib/unistr/u32-strtok.c: New file.
70948         * lib/unistr/u-strtok.h: New file.
70949
70950         * modules/unistr/u8-uctomb: New file.
70951         * modules/unistr/u16-uctomb: New file.
70952         * modules/unistr/u32-uctomb: New file.
70953         * lib/unistr/u8-uctomb.c: New file.
70954         * lib/unistr/u16-uctomb.c: New file.
70955         * lib/unistr/u32-uctomb.c: New file.
70956
70957         * MODULES.html.sh (Unicode string functions): Add the new modules.
70958
70959 2007-01-08  Bruno Haible  <bruno@clisp.org>
70960
70961         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70962         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70963         subdirectories.
70964
70965 2007-01-08  Karl Berry  <karl@gnu.org>
70966
70967         * doc/error.texi: mention that main() fns must set program_name
70968         when progname is used.
70969
70970 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70973         WCTYPE_H is empty, for the benefit of builds from non-distclean
70974         directories.  Problem reported by Eric Blake in
70975         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70976
70977 2007-01-08  Bruno Haible  <bruno@clisp.org>
70978
70979         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70980         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70981         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70982         PROVIDE_CANONICALIZE_FILENAME_MODE.
70983         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70984
70985 2007-01-08  Bruno Haible  <bruno@clisp.org>
70986
70987         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70988         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70989         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70990         * lib/fts.c: Likewise.
70991         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70992
70993 2006-12-25  Bruno Haible  <bruno@clisp.org>
70994
70995         * modules/utf8-ucs4-safe: New file.
70996         * lib/utf8-ucs4-safe.h: New file.
70997         * lib/unistr/utf8-ucs4-safe.c: New file.
70998
70999         * modules/utf16-ucs4-safe: New file.
71000         * lib/utf16-ucs4-safe.h: New file.
71001         * lib/unistr/utf16-ucs4-safe.c: New file.
71002
71003         * MODULES.html.sh (Unicode string functions): Add the new modules.
71004
71005 2007-01-08  Bruno Haible  <bruno@clisp.org>
71006
71007         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71008         (Depends-on): Add unitypes.
71009         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71010         (u8_mbtouc_aux): Move out to separate file.
71011         (u8_mbtouc): Use ucs4_t, uint8_t types.
71012         * lib/unistr/utf8-ucs4.c: New file.
71013
71014         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71015         (Depends-on): Add unitypes.
71016         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71017         (u16_mbtouc_aux): Move out to separate file.
71018         (u16_mbtouc): Use ucs4_t, uint16_t types.
71019         * lib/unistr/utf16-ucs4.c: New file.
71020
71021         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71022         (Depends-on): Add unitypes.
71023         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71024         (u8_uctomb_aux): Move out to separate file.
71025         (u8_uctomb): Use ucs4_t, uint8_t types.
71026         * lib/unistr/ucs4-utf8.c: New file.
71027
71028         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71029         (Depends-on): Add unitypes.
71030         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71031         (u16_uctomb_aux): Move out to separate file.
71032         (u16_uctomb): Use ucs4_t, uint16_t types.
71033         * lib/unistr/ucs4-utf16.c: New file.
71034
71035 2006-12-25  Bruno Haible  <bruno@clisp.org>
71036
71037         * modules/unitypes: New file.
71038         * lib/unitypes.h: New file.
71039         * MODULES.html.sh (func_all_modules): New section "Unicode string
71040         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71041         this section. Add unitypes.
71042
71043 2007-01-08  Bruno Haible  <bruno@clisp.org>
71044
71045         Avoid variable names that conflict with those from libtool.
71046         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71047         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71048         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71049         library_names_spec to acl_library_names_spec, hardcode_* to
71050         acl_hardcode_*.
71051         Reported by Ralf Wildenhues.
71052
71053 2007-01-08  Bruno Haible  <bruno@clisp.org>
71054
71055         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71056         definition.
71057         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71058         definition.
71059         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71060         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71061         definition.
71062         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71063         definition.
71064         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71065         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71066         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71067         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71068         definition.
71069         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71070         definition.
71071         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71072         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71073         GC_USE_<algorithm>.
71074         * lib/gc-libgcrypt.c: Likewise.
71075         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71076         * modules/gc-arctwo (configure.ac): Likewise.
71077         * modules/gc-des (configure.ac): Likewise.
71078         * modules/gc-hmac-md5 (configure.ac): Likewise.
71079         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71080         * modules/gc-md2 (configure.ac): Likewise.
71081         * modules/gc-md4 (configure.ac): Likewise.
71082         * modules/gc-md5 (configure.ac): Likewise.
71083         * modules/gc-random (configure.ac): Likewise.
71084         * modules/gc-rijndael (configure.ac): Likewise.
71085         * modules/gc-sha1 (configure.ac): Likewise.
71086
71087 2007-01-08  Bruno Haible  <bruno@clisp.org>
71088
71089         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71090         macro definition.
71091         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71092         definition.
71093         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71094         definition.
71095         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71096         * modules/fcntl-safer (configure.ac): Likewise.
71097         * modules/fopen-safer (configure.ac): Likewise.
71098         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71099         GNULIB_FWRITEERROR macro definition.
71100
71101 2007-01-08  Bruno Haible  <bruno@clisp.org>
71102
71103         * m4/gnulib-common.m4: New file.
71104         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71105         (func_get_filelist): Add m4/gnulib-common.m4.
71106
71107 2007-01-08  Bruno Haible  <bruno@clisp.org>
71108
71109         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71110         command.
71111
71112 2007-01-08  Jim Meyering  <jim@meyering.net>
71113
71114         Use a more robust test for a "can't happen" condition.
71115         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71116         narrowed the st_size value.  Presuming the "can't happen" condition
71117         is true, that narrowing could conceivably convert an invalid st_size
71118         value into a valid one.  Instead, use a change based on Matthew
71119         Woehlke's original patch.
71120
71121         Slight readability improvement: use an assert-like macro
71122         in place of literal "abort ()" uses.
71123         * lib/fts.c (fts_assert): Define.
71124         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71125         Use this macro instead of a bare 'abort'.
71126
71127 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71128
71129         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71130         simply work around them.
71131         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71132         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71133         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71134         declaring.
71135         Don't bother to define as macros, since the standard doesn't require it.
71136         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71137         longer worry about IRIX 5.3.
71138         (HAVE_WCTYPE_CTMP_BUG): Remove.
71139
71140 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71141
71142         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71143         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71144         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71145         Problems reported by Georg Schwarz for IRIX 5.3.
71146
71147         * gnulib-tool (autoconf_minversion): Take the maximum version number
71148         found, not the minimum.  Problem reported by James Youngman.
71149
71150 2007-01-03  Karl Berry  <karl@gnu.org>
71151
71152         * doc/error.texi: new file, explaining interaction with progname.
71153         * doc/gnulib.texi: include it.  Update copyright.
71154
71155 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71156
71157         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71158         AC_CANONICAL_HOST, to improve autobuild outputs.
71159
71160 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71161             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71162
71163         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71164         sockets, server sockets, and other file descriptors.  Count errors
71165         to compute the return value.  Reorder the code a bit to be easier
71166         to follow.  Don't set event bits that were not requested (except
71167         POLLERR and POLLHUP).
71168
71169 2007-01-01  Bruno Haible  <bruno@clisp.org>
71170
71171         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71172
71173 2007-01-03  Jim Meyering  <jim@meyering.net>
71174
71175         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71176
71177 2007-01-02  Bruno Haible  <bruno@clisp.org>
71178
71179         * modules/settime (Include): Require timespec.h.
71180         * modules/nanosleep (Include): Likewise.
71181
71182 2007-01-01  Bruno Haible  <bruno@clisp.org>
71183
71184         * gnulib-tool (func_emit_copyright_notice): Bump year.
71185         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71186
71187 2007-01-01  Bruno Haible  <bruno@clisp.org>
71188
71189         Improve support for OpenBSD.
71190         * build-aux/config.rpath (libname_spec): Export.
71191         (library_names_spec): New variable. Export.
71192         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71193         library_names_spec from the config.rpath output. Locate shared library
71194         through the name pattern in library_names_spec.
71195
71196 2007-01-01  Eric Blake  <ebb9@byu.net>
71197
71198         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71199
71200 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71201
71202         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71203         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71204         assume the C locale, and avoid an "eval" that could cause trouble.
71205         Problem with SORT reported by Bob Proulx.
71206
71207         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71208         Define.  Trivial patch from Henning Nielsen Lund, originally
71209         sent to bug-grep@gnu.org today.
71210
71211 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71214         struct stat.  Problem reported by Henning Nielsen Lund.
71215         * lib/acl.c: Include acl.h first, to check interface.  Don't
71216         bother to include sys/types.h and sys/stat.h again.
71217
71218 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71219
71220         Import the following change from libc; problem reported by
71221         Sven Verdoolaege.
71222
71223         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71224
71225         [BZ #1373]
71226         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71227
71228 2006-12-28  Jim Meyering  <jim@meyering.net>
71229
71230         * build-aux/announce-gen: Do not assume that the package
71231         builds any of tar.gz, tar.bz2, and .xdelta files.
71232         Suggestion from Simon Josefsson.
71233
71234 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71235
71236         * modules/announce-gen: New file.
71237
71238 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71241         handles its gotchas now.
71242         * lib/mbswidth.c: Likewise.
71243         * lib/wcwidth.h: Likewise.
71244         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71245         and iswcntrl; the wctype module does this stuff now.
71246         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71248         * modules/mbchar (Depends-on): Add wctype.
71249         * modules/mbswidth (Depends-on): Likewise.
71250         * modules/wcwidth (Depends-on): Likewise.
71251
71252 2006-12-27  Eric Blake  <ebb9@byu.net>
71253
71254         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71255         module uses more than what <wctype.h> is required to provide.
71256
71257 2006-12-26  Eric Blake  <ebb9@byu.net>
71258
71259         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71260
71261 2006-12-26  Eric Blake  <ebb9@byu.net>
71262
71263         * modules/absolute-header: New module.
71264         * modules/fcntl (Depends-on): Depend on it.
71265         * modules/inttypes (Depends-on): Likewise.
71266         * modules/stdint (Depends-on): Likewise.
71267         * modules/sys_stat (Depends-on): Likewise.
71268         * modules/wctype (Depends-on): Likewise.
71269         * MODULES.html.sh (Support for building libraries and
71270         executables): Document it.
71271
71272 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * gnulib-tool (SED): Remove, undoing previous change.
71275         The problem was that it broke coreutils on Solaris, because
71276         "sed --posix" leaked into a makefile.
71277         (sed): New alias, if 'alias' and GNU sed.
71278
71279 2006-12-24  Jim Meyering  <jim@meyering.net>
71280
71281         Work around an fchownat bug in glibc-2.4:
71282         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71283         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71284         in spite of the -P option.
71285         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71286         New macros.
71287         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71288         * modules/openat (Files): Add lib/fchownat.c.
71289         * lib/openat.c (fchownat): Don't define here.  Move to...
71290         * lib/fchownat.c: ...this new file.
71291
71292 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         Fix bug reported by Bruno Haible in
71295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71296         where quotearg.c didn't compile on Mac OS X 10.2 because it
71297         lacks <wchar.h> and wint_t.
71298         * lib/wctype_.h (__wctype_wint_t): New type.
71299         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71300         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71301         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71302         Arg is now of type __wctype_wint_t, not wint_t.
71303         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71304         substitute HAVE_WINT_T.
71305         * modules/wctype (Files): Add m4/wint_t.m4.
71306         (wctype.h): Substitute HAVE_WINT_T.
71307
71308 2006-12-23  Bruno Haible  <bruno@clisp.org>
71309
71310         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71311
71312 2006-12-23  Bruno Haible  <bruno@clisp.org>
71313
71314         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71315         S_ISLNK.
71316         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71317         mingw.
71318
71319 2006-12-22  Bruno Haible  <bruno@clisp.org>
71320
71321         * lib/copy-file.c: Include acl.h.
71322         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71323         Close the file descriptors only after being done with copy_acl.
71324         * modules/copy-file (Depends-on): Add acl.
71325
71326 2006-12-22  Bruno Haible  <bruno@clisp.org>
71327
71328         * gnulib-tool (SED): New variable.
71329         Use $SED instead of sed everywhere.
71330
71331 2006-12-22  Bruno Haible  <bruno@clisp.org>
71332
71333         * modules/no-c++: New file.
71334         * m4/no-c++.m4: New file.
71335         * MODULES.html.sh (Support for building libraries and executables):
71336         Add no-c++.
71337
71338 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71341         Include <limits.h>, and use its INT_MAX to rewrite the
71342         j loop so that it does not overflow 'int'.  Problem reported by
71343         Ralf Wildenhues in
71344         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71345         Play it safe by shifting left by 1 rather than multiplying by 2,
71346         as GCC is less likely to optimize this away when the value
71347         is signed (when it assumes overflow leads to undefined behavior).
71348         Also, don't assume time_t uses two's complement.
71349
71350 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71351
71352         * MODULES.html.sh: New module wctype.
71353         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71354         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71355         <wctype.h>, since the new wctype module should fix this.
71356         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71357         the wctype module should arrange for it.
71358         * lib/regex_internal.h: Likewise.
71359         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71360         since the wctype module should handle this now.
71361         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71362         * modules/fnmatch (Depends-on): Add wctype.
71363         * modules/quotearg (Depends-on): Likewise.
71364         * modules/regex (Depends-on): Likewise.
71365
71366 2006-12-19  Bruno Haible  <bruno@clisp.org>
71367
71368         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71369         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71370
71371 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71372
71373         * modules/savewd (Depends-on): Fix dependency on fcntl.
71374
71375 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71378         conforms to C99, rather than relying on the user's environment
71379         setting of STDINT_H.
71380
71381 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71382         and Eric Blake  <ebb9@byu.net>
71383
71384         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71385         This is more consistent with the other defines here.
71386         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71387         Port to z/OS.  Problem reported by Paul Gilmartin.
71388         Change local vars to use gl_ prefix rather than ac_.
71389         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71390         with other defines.
71391         * modules/double-slash-root: New module.
71392         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71393         (Depends-on): Add double-slash-root.
71394         * MODULES.html.sh (File system functions): Mention new module.
71395
71396 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71399         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71400         This is for the benefit of gzip, which doesn't do i18n.
71401
71402 2006-12-12  Jim Meyering  <jim@meyering.net>
71403
71404         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71405         Reported by Andreas Schwab <schwab@suse.de>.
71406
71407 2006-12-12  Bruno Haible  <bruno@clisp.org>
71408
71409         Merge these changes.
71410         2006-09-05  Bruno Haible  <bruno@clisp.org>
71411         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71412         iconv_alloc succeeded.
71413         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71414         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71415         test for " && dest " at the end - dest is always != NULL there. Call
71416         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71417         with 2xNULL arguments, also to flush the state storage. Handle the
71418         IRIX iconv behaviour. Realloc the final result, to throw away unused
71419         memory.
71420
71421 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71422
71423         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71424         and fchmodat unconditionally, since glibc 2.4 has them.
71425         Problem reported by Arkadiusz Miskiewicz.
71426
71427 2006-12-10  Bruno Haible  <bruno@clisp.org>
71428
71429         * gnulib-tool (func_import): Show the include files only for those
71430         modules that are copied and specified.
71431         Reported by Karl Berry.
71432
71433 2006-12-08  Jim Meyering  <jim@meyering.net>
71434
71435         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71436         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71437
71438         * build-aux/announce-gen: Add two new options, both optional:
71439         --bootstrap-tools=TOOL_LIST
71440               a comma-separated list of tools, e.g.,
71441               autoconf,automake,bison,gnulib
71442         --gnulib-snapshot-date=DATE
71443               if gnulib is in the bootstrap tool list,
71444               then report this as the snapshot date.
71445               If not specified, use the current date/time.
71446               If you specify a date here, be sure it's UTC.
71447
71448 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71449
71450         * tests/test-argp-2.sh: Fix test to match actual output.
71451         (func_compare): Fix sed script to be portable.
71452
71453 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71456         workaround for this case.  It is not autoconfigured now; offhand
71457         it's hard to see how to autoconfigure it.
71458
71459 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71462         a directory that is about to be chowned.  Such a directory's
71463         initial file permissions should permit the owner only and this
71464         should not be changed until after the chown, since the group and
71465         other bits would be incorrect if they granted permission before
71466         the chown.
71467
71468         Fix porting problem for iswctype reported by Georg Schwarz in:
71469         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71470         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71471         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71472         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71473         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71474
71475 2006-12-03  Jim Meyering  <jim@meyering.net>
71476
71477         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71478         p->fts_statp may not yet be defined.
71479         (fts_read): Instead, set it in the caller, once p->fts_statp is
71480         sure to be defined, and corresponds to a top-level directory.
71481         This bug made du -x fail.  Here's the coreutils test case:
71482         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71483         Reported by Mike Frysinger.
71484
71485 2006-12-01  Jim Meyering  <jim@meyering.net>
71486
71487         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71488         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71489         Reported by Simon Josefsson.
71490
71491 2006-11-30  Jim Meyering  <jim@meyering.net>
71492
71493         * m4/warning.m4: Use the all-permissive copyright notice
71494         recommended by RMS (rather than LGPL).
71495         * m4/vararrays.m4: Likewise.
71496         * m4/flexmember.m4: Likewise.
71497
71498 2006-11-29  Bruno Haible  <bruno@clisp.org>
71499
71500         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71501         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71502         using +=.
71503         Reported by Simon Josefsson <simon@josefsson.org>.
71504
71505 2006-11-28  James Youngman <jay@gnu.org>
71506
71507         * README: Advise users that they might find the bug-gnulib@gnu.org
71508         and autotools-announce@gnu.org mailing lists useful.
71509
71510 2006-11-28  Bruno Haible  <bruno@clisp.org>
71511
71512         * m4/ptrdiff_max.m4: Remove file.
71513
71514 2006-11-21  Bruno Haible  <bruno@clisp.org>
71515
71516         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71517         _AC_COMPUTE_INT.
71518         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71519         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71520         _AC_COMPUTE_INT.
71521         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71522         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71523         _AC_COMPUTE_INT.
71524         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71525
71526 2006-11-28  Jim Meyering  <jim@meyering.net>
71527
71528         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71529         warning from "gcc -Wshadow" about shadowing the builtin.
71530
71531 2006-11-27  Bruno Haible  <bruno@clisp.org>
71532
71533         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71534         _AC_COMPUTE_INT.
71535         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71536
71537 2006-11-27  Bruno Haible  <bruno@clisp.org>
71538             Paul Eggert  <eggert@cs.ucla.edu>
71539
71540         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71541
71542 2006-11-26  Bruno Haible  <bruno@clisp.org>
71543
71544         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71545         noinst_LTLIBRARIES.
71546
71547 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71548             Bruno Haible  <bruno@clisp.org>
71549
71550         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71551         if compiling with "gcc -ansi".
71552
71553 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         Fix some incompatibilities with gcc -ansi -pedantic.
71556         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71557         if compiling pedantically with GCC, unless it's C99 or later.
71558         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71559         it mishandles gcc -ansi -pedantic as well.
71560         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71561         if gcc -pedantic.
71562         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71563         initializers for struct if -pedantic, unless it's C99 or later.
71564
71565 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71566
71567         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71568         Don't close an fd more than once. Identical atimes indicate
71569         success, not failure.
71570
71571 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71572
71573         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71574
71575 2006-11-23  Jim Meyering  <jim@meyering.net>
71576
71577         * build-aux/announce-gen: New file.  From coreutils.
71578
71579 2006-11-22  Jim Meyering  <jim@meyering.net>
71580
71581         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71582         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71583         (fts_read): Use a temporary to narrow the overused st_size member
71584         before using it in a switch statement.  Reported by Matthew Woehlke.
71585
71586         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71587         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71588
71589 2006-11-20  Bruno Haible  <bruno@clisp.org>
71590
71591         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71592         changequote instead of pairs of brackets.
71593         Reported by Andreas Schwab <schwab@suse.de>.
71594
71595 2006-11-21  Jim Meyering  <jim@meyering.net>
71596
71597         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71598         so as to remain compatible with older compilers.
71599         Patch from Michael Deutschmann.
71600
71601 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71602
71603         * MODULES.html.sh (File system functions): Add openat.
71604
71605         * lib/openat.h (rpl_fstatat): New macro, if
71606         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71607         (fstatat): Define to rpl_fstatat under the same conditions,
71608         unless COMPILING_FSTATAT.
71609         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71610         seems to have the bug.
71611         * lib/fstatat.c: New file.
71612         * modules/openat (Files): Add it.
71613
71614 2006-11-20  Bruno Haible  <bruno@clisp.org>
71615
71616         * Makefile: New file.
71617
71618 2006-11-20  Jim Meyering  <jim@meyering.net>
71619
71620         The beginnings of syntax-related checks for gnulib.
71621         * lib/Makefile: New file.
71622         * lib/t-idcache: New script.  Ensure that the two halves of
71623         idcache.c stay in sync.
71624
71625         * lib/idcache.c: Adjust comments in user- and group- portions to
71626         be more accurate, and to be consistent with one another.
71627
71628 2006-11-20  Jim Meyering  <jim@meyering.net>
71629
71630         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71631         continue using the flexible array member (thus, this module performs
71632         half as many malloc calls), with the addition that...
71633         (getgroup, getuser): Consistently record a non-match via an empty
71634         "name" string, and map an empty string match to a NULL return value.
71635         * modules/idcache (Depends-on): Re-add flexmember.
71636
71637         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71638         (getuidbyname, getgroup, getgidbyname): Likewise.
71639
71640         Use cleaner syntax: NULL rather than 0.
71641         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71642
71643 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71644
71645         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71646         It mishandled the case where the group was missing.
71647         Problem reported by Greg Schafer.
71648         * modules/idcache: Likewise.
71649
71650 2006-11-18  Jim Meyering  <jim@meyering.net>
71651
71652         * check-module (%exempt_header): Add exception for some
71653         conditionally-included headers.
71654
71655         * modules/i-ring (Depends-on): Add verify.
71656         (License): Change to LGPL.
71657
71658 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71661         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71662         and inttostr.h.  Use snprintf rather than uinttostr, so that
71663         LGPLed code doesn't depend on GPLed.
71664
71665 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71666
71667         * modules/inline (License): Change from GPL to LGPL.
71668
71669 2006-11-17  Jim Meyering  <jim@meyering.net>
71670
71671         * modules/d-type (License): Switch to LGPL.
71672
71673 2006-11-15  Bruno Haible  <bruno@clisp.org>
71674
71675         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71676
71677 2006-11-15  Eric Blake  <ebb9@byu.net>
71678
71679         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71680         the module dependency.
71681
71682 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71683             Bruno Haible  <bruno@clisp.org>
71684
71685         * gnulib-tool (func_create_testdir): Add license consistency check.
71686
71687 2006-11-15  Eric Blake  <ebb9@byu.net>
71688
71689         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71690         random "(cached)" in configure output.
71691
71692 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71693
71694         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71695         test for conforming inttypes.h is both announced and cached.
71696
71697         * MODULES.html.sh (seen_modules, seen_files): New variables.
71698         (func_module): Rewrite to use a few less gnulib-tool and sed
71699         invocations.  Avoid a couple of quadratic algorithms for ...
71700         (missed_modules, missed_files): ... these, with ...
71701         (func_append, func_tmpdir): ... these new functions, from
71702         gnulib-tool.  Analogously, install traps for cleanup.
71703
71704         * tests/test-gc.c (main): Remove unused variables.
71705         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71706
71707 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71708
71709         * modules/inttostr (License): Change to LGPL.
71710
71711 2006-11-14  Eric Blake  <ebb9@byu.net>
71712
71713         * modules/tempname (License): Change to LGPL.
71714
71715 2006-11-14  Eric Blake  <ebb9@byu.net>
71716
71717         * doc/functions.texi (Function Portability): *printf functions on
71718         Cygwin now understand all POSIX size specifiers.
71719
71720 2006-11-14  Bruno Haible  <bruno@clisp.org>
71721
71722         * modules/c-ctype (License): Change to LGPL.
71723
71724 2006-11-12  Bruno Haible  <bruno@clisp.org>
71725
71726         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71727         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71728         for GNOME libraries, for which the include files are installed in
71729         subdirectories of $prefix/include.
71730
71731 2006-11-12  Bruno Haible  <bruno@clisp.org>
71732
71733         * m4/lib-link.m4: Require at least autoconf-2.54.
71734         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71735         name to underscores for the --with option.
71736
71737 2006-11-13  Bruno Haible  <bruno@clisp.org>
71738
71739         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71740         the tests directory.
71741         Reported by Ralf Wildenhues.
71742
71743 2006-11-13  Bruno Haible  <bruno@clisp.org>
71744
71745         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71746         (func_emit_initmacro_end): Undo the override here.
71747         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71748         Works around the famous automake error in coreutils.
71749
71750 2006-11-13  Eric Blake  <ebb9@byu.net>
71751
71752         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71753         element, not its node.
71754
71755 2006-11-12  Bruno Haible  <bruno@clisp.org>
71756
71757         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71758         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71759
71760 2006-11-12  Bruno Haible  <bruno@clisp.org>
71761
71762         * gnulib-tool: New option --local-symlink.
71763         (func_usage): Document it.
71764         (lsymbolic): New variable.
71765         (func_import, func_create_testdir): If --symlink was not specified,
71766         test whether --local-symlink was specified and the file comes from
71767         the local_gnulib_dir.
71768
71769 2006-11-12  Bruno Haible  <bruno@clisp.org>
71770
71771         * gnulib-tool (func_ln): New function.
71772         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71773
71774 2006-11-12  Bruno Haible  <bruno@clisp.org>
71775
71776         Finish support for source files in subdirectories.
71777         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71778         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71779         AUTOMAKE_OPTIONS.
71780         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71781
71782 2006-11-12  Bruno Haible  <bruno@clisp.org>
71783
71784         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71785         EXTRA_lib_SOURCES augmentation.
71786         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71787
71788 2006-11-12  Jim Meyering  <jim@meyering.net>
71789
71790         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71791         file descriptors.  This also averts a failure on systems with
71792         native openat support when a traversed directory lacks "x" access.
71793         * lib/fts_.h: Include "i-ring.h"
71794         (struct FTS) [fts_fd_ring]: New member.
71795         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71796         (FCHDIR): Add parentheses.
71797         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71798         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71799         When descending, rather than simply closing the previous
71800         fts_cwd_fd value, push that file descriptor onto the ring.
71801         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71802         (fts_open): Initialize the new fd_ring member.
71803         (fts_close): Clear the ring.
71804         (fts_safe_changedir): When possible, use our new fd_ring to skip
71805         the diropen and fstat and dev/ino comparison that would normally
71806         accompany a virtual `chdir ("..")'.
71807
71808         * modules/fts (Depends-on): Add i-ring.
71809         * modules/i-ring: New module.
71810         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71811         * m4/i-ring.m4: New file.
71812
71813 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71814
71815         * gnulib-tool (func_create_testdir): Fix replacement of
71816         `build-aux' in configure.ac.  Run autotools in gltests
71817         subdirectory.
71818         (func_create_testdir, func_create_megatestdir, test): There is
71819         no need for '--force' in most autotool invocations in a new
71820         tree.  Actually fail the whole test if any of the tools, or the
71821         configure or make stages fail.
71822
71823         Sync from Automake.
71824         * build-aux/gnupload: Revert last change.  Add pointer to upload
71825         instructions of the GNU Maintenance Instructions.
71826         Suggestion by Karl Berry.
71827
71828 2006-11-10  Jim Meyering  <jim@meyering.net>
71829
71830         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71831
71832 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71835         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71836         (bind_textdomain_codeset) [! ENABLE_NLS]:
71837         Evaluate all the arguments.  That way, callers get compatible behavior
71838         if the arguments have side effects.  Also, it avoids some GCC
71839         diagnostics in some cases; Joel E. Denny reported problems when Bison
71840         was configured with --enable-gcc-warnigs.
71841
71842 2006-11-10  Jim Meyering  <jim@meyering.net>
71843
71844         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71845         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71846         account.
71847
71848 2006-11-10  Jim Meyering  <jim@meyering.net>
71849
71850         * modules/inline: New file/module.
71851         * modules/xalloc (Files): Remove m4/inline.m4.
71852         (Depends-on): Add inline, instead.
71853         * modules/oset: Likewise.
71854         * modules/list: Likewise.
71855
71856 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71857
71858         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71859         Problem reported by Matthew Woehlke.
71860
71861 2006-11-09  Bruno Haible  <bruno@clisp.org>
71862
71863         * lib/tempname.c (gen_tempname): Remove variant that invokes
71864         __gen_tempname.
71865         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71866         __gen_tempname.
71867
71868 2006-11-08  Bruno Haible  <bruno@clisp.org>
71869
71870         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71871         to 'yes' instead of 'cross-compiling'.
71872
71873 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         * lib/quotearg.h (quotearg_free): New decl.
71876         * lib/quotearg.c (quotearg_free): New function.
71877         (slot0, nslots, slotvec0, slotvec):
71878         Now file-scope so that quotearg_free can get at them.
71879
71880 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71881
71882         Sync from Automake.
71883         * build-aux/gnupload: Add missing 'gnu' to example URL.
71884         Report by Karl Berry.
71885
71886 2006-11-08  Bruno Haible  <bruno@clisp.org>
71887
71888         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71889         Suggested by Paul Eggert.
71890
71891 2006-11-08  Jim Meyering  <jim@meyering.net>
71892
71893         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71894         It's already included if !_LIBC.
71895         (fts_safe_changedir): Add a comment.
71896
71897 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71898
71899         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71900         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71901         Matthew Woehlke.
71902
71903         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71904         definitions up, to avoid colliding with change below.
71905         (static_inline) [HAVE_INLINE]: New macro.
71906         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71907         Provide extern decls when !HAVE_INLINE.  Do not define unless
71908         static_inline is defined, either by us or by xmalloc.c.  Use
71909         static_inline rather than static inline.
71910         (XCALLOC): Optimize sizeof(T) = 1 case.
71911         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71912
71913 2006-11-07  Bruno Haible  <bruno@clisp.org>
71914
71915         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71916         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71917         AC_C_INLINE.
71918         * modules/xalloc (Files): Add m4/inline.m4.
71919
71920 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71921
71922         * README: Fix typo.
71923         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71924         (Miscellanous Notes): ...from this.
71925
71926 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71929         Mention that offsetof should be used instead of sizeof.
71930         From Bruno Haible.
71931
71932 2006-11-07  Bruno Haible  <bruno@clisp.org>
71933
71934         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71935
71936 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71939         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71940         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71941         (gl_tree_add_before, gl_tree_add_after):
71942         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71943         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71944         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71945         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71946         (gl_linked_add_after, gl_linked_add_at): Likewise.
71947         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71948         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71949         (gl_tree_add_before, gl_tree_add_after): Likewise.
71950         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71951         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71952         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71953
71954 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71955
71956         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71957
71958 2006-11-06  Bruno Haible  <bruno@clisp.org>
71959
71960         * m4/inline.m4: New file.
71961         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71962         * modules/list (Files): Add m4/inline.m4.
71963         * modules/oset (Files): Likewise.
71964
71965 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         * lib/idcache.c: Include <stddef.h>, for offsetof.
71968         (struct userid.name): Change from char * to a flexible array member.
71969         All uses changed.
71970         * modules/idcache (Depends-on): Add flexmember.
71971
71972         * MODULES.html.sh (Core language properties): New module flexmember.
71973         * modules/flexmember, m4/flexmember.m4: New files.
71974
71975         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71976         inline functions that are identical with the old xnmalloc_inline,
71977         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71978         that we can avoid some unnecessary integer multiplications and
71979         divisions in the common case where the element size is known at
71980         compile time.
71981         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71982         needed.
71983         (xnboundedmalloc): Remove.
71984         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71985         arguments, for consistency with rest of this header.
71986         (xcharalloc): Rewrite using XNMALLOC.
71987         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71988         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71989         versions have been moved to lib/xalloc.h and renamed to be the
71990         non-*_inline versions.
71991         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71992         and xnrealloc functions, since those functions are now inline and
71993         now call us.
71994         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71995         renaming described above.
71996         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71997         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71998         captures the dependency in AC_C_INLINE.
71999
72000         New module canonicalize-lgpl, proposed by Charles Wilson in
72001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72002         with a few small changes afterwards.
72003         * MODULES.html.sh (File system functions): New module
72004         canonicalize-lgpl.
72005         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72006         and canonicalize_file_name.
72007         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72008         * modules/canonicalize-lgpl: New files.
72009
72010 2006-11-05  Bruno Haible  <bruno@clisp.org>
72011
72012         * gnulib-tool (func_import, func_create_testdir): Create directories
72013         also for files in subdirectories of lib/.
72014
72015 2006-11-05  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72018         ANSI C compliant.
72019
72020 2006-11-03  Bruno Haible  <bruno@clisp.org>
72021
72022         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72023         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72024         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72025         (xnboundedmalloc): New inline function.
72026         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72027         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72028         xmalloc.
72029         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72030         xmalloc.
72031         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72032         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72033         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72034         xmalloc.
72035         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72036         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72037         xmalloc.
72038         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72039         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72040         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72041         xmalloc.
72042         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72043         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72044         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72045         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72046         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72047         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72048         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72049
72050 2006-11-03  Bruno Haible  <bruno@clisp.org>
72051
72052         * lib/c-ctype.h [C++]: Define functions without name mangling.
72053         * lib/fwriteerror.h [C++]: Likewise.
72054         * lib/gcd.h [C++]: Likewise.
72055         * lib/linebreak.h [C++]: Likewise.
72056
72057 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72058
72059         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72060         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72061         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72062         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72063         Check for functions and headers just once.
72064         Check for declaration of canonicalize_file_name.
72065         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72066
72067 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72068
72069         * gnulib-tool (func_import): Fix typo in actioncmd.
72070
72071 2006-11-02  Bruno Haible  <bruno@clisp.org>
72072
72073         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72074         newline sequence in the Makefile.am snippet as a space, like "make"
72075         does.
72076         Reported by Roger Persson <perrog@gmail.com>.
72077
72078 2006-11-01  Bruno Haible  <bruno@clisp.org>
72079
72080         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72081         already declared in <string.h>.
72082         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72083
72084 2006-11-01  Bruno Haible  <bruno@clisp.org>
72085
72086         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72087         * lib/strcase.h: Include <string.h>.
72088         (strcasecmp): Define to rpl_strcasecmp here.
72089
72090 2006-11-01  Bruno Haible  <bruno@clisp.org>
72091
72092         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72093
72094 2006-11-01  Eric Blake  <ebb9@byu.net>
72095
72096         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72097
72098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72099
72100 2006-10-29  Bruno Haible  <bruno@clisp.org>
72101
72102         Make it compile in C++ mode.
72103         * lib/full-write.c (full_rw): Add a cast.
72104
72105 2006-11-01  Bruno Haible  <bruno@clisp.org>
72106
72107         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72108         be POSIX compliant.
72109         Reported by Roger Persson <perrog@gmail.com>.
72110
72111 2006-11-01  Eric Blake  <ebb9@byu.net>
72112
72113         * lib/getopt_.h: Fix comments.
72114
72115 2006-10-31  Eric Blake  <ebb9@byu.net>
72116
72117         * modules/tmpdir (Depends-on): Add sys_stat.
72118         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72119         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72120         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72121         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72122         tempname.
72123
72124 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72125
72126         Avoid some C++ diagnostics reported by Bruno Haible.
72127         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72128         xmalloc.
72129         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72130         (struct slotvec): Move to top level.
72131         (quotearg_n_options): Rewrite to avoid xmalloc.
72132         * lib/xalloc.h (xcharalloc): New function.
72133         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72134         [defined __cplusplus]: Add function template that provides result
72135         type propagation.  This part of the change is from Bruno Haible.
72136
72137 2006-10-29  Bruno Haible  <bruno@clisp.org>
72138
72139         Make it compile in C++ mode.
72140         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72141         * lib/strnlen1.c (strnlen1): Cast memchr result.
72142         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72143         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72144         (create_temp_dir): Rename local variable 'template'.
72145         (compile_csharp_using_sscli): Add cast.
72146         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72147         * lib/findprog.c (find_in_path): Likewise.
72148         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72149         * lib/wait-process.c (register_slave_subprocess): Likewise.
72150
72151 2006-10-22  Bruno Haible  <bruno@clisp.org>
72152
72153         * modules/tsearch: New file.
72154         * lib/tsearch.h: New file.
72155         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72156         * m4/tsearch.m4: New file.
72157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72158
72159 2006-10-29  Eric Blake  <ebb9@byu.net>
72160
72161         * lib/arcfour.c: Assume config.h.
72162         * lib/arctwo.c: Likewise.
72163         * lib/base64.c: Likewise.
72164         * lib/check-version.c: Likewise.
72165         * lib/crc.c: Likewise.
72166         * lib/des.c: Likewise.
72167         * lib/gc-gnulib.c: Likewise.
72168         * lib/gc-libgcrypt.c: Likewise.
72169         * lib/gc-pbkdf2-sha1.c: Likewise.
72170         * lib/getaddrinfo.c: Likewise.
72171         * lib/getdelim.c: Likewise.
72172         * lib/getline.c: Likewise.
72173         * lib/hmac-md5.c: Likewise.
72174         * lib/hmac-sha1.c: Likewise.
72175         * lib/iconvme.c: Likewise.
72176         * lib/md2.c: Likewise.
72177         * lib/md4.c: Likewise.
72178         * lib/memxor.c: Likewise.
72179         * lib/read-file.c: Likewise.
72180         * lib/readline.c: Likewise.
72181         * lib/rijndael-alg-fst.c: Likewise.
72182         * lib/rijndael-api-fst.c: Likewise.
72183         * lib/xgetdomainname.c: Likewise.
72184
72185 2006-10-28  Eric Blake  <ebb9@byu.net>
72186
72187         * lib/xstrndup.c: Assume config.h.
72188
72189 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72190
72191         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72192         stat-macros.h is now for our own macros, whereas stat_h is for
72193         macros in the <sys/stat.h> name space.
72194         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72195         (STAT_MACROS_H): Remove.
72196         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72197         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72198         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72199         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72200         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72201         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72202         Move these macros to ...
72203         * lib/stat_.h: here.  Don't include stat-macros.h.
72204         * lib/canonicalize.c: Don't include stat-macros.h.
72205         * lib/chown.c: Likewise.
72206         * lib/euidaccess.c: Likewise.
72207         * lib/file-type.c: Likewise.
72208         * lib/filemode.c: Likewise.
72209         * lib/glob.c: Likewise.
72210         * lib/isapipe.c: Likewise.
72211         * lib/lchown.c: Likewise.
72212         * lib/lstat.c: Likewise.
72213         * lib/mkdir-p.c: Likewise.
72214         * lib/rmdir.c: Likewise.
72215         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72217         unless mkdir isn't declared, to speed up 'configure'.
72218         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72219         would define all the S_* symbols.
72220         * modules/canonicalize (Depends-on):
72221         Depend on sys_stat, not stat-macros.
72222         * modules/chown: Likewise.
72223         * modules/euidaccess: Likewise.
72224         * modules/filemode: Likewise.
72225         * modules/file-type: Likewise.
72226         * modules/glob: Likewise.
72227         * modules/isapipe: Likewise.
72228         * modules/lchown: Likewise.
72229         * modules/lstat: Likewise.
72230         * modules/mkancesdirs: Likewise.
72231         * modules/rmdir: Likewise.
72232         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72233         * modules/modechange: Likewise.
72234         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72235         (configure.ac): Remove gl_STAT_MACROS.
72236         * modules/sys_stat (Depends-on): Remove stat-macros.
72237
72238 2006-10-27  Bruno Haible  <bruno@clisp.org>
72239
72240         * m4/signed.m4: Remove file.
72241         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72242         invocation.
72243         * modules/vasnprintf (Files): Remove m4/signed.m4.
72244
72245 2006-10-27  Bruno Haible  <bruno@clisp.org>
72246
72247         Update to GNU gettext 0.16.
72248         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72249         m4/inttypes-h.m4, m4/signed.m4.
72250         * m4/gettext.m4: Update to GNU gettext 0.16.
72251         * m4/intl.m4: New file, from GNU gettext.
72252         * m4/intldir.m4: New file, from GNU gettext.
72253         * config/srclist.txt: Update
72254
72255 2006-10-27  Eric Blake  <ebb9@byu.net>
72256
72257         * MODULES.html.sh: Document tempname.
72258         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72259         dependencies.
72260         (Files): Move lib/tempname.c...
72261         * modules/tempname: ...to this new module.
72262         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72263         (gl_PREREQ_TEMPNAME): Move...
72264         * m4/tempname.m4: ...to this new file.
72265         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72266         * modules/sys_stat (Depends-on): Add stat-macros.
72267         * lib/stat_.h (includes): Pick up stat macros.
72268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72269         if stat macros are broken.
72270         * lib/tempname.c (includes): No need to include "stat-macros.h".
72271         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72272         (direxists, __path_search) [!_LIBC]: Don't compile these in
72273         gnulib; the tmpdir module covers that.
72274         * lib/tempname.h: New file.
72275
72276 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72277
72278         * COPYING: Explain how gnulib-tool converts licence headers.
72279         Almost all wording by Eric Blake.
72280
72281 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * lib/mbchar.h (is_basic_table): Make read-only.
72284         * lib/mbchar.c (is_basic_table): Likewise.
72285         Reported by John Darrington.
72286
72287 2006-10-25  Bruno Haible  <bruno@clisp.org>
72288
72289         * lib/progname.h (set_program_name): Undefine before defining.
72290
72291 2006-10-25  Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72294         false for non-gcc C++ compilers.
72295         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72296
72297 2006-10-24  Bruno Haible  <bruno@clisp.org>
72298
72299         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72300         iconv implementations like Irix iconv.
72301
72302 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * modules/vararrays: New file.
72305         * m4/vararrays.m4: New file, taken from diffutils.
72306         * MODULES.html.sh: New module vararrays.
72307
72308 2006-10-24  Karl Berry  <karl@gnu.org>
72309
72310         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72311         Don't call GNU Unix.
72312
72313 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72314
72315         * users.txt: Add Libtool.
72316
72317         Sync from Libtool:
72318
72319         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72320
72321         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72322         to gnulib's policy of including config.h unconditionally.
72323
72324 2006-10-24  Bruno Haible  <bruno@clisp.org>
72325
72326         * modules/wcwidth (Files): Add m4/wint_t.m4.
72327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72328         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72329
72330 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72331
72332         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72333         to pacify GCC with some -W flags enabled.  Problem reported by
72334         Bruno Haible.
72335
72336 2006-10-24  Jim Meyering  <jim@meyering.net>
72337
72338         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72339         Reported by Karl Berry.
72340
72341 2006-10-23  Bruno Haible  <bruno@clisp.org>
72342
72343         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72344
72345 2006-10-24  Bruno Haible  <bruno@clisp.org>
72346
72347         * lib/gl_list.h: Use C comment style, not C++ comment style.
72348
72349 2006-10-23  Eric Blake  <ebb9@byu.net>
72350
72351         * lib/getaddrinfo.c (includes): Add missing include.
72352
72353 2006-10-23  Bruno Haible  <bruno@clisp.org>
72354             Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         Ability to rename obstack_free.
72357         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72358         obstack_free.
72359         (obstack_free): Invoke the __obstack_free macro.
72360         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72361
72362 2006-10-23  Bruno Haible  <bruno@clisp.org>
72363             Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72366         __argc, __argv from the declaration. (They are defined as macros on
72367         mingw.)
72368
72369 2006-10-22  Bruno Haible  <bruno@clisp.org>
72370
72371         * doc/gnulib-intro.texi: New file.
72372         * doc/gnulib.texi: Include it.
72373
72374 2006-10-21  Bruno Haible  <bruno@clisp.org>
72375
72376         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72377         "Introduction", "Miscellanous Notes", "Particular Modules".
72378
72379 2006-10-21  Bruno Haible  <bruno@clisp.org>
72380
72381         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72382         Change mostlyclean-local rule to avoid sh syntax error from bash
72383         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72384
72385 2006-10-23  Jim Meyering  <jim@meyering.net>
72386
72387         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72388         in place of snprintf.
72389
72390         * modules/inttostr (Files): Add lib/uinttostr.c.
72391         * lib/uinttostr.c (inttostr): New file/function.
72392         * lib/inttostr.h (uinttostr): Declare.
72393         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72394         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72395         Add uinttostr.
72396         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72397
72398 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72399
72400         * lib/canonicalize.c (ELOOP): Define if not already defined.
72401         Problem reported by Bruno Haible in
72402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72403
72404 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72405
72406         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72407         Problem reported by Perry Smith and Ville Laurikari.
72408
72409         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72410         uses.
72411
72412 2006-10-19  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72415         for mingw.
72416
72417 2006-10-19  Bruno Haible  <bruno@clisp.org>
72418
72419         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72420         Needed for mingw.
72421
72422 2006-10-19  Bruno Haible  <bruno@clisp.org>
72423
72424         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72425
72426 2006-10-19  Bruno Haible  <bruno@clisp.org>
72427
72428         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72429         it.
72430
72431 2006-10-19  Bruno Haible  <bruno@clisp.org>
72432
72433         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72434         invocation.
72435
72436 2006-10-19  Bruno Haible  <bruno@clisp.org>
72437
72438         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72439         mountlist by default.
72440
72441 2006-10-16  Bruno Haible  <bruno@clisp.org>
72442
72443         * lib/c-strstr.c: Include c-strstr.h.
72444
72445 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72446
72447         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72448         in a slash.
72449
72450 2006-10-18  Bruno Haible  <bruno@clisp.org>
72451
72452         * lib/lock.h [C++]: Wrap definitions in extern "C".
72453
72454 2006-10-18  Bruno Haible  <bruno@clisp.org>
72455
72456         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72457         gl_LIBOBJS list.
72458
72459 2006-10-18  Bruno Haible  <bruno@clisp.org>
72460
72461         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72462
72463 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * lib/xstrtol.h: Include gettext.h.
72466         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72467         Problem reported by Eric Blake.
72468         * modules/xstrtol (Depends-on): Add gettext-h.
72469
72470 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72471
72472         * lib/strftime.c (advance): New macro.
72473         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72474         incomplete type, so you can't add 0 to it.  Problem and patch
72475         reported by Eelco Dolstra for dietlibc.
72476
72477 2006-10-18  Jim Meyering  <jim@meyering.net>
72478
72479         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72480         type for a local, and rename it: s/up/user_proc/.
72481
72482 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72483
72484         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72485         READ_UTMP_USER_PROCESS.
72486         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72487
72488 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72489
72490         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72491         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72492
72493 2006-10-17  Eric Blake  <ebb9@byu.net>
72494
72495         * lib/sigprocmask.c (sigprocmask): Fix typo.
72496
72497         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72498
72499         * modules/clean-temp (Makefile.am): Don't add to make output...
72500         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72501         config.h.
72502
72503 2006-10-17  Bruno Haible  <bruno@clisp.org>
72504
72505         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72506         differently if DEFAULT_TEXT_DOMAIN is set.
72507
72508 2006-10-16  Bruno Haible  <bruno@clisp.org>
72509
72510         * lib/clean-temp.c: Include fwriteerror.h.
72511
72512 2006-10-16  Bruno Haible  <bruno@clisp.org>
72513
72514         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72515
72516 2006-10-16  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72519         * lib/sigprocmask.h: Include <sys/types.h>.
72520         (sigset_t): Use the system's definition if present.
72521
72522 2006-10-17  Eric Blake  <ebb9@byu.net>
72523
72524         * lib/xvasprintf.c (includes): Assume config.h.
72525         * lib/xasprintf.c (includes): Likewise.
72526
72527 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72528
72529         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72530         at least as wide as intmax_t.
72531
72532 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72533
72534         (Imported from Automake.)
72535         * build-aux/gnupload: Update to version 1.1 of directive file.
72536
72537 2006-10-16  Eric Blake  <ebb9@byu.net>
72538
72539         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72540         match Automake 1.10a.
72541
72542 2006-10-14  Bruno Haible  <bruno@clisp.org>
72543
72544         * modules/sigprocmask: New file.
72545         * lib/sigprocmask.h: New file.
72546         * lib/sigprocmask.c: New file.
72547         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72548         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72549         request sigprocmask.o.
72550         (gl_PREREQ_SIGPROCMASK): New macro.
72551         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72552         (Depends-on): Add sigprocmask.
72553         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72554         gt_SIGNALBLOCKING. Test for 'raise' only once.
72555         * lib/fatal-signal.c: Include sigprocmask.h.
72556         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72557         unblock_fatal_signals): Define always.
72558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72559         sigprocmask.
72560
72561 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         Sync from Automake.
72564         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72565         which incorrectly sets the mode of an existing destination
72566         directory.  In some cases the unpatched install-sh could do the
72567         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72568         system.  We hope this is rare in practice, but it's clearly worth
72569         fixing.  Problem reported by Alex Unleashed in
72570         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72571         Also, don't bother to check for -m bugs unless we're using -m;
72572         suggested by Stepan Kasal.
72573
72574 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72575
72576         Sync from Automake.
72577         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72578         `-c' flag, so they appear at the same position as in %FASTDEP%
72579         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72580         which ignores unknown options only after the first non-option.
72581         Bug report against M4 by Nelson H. F. Beebe.
72582
72583 2006-10-13  Jim Meyering  <jim@meyering.net>
72584
72585         Fix a bug in yesterday's change.
72586         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72587         p->fts_statp->st_dev would be used uninitialized.
72588         Ensures that we always call fts_stat on the very first entry.
72589         Miklos Szeredi reported that find -xdev stopped working.
72590
72591 2006-10-12  Bruno Haible  <bruno@clisp.org>
72592
72593         * gnulib-tool (func_get_automake_snippet): Append an automatically
72594         computed EXTRA_DIST augmentation.
72595         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72596         * modules/alloca-opt (Makefile.am): Likewise.
72597         * modules/allocsa (Makefile.am): Likewise.
72598         * modules/arcfour (Makefile.am): Likewise.
72599         * modules/arctwo (Makefile.am): Likewise.
72600         * modules/argmatch (Makefile.am): Likewise.
72601         * modules/argz (Makefile.am): Likewise.
72602         * modules/atexit (Makefile.am): Likewise.
72603         * modules/backupfile (Makefile.am): Likewise.
72604         * modules/byteswap (Makefile.am): Likewise.
72605         * modules/c-strtod (Makefile.am): Likewise.
72606         * modules/c-strtold (Makefile.am): Likewise.
72607         * modules/calloc (Makefile.am): Likewise.
72608         * modules/canon-host (Makefile.am): Likewise.
72609         * modules/canonicalize (Makefile.am): Likewise.
72610         * modules/chdir-long (Makefile.am): Likewise.
72611         * modules/chdir-safer (Makefile.am): Likewise.
72612         * modules/check-version (Makefile.am): Likewise.
72613         * modules/chown (Makefile.am): Likewise.
72614         * modules/cloexec (Makefile.am): Likewise.
72615         * modules/close-stream (Makefile.am): Likewise.
72616         * modules/closeout (Makefile.am): Likewise.
72617         * modules/crc (Makefile.am): Likewise.
72618         * modules/csharpexec (Makefile.am): Likewise.
72619         * modules/cycle-check (Makefile.am): Likewise.
72620         * modules/des (Makefile.am): Likewise.
72621         * modules/dev-ino (Makefile.am): Likewise.
72622         * modules/dirfd (Makefile.am): Likewise.
72623         * modules/dirname (Makefile.am): Likewise.
72624         * modules/dup2 (Makefile.am): Likewise.
72625         * modules/eealloc (Makefile.am): Likewise.
72626         * modules/error (Makefile.am): Likewise.
72627         * modules/euidaccess (Makefile.am): Likewise.
72628         * modules/exclude (Makefile.am): Likewise.
72629         * modules/exitfail (Makefile.am): Likewise.
72630         * modules/fcntl-safer (Makefile.am): Likewise.
72631         * modules/fcntl (Makefile.am): Likewise.
72632         * modules/file-type (Makefile.am): Likewise.
72633         * modules/fileblocks (Makefile.am): Likewise.
72634         * modules/filemode (Makefile.am): Likewise.
72635         * modules/filenamecat (Makefile.am): Likewise.
72636         * modules/fnmatch (Makefile.am): Likewise.
72637         * modules/fopen-safer (Makefile.am): Likewise.
72638         * modules/fpending (Makefile.am): Likewise.
72639         * modules/fprintftime (Makefile.am): Likewise.
72640         * modules/free (Makefile.am): Likewise.
72641         * modules/fsusage (Makefile.am): Likewise.
72642         * modules/ftruncate (Makefile.am): Likewise.
72643         * modules/fts (Makefile.am): Likewise.
72644         * modules/gc-arcfour (Makefile.am): Likewise.
72645         * modules/gc-des (Makefile.am): Likewise.
72646         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72647         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72648         * modules/gc-md4 (Makefile.am): Likewise.
72649         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72650         * modules/gc-sha1 (Makefile.am): Likewise.
72651         * modules/gc (Makefile.am): Likewise.
72652         * modules/getaddrinfo (Makefile.am): Likewise.
72653         * modules/getcwd (Makefile.am): Likewise.
72654         * modules/getdelim (Makefile.am): Likewise.
72655         * modules/getdomainname (Makefile.am): Likewise.
72656         * modules/getgroups (Makefile.am): Likewise.
72657         * modules/gethostname (Makefile.am): Likewise.
72658         * modules/gethrxtime (Makefile.am): Likewise.
72659         * modules/getline (Makefile.am): Likewise.
72660         * modules/getloadavg (Makefile.am): Likewise.
72661         * modules/getlogin_r (Makefile.am): Likewise.
72662         * modules/getndelim2 (Makefile.am): Likewise.
72663         * modules/getopt (Makefile.am): Likewise.
72664         * modules/getpagesize (Makefile.am): Likewise.
72665         * modules/getpass-gnu (Makefile.am): Likewise.
72666         * modules/getpass (Makefile.am): Likewise.
72667         * modules/getsubopt (Makefile.am): Likewise.
72668         * modules/gettime (Makefile.am): Likewise.
72669         * modules/gettimeofday (Makefile.am): Likewise.
72670         * modules/getugroups (Makefile.am): Likewise.
72671         * modules/getusershell (Makefile.am): Likewise.
72672         * modules/glob (Makefile.am): Likewise.
72673         * modules/group-member (Makefile.am): Likewise.
72674         * modules/hard-locale (Makefile.am): Likewise.
72675         * modules/hash (Makefile.am): Likewise.
72676         * modules/hmac-md5 (Makefile.am): Likewise.
72677         * modules/hmac-sha1 (Makefile.am): Likewise.
72678         * modules/human (Makefile.am): Likewise.
72679         * modules/idcache (Makefile.am): Likewise.
72680         * modules/imaxabs (Makefile.am): Likewise.
72681         * modules/imaxdiv (Makefile.am): Likewise.
72682         * modules/inet_ntop (Makefile.am): Likewise.
72683         * modules/inet_pton (Makefile.am): Likewise.
72684         * modules/intprops (Makefile.am): Likewise.
72685         * modules/inttostr (Makefile.am): Likewise.
72686         * modules/inttypes (Makefile.am): Likewise.
72687         * modules/isapipe (Makefile.am): Likewise.
72688         * modules/javaversion (Makefile.am): Likewise.
72689         * modules/lchmod (Makefile.am): Likewise.
72690         * modules/lchown (Makefile.am): Likewise.
72691         * modules/localcharset (Makefile.am): Likewise.
72692         * modules/long-options (Makefile.am): Likewise.
72693         * modules/lstat (Makefile.am): Likewise.
72694         * modules/malloc (Makefile.am): Likewise.
72695         * modules/mathl (Makefile.am): Likewise.
72696         * modules/mbchar (Makefile.am): Likewise.
72697         * modules/md2 (Makefile.am): Likewise.
72698         * modules/md4 (Makefile.am): Likewise.
72699         * modules/md5 (Makefile.am): Likewise.
72700         * modules/memcasecmp (Makefile.am): Likewise.
72701         * modules/memchr (Makefile.am): Likewise.
72702         * modules/memcmp (Makefile.am): Likewise.
72703         * modules/memcoll (Makefile.am): Likewise.
72704         * modules/memcpy (Makefile.am): Likewise.
72705         * modules/memmem (Makefile.am): Likewise.
72706         * modules/memmove (Makefile.am): Likewise.
72707         * modules/mempcpy (Makefile.am): Likewise.
72708         * modules/memrchr (Makefile.am): Likewise.
72709         * modules/memset (Makefile.am): Likewise.
72710         * modules/memxor (Makefile.am): Likewise.
72711         * modules/mkancesdirs (Makefile.am): Likewise.
72712         * modules/mkdir-p (Makefile.am): Likewise.
72713         * modules/mkdir (Makefile.am): Likewise.
72714         * modules/mkdtemp (Makefile.am): Likewise.
72715         * modules/mkstemp (Makefile.am): Likewise.
72716         * modules/mktime (Makefile.am): Likewise.
72717         * modules/modechange (Makefile.am): Likewise.
72718         * modules/mountlist (Makefile.am): Likewise.
72719         * modules/nanosleep (Makefile.am): Likewise.
72720         * modules/obstack (Makefile.am): Likewise.
72721         * modules/openat (Makefile.am): Likewise.
72722         * modules/pagealign_alloc (Makefile.am): Likewise.
72723         * modules/pathmax (Makefile.am): Likewise.
72724         * modules/physmem (Makefile.am): Likewise.
72725         * modules/poll (Makefile.am): Likewise.
72726         * modules/posixtm (Makefile.am): Likewise.
72727         * modules/posixver (Makefile.am): Likewise.
72728         * modules/putenv (Makefile.am): Likewise.
72729         * modules/quote (Makefile.am): Likewise.
72730         * modules/quotearg (Makefile.am): Likewise.
72731         * modules/raise (Makefile.am): Likewise.
72732         * modules/read-file (Makefile.am): Likewise.
72733         * modules/readline (Makefile.am): Likewise.
72734         * modules/readlink (Makefile.am): Likewise.
72735         * modules/readtokens (Makefile.am): Likewise.
72736         * modules/readutmp (Makefile.am): Likewise.
72737         * modules/realloc (Makefile.am): Likewise.
72738         * modules/regex (Makefile.am): Likewise.
72739         * modules/rename-dest-slash (Makefile.am): Likewise.
72740         * modules/rename (Makefile.am): Likewise.
72741         * modules/rijndael (Makefile.am): Likewise.
72742         * modules/rmdir (Makefile.am): Likewise.
72743         * modules/rpmatch (Makefile.am): Likewise.
72744         * modules/safe-read (Makefile.am): Likewise.
72745         * modules/safe-write (Makefile.am): Likewise.
72746         * modules/same-inode (Makefile.am): Likewise.
72747         * modules/same (Makefile.am): Likewise.
72748         * modules/save-cwd (Makefile.am): Likewise.
72749         * modules/savedir (Makefile.am): Likewise.
72750         * modules/setenv (Makefile.am): Likewise.
72751         * modules/settime (Makefile.am): Likewise.
72752         * modules/sha1 (Makefile.am): Likewise.
72753         * modules/sig2str (Makefile.am): Likewise.
72754         * modules/snprintf (Makefile.am): Likewise.
72755         * modules/stat-macros (Makefile.am): Likewise.
72756         * modules/stat-time (Makefile.am): Likewise.
72757         * modules/stdbool (Makefile.am): Likewise.
72758         * modules/stdint (Makefile.am): Likewise.
72759         * modules/stdlib-safer (Makefile.am): Likewise.
72760         * modules/stpcpy (Makefile.am): Likewise.
72761         * modules/stpncpy (Makefile.am): Likewise.
72762         * modules/strcase (Makefile.am): Likewise.
72763         * modules/strcasestr (Makefile.am): Likewise.
72764         * modules/strchrnul (Makefile.am): Likewise.
72765         * modules/strcspn (Makefile.am): Likewise.
72766         * modules/strdup (Makefile.am): Likewise.
72767         * modules/strerror (Makefile.am): Likewise.
72768         * modules/strftime (Makefile.am): Likewise.
72769         * modules/strndup (Makefile.am): Likewise.
72770         * modules/strnlen (Makefile.am): Likewise.
72771         * modules/strpbrk (Makefile.am): Likewise.
72772         * modules/strsep (Makefile.am): Likewise.
72773         * modules/strstr (Makefile.am): Likewise.
72774         * modules/strtod (Makefile.am): Likewise.
72775         * modules/strtoimax (Makefile.am): Likewise.
72776         * modules/strtok_r (Makefile.am): Likewise.
72777         * modules/strtol (Makefile.am): Likewise.
72778         * modules/strtoll (Makefile.am): Likewise.
72779         * modules/strtoul (Makefile.am): Likewise.
72780         * modules/strtoull (Makefile.am): Likewise.
72781         * modules/strtoumax (Makefile.am): Likewise.
72782         * modules/strverscmp (Makefile.am): Likewise.
72783         * modules/sys_socket (Makefile.am): Likewise.
72784         * modules/sys_stat (Makefile.am): Likewise.
72785         * modules/sysexits (Makefile.am): Likewise.
72786         * modules/time_r (Makefile.am): Likewise.
72787         * modules/timegm (Makefile.am): Likewise.
72788         * modules/timespec (Makefile.am): Likewise.
72789         * modules/tmpfile-safer (Makefile.am): Likewise.
72790         * modules/trim (Makefile.am): Likewise.
72791         * modules/unistd-safer (Makefile.am): Likewise.
72792         * modules/unlinkdir (Makefile.am): Likewise.
72793         * modules/unlocked-io (Makefile.am): Likewise.
72794         * modules/userspec (Makefile.am): Likewise.
72795         * modules/utime (Makefile.am): Likewise.
72796         * modules/utimecmp (Makefile.am): Likewise.
72797         * modules/utimens (Makefile.am): Likewise.
72798         * modules/vasnprintf (Makefile.am): Likewise.
72799         * modules/vasprintf (Makefile.am): Likewise.
72800         * modules/vsnprintf (Makefile.am): Likewise.
72801         * modules/xalloc (Makefile.am): Likewise.
72802         * modules/xgetcwd (Makefile.am): Likewise.
72803         * modules/xnanosleep (Makefile.am): Likewise.
72804         * modules/xreadlink (Makefile.am): Likewise.
72805         * modules/xstrtod (Makefile.am): Likewise.
72806         * modules/xstrtol (Makefile.am): Likewise.
72807         * modules/xstrtold (Makefile.am): Likewise.
72808         * modules/yesno (Makefile.am): Likewise.
72809         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72810
72811 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72812
72813         * modules/error (Makefile.am): Distribute files through
72814         EXTRA_DIST, not lib_SOURCES.
72815
72816 2006-10-12  Eric Blake  <ebb9@byu.net>
72817
72818         * modules/error (Makefile.am): Distribute files in /lib.
72819         * modules/obstack (Makefile.am): Likewise.
72820
72821 2006-10-12  Bruno Haible  <bruno@clisp.org>
72822
72823         * modules/acl (Makefile.am): Distribute all files in lib/ through
72824         EXTRA_DIST.
72825         * modules/arcfour (Makefile.am): Likewise.
72826         * modules/arctwo (Makefile.am): Likewise.
72827         * modules/argmatch (Makefile.am): Likewise.
72828         * modules/argz (Makefile.am): Likewise.
72829         * modules/atexit (Makefile.am): Likewise.
72830         * modules/backupfile (Makefile.am): Likewise.
72831         * modules/c-strtod (Makefile.am): Likewise.
72832         * modules/c-strtold (Makefile.am): Likewise.
72833         * modules/calloc (Makefile.am): Likewise.
72834         * modules/canon-host (Makefile.am): Likewise.
72835         * modules/canonicalize (Makefile.am): Likewise.
72836         * modules/chdir-long (Makefile.am): Likewise.
72837         * modules/chdir-safer (Makefile.am): Likewise.
72838         * modules/check-version (Makefile.am): Likewise.
72839         * modules/chown (Makefile.am): Likewise.
72840         * modules/cloexec (Makefile.am): Likewise.
72841         * modules/close-stream (Makefile.am): Likewise.
72842         * modules/closeout (Makefile.am): Likewise.
72843         * modules/crc (Makefile.am): Likewise.
72844         * modules/cycle-check (Makefile.am): Likewise.
72845         * modules/des (Makefile.am): Likewise.
72846         * modules/dirfd (Makefile.am): Likewise.
72847         * modules/dirname (Makefile.am): Likewise.
72848         * modules/dup2 (Makefile.am): Likewise.
72849         * modules/euidaccess (Makefile.am): Likewise.
72850         * modules/exclude (Makefile.am): Likewise.
72851         * modules/exitfail (Makefile.am): Likewise.
72852         * modules/fcntl-safer (Makefile.am): Likewise.
72853         * modules/file-type (Makefile.am): Likewise.
72854         * modules/fileblocks (Makefile.am): Likewise.
72855         * modules/filemode (Makefile.am): Likewise.
72856         * modules/filenamecat (Makefile.am): Likewise.
72857         * modules/fnmatch (Makefile.am): Likewise.
72858         * modules/fopen-safer (Makefile.am): Likewise.
72859         * modules/fpending (Makefile.am): Likewise.
72860         * modules/fprintftime (Makefile.am): Likewise.
72861         * modules/free (Makefile.am): Likewise.
72862         * modules/fsusage (Makefile.am): Likewise.
72863         * modules/ftruncate (Makefile.am): Likewise.
72864         * modules/fts (Makefile.am): Likewise.
72865         * modules/gc (Makefile.am): Likewise.
72866         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72867         * modules/getaddrinfo (Makefile.am): Likewise.
72868         * modules/getcwd (Makefile.am): Likewise.
72869         * modules/getdelim (Makefile.am): Likewise.
72870         * modules/getdomainname (Makefile.am): Likewise.
72871         * modules/getgroups (Makefile.am): Likewise.
72872         * modules/gethostname (Makefile.am): Likewise.
72873         * modules/gethrxtime (Makefile.am): Likewise.
72874         * modules/getline (Makefile.am): Likewise.
72875         * modules/getloadavg (Makefile.am): Likewise.
72876         * modules/getlogin_r (Makefile.am): Likewise.
72877         * modules/getopt (Makefile.am): Likewise.
72878         * modules/getpass (Makefile.am): Likewise.
72879         * modules/getpass-gnu (Makefile.am): Likewise.
72880         * modules/getsubopt (Makefile.am): Likewise.
72881         * modules/gettime (Makefile.am): Likewise.
72882         * modules/gettimeofday (Makefile.am): Likewise.
72883         * modules/getugroups (Makefile.am): Likewise.
72884         * modules/getusershell (Makefile.am): Likewise.
72885         * modules/glob (Makefile.am): Likewise.
72886         * modules/group-member (Makefile.am): Likewise.
72887         * modules/hard-locale (Makefile.am): Likewise.
72888         * modules/hash (Makefile.am): Likewise.
72889         * modules/hmac-md5 (Makefile.am): Likewise.
72890         * modules/hmac-sha1 (Makefile.am): Likewise.
72891         * modules/human (Makefile.am): Likewise.
72892         * modules/idcache (Makefile.am): Likewise.
72893         * modules/imaxabs (Makefile.am): Likewise.
72894         * modules/imaxdiv (Makefile.am): Likewise.
72895         * modules/inet_ntop (Makefile.am): Likewise.
72896         * modules/inet_pton (Makefile.am): Likewise.
72897         * modules/inttostr (Makefile.am): Likewise.
72898         * modules/isapipe (Makefile.am): Likewise.
72899         * modules/lchown (Makefile.am): Likewise.
72900         * modules/long-options (Makefile.am): Likewise.
72901         * modules/lstat (Makefile.am): Likewise.
72902         * modules/malloc (Makefile.am): Likewise.
72903         * modules/mathl (Makefile.am): Likewise.
72904         * modules/mbchar (Makefile.am): Likewise.
72905         * modules/md2 (Makefile.am): Likewise.
72906         * modules/md4 (Makefile.am): Likewise.
72907         * modules/md5 (Makefile.am): Likewise.
72908         * modules/memcasecmp (Makefile.am): Likewise.
72909         * modules/memchr (Makefile.am): Likewise.
72910         * modules/memcmp (Makefile.am): Likewise.
72911         * modules/memcoll (Makefile.am): Likewise.
72912         * modules/memcpy (Makefile.am): Likewise.
72913         * modules/memmem (Makefile.am): Likewise.
72914         * modules/memmove (Makefile.am): Likewise.
72915         * modules/mempcpy (Makefile.am): Likewise.
72916         * modules/memrchr (Makefile.am): Likewise.
72917         * modules/memset (Makefile.am): Likewise.
72918         * modules/memxor (Makefile.am): Likewise.
72919         * modules/mkancesdirs (Makefile.am): Likewise.
72920         * modules/mkdir (Makefile.am): Likewise.
72921         * modules/mkdir-p (Makefile.am): Likewise.
72922         * modules/mkdtemp (Makefile.am): Likewise.
72923         * modules/mkstemp (Makefile.am): Likewise.
72924         * modules/mktime (Makefile.am): Likewise.
72925         * modules/modechange (Makefile.am): Likewise.
72926         * modules/mountlist (Makefile.am): Likewise.
72927         * modules/nanosleep (Makefile.am): Likewise.
72928         * modules/openat (Makefile.am): Likewise.
72929         * modules/pagealign_alloc (Makefile.am): Likewise.
72930         * modules/physmem (Makefile.am): Likewise.
72931         * modules/poll (Makefile.am): Likewise.
72932         * modules/posixtm (Makefile.am): Likewise.
72933         * modules/posixver (Makefile.am): Likewise.
72934         * modules/putenv (Makefile.am): Likewise.
72935         * modules/quote (Makefile.am): Likewise.
72936         * modules/quotearg (Makefile.am): Likewise.
72937         * modules/raise (Makefile.am): Likewise.
72938         * modules/read-file (Makefile.am): Likewise.
72939         * modules/readline (Makefile.am): Likewise.
72940         * modules/readlink (Makefile.am): Likewise.
72941         * modules/readtokens (Makefile.am): Likewise.
72942         * modules/readutmp (Makefile.am): Likewise.
72943         * modules/realloc (Makefile.am): Likewise.
72944         * modules/regex (Makefile.am): Likewise.
72945         * modules/rename (Makefile.am): Likewise.
72946         * modules/rename-dest-slash (Makefile.am): Likewise.
72947         * modules/rijndael (Makefile.am): Likewise.
72948         * modules/rmdir (Makefile.am): Likewise.
72949         * modules/rpmatch (Makefile.am): Likewise.
72950         * modules/safe-read (Makefile.am): Likewise.
72951         * modules/safe-write (Makefile.am): Likewise.
72952         * modules/same (Makefile.am): Likewise.
72953         * modules/save-cwd (Makefile.am): Likewise.
72954         * modules/savedir (Makefile.am): Likewise.
72955         * modules/setenv (Makefile.am): Likewise.
72956         * modules/settime (Makefile.am): Likewise.
72957         * modules/sha1 (Makefile.am): Likewise.
72958         * modules/sig2str (Makefile.am): Likewise.
72959         * modules/snprintf (Makefile.am): Likewise.
72960         * modules/stdlib-safer (Makefile.am): Likewise.
72961         * modules/stpcpy (Makefile.am): Likewise.
72962         * modules/stpncpy (Makefile.am): Likewise.
72963         * modules/strcase (Makefile.am): Likewise.
72964         * modules/strcasestr (Makefile.am): Likewise.
72965         * modules/strchrnul (Makefile.am): Likewise.
72966         * modules/strcspn (Makefile.am): Likewise.
72967         * modules/strdup (Makefile.am): Likewise.
72968         * modules/strerror (Makefile.am): Likewise.
72969         * modules/strftime (Makefile.am): Likewise.
72970         * modules/strndup (Makefile.am): Likewise.
72971         * modules/strnlen (Makefile.am): Likewise.
72972         * modules/strpbrk (Makefile.am): Likewise.
72973         * modules/strsep (Makefile.am): Likewise.
72974         * modules/strstr (Makefile.am): Likewise.
72975         * modules/strtod (Makefile.am): Likewise.
72976         * modules/strtoimax (Makefile.am): Likewise.
72977         * modules/strtok_r (Makefile.am): Likewise.
72978         * modules/strtol (Makefile.am): Likewise.
72979         * modules/strtoll (Makefile.am): Likewise.
72980         * modules/strtoul (Makefile.am): Likewise.
72981         * modules/strtoull (Makefile.am): Likewise.
72982         * modules/strtoumax (Makefile.am): Likewise.
72983         * modules/strverscmp (Makefile.am): Likewise.
72984         * modules/time_r (Makefile.am): Likewise.
72985         * modules/timegm (Makefile.am): Likewise.
72986         * modules/tmpfile-safer (Makefile.am): Likewise.
72987         * modules/unistd-safer (Makefile.am): Likewise.
72988         * modules/unlinkdir (Makefile.am): Likewise.
72989         * modules/userspec (Makefile.am): Likewise.
72990         * modules/utime (Makefile.am): Likewise.
72991         * modules/utimecmp (Makefile.am): Likewise.
72992         * modules/utimens (Makefile.am): Likewise.
72993         * modules/vasnprintf (Makefile.am): Likewise.
72994         * modules/vasprintf (Makefile.am): Likewise.
72995         * modules/vsnprintf (Makefile.am): Likewise.
72996         * modules/xalloc (Makefile.am): Likewise.
72997         * modules/xgetcwd (Makefile.am): Likewise.
72998         * modules/xnanosleep (Makefile.am): Likewise.
72999         * modules/xreadlink (Makefile.am): Likewise.
73000         * modules/xstrtod (Makefile.am): Likewise.
73001         * modules/xstrtol (Makefile.am): Likewise.
73002         * modules/xstrtold (Makefile.am): Likewise.
73003         * modules/yesno (Makefile.am): Likewise.
73004
73005 2006-10-12  Jim Meyering  <jim@meyering.net>
73006
73007         * m4/getloadavg.m4: Revert the change below.
73008
73009         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73010         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73011         fail with a symlink, which is what coreutils' ./bootstrap now
73012         creates by default.
73013
73014 2006-10-12  Bruno Haible  <bruno@clisp.org>
73015
73016         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73017         mingw.
73018         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73019         MSVC and mingw explicitly.
73020
73021 2006-10-11  Simon Josefsson  <jas@extundo.com>
73022             Bruno Haible  <bruno@clisp.org>
73023
73024         Add support for multiple gnulib-tool invocations in the scope of a
73025         single configure.ac file.
73026         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73027         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73028         with the same contents as the _LIBADD variable.
73029         (func_emit_initmacro_start, func_emit_initmacro_end,
73030         func_emit_initmacro_done): New functions.
73031         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73032         gl_LIBOBJS and gl_LTLIBOBJS.
73033
73034 2006-10-11  Bruno Haible  <bruno@clisp.org>
73035
73036         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73037         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73038         autoreconf. Instead, invoke autopoint explicitly but move back the
73039         *.m4 files from gnulib.
73040
73041 2006-10-11  Bruno Haible  <bruno@clisp.org>
73042
73043         * gnulib-tool (func_usage): Make module names after --create-testdir
73044         optional.
73045         (func_create_testdir): If no module was specified, use nearly all
73046         modules.
73047
73048 2006-10-12  Jim Meyering  <jim@meyering.net>
73049
73050         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73051         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73052         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73053         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73054         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73055         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73056         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73057         (fts_set_stat_required): New function.
73058         (fts_open): Defer the calls to fts_stat, if possible or requested.
73059         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73060         into fts_stat itself.
73061         (fts_read): Perform any required (deferred) fts_stat call.
73062         (fts_build): Likewise, for the directory we're about to open and read.
73063         In the readdir loop, carefully decide whether each entry will require
73064         an eventual call to fts_stat, using dirent.d_type info if available.
73065         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73066         a command line argument into this function.  Update all callers.
73067         Map a return value of FTS_DOT to FTS_D for a command line argument.
73068         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73069         Thanks to Miklos Szeredi for his tenacity and for the initial
73070         bug report about "find" failing on a FUSE-based file system.
73071
73072         * lib/fts.c (fts_open): Use consistent indentation.
73073
73074 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73075
73076         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73077         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73078         reported by Jim Meyering.  All uses of cache variables renamed
73079         to match Autoconf's.
73080         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73081         the other one.
73082
73083         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73084         Fix misspelling in diagnostic.
73085
73086 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73087
73088         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73089         defined.  Problem reported by Matthew Woehlke.
73090
73091         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73092         Add support for Tandem NonStop R series.
73093         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73094         Use new macro.
73095
73096         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73097         (has_trailing_slash): Omit size arg; all callers changed.
73098         Omit 'inline', since it doesn't help performance and we'd
73099         need to configure it.
73100         Don't count //, ///, etc. as having a trailing slash.
73101         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73102         (rpl_rename_dest_slash): On failure, use rename's errno rather
73103         than (in some cases) an incorrect or junk errno.
73104         Simplify code by removing need to compute length; this does
73105         cause it to make two passes instead of one over the file name,
73106         but it's worth it.
73107
73108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73109         change, since Autoconf's version may no longer be appropriate now
73110         that we are using CVS Autoconf's version.  Add support for Tandem.
73111
73112 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73113             Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73116         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73117         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73118         gl_AC_TYPE_LONG_LONG.
73119
73120         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73121         instead of HAVE_LONG_LONG.
73122         * lib/printf-args.c (printf_fetchargs): Likewise.
73123         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73124         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73125         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73126         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73127         gl_AC_TYPE_LONG_LONG.
73128
73129 2006-10-11  Bruno Haible  <bruno@clisp.org>
73130
73131         * m4/longlong.m4: Add comments.
73132         * m4/ulonglong.m4: Likewise.
73133
73134 2006-10-10  Bruno Haible  <bruno@clisp.org>
73135
73136         Make it possible to #define stpcpy, strdup to aliases.
73137         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73138         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73139
73140 2006-10-10  Bruno Haible  <bruno@clisp.org>
73141
73142         Make it possible to #define gcd to an alias.
73143         * lib/gcd.c: Include config.h.
73144
73145 2006-10-10  Bruno Haible  <bruno@clisp.org>
73146
73147         Make it possible to #define c_isascii to an alias.
73148         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73149         defined. Undefine the macros before defining them, to avoid gcc
73150         warnings.
73151         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73152         define NO_C_CTYPE_MACROS early.
73153
73154 2006-10-10  Bruno Haible  <bruno@clisp.org>
73155
73156         Make it possible to #define set_program_name to an alias.
73157         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73158         ENABLE_RELOCATABLE early.
73159
73160 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73163         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73164         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73165         More generally, don't assume that 64-bit signed int is available
73166         if unsigned int is, and vice versa.
73167         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73168         unsigned symbols, not on their signed counterparts.
73169         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73170         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73171         (UINT64_C, UINTMAX_C):
73172         Likewise.
73173         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73174         unsigned counterparts.
73175         (Have_long_long, Unsigned): New macros.
73176         (Int): Renamed from INT.
73177         (strtoimax): Use the new macros.
73178         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73179         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73180         * modules/inttypes (inttypes.h): Substitute
73181         HAVE_UNSIGNED_LONG_LONG_INT.
73182         * modules/stdint (stdint.h): Likewise.
73183         (Files): Add m4/ulonglong.m4.
73184
73185 2006-10-10  Bruno Haible  <bruno@clisp.org>
73186
73187         Fix a gcc -Wshadow warning.
73188         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73189         to 'bucket'.
73190         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73191         gl_linked_indexof_from_to): Likewise.
73192         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73193         Likewise.
73194         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73195         Likewise.
73196         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73197         Reported by Eric Blake.
73198
73199 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73200
73201         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73202         for NetBSD.  Problem reported by Bruno Haible.
73203
73204 2006-10-09  Jim Meyering  <jim@meyering.net>
73205
73206         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73207         Patch from Bruno Haible.
73208
73209 2006-10-09  Jim Meyering  <jim@meyering.net>
73210
73211         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73212         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73213         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73214
73215 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         Don't include <config.h> twice; this doesn't work in some cases,
73218         e.g., when config.h has "#define intmax_t long long int" and
73219         we include <config.h>, <inttypes.h>, <config.h> in that order.
73220         Problem reported by Matthew Woehlke in:
73221         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73222         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73223         * lib/fts-cycle.c: Don't include config.h.
73224         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73225         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73226         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73227         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73228         inttypes.h.
73229         * lib/xstrtoumax.c: Likewise.
73230         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73231         __strtol and the like, so that this module is more like its siblings.
73232         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73233         Remove; no longer needed now that we assume gnulib inttypes.h.
73234
73235 2006-10-08  Bruno Haible  <bruno@clisp.org>
73236
73237         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73238         option.
73239
73240 2006-10-07  Jim Meyering  <jim@meyering.net>
73241
73242         * modules/inttypes (inttypes.h): Revert what seems to have been
73243         an inadvertent part of today's change: use "|", not "/" in the
73244         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73245
73246 2006-10-07  Bruno Haible  <bruno@clisp.org>
73247
73248         * modules/sublist: New file.
73249
73250 2006-10-07  Bruno Haible  <bruno@clisp.org>
73251
73252         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73253         * modules/argz (argz.h): Likewise.
73254         * modules/arpa_inet (arpa/inet.h): Likewise.
73255         * modules/byteswap (byteswap.h): Likewise.
73256         * modules/configmake (configmake.h): Likewise.
73257         * modules/fcntl (fcntl.h): Likewise.
73258         * modules/fnmatch (fnmatch.h): Likewise.
73259         * modules/getopt (getopt.h): Likewise.
73260         * modules/glob (glob.h): Likewise.
73261         * modules/inttypes (inttypes.h): Likewise.
73262         * modules/netinet_in (netinet/in.h): Likewise.
73263         * modules/poll (poll.h): Likewise.
73264         * modules/stdbool (stdbool.h): Likewise.
73265         * modules/stdint (stdint.h): Likewise.
73266         * modules/sys_select (sys/select.h): Likewise.
73267         * modules/sys_socket (sys/socket.h): Likewise.
73268         * modules/sys_stat (sys/stat.h): Likewise.
73269         * modules/sysexits (sysexits.h): Likewise.
73270         * modules/unistd (unistd.h): Likewise.
73271         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73272         Add a "DO NOT EDIT" comment to the generated file.
73273         (func_import): Likewise for gnulib-comp.m4.
73274
73275 2006-10-07  Bruno Haible  <bruno@clisp.org>
73276
73277         * lib/gl_sublist.h: New file.
73278         * lib/gl_sublist.c: New file.
73279
73280 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73283         name (relative to the original working directory) and the file
73284         name component (relative to the temporary working directory).  All
73285         callers changed.
73286         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73287         * lib/mkdir-p.c (make_dir_parents): Likewise.
73288         * lib/mkdir-p.h (make_dir_parents): Likewise.
73289
73290 2006-10-06  Eric Blake  <ebb9@byu.net>
73291
73292         Define several macros for use by the clean-temp module.
73293         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73294         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73295         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73296
73297         * lib/clean-temp.h (close_stream_temp): New declaration.
73298         * lib/clean-temp.c (includes): Pull in headers according to what
73299         other modules are in use.
73300         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73301
73302 2006-10-06  Bruno Haible  <bruno@clisp.org>
73303
73304         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73305         instead of fopen, fwriteerror.
73306
73307 2006-10-06  Bruno Haible  <bruno@clisp.org>
73308
73309         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73310         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73311         int.
73312         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73313         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73314         Return an error indicator.
73315         Suggested by Eric Blake.
73316
73317 2006-10-06  Bruno Haible  <bruno@clisp.org>
73318
73319         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73320         Reported by Eric Blake.
73321
73322 2006-10-06  Bruno Haible  <bruno@clisp.org>
73323
73324         * modules/closeout (Description): Mention stderr too.
73325
73326 2006-10-06  Bruno Haible  <bruno@clisp.org>
73327         and Paul Eggert  <eggert@cs.ucla.edu>
73328
73329         * lib/closeout.c (close_stdout): Also close stderr.
73330         * lib/closeout.h: Update comment.
73331
73332 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73333
73334         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73335         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73336         * lib/dirchownmod.c: Include lchown.h.
73337         * lib/lchown.c: Don't include files that lchown.h now includes.
73338         Don't declare chown, since lchown.h now does that.
73339         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73340         (lchown): Define to rpl_chown if lchown is declared but
73341         does not exist.  Declare using a prototype if lchown is not
73342         declared.  Add a copyright notice.
73343         * lib/mkstemp.h: Include <unistd.h>.
73344         * lib/openat.c: Include lchown.h.
73345
73346         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73347         we now test for that separately.
73348         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73349         rather than O_NOFOLLOW, when testing whether it's possible to
73350         avoid a race condition reliably.
73351         * lib/savewd.c (savewd_chdir): Likewise.
73352
73353         Remove macros that are no longer needed now that stdint.h is
73354         reliable.
73355         * lib/fsusage.c (UINTMAX_MAX): Remove.
73356         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73357         * lib/utimecmp.c (SIZE_MAX): Remove.
73358
73359         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73360
73361         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73362         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73363         O_NOATIME works.
73364
73365 2006-10-05  Bruno Haible  <bruno@clisp.org>
73366
73367         * lib/gl_list.h (gl_sortedlist_search_from_to,
73368         gl_sortedlist_indexof_from_to): New declarations.
73369         (gl_list_implementation): New fields sortedlist_search_from_to,
73370         sortedlist_indexof_from_to.
73371         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73372         inline functions.
73373         * lib/gl_list.c (gl_sortedlist_search_from_to,
73374         gl_sortedlist_indexof_from_to): New functions.
73375         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73376         function.
73377         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73378         (gl_array_sortedlist_search_from_to): New function.
73379         (gl_array_list_implementation): Update.
73380         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73381         function.
73382         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73383         (gl_carray_sortedlist_search_from_to): New function.
73384         (gl_carray_list_implementation): Update.
73385         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73386         gl_linked_sortedlist_indexof_from_to): New functions.
73387         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73388         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73389         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73390         gl_tree_sortedlist_indexof_from_to): New functions.
73391         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73392         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73393         Update.
73394         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73395         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73396         Update.
73397
73398 2006-10-05  Bruno Haible  <bruno@clisp.org>
73399
73400         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73401         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73402         (struct gl_list_implementation): Add fields search_from_to,
73403         indexof_from_to. Remove fields search, indexof.
73404         (gl_list_search): Use the search_from_to method.
73405         (gl_list_search_from, gl_list_search_from_to): New functions.
73406         (gl_list_indexof): Use the indexof_from_to method.
73407         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73408         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73409         (gl_list_search_from, gl_list_search_from_to): New functions.
73410         (gl_list_indexof): Use the indexof_from_to method.
73411         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73412         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73413         gl_array_indexof. Add start_index, end_index arguments.
73414         (gl_array_search_from_to): Renamed from gl_array_search. Add
73415         start_index, end_index arguments.
73416         (gl_array_remove, gl_array_list_implementation): Update.
73417         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73418         gl_carray_indexof. Add start_index, end_index arguments.
73419         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73420         start_index, end_index arguments.
73421         (gl_carray_remove, gl_carray_list_implementation): Update.
73422         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73423         gl_linked_search. Add start_index, end_index arguments.
73424         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73425         start_index, end_index arguments.
73426         (gl_linked_remove): Update.
73427         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73428         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73429         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73430         field to 'size_t'.
73431         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73432         gl_tree_search. Add start_index, end_index arguments.
73433         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73434         start_index, end_index arguments.
73435         (gl_tree_remove): Update.
73436         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73437         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73438         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73439         function.
73440         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73441         gl_tree_search. Add start_index, end_index arguments.
73442         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73443         start_index, end_index arguments.
73444         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73445         Update.
73446         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73447
73448 2006-10-05  Bruno Haible  <bruno@clisp.org>
73449
73450         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73451
73452         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73453         fwriteerror_temp): New declarations.
73454         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73455         (descriptors): New variable.
73456         (cleanup): First, close the descriptors.
73457         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73458         fclose_temp, fwriteerror_temp): New functions.
73459
73460 2006-10-04  Jim Meyering  <jim@meyering.net>
73461
73462         * lib/fts.c (fts_open): Tiny comment change.
73463
73464 2006-10-04  Bruno Haible  <bruno@clisp.org>
73465
73466         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73467         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73468         gl_LOCK_BODY.
73469         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73470         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73471         gl_LOCK_EARLY_BODY.
73472         (gl_LOCK): Require gl_LOCK_BODY.
73473
73474 2006-10-04  Bruno Haible  <bruno@clisp.org>
73475
73476         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73477         (gl_oset_search_atleast): New declaration.
73478         (struct gl_oset_implementation): Add field 'search_atleast'.
73479         (gl_oset_search_atleast): New inline function.
73480         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73481         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73482         (gl_array_oset_implementation): Update.
73483         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73484         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73485         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73486
73487 2006-10-04  Bruno Haible  <bruno@clisp.org>
73488
73489         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73490
73491 2006-10-03  Bruno Haible  <bruno@clisp.org>
73492
73493         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73494         from gl_avltreehash_list_implementation.
73495
73496 2006-10-03  Bruno Haible  <bruno@clisp.org>
73497
73498         * lib/gl_oset.c (gl_oset_add): Fix return type.
73499
73500 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73501
73502         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73503
73504 2006-10-02  Eric Blake  <ebb9@byu.net>
73505
73506         * modules/strnlen (Depends-on): Add extensions.
73507
73508 2006-10-02  Eric Blake  <ebb9@byu.net>
73509
73510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73511         definition in 2.60+.
73512
73513 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73514
73515         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73516         checks.
73517
73518 2006-10-02  Bruno Haible  <bruno@clisp.org>
73519
73520         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73521         to the AUTOMAKE_OPTIONS.
73522         Reported by Jim Meyering.
73523
73524 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73525
73526         Work around bug in Solaris 10 /proc file system:
73527         /proc/self/fd/NNN/.. isn't the parent directory of
73528         the directory whose file descriptor is NNN.  This needs to
73529         be worked around at run time, not compile time, since a
73530         program might be built on Solaris 8, where things work, and
73531         run on Solaris 10.
73532         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73533         to use the following interface instead:
73534         (OPENAT_BUFFER_SIZE): New macro.
73535         (openat_proc_name): New function.
73536         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73537         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73538         Likewise.
73539         * lib/openat-proc.c: New file.
73540         * modules/openat (Files): Add lib/openat-proc.c.
73541         (Depends-on): Add same-inode, stdbool.
73542         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73543
73544 2006-09-29  Bruno Haible  <bruno@clisp.org>
73545
73546         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73547         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73548         argument. Set stdout_closed before testing for ferror, not after.
73549         (fwriteerror, fwriteerror_no_ebadf): New functions.
73550
73551 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73552
73553         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73554
73555 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73556
73557         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73558         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73559
73560 2006-09-28  Jim Meyering  <jim@meyering.net>
73561
73562         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73563         Include <unistd.h>.
73564
73565 2006-09-28  Bruno Haible  <bruno@clisp.org>
73566
73567         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73568         * modules/linkedhash-list (Depends-on): Likewise.
73569         * modules/rbtreehash-list (Depends-on): Likewise.
73570
73571 2006-09-28  Bruno Haible  <bruno@clisp.org>
73572
73573         * lib/strndup.h: Simplify the redefinition of strndup.
73574         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73575         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73576
73577 2006-09-28  Bruno Haible  <bruno@clisp.org>
73578
73579         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73580         * lib/gl_linkedhash_list.c: Likewise.
73581         * lib/gl_rbtreehash_list.c: Likewise.
73582
73583 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73586         getaddrinfo.
73587
73588         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73589         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73590         it causes <stdio_ext.h> to cause a compile-time error.
73591         Problem reported by Nelson H. F. Beebe.
73592         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73593         of HAVE_DECL___PENDING.
73594
73595         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73596         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73597         declaration.
73598
73599 2006-09-27  Jim Meyering  <jim@meyering.net>
73600
73601         This file could end up with a definition for a function
73602         named __strndup, rather than rpl_strndup on a system with
73603         incomplete weak_alias support.
73604         * lib/strndup.c (strndup): Rename from __strndup.
73605         Remove #defines that used to map __strndup to strndup.
73606         Don't use K&R prototypes.
73607         Remove LIBC-related code, since this file is not sync'd with glibc.
73608         * lib/strndup.h: Revamp, accordingly.
73609         * m4/strndup.m4: Modernize.
73610
73611 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * modules/savewd (Depends-on): Add 'raise'.
73614         * lib/savewd.c: Include <signal.h>, for 'raise'.
73615
73616 2006-09-26  Jim Meyering  <jim@meyering.net>
73617
73618         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73619         when we detect Darwin 8.7.0's acl_get_file bug.
73620         Rearrange to perform the new (below) run-test while $LIBS
73621         contains any acl-related library.  Set USE_ACL at the end.
73622         (gl_ACL_GET_FILE): New function.
73623
73624 2006-09-26  Eric Blake  <ebb9@byu.net>
73625
73626         * lib/verror.c: Include <config.h> unconditionally.
73627
73628 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73629
73630         * modules/clock-time (Maintainer): Add self.
73631         * modules/getlogin_r (Depends-on): Add extensions.
73632
73633 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73634
73635         * modules/clock-time: New module.
73636         * modules/nanosleep (Depends-on): Add clock-time.
73637         * modules/gethrxtime (Depends-on): Likewise.
73638         * modules/gettime (Depends-on): Likewise.
73639         * modules/settime (Depends-on): Likewise.
73640
73641         * modules/fts-lgpl: Depend on openat.
73642         * modules/mkancesdirs: Depend on savewd.
73643         * modules/mkdir-p: Likewise.
73644
73645 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73646
73647         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73648
73649         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73650         `gl_have_arbitrary_file_name_length_limit' to
73651         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73652         actually works between configure runs.
73653
73654 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73655             Bruno Haible  <bruno@clisp.org>
73656
73657         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73658
73659 2006-09-25  Jim Meyering  <jim@meyering.net>
73660
73661         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73662         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73663
73664 2006-09-25  Eric Blake  <ebb9@byu.net>
73665
73666         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73667         exec's in 2006-09-18 patch when shuffling fds.
73668
73669 2006-09-25  Bruno Haible  <bruno@clisp.org>
73670
73671         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73672         Reported by Jim Meyering.
73673
73674 2006-09-24  Jim Meyering  <jim@meyering.net>
73675
73676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73677         compare a pointer against a literal "0".  That caused failures with
73678         at least HP-UX's hpcc.
73679
73680 2006-09-22  Simon Josefsson  <jas@extundo.com>
73681
73682         * modules/gc-sha1:
73683         * modules/gc-md4:
73684         * modules/gc-hmac-sha1:
73685         * modules/gc-hmac-md5:
73686         * modules/gc-des:
73687         * modules/gc-arcfour: Distribute more files.
73688
73689 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73690
73691         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73692         (gl_linked_iterator_from_to): Initialize struct completely.
73693         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73694         (gl_tree_iterator_from_to): Likewise
73695         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73696         * lib/gl_array_list.c [lint] (gl_array_iterator)
73697         (gl_array_iterator_from_to): Likewise.
73698         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73699         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73700         (gl_carray_iterator_from_to): Likewise.
73701
73702         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73703         * lib/md4.c (md4_process_block): Remove unused variable.
73704         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73705         parentheses for clarity.
73706
73707 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73708
73709         * modules/bison-i18n (Depends-on): Add gettext.
73710
73711 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73712
73713         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73714         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73715         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73716         also add missing comma that caused broken test.
73717         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73718         stdlib.h, for `abort'.
73719         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73720         variables.
73721         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73722         include unistd.h if present, for `rmdir'.
73723         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73724         variables.
73725         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73726         in the process include standard headers for prototypes.
73727         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73728         gets declared on GNU/Linux.
73729         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73730         unistd.h, for `rmdir'.
73731         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73732
73733         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73734         always true.
73735         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73736
73737         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73738
73739 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73740
73741         * gnulib-tool (func_version): Create output all at once.  This
73742         may help avoid triggering unnecessary SIGPIPEs, and at any
73743         rate it doesn't hurt.
73744
73745 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73746             Bruno Haible  <bruno@clisp.org>
73747
73748         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73749         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73750         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73751
73752         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73753         (gl_FUNC_VASPRINTF): Invoke it.
73754
73755 2006-09-22  Bruno Haible  <bruno@clisp.org>
73756
73757         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73758         getloadavg.c as first argument.
73759
73760 2006-09-22  Bruno Haible  <bruno@clisp.org>
73761
73762         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73763         at the beginning of the gl_INIT macro.
73764         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73765         gl_GETLOADAVG.
73766
73767 2006-09-22  Bruno Haible  <bruno@clisp.org>
73768
73769         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73770         module.
73771         Suggested by Ralf Wildenhues.
73772
73773 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         Import this patch from libc:
73776
73777         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73778
73779         * lib/regex_internal.c (re_string_reconstruct): Handle
73780         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73781         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73782         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73783         re_string_context_at.
73784
73785         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73786         now requires it.
73787         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73788         gl_REGEX now does it for us.
73789         (gl_REGEX): Add test taken from
73790         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73791
73792         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73793         Check that large offsets work.  Modernize Autoconf usages.
73794         Prefer "yes" to mean a good thing rather than a bad.
73795         Don't put "#define mkstemp" in config.h, as this might interfere
73796         with standard system headers that "#define mkstemp mkstemp64".
73797
73798         * modules/mkstemp (Depends-on): Add extensions, so that
73799         mkstemp is visible on some platforms.
73800         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73801         (Include): Change to "mkstemp.h" from <stdlib.h>.
73802         (Files): Add mkstemp.h.
73803
73804         * lib/mkstemp.h: New file, since some standard headers
73805         #define mkstemp.
73806         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73807         Include "mkstemp.h".
73808         Make the _LIBC code resemble glibc original more,
73809         e.g., use K&R style.
73810         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73811         (mkstemp): Remove, since mkstemp.h does this for us.
73812         * lib/stdlib--.h: Include mkstemp.h.
73813
73814         Import this patch from libc:
73815
73816         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73817
73818         * lib/tempname.c (__gen_tempname): Change attempts_min
73819         into a macro.  Use preprocessor to decide how to initialize
73820         attempts [Coverity CID 67].
73821
73822 2006-09-20  Bruno Haible  <bruno@clisp.org>
73823
73824         * lib/mkdtemp.c: Import from libc.
73825         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73826                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73827                 attempts_min into a macro.  Use preprocessor to decide how to
73828                 initialize attempts [Coverity CID 67].
73829         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73830                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73831                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73832
73833 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73834
73835         * gnulib-tool (func_exit): New function, to allow to pass the
73836         exit status portably through the trap.  Use everywhere.
73837         (--help, --version): Signal a write error.
73838         (trap): catch SIGPIPE, for write errors.
73839         Exit at the end of the trap, with the correct exit status.
73840
73841 2006-09-19  Karl Berry  <karl@gnu.org>
73842
73843         * doc/gnulib.texi: note about the license texinfo files.
73844
73845 2006-09-19  Eric Blake  <ebb9@byu.net>
73846
73847         * gnulib-tool: Avoid space-tab.
73848
73849 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73852         that prevented coreutils 6.1 from building.  Problem reported
73853         by Petter Reinholdtsen.
73854
73855 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * gnulib-tool (avoidlist): Fix typo that broke options like
73858         --avoid=lock that are used by coreutils bootstrap.
73859
73860 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73861
73862         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73863         more systematically.
73864
73865 2006-09-18  Jim Meyering  <jim@meyering.net>
73866
73867         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73868
73869 2006-09-18  Bruno Haible  <bruno@clisp.org>
73870
73871         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73872
73873 2006-09-18  Bruno Haible  <bruno@clisp.org>
73874
73875         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73876         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73877         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73878         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73879         * m4/gettext.m4: Require autoconf >= 2.52.
73880         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73881         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73882         of gl_cv_header_inttypes_h.
73883
73884 2006-09-18  Bruno Haible  <bruno@clisp.org>
73885
73886         * lib/javaversion.c: Include configmake.h.
73887
73888 2006-09-18  Bruno Haible  <bruno@clisp.org>
73889
73890         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73891         avoid that the while loops be executed in a subshell.
73892
73893 2006-09-18  Bruno Haible  <bruno@clisp.org>
73894
73895         * MODULES.html.sh (func_module): Break long lines.
73896         Suggested by Bruce Korb <bkorb@gnu.org>.
73897
73898 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73899
73900         Speed up by a factor of 1.12.
73901         * gnulib-tool (nl): New variable.
73902         (func_import): Rewrite include directive extraction to only read each
73903         directive once.
73904
73905 2006-09-17  Bruno Haible  <bruno@clisp.org>
73906
73907         * modules/javaversion (Makefile.am): Remove DEFS setting.
73908         (Depends-on): Add configmake, for PKGDATADIR definition.
73909
73910 2006-09-17  Bruno Haible  <bruno@clisp.org>
73911
73912         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73913
73914 2006-09-17  Bruno Haible  <bruno@clisp.org>
73915
73916         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73917         (func_modules_transitive_closure, func_modules_add_dummy,
73918         func_modules_to_filelist, func_import, func_create_testdir,
73919         func_create_megatestdir, ...): Use it wherever possible.
73920         Suggested by Ralf Wildenhues.
73921
73922 2006-09-16  Karl Berry  <karl@gnu.org>
73923
73924         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73925         to avoid sectioning errors.
73926         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73927         [ifinfo]: blank line after @center-ed titles.
73928         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73929         Spell FSF address consistently with others.
73930         (These changes approved by rms.)
73931
73932 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73933
73934         Speed up by a factor of 1.61.
73935         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73936         already checked module names again.
73937
73938 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73939
73940         Speed up by a factor of 1.13.
73941         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73942         for new_files, and the input to func_add_or_update.
73943
73944 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73945
73946         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73947         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73948
73949 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73950
73951         * modules/mkancesdirs (Depends-on): Add fcntl.
73952         * modules/savewd: New file.
73953         * MODULES.html.sh (File system functions): Add savewd.
73954
73955         * modules/configmake (Makefile.am): Add support for the
73956         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73957
73958 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73959
73960         * m4/savewd.m4: New file.
73961
73962 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73963
73964         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73965         (dirchownmod): New arg FD.  All callers changed.
73966         Use FD rather than opening the directory ourself, as opening is
73967         now the caller's responsibility.
73968         * lib/dirchownmod.h: Likewise.
73969         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73970         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73971         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73972         (test_dir): Remove.
73973         (mkancesdirs): Return length of prefix of FILE that has already
73974         been made, or -2 if there is a child doing the work.  Redo
73975         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73976         ".", and treat ".." specially since it might stray back into
73977         already-created areas.  Use a subprocess if necessary.  New arg
73978         WD; all users changed.  MAKE_DIR function should now return 1
73979         if it creates a directory that is not readable.  Return -2 if
73980         a child process is spun off.
73981         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73982         Adjust signature to match code.
73983         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73984         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73985         all users changed.
73986         * lib/savewd.c, lib/savewd.h: New files.
73987
73988 2006-09-15  Jim Meyering  <jim@meyering.net>
73989
73990         * modules/rename-dest-slash: New module.
73991         * MODULES.html.sh (posix_compat): Add it here.
73992
73993         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73994
73995 2006-09-15  Jim Meyering  <jim@meyering.net>
73996
73997         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73998         file.
73999
74000         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74001
74002 2006-09-15  Jim Meyering  <jim@meyering.net>
74003
74004         * lib/rename-dest-slash.c (has_trailing_slash): Use
74005         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74006         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74007         test before testing whether SRC is a directory.
74008         Suggestions from Bruno Haible.
74009
74010         Avoid a warning about an unused variable.
74011         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74012         into the #ifdef block where it's used.
74013
74014         * lib/rename-dest-slash.c: New file.
74015
74016 2006-09-14  Bruno Haible  <bruno@clisp.org>
74017
74018         * lib/allocsa.c: Include <config.h> unconditionally.
74019         * lib/asnprintf.c: Likewise.
74020         * lib/asprintf.c: Likewise.
74021         * lib/c-strcasecmp.c: Likewise.
74022         * lib/c-strcasestr.c: Likewise.
74023         * lib/c-strncasecmp.c: Likewise.
74024         * lib/c-strstr.c: Likewise.
74025         * lib/classpath.c: Likewise.
74026         * lib/clean-temp.c: Likewise.
74027         * lib/concatpath.c: Likewise.
74028         * lib/copy-file.c: Likewise.
74029         * lib/csharpcomp.c: Likewise.
74030         * lib/csharpexec.c: Likewise.
74031         * lib/execute.c: Likewise.
74032         * lib/fatal-signal.c: Likewise.
74033         * lib/findprog.c: Likewise.
74034         * lib/fwriteerror.c: Likewise.
74035         * lib/gl_array_list.c: Likewise.
74036         * lib/gl_array_oset.c: Likewise.
74037         * lib/gl_avltree_list.c: Likewise.
74038         * lib/gl_avltree_oset.c: Likewise.
74039         * lib/gl_avltreehash_list.c: Likewise.
74040         * lib/gl_carray_list.c: Likewise.
74041         * lib/gl_linked_list.c: Likewise.
74042         * lib/gl_linkedhash_list.c: Likewise.
74043         * lib/gl_list.c: Likewise.
74044         * lib/gl_oset.c: Likewise.
74045         * lib/gl_rbtree_list.c: Likewise.
74046         * lib/gl_rbtree_oset.c: Likewise.
74047         * lib/gl_rbtreehash_list.c: Likewise.
74048         * lib/imaxabs.c: Likewise.
74049         * lib/imaxdiv.c: Likewise.
74050         * lib/javacomp.c: Likewise.
74051         * lib/javaexec.c: Likewise.
74052         * lib/javaversion.c: Likewise.
74053         * lib/linebreak.c: Likewise.
74054         * lib/localcharset.c: Likewise.
74055         * lib/lock.c: Likewise.
74056         * lib/mbchar.c: Likewise.
74057         * lib/mbswidth.c: Likewise.
74058         * lib/mkdtemp.c: Likewise.
74059         * lib/pipe.c: Likewise.
74060         * lib/printf-args.c: Likewise.
74061         * lib/printf-parse.c: Likewise.
74062         * lib/progname.c: Likewise.
74063         * lib/progreloc.c: Likewise.
74064         * lib/readlink.c: Likewise.
74065         * lib/sh-quote.c: Likewise.
74066         * lib/stpcpy.c: Likewise.
74067         * lib/stpncpy.c: Likewise.
74068         * lib/strcasecmp.c: Likewise.
74069         * lib/strcasestr.c: Likewise.
74070         * lib/strcspn.c: Likewise.
74071         * lib/striconv.c: Likewise.
74072         * lib/strncasecmp.c: Likewise.
74073         * lib/strnlen1.c: Likewise.
74074         * lib/strstr.c: Likewise.
74075         * lib/strtok_r.c: Likewise.
74076         * lib/tls.c: Likewise.
74077         * lib/tmpdir.c: Likewise.
74078         * lib/unicodeio.c: Likewise.
74079         * lib/unsetenv.c: Likewise.
74080         * lib/vasnprintf.c: Likewise.
74081         * lib/vasprintf.c: Likewise.
74082         * lib/wait-process.c: Likewise.
74083         * lib/xallocsa.c: Likewise.
74084         * lib/xsetenv.c: Likewise.
74085         * lib/xstriconv.c: Likewise.
74086
74087 2006-09-13  Simon Josefsson  <jas@extundo.com>
74088
74089         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74090         that internally, suggested by Ralf Wildenhues
74091         <Ralf.Wildenhues@gmx.de>.
74092
74093 2006-09-13  Simon Josefsson  <jas@extundo.com>
74094
74095         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74096         @LIBOBJS@.
74097         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74098
74099 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74102         longer worry about uses that don't define HAVE_CONFIG_H.
74103         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74104         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74105         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74106         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74107         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74108         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74109         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74110         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74111         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74112         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74113         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74114         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74115         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74116         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74117         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74118         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74119         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74120         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74121         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74122         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74123         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74124         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74125         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74126         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74127         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74128         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74129         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74130         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74131         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74132         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74133         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74134         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74135         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74136         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74137         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74138         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74139         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74140         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74141         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74142         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74143         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74144         Likewise.
74145
74146 2006-09-13  Eric Blake  <ebb9@byu.net>
74147
74148         * lib/getopt.c: Fix typo in last commit.
74149
74150 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74151
74152         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74153         dgettext.
74154
74155 2006-09-12  Jim Meyering  <jim@meyering.net>
74156
74157         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74158         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74159         Reported by Nelson H. F. Beebe.
74160
74161 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74162
74163         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74164         program_invocation_name and program_invocation_short_name are
74165         initialized.
74166         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74167         and program_invocation_short_name to argp.h, so they are visible
74168         to user programs.
74169         * lib/argp.h: Likewise
74170
74171 2006-09-10  Bruno Haible  <bruno@clisp.org>
74172
74173         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74174         m4/inttypes_h.m4, m4/uintmax_t.m4.
74175
74176 2006-09-10  Bruno Haible  <bruno@clisp.org>
74177
74178         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74179         gl_AC_TYPE_UINTMAX_T.
74180
74181 2006-09-10  Bruno Haible  <bruno@clisp.org>
74182
74183         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74184
74185 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74186
74187         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74188         convention.  Text proposed by Bruno Haible.
74189         (struct argp_option): Document the use of N_() wrappers.
74190
74191         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74192         '\v', and translate the two parts separately, instead of feeding
74193         the whole string to gettext.  This allows to exclude
74194         '\v' from the strings visible to the translator by writing doc
74195         strings as N_("..") "\v" N_("..").
74196
74197 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * config/srclist.txt: Undo latest change; the bug was fixed.
74200
74201 2006-09-09  Bruno Haible  <bruno@clisp.org>
74202
74203         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74204         assignments if building a library without libtool.
74205         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74206         in func_emit_lib_Makefile_am.
74207         (func_import): When building a static library libfoo.a, arrange to
74208         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74209         (func_create_testdir): Likewise.
74210         * modules/gc (configure.ac, Makefile.am): If building statically,
74211         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74212         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74213         * modules/striconv (configure.ac, Makefile.am): Likewise.
74214         Based on a suggestion by Ralf Wildenhues.
74215
74216 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74217
74218         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74219         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74220         Also:
74221
74222         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74223         Add year_2050_test to catch glibc bug 2821
74224         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74225
74226         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74227         Prefer #ifdef to #if.
74228
74229         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74230         Return from 'main' instead of calling 'exit'.
74231
74232 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74233
74234         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74235         returned the maximum time_t value rather than (time_t) -1.
74236         Problem originally reported by William Bardwell
74237         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74238
74239         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74240         Moved to here ...
74241         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74242         ... from here.
74243
74244 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74245
74246         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74247         2821 is fixed.
74248
74249 2006-09-08  Jim Meyering  <jim@meyering.net>
74250
74251         Don't make generated files read-only.  That would bother too many
74252         people.  However, do retain the ability to work when targets are
74253         read-only: remove the destination and temporary files before writing
74254         them (when generated via sed or echo), or by using the -f option for
74255         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74256         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74257         * modules/byteswap, modules/configmake, modules/fcntl:
74258         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74259         * modules/localcharset, modules/netinet_in, modules/poll:
74260         * modules/stdbool, modules/stdint, modules/sys_select:
74261         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74262
74263 2006-09-08  Jim Meyering  <jim@meyering.net>
74264
74265         Avoid new build failure on FreeBSD 6.0.
74266         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74267         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74268         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74269
74270 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74271
74272         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74273
74274 2006-09-07  Jim Meyering  <jim@meyering.net>
74275
74276         Fix global typo in last change: use chmod u-w, not chmod u-x.
74277         Spotted by Paul Eggert and Bruce Korb.
74278         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74279         * modules/byteswap, modules/configmake, modules/fcntl:
74280         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74281         * modules/localcharset, modules/netinet_in, modules/poll:
74282         * modules/stdbool, modules/stdint, modules/sys_select:
74283         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74284
74285 2006-09-06  Jim Meyering  <jim@meyering.net>
74286
74287         Make generated files be read-only.
74288         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74289         Ensure that each generated file is now read-only.
74290         * modules/argz: Likewise.
74291         * modules/arpa_inet: Likewise.
74292         * modules/byteswap: Likewise.
74293         * modules/configmake: Likewise.
74294         * modules/fcntl: Likewise.
74295         * modules/fnmatch: Likewise.
74296         * modules/getopt: Likewise.
74297         * modules/glob: Likewise.
74298         * modules/inttypes: Likewise.
74299         * modules/netinet_in: Likewise.
74300         * modules/poll: Likewise.
74301         * modules/stdbool: Likewise.
74302         * modules/stdint: Likewise.
74303         * modules/sys_select: Likewise.
74304         * modules/sys_socket: Likewise.
74305         * modules/sys_stat: Likewise.
74306         * modules/sysexits: Likewise.
74307         * modules/localcharset: Same as above, but continue using temporary
74308         file named "t-$@" (why different?) rather than the "$@-t" used
74309         everywhere else.
74310
74311         * modules/sysexits (Makefile.am): Replace literal occurrences
74312         of "sysexit.h" more readable, and more consistent, "$@".
74313
74314 2006-09-06  Bruno Haible  <bruno@clisp.org>
74315
74316         * modules/striconv: New file.
74317         * modules/xstriconv: New file.
74318         * MODULES.html.sh (Internationalization functions): Add striconv,
74319         xstriconv.
74320
74321 2006-09-06  Bruno Haible  <bruno@clisp.org>
74322
74323         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74324         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74325         not using libtool correctly.
74326
74327 2006-09-06  Bruno Haible  <bruno@clisp.org>
74328
74329         * lib/striconv.h: New file.
74330         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74331         iconvstring.c.
74332         * lib/xstriconv.h: New file.
74333         * lib/xstriconv.c: New file.
74334
74335 2006-09-06  Bruno Haible  <bruno@clisp.org>
74336
74337         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74338         lib_..._LDFLAGS.
74339
74340 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74341
74342         * lib/argz_.h: Sync from Libtool.
74343
74344         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74345                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74346
74347         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74348
74349 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74350
74351         * modules/trim: New file.
74352
74353 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74354
74355         * lib/trim.h: New file.
74356         * lib/trim.c: New file.
74357
74358 2006-09-05  Bruno Haible  <bruno@clisp.org>
74359
74360         * MODULES.html.sh (String handling): Add trim.
74361
74362 2006-09-04  Karl Berry  <karl@gnu.org>
74363
74364         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74365         until next release.
74366
74367 2006-09-03  Bruno Haible  <bruno@clisp.org>
74368
74369         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74370         correctly.
74371
74372 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74375         not gl_GETLOADAVG.  Omit unneeded semicolons.
74376         Problems reported by Ralf Wildenhues in
74377         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74378         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74379         at the end, which is the usual gnulib style.
74380
74381         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74382         of doing all the work ourselves.
74383         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74384         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74385
74386 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74389         Problem reported by Ralf Wildenhues in
74390         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74391
74392         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74393         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74394
74395 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74398         yesterday's patch by changing test -n to test -z.
74399
74400 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74403         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74404         the former is now obsolescent.
74405
74406         * modules/chdir-long (Depends-on): Add fcntl.
74407
74408 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74409
74410         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74411         obsolescent, and programs should use gnulib instead.
74412         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74413         but with prefixes changed.
74414
74415 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74416
74417         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74418         or stdbool.h, because they might not exist while configuring.
74419
74420         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74421         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74422         does that for us.
74423         (O_DIRECTORY): Remove.
74424
74425 2006-08-31  Eric Blake  <ebb9@byu.net>
74426
74427         * gnulib-tool: Don't let emacs change spaces to TAB.
74428
74429 2006-08-31  Bruno Haible  <bruno@clisp.org>
74430
74431         * gnulib-tool: When calling func_import more than once, do it in a
74432         subshell.
74433         Reported by Eric Blake <ebb9@byu.net>.
74434
74435 2006-08-31  Bruno Haible  <bruno@clisp.org>
74436
74437         * gnulib-tool (nl): Remove variable.
74438         (sed_transform_lib_file): Use more robust test for config-h module.
74439         (func_import): Fix typo in 2006-08-25 patch.
74440
74441 2006-08-31  Bruno Haible  <bruno@clisp.org>
74442
74443         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74444         specified, augment Makefile.am variables instead of assigning them.
74445
74446 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74447
74448         Work around a bug in both the Linux and SunOS 64-bit kernels:
74449         nanosleep mishandles sleeps for longer than 2**31 seconds.
74450         Problem reported by Frank v Waveren in
74451         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74452         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74453         Check for nanosleep bug.
74454         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74455
74456 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         Work around a bug in both the Linux and SunOS 64-bit kernels:
74459         nanosleep mishandles sleeps for longer than 2**31 seconds.
74460         Problem reported by Frank v Waveren in
74461         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74462         * lib/nanosleep.c (BILLION): New constant.
74463         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74464         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74465         implementation.
74466
74467 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74468
74469         * modules/nanosleep (Depends-on): Add gettime.
74470
74471 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74472         and Simon Josefsson  <jas@extundo.com>
74473         and Oskar Liljeblad  <oskar@osk.mine.nu>
74474
74475         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74476         * gnulib-tool (func_import): New license type 'unmodifiable license
74477         text'.
74478         * modules/fdl: Use it.  Longer description.
74479         * module/gpl, module/lgpl: New files.
74480
74481 2006-08-30  Jim Meyering  <jim@meyering.net>
74482
74483         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74484         shadowing the parameter.
74485
74486 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74487
74488         Sync from Libtool:
74489
74490         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74491
74492         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74493         sharing with gnulib.  Report by Eric Blake.
74494
74495 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74496
74497         * modules/isapipe: New file.
74498         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74499
74500 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74501
74502         * modules/configmake (Makefile.am): Add a comment, and omit
74503         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74504         by Bruno Haible.
74505
74506 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74507
74508         * m4/isapipe.m4: New file.
74509
74510 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         * lib/isapipe.c, lib/isapipe.h: New files.
74513
74514 2006-08-29  Jim Meyering  <jim@meyering.net>
74515
74516         * modules/configmake (Makefile.am): Make configmake.h depend on
74517         Makefile.  Otherwise, a stale configmake.h could hang around.
74518
74519 2006-08-29  Eric Blake  <ebb9@byu.net>
74520
74521         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74522         resolution of upstream bug 3044.
74523
74524 2006-08-29  Bruno Haible  <bruno@clisp.org>
74525
74526         * modules/localcharset (Depends-on): Add configmake.
74527         (Makefile.am): Remove setting of LIBDIR through DEFS.
74528
74529 2006-08-29  Bruno Haible  <bruno@clisp.org>
74530
74531         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74532         defined.
74533
74534 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         * modules/fcntl: New file.
74537         * modules/chdir-safer (Depends-on): Add fcntl.
74538         * modules/fts: Likewise.
74539         * modules/mkdir-p: Likewise.
74540
74541         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74542         This undoes the most recent change, since we're now addressing the
74543         problem in a different way.
74544
74545         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74546         into output, since the output might be called Makefile.am even
74547         if $makefile_name is something different.
74548         (func_import): Use $makefile_am rather than
74549         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74550         empty.
74551
74552         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74553
74554 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74557         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74558         recent change to stdint.m4, since we're now addressing the problem in a
74559         different way.
74560
74561 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74562
74563         * m4/fcntl_h.m4: New file.
74564
74565 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74566
74567         * lib/fcntl_.h: New file.
74568         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74569         the fcntl module.
74570         * lib/dirchownmod.c: Likewise.
74571         * lib/fts.c: Likewise.
74572
74573         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74574         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74575         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74576         just before including <inttypes.h>, to avoid circular inclusion.
74577
74578 2006-08-28  Jim Meyering  <jim@meyering.net>
74579
74580         * doc/visibility.texi: Actually read and correct the grammar of the
74581         sentence affected by yesterday's change.
74582
74583 2006-08-28  Eric Blake  <ebb9@byu.net>
74584
74585         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74586         needs wrapper.
74587
74588 2006-08-28  Eric Blake  <ebb9@byu.net>
74589
74590         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74591
74592 2006-08-28  Eric Blake  <ebb9@byu.net>
74593
74594         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74595
74596 2006-08-28  Bruno Haible  <bruno@clisp.org>
74597
74598         * modules/c-strstr: New file, from GNU gettext.
74599         * MODULES.html.sh (String handling): Add c-strstr.
74600
74601 2006-08-28  Bruno Haible  <bruno@clisp.org>
74602
74603         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74604         macros.
74605         Reported by Eric Blake.
74606
74607 2006-08-28  Bruno Haible  <bruno@clisp.org>
74608
74609         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74610         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74611         * lib/vasprintf.c: Include errno.h, limits.h.
74612         (EOVERFLOW): New fallback definition.
74613         (vasprintf): Test here whether the string length is > INT_MAX.
74614         * lib/vsnprintf.c: Include errno.h, limits.h.
74615         (EOVERFLOW): New fallback definition.
74616         (vsnprintf): Fix bug when generated string was too long for the buffer.
74617         Test here whether the string length is > INT_MAX.
74618
74619 2006-08-28  Bruno Haible  <bruno@clisp.org>
74620
74621         * lib/inttypes_.h (SCNX*): Remove definitions.
74622         Reported by Eric Blake.
74623
74624 2006-08-28  Bruno Haible  <bruno@clisp.org>
74625
74626         * lib/c-strstr.h: New file, from GNU gettext.
74627         * lib/c-strstr.c: New file, from GNU gettext.
74628
74629 2006-08-28  Bruno Haible  <bruno@clisp.org>
74630
74631         * gnulib-tool: Reorder some statements.
74632
74633 2006-08-28  Bruno Haible  <bruno@clisp.org>
74634
74635         * gnulib-tool: New option --makefile-name.
74636         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74637         $makefile_name.
74638         (func_import): Write $makefile_name to the cache file, and read it from
74639         there unless explicitly specified. Use $makefile_name as file name
74640         instead of Makefile.am. Adjust the recommendations accordingly.
74641
74642 2006-08-28  Bruno Haible  <bruno@clisp.org>
74643
74644         * gnulib-tool (func_verify_module): Check against misapplying patch.
74645
74646 2006-08-28  Bruno Haible  <bruno@clisp.org>
74647
74648         * gnulib-tool (func_relativize, func_relconcat): New functions.
74649         Give an error if --local-dir is given with --update.
74650         Remove trailing slashes from $local_gnulib_dir.
74651         (func_import): Store the relativized $local_gnulib_dir in
74652         gnulib-cache.m4, and read it from there if not specified explicitly.
74653
74654 2006-08-28  Bruno Haible  <bruno@clisp.org>
74655
74656         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74657         is the current directory. Respect also $local_gnulib_dir.
74658
74659 2006-08-28  Bruno Haible  <bruno@clisp.org>
74660             Simon Josefsson  <jas@extundo.com>
74661
74662         BeOS portability.
74663         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74664
74665 2006-08-27  Jim Meyering  <jim@meyering.net>
74666
74667         * doc/visibility.texi: Remove duplicate word: "pointer".
74668
74669 2006-08-26  Bruno Haible  <bruno@clisp.org>
74670
74671         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74672         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74673         (Makefile.am): Create inttypes.h from inttypes_.h.
74674         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74675
74676         * modules/imaxabs: New file.
74677
74678         * modules/imaxdiv: New file.
74679
74680 2006-08-26  Bruno Haible  <bruno@clisp.org>
74681
74682         * m4/inttypes.m4: New file.
74683         * m4/_inttypes_h.m4: Remove file.
74684         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74685         PRI_MACROS_BROKEN.
74686         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74687
74688         * m4/imaxabs.m4: New file.
74689
74690         * m4/imaxdiv.m4: New file.
74691
74692 2006-08-26  Bruno Haible  <bruno@clisp.org>
74693
74694         * lib/inttypes_.h: New file.
74695         * lib/inttypes.h: Remove file.
74696         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74697
74698         * lib/imaxabs.c: New file.
74699
74700         * lib/imaxdiv.c: New file.
74701
74702 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         New config-h module, so that "make" output needn't be cluttered
74705         by -DHAVE_CONFIG_H.
74706         * MODULES.html.sh (Support for building libraries and executables):
74707         Add config-h.
74708         * modules/config-h: New file.
74709         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74710         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74711         the config-h module is used.
74712
74713         New configmake module, so that "make" output needn't be cluttered
74714         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74715         * MODULES.html.sh (Support for building libraries and executables):
74716         Add configmake.
74717         * modules/configmake: New file.
74718
74719 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * m4/config-h.m4: New file.
74722
74723 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74724
74725         * config/srclist.txt: Add elisp-comp.
74726
74727 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74728
74729         * MODULES.html.sh (Support for building libraries and executables):
74730         Add elisp-comp.
74731         * build-aux/elisp-comp: New file.
74732         * modules/elisp-comp: New file.
74733
74734 2006-08-24  Bruno Haible  <bruno@clisp.org>
74735
74736         * gnulib-tool (func_create_testdir): Use non-default values of
74737         sourcebase and m4base.
74738
74739 2006-08-24  Bruno Haible  <bruno@clisp.org>
74740
74741         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74742         HTML structure.
74743
74744 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * modules/openat (Depends-on): Add lchown.
74747
74748 2006-08-23  Bruno Haible  <bruno@clisp.org>
74749
74750         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74751         of gl_LOCK_EARLY instead of gl_LOCK.
74752
74753 2006-08-23  Bruno Haible  <bruno@clisp.org>
74754
74755         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74756         on OSF/1 to no.
74757         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74758
74759 2006-08-23  Bruno Haible  <bruno@clisp.org>
74760
74761         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74762         as unusable.
74763
74764         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74765         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74766         (gl_LOCK): New macro.
74767
74768 2006-08-22  Simon Josefsson  <jas@extundo.com>
74769
74770         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74771         to md5 module.
74772
74773 2006-08-22  Simon Josefsson  <jas@extundo.com>
74774
74775         * MODULES.html.sh: Add "Support for maintaining and release
74776         projects".
74777
74778         * build-aux/gnupload: New file, from coreutils.
74779
74780 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         Avoid the need for AC_LIBSOURCES in m4 macros.
74783         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74784         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74785         * modules/check-version (EXTRA_DIST): Add check-version.h.
74786         * modules/crc (EXTRA_DIST): Add crc.h.
74787         * modules/des (EXTRA_DIST): Add des.h.
74788         * modules/gc (EXTRA_DIST): Add gc.h.
74789         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74790         * modules/getline (EXTRA_DIST): Add getline.h.
74791         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74792         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74793         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74794         * modules/md2 (EXTRA_DIST): Add md2.h.
74795         * modules/md4 (EXTRA_DIST): Add md4.h.
74796         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74797         * modules/read-file (EXTRA_DIST): Add read-file.h.
74798         * modules/readline (EXTRA_DIST): Add readline.h.
74799         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74800         rijndael-api-fst.h.
74801
74802 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * m4/rijndael.m4 (gl_ARCFOUR):
74805         * m4/arctwo.m4 (gl_ARCTWO):
74806         * m4/check-version.m4 (gl_CHECK_VERSION):
74807         * m4/crc.m4 (gl_CRC):
74808         * m4/des.m4 (gl_DES):
74809         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74810         * m4/gc.m4 (gl_GC):
74811         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74812         * m4/getline.m4 (gl_FUNC_GETLINE):
74813         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74814         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74815         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74816         * m4/md2.m4 (gl_MD2):
74817         * m4/md4.m4 (gl_MD4):
74818         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74819         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74820         * m4/readline.m4 (gl_FUNC_READLINE):
74821         * m4/rijndael.m4 (gl_RIJNDAEL):
74822         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74823         to get the necessary .h files and whatnot.
74824
74825 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74828         gnulib rather than the other way around.
74829         * config/srclistvars.sh (COREUTILS): Remove.
74830
74831 2006-08-22  Jim Meyering  <jim@meyering.net>
74832
74833         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74834
74835         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74836
74837 2006-08-22  Eric Blake  <ebb9@byu.net>
74838
74839         * modules/regexprops-generic: New file.
74840         * MODULES.html.sh (Support for building documentation): List it.
74841
74842 2006-08-22  Eric Blake  <ebb9@byu.net>
74843
74844         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74845         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74846         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74847         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74848
74849 2006-08-22  Bruno Haible  <bruno@clisp.org>
74850
74851         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74852         and lib_LTLIBRARIES like the other lib_* variables.
74853
74854 2006-08-22  Bruno Haible  <bruno@clisp.org>
74855
74856         * build-aux/x-to-1.in: New file, from GNU gettext.
74857
74858 2006-08-22  Bruno Haible  <bruno@clisp.org>
74859
74860         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74861         <utmpx.h> exists.
74862
74863 2006-08-22  Bruno Haible  <bruno@clisp.org>
74864
74865         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74866         <utmpx.h> exists.
74867
74868 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         BeOS portability.
74871         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74872         exist.
74873         Problem reported by Bruno Haible.
74874
74875 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         Avoid the need for AC_LIBSOURCES in m4 macros.
74878         * modules/acl (EXTRA_DIST): Add acl.h.
74879         * modules/argmatch (Files): Add m4/argmatch.m4.
74880         (configure.ac): Add gl_ARGMATCH.
74881         (EXTRA_DIST): Renamed from lib_SOURCES, for
74882         consistency with the other modules.  Remove argmatch.c.
74883         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74884         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74885         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74886         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74887         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74888         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74889         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74890         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74891         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74892         * modules/closeout (EXTRA_DIST): Add closeout.h.
74893         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74894         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74895         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74896         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74897         dirname.h; remove basename.c and stripslash.c.
74898         * modules/exclude (EXTRA_DIST): Add exclude.h.
74899         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74900         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74901         * modules/file-type (EXTRA_DIST): Add file-type.h.
74902         * modules/filemode (EXTRA_DIST): Add filemode.h.
74903         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74904         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74905         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74906         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74907         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74908         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74909         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74910         * modules/getdate (EXTRA_DIST): Add getdate.c.
74911         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74912         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74913         * modules/getpass (EXTRA_DIST): Add getpass.h.
74914         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74915         * modules/group-member (EXTRA_DIST): Add group-member.h.
74916         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74917         * modules/hash (EXTRA_DIST): Add hash.h.
74918         * modules/human (EXTRA_DIST): Add human.h.
74919         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74920         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74921         * modules/lchown (EXTRA_DIST): Add lchown.h.
74922         * modules/long-options (EXTRA_DIST): Add long-options.h.
74923         * modules/lstat (EXTRA_DIST): Add lstat.h.
74924         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74925         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74926         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74927         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74928         * modules/memxor (EXTRA_DIST): Add memxor.h.
74929         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74930         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74931         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74932         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74933         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74934         * modules/physmem (EXTRA_DIST): Add physmem.h.
74935         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74936         * modules/posixver (EXTRA_DIST): Add posixver.h.
74937         * modules/quote (EXTRA_DIST): Add quote.h.
74938         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74939         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74940         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74941         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74942         regex_internal.h regexec.c.
74943         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74944         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74945         * modules/same (EXTRA_DIST): Add same.h.
74946         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74947         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74948         * modules/savedir (EXTRA_DIST): Add savedir.h.
74949         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74950         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74951         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74952         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74953         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74954         * modules/strdup (EXTRA_DIST): Add strdup.h.
74955         * modules/strftime (EXTRA_DIST): Add strftime.h.
74956         * modules/strndup (EXTRA_DIST): Add strndup.h.
74957         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74958         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74959         * modules/time_r (EXTRA_DIST): Add time_r.h.
74960         * modules/timespec (EXTRA_DIST): Add timespec.h.
74961         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74962         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74963         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74964         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74965         * modules/userspec (EXTRA_DIST): Add userspec.h.
74966         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74967         * modules/utimens (EXTRA_DIST): Add utimens.h.
74968         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74969         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74970         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74971         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74972         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74973         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74974         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74975         * modules/yesno (EXTRA_DIST): Add yesno.h.
74976
74977 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74980
74981         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74982         * m4/dev-ino.m4, same-inode.m4: Remove.
74983
74984         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74985         * m4/acl.m4 (AC_FUNC_ACL):
74986         * m4/backupfile.m4 (gl_BACKUPFILE):
74987         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74988         * m4/canon-host.m4 (gl_CANON_HOST):
74989         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74990         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74991         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74992         * m4/cloexec.m4 (gl_CLOEXEC):
74993         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74994         * m4/closeout.m4 (gl_CLOSEOUT):
74995         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74996         * m4/dirname.m4 (gl_DIRNAME):
74997         * m4/exclude.m4 (gl_EXCLUDE):
74998         * m4/exitfail.m4 (gl_EXITFAIL):
74999         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75000         * m4/file-type.m4 (gl_FILE_TYPE):
75001         * m4/filemode.m4 (gl_FILEMODE):
75002         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75003         * m4/fpending.m4 (gl_FUNC_FPENDING):
75004         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75005         * m4/fts.m4 (gl_FUNC_FTS):
75006         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75007         * m4/getdate.m4 (gl_GETDATE):
75008         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75009         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75010         * m4/getpass.m4 (gl_FUNC_GETPASS):
75011         * m4/gettime.m4 (gl_GETTIME):
75012         * m4/getugroups.m4 (gl_GETUGROUPS):
75013         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75014         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75015         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75016         * m4/hash.m4 (gl_HASH):
75017         * m4/idcache.m4 (gl_IDCACHE):
75018         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75019         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75020         * m4/long-options.m4 (gl_LONG_OPTIONS):
75021         * m4/lstat.m4 (gl_FUNC_LSTAT):
75022         * m4/md5.m4 (gl_MD5):
75023         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75024         * m4/memcoll.m4 (gl_MEMCOLL):
75025         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75026         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75027         * m4/memxor.m4 (gl_MEMXOR):
75028         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75029         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75030         * m4/modechange.m4 (gl_MODECHANGE):
75031         * m4/mountlist.m4 (gl_MOUNTLIST):
75032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75033         * m4/openat.m4 (gl_FUNC_OPENAT):
75034         * m4/pathmax.m4 (gl_PATHMAX):
75035         * m4/physmem.m4 (gl_PHYSMEM):
75036         * m4/posixtm.m4 (gl_POSIXTM):
75037         * m4/posixver.m4 (gl_POSIXVER):
75038         * m4/quote.m4 (gl_QUOTE):
75039         * m4/quotearg.m4 (gl_QUOTEARG):
75040         * m4/readtokens.m4 (gl_READTOKENS):
75041         * m4/readutmp.m4 (gl_READUTMP):
75042         * m4/regex.m4 (gl_REGEX):
75043         * m4/safe-read.m4 (gl_SAFE_READ):
75044         * m4/safe-write.m4 (gl_SAFE_WRITE):
75045         * m4/same.m4 (gl_SAME):
75046         * m4/save-cwd.m4 (gl_SAVE_CWD):
75047         * m4/savedir.m4 (gl_SAVEDIR):
75048         * m4/settime.m4 (gl_SETTIME):
75049         * m4/sha1.m4 (gl_SHA1):
75050         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75051         * m4/stat-macros.m4 (gl_STAT_MACROS):
75052         * m4/stat-time.m4 (gl_STAT_TIME):
75053         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75054         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75055         * m4/strdup.m4 (gl_FUNC_STRDUP):
75056         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75057         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75058         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75059         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75060         * m4/time_r.m4 (gl_TIME_R):
75061         * m4/timespec.m4 (gl_TIMESPEC):
75062         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75063         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75064         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75065         * m4/userspec.m4 (gl_USERSPEC):
75066         * m4/utimecmp.m4 (gl_UTIMECMP):
75067         * m4/utimens.m4 (gl_UTIMENS):
75068         * m4/xalloc.m4 (gl_XALLOC):
75069         * m4/xgetcwd.m4 (gl_XGETCWD):
75070         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75071         * m4/xreadlink.m4 (gl_XREADLINK):
75072         * m4/xstrtod.m4 (gl_XSTRTOD):
75073         * m4/yesno.m4 (gl_YESNO):
75074         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75075         to get the necessary .h files and whatnot.
75076
75077 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75078             Bruno Haible  <bruno@clisp.org>
75079
75080         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75081         /bin/sh understanding of '!' conditional negation.
75082
75083 2006-08-21  Jim Meyering  <jim@meyering.net>
75084
75085         * modules/openat (Depends-on): Really alphabetize.
75086
75087         * modules/acl (Depends-on): Add error and quote.
75088
75089         * check-module (find_included_lib_files): Add at-func.c to the
75090         ok-to-include-more-than-once white list.
75091
75092         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75093
75094 2006-08-21  Bruno Haible  <bruno@clisp.org>
75095
75096         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75097         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75098         Reported by Martin Lambers <marlam@marlam.de>.
75099
75100 2006-08-21  Bruno Haible  <bruno@clisp.org>
75101
75102         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75103         specify an installation location, don't emit a noinst_LIBRARIES or
75104         noinst_LTLIBRARIES assignment.
75105
75106 2006-08-21  Bruno Haible  <bruno@clisp.org>
75107
75108         BeOS portability.
75109         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75110         BeOS has mbrtowc() but no <wctype.h>.
75111
75112 2006-08-21  Bruno Haible  <bruno@clisp.org>
75113
75114         BeOS portability.
75115         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75116         exist.
75117
75118 2006-08-21  Bruno Haible  <bruno@clisp.org>
75119
75120         BeOS portability.
75121         * lib/mbchar.h: Include <wctype.h> only if it exists.
75122
75123 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75124
75125         Remove files that are no longer needed by their respective modules.
75126         * m4/obstack.m4: Remove.
75127         * m4/strerror_r.m4: Remove.
75128         * m4/uint32_t.m4: Remove.
75129         * m4/uintptr_t.m4: Remove.
75130         * m4/ullong_max.m4: Remove.
75131         * m4/xstrtoimax.m4: Remove.
75132         * m4/xstrtoumax.m4: Remove.
75133
75134         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75135         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75136         dependencies now capture this.
75137
75138         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75139         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75140         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75141         * m4/human.m4 (gl_HUMAN): Likewise.
75142         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75143         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75144
75145         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75146
75147         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75148         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75149         stdint.
75150         * m4/human.m4 (gl_HUMAN): Likewise.
75151         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75152         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75153         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75154         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75155         * m4/xstrtol (gl_XSTRTOL): Likewise.
75156
75157         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75158         AC_TYPE_LONG_LONG_INT.
75159         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75160         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75161         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75162         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75163
75164         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75165         on stdbool.
75166
75167         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75168         (gl_PREREQ_XSTRTOUL): Remove.
75169
75170         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75171
75172         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75173         mode.
75174
75175 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         Add and change modules to make it easier for coreutils to use
75178         gnulib-tool.
75179         * modules/backupfile (Files): Remove m4/d-ino.m4.
75180         (Depends-on): Add d-ino.
75181         * modules/cycle-check (Depends-on): Add stdint.
75182         (lib_SOURCES): Add cycle-check.h.
75183         * modules/d-ino: New module.
75184         * modules/d-type: New module.
75185         * modules/error (Files): Remove m4/strerror_r.m4.
75186         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75187         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75188         m4/inttypes_h.m4, m4/uintmax_t.m4.
75189         (Depends-on): Add stdint.
75190         (lib_SOURCES): Add fsusage.h.
75191         * modules/getcwd (Files): Remove d-ino.m4.
75192         (Depends-on): Add d-ino.
75193         * modules/getndelim2 (Depends-on): Add stdint.
75194         * modules/glob (Files): Remove m4/d-type.m4.
75195         (Depends-on): Add d-type.
75196         * modules/host-os: New module.
75197         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75198         m4/inttypes_h.m4, m4/uintmax_t.m4.
75199         * Depends-on: Add stdint.
75200         (lib_SOURCES): Add human.h.
75201         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75202         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75203         m4/uintmax_t.m4, m4/ulonglong.m4.
75204         (Depends-on): Add stdint.
75205         (EXTRA_DIST): Add inttostr.h.
75206         * modules/lchmod: New module.
75207         * modules/link-follow: New module.
75208         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75209         (Depends-on): Add lchmod.
75210         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75211         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75212         (Depends-on): Add stdint.
75213         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75214         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75215         (Depends-on): Add stdint.
75216         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75217         * modules/perl: New module.
75218         * modules/regex (Depends-on): Add stdint.
75219         * modules/rmdir-errno: New module.
75220         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75221         m4/intmax_t.m4.
75222         (Depends-on): Add stdint.
75223         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75224         m4/uintmax_t.m4.
75225         (Depends-on): Add stdint.
75226         * modules/unlink-busy: New module.
75227         * modules/utimecmp (Depends-on): Add stdint.
75228         * modules/uptime: New module.
75229         * modules/winsz-ioctl: New module.
75230         * modules/winsz-termios: New module.
75231         * modules/xnanosleep (Depends-on): Add nanosleep.
75232         * modules/ullong_max: Remove.
75233         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75234         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75235         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75236         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75237         (Depends-on): Add inttypes.
75238         (lib_SOURCES): Add xstrtol.h.
75239         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75240         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75241         * MODULES.html.sh: Move 'assert' into the assert section.
75242         Move 'dummy' into the linking section.
75243         Remove ullong_max.
75244         Add section for compatibility checks for POSIX:2001 functions,
75245         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75246         winsz-ioctl, and winsz-termios into it.
75247         Add lchmod.
75248         Add top-level Misc section and put host-os, perl, and uptime
75249         into it.
75250
75251 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75254         now assume the stdint module.  Do not include inttypes.h.
75255         * lib/fsusage.h: Likewise.
75256         * lib/getndelim2.c: Likewise.
75257         * lib/human.h: Likewise.
75258         * lib/inttostr.h: Likewise.
75259         * lib/obstack.c: Likewise.
75260         * lib/regex_internal.h: Likewise.
75261         * lib/tempname.c: Likewise.
75262         * lib/utimecmp.c: Likewise.
75263         * lib/xstrtol.h: Likewise.
75264
75265         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75266
75267         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75268         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75269         * lib/xtime.h: Likewise.
75270
75271 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75272
75273         * modules/openat (Files): Add lib/fchmodat.c.
75274         Fixes problem reported by Jay Youngman.
75275
75276 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75277
75278         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75279         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75280
75281 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75282             Bruno Haible  <bruno@clisp.org>
75283
75284         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75285         and is a script that invokes bison. Tighten the code. Add comments.
75286
75287 2006-08-18  Jim Meyering  <jim@meyering.net>
75288
75289         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75290         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75291         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75292         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75293
75294 2006-08-18  Bruno Haible  <bruno@clisp.org>
75295
75296         * modules/bison-i18n: New file.
75297         * MODULES.html.sh (Internationalization functions): Add it.
75298
75299 2006-08-18  Bruno Haible  <bruno@clisp.org>
75300
75301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75302         sys/statvfs.h. When getmntinfo was found, check its declaration and
75303         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75304
75305 2006-08-18  Bruno Haible  <bruno@clisp.org>
75306
75307         * m4/bison-i18n.m4: New file, from bison.
75308
75309 2006-08-18  Bruno Haible  <bruno@clisp.org>
75310
75311         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75312         (ME_DUMMY): Treat "kernfs" as a dummy.
75313         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75314
75315 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75316
75317         Update from coreutils.
75318
75319         2006-08-15  Jim Meyering  <jim@meyering.net>
75320
75321         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75322
75323         2006-01-17  Jim Meyering  <jim@meyering.net>
75324
75325         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75326
75327         2006-01-11  Jim Meyering  <jim@meyering.net>
75328
75329         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75330         Check for the lchmod function.
75331
75332 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         Update from coreutils.
75335
75336         * lib/__fpending.h: Add copyright notice.
75337         * lib/fprintftime.h: Likewise.
75338         * lib/savedir.c: Use (C) in copyright notice.
75339         * lib/savedir.h: Likewise.
75340
75341         2006-08-15  Jim Meyering  <jim@meyering.net>
75342
75343         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75344         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75345         in support of the EXPECTED_ERRNO macro.
75346         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75347         definitions.  Instead, define the appropriate symbols and include
75348         "at-func.c".
75349         * lib/mkdirat.c (mkdirat): Likewise.
75350         * lib/fchmodat.c (fchmodat): Likewise.
75351         (ENOSYS): Remove definition.
75352         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75353         it.  Don't include "unistd--.h" -- it wasn't ever used.
75354
75355         2006-01-17  Jim Meyering  <jim@meyering.net>
75356
75357         Rewrite fts.c not to change the current working directory,
75358         by using openat, fstatat, fdopendir, etc..
75359
75360         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75361         (HAVE_OPENAT_SUPPORT): Define.
75362         [_LIBC] (fchdir): Don't undef or define; no longer used.
75363         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75364         Now, this `function' always succeeds, and consumes its file descriptor
75365         parameter -- so callers must not close such FDs.  Update callers.
75366         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75367         (diropen): Add parameter, SP.  Adjust all callers.
75368         Implement using diropen_fd, rather than open.
75369         (fts_open): Initialize new member, fts_cwd_fd.
75370         Remove fts_rft-setting code.
75371         (fts_close): Close fts_cwd_fd, if necessary.
75372         (__opendir2): Define in terms of opendir or opendirat,
75373         depending on whether the FST_NOCHDIR flag is set.
75374         (fts_build): Since fts_safe_changedir consumes its FD, and since
75375         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75376         and close the dup'd file descriptor upon failure.
75377         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75378         (fts_safe_changedir): Tweak semantics to reflect that this function
75379         now calls cwd_advance_fd and hence consumes its FD argument.
75380         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75381         [struct FTS] (fts_rft): Remove now-unused member.
75382         [struct FTS] (fts_cycle.state): Improve comment.
75383
75384         * lib/openat.c (openat_needs_fchdir): New function.
75385         * lib/openat.h (openat_needs_fchdir): Declare it.
75386
75387 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75390         Problem and fix reported by Pádraig Brady in
75391         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75392
75393 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75394
75395         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75396
75397 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75398
75399         * lib/memcoll.c (memcoll): Optimize for the common case where the
75400         arguments are bytewise equal.
75401
75402 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75403
75404         * doc/regexprops-generic.texi: Add a copyright notice.
75405
75406 2006-08-15  Bruno Haible  <bruno@clisp.org>
75407
75408         * modules/tmpdir (License): Change to LGPL.
75409
75410 2006-08-15  Bruno Haible  <bruno@clisp.org>
75411
75412         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75413         module.
75414
75415 2006-08-14  Simon Josefsson  <jas@extundo.com>
75416
75417         * config/srclist.txt: Add gnupload.
75418
75419 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         Change copyright notice from LGPL 2 to GPL 2, since that's the
75422         standard form used in the gnulib repository.
75423         * tests/test-lock.c: Likewise.
75424         * tests/test-stdint.c: Likewise.
75425         * tests/test-tls.c: Likewise.
75426
75427         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75428         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75429         Add copyright notice.
75430
75431         * check-module: Add copyright notice.  Output a copyright
75432         notice if "--version" is specified.
75433         * modules/COPYING: New file.
75434         * tests/test-getaddrinfo.c: Add copyright notice.
75435         * tests/test-verify.c: Likewise.
75436
75437 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         Change copyright notice from LGPL 2 to GPL 2, since that's the
75440         standard form used in the gnulib repository.
75441         * lib/lock.c: LGPL -> GPL.
75442         * lib/lock.h: Likewise.
75443         * lib/strnlen1.c: Likewise.
75444         * lib/strnlen1.h: Likewise.
75445         * lib/tls.c: Likewise.
75446         * lib/tls.h: Likewise.
75447         * lib/tmpdir.c: Likewise.
75448
75449         * lib/TODO: Remove; this belongs only in coreutils.
75450
75451 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         Add copyright notices to long-enough files that lack them, since
75454         otherwise the files aren't clearly free.  Use the same notice that
75455         getdate.texi already uses.
75456         * doc/alloca-opt.texi: Add copyright notice.
75457         * doc/alloca.texi: Likewise.
75458         * doc/ctime.texi: Likewise.
75459         * doc/functions.texi: Likewise.
75460         * doc/gcd.texi: Likewise.
75461         * doc/gnulib-tool.texi: Likewise.
75462         * doc/inet_ntoa.texi: Likewise.
75463         * doc/visibility.texi: Likewise.
75464
75465         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75466         * doc/quote.texi: Add copyright notice.
75467
75468         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75469         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75470         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75471         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75472         is now obsolete, and give a pointer to the Sun list.
75473         Add copyright notice.
75474
75475 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75476
75477         * config/srclistvars.sh: Add copyright notice.
75478
75479 2006-08-14  Eric Blake  <ebb9@byu.net>
75480
75481         Import the following change from libc:
75482
75483         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75484
75485         Upstream bug 2997.
75486         * lib/misc/error.c: Add space between program name and message if file
75487         name is missing.
75488
75489 2006-08-12  Karl Berry  <karl@gnu.org>
75490
75491         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75492         remove, these originate in gnulib now.
75493
75494 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75495
75496         * doc/Makefile (standards.info standards.html standards.dvi):
75497         Also depend on make-stds.texi.
75498
75499 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75502         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75503
75504         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75505         in wchar_t.  Problem reported by Eric Blake.
75506
75507         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75508         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75509         Also, help the compiler to keep LEN in a register.
75510
75511 2006-08-11  Eric Blake  <ebb9@byu.net>
75512
75513         * users.txt: Sort.  Add tar.
75514
75515 2006-08-11  Bruno Haible  <bruno@clisp.org>
75516
75517         * users.txt: New file.
75518
75519 2006-08-11  Bruno Haible  <bruno@clisp.org>
75520
75521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75522         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75523
75524 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75525
75526         * modules/snprintf (Depends-on): Remove minmax.
75527         (Maintainer): Add self and Bruno.
75528
75529 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75532         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75533         (EOVERFLOW): Define if the system does not.
75534         Do not include "minmax.h"; it wasn't used.
75535         (snprintf): Don't assume size_t promotes to an unsigned type.
75536         Fix bug when generated string was too long for the buffer: the
75537         buffer's contents are supposed to be the initial prefix of the
75538         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75539         exceeds INT_MAX; do the check ourselves.
75540
75541         Import the following changes from libc:
75542
75543         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75544
75545         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75546         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75547         set wc to the byte which couldn't be converted.
75548         (re_string_reconstruct): Don't clear valid_raw_len before calling
75549         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75550         tip_context using re_string_context_at.
75551
75552         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75553
75554         * lib/posix/regex.h: g++ still cannot handled [restrict].
75555
75556         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75557
75558         * lib/posix/regex.h: Remove special handling for VMS.
75559
75560 2006-08-10  Jim Meyering  <jim@meyering.net>
75561
75562         * modules/same-inode: New module.
75563         * modules/dev-ino: New module.
75564         * modules/cycle-check: Depend on these modules, rather than simply
75565         including their .h files.
75566         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75567         required via m4/cycle-check.m4.
75568         * modules/same: Depend on new same-inode module, rather than
75569         including same-inode.h.
75570         * modules/chdir-safer: New file.
75571
75572         * modules/chown (Depends-on): Add stat-macros.
75573
75574 2006-08-10  Jim Meyering  <jim@meyering.net>
75575
75576         * m4/cycle-check.m4: New file.
75577         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75578         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75579
75580 2006-08-10  Eric Blake  <ebb9@byu.net>
75581
75582         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75583         in from original proposal.
75584
75585 2006-08-10  Eric Blake  <ebb9@byu.net>
75586         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75587
75588         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75589         namespace.
75590
75591 2006-08-10  Bruno Haible  <bruno@clisp.org>
75592
75593         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75594         as well.
75595
75596 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         Sync from coreutils.
75599
75600         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75601
75602         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75603         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75604
75605 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * modules/restrict: Remove; no longer needed now that we assume
75608         Autoconf 2.59 or later.
75609         * MODULES.html.sh: Remove 'restrict'.
75610         * modules/argp (Depends-on): Remove 'restrict'.
75611         * modules/base64 (Depends-on): Likewise.
75612         * modules/gc (Depends-on): Likewise.
75613         * modules/getaddrinfo (Depends-on): Likewise.
75614         * modules/glob (Depends-on): Likewise.
75615         * modules/inet_ntop (Depends-on): Likewise.
75616         * modules/inet_pton (Depends-on): Likewise.
75617         * modules/memxor (Depends-on): Likewise.
75618         * modules/regex (Depends-on): Likewise.
75619         * modules/strtok_r (Depends-on): Likewise.
75620         * modules/time_r (Depends-on): Likewise.
75621
75622 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75625         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75626         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75627         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75628         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75629         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75630         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75631         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75632
75633         Merge from coreutils.
75634         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75635         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75636         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75637         * m4/time_r.m4 (gl_TIME_R): Likewise.
75638
75639 2006-08-09  Karl Berry  <karl@gnu.org>
75640
75641         * config/srclist.txt: no more gettext-tools, per Bruno.
75642
75643 2006-08-08  Eric Blake  <ebb9@byu.net>
75644
75645         * modules/verror: New module.
75646         * MODULES.html.sh: Document it.
75647
75648 2006-08-08  Eric Blake  <ebb9@byu.net>
75649
75650         * lib/verror.h, lib/verror.c: New files.
75651
75652 2006-08-08  Eric Blake  <ebb9@byu.net>
75653
75654         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75655         verror_at_line output complies with GNU Coding Standards even when
75656         file is NULL.
75657
75658 2006-08-07  Bruno Haible  <bruno@clisp.org>
75659
75660         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75661         versions of AIX.
75662         Reported by Ralf Wildenhues.
75663
75664 2006-08-07  Bruno Haible  <bruno@clisp.org>
75665
75666         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75667         in an AC_DEFUN. Needed so that the autoconf snippets can use
75668         AC_REQUIRE.
75669
75670 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75671
75672         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75673         Initialize pkgdata_DATA.
75674         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75675         overriding it.
75676
75677 2006-08-06  Eric Blake  <ebb9@byu.net>
75678
75679         * lib/error.h: Fold in some upstream changes from glibc.
75680         * lib/error.c: Likewise.
75681
75682 2006-08-04  Bruno Haible  <bruno@clisp.org>
75683
75684         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75685         Make the mostlyclean-local rule depend on mostlyclean-generic.
75686         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75687
75688 2006-07-31  Bruno Haible  <bruno@clisp.org>
75689
75690         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75691         <stdlib.h>, <string.h>.
75692
75693 2006-07-30  Bruno Haible  <bruno@clisp.org>
75694
75695         * modules/readlink (License): Change to LGPL.
75696
75697 2006-07-30  Bruno Haible  <bruno@clisp.org>
75698
75699         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75700         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75701         set PKGDATADIR to point to it.
75702
75703 2006-07-30  Bruno Haible  <bruno@clisp.org>
75704
75705         * modules/csharpexec (configure.ac): Comment out macro invocation.
75706         * modules/javaexec (configure.ac): Likewise.
75707         * modules/javacomp-script (configure.ac): Likewise.
75708
75709         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75710
75711 2006-07-30  Bruno Haible  <bruno@clisp.org>
75712
75713         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75714         linked-list.
75715
75716 2006-07-30  Bruno Haible  <bruno@clisp.org>
75717
75718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75719
75720 2006-07-30  Bruno Haible  <bruno@clisp.org>
75721
75722         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75723         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75724         get removed.
75725
75726 2006-07-29  Bruno Haible  <bruno@clisp.org>
75727
75728         Make it possible for gnulib-tool to work with locally modified or
75729         augmented gnulib repositories.
75730         * gnulib-tool (func_usage): Document --local-dir option.
75731         (local_gnulib_dir): New variable.
75732         Handle --local-dir option.
75733         (func_lookup_file): New function.
75734         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75735         (func_get_description, func_get_filelist, func_get_description,
75736         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75737         func_get_automake_snippet, func_get_include_directive,
75738         func_get_license, func_get_maintainer): Use func_lookup_file.
75739         (func_import, func_create_testdir): Use func_lookup_file.
75740
75741 2006-07-29  Bruno Haible  <bruno@clisp.org>
75742
75743         * modules/setenv (Depends-on): Add unistd.
75744
75745 2006-07-29  Bruno Haible  <bruno@clisp.org>
75746
75747         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75748
75749 2006-07-29  Bruno Haible  <bruno@clisp.org>
75750
75751         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75752
75753 2006-07-29  Bruno Haible  <bruno@clisp.org>
75754
75755         * gnulib-tool (import, update): If there is no Makefile.am, look at
75756         aclocal.m4, instead of bailing out.
75757
75758 2006-07-29  Bruno Haible  <bruno@clisp.org>
75759
75760         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75761         Categorize the options by when they are useful.
75762
75763 2006-07-29  Bruno Haible  <bruno@clisp.org>
75764
75765         * gnulib-tool (func_usage): Document option --no-libtool.
75766         Handle option --no-libtool.
75767         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75768         for changed semantics of $libtool variable.
75769         (func_import): Likewise. If libtool is not used, show this through
75770         an option --no-libtool.
75771         (func_create_testdir): Update.
75772
75773 2006-07-29  Bruno Haible  <bruno@clisp.org>
75774
75775         * gnulib-tool (func_import): Extend error message about missing
75776         --doc-base.
75777
75778 2006-07-29  Bruno Haible  <bruno@clisp.org>
75779
75780         * gnulib-tool (func_import): Don't create the $docbase directory if
75781         there is no file to store there.
75782
75783 2006-07-29  Bruno Haible  <bruno@clisp.org>
75784
75785         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75786         relevant, look for configure.ac there, not in the current directory.
75787         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75788
75789 2006-07-29  Bruno Haible  <bruno@clisp.org>
75790
75791         * gnulib-tool (SORT): New variable.
75792         (func_usage): Undocument --assume-autoconf option.
75793         Remove --assume-autoconf option handling.
75794         (autoconf_minversion): Determine from the contents of configure.ac.
75795         (func_import): Remove autoconf_minversion handling.
75796         Suggested by Eric Blake.
75797
75798 2006-07-29  Bruno Haible  <bruno@clisp.org>
75799
75800         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75801
75802 2006-07-29  Bruno Haible  <bruno@clisp.org>
75803
75804         * config/srclist.txt (*setenv.[ch]): Remove rules.
75805
75806 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75807
75808         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75809
75810 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75811
75812         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75813         arpa/inet.h.
75814
75815 2006-07-28  Simon Josefsson  <jas@extundo.com>
75816
75817         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75818         * modules/inet_pton (Depends-on): Likewise.
75819
75820 2006-07-28  Simon Josefsson  <jas@extundo.com>
75821
75822         * m4/netinet_in_h.m4: New file.
75823
75824 2006-07-28  Simon Josefsson  <jas@extundo.com>
75825
75826         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75827         #include's.
75828
75829 2006-07-28  Simon Josefsson  <jas@extundo.com>
75830
75831         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75832         #include's.
75833
75834 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75837         setgid on directories only if they set these bits.
75838         * lib/modechange.h: Remove obsolete comment about masks.
75839
75840 2006-07-28  Eric Blake  <ebb9@byu.net>
75841
75842         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75843         macro expansion.
75844
75845 2006-07-28  Bruno Haible  <bruno@clisp.org>
75846
75847         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75848
75849 2006-07-28  Bruno Haible  <bruno@clisp.org>
75850
75851         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75852
75853 2006-07-28  Bruno Haible  <bruno@clisp.org>
75854
75855         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75856         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75857         Define fallbacks.
75858         Avoids link error on FreeBSD 4.x.
75859         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75860
75861         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75862         encoding.
75863         * lib/mbswidth.c (iswcntrl): Likewise.
75864
75865 2006-07-27  Bruno Haible  <bruno@clisp.org>
75866
75867         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75868         test.
75869
75870 2006-07-27  Bruno Haible  <bruno@clisp.org>
75871
75872         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75873         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75874         defined.
75875
75876 2006-07-26  Eric Blake  <ebb9@byu.net>
75877
75878         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75879
75880 2006-07-26  Eric Blake  <ebb9@byu.net>
75881
75882         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75883         like mingw that lack mkstemp.
75884         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75885         avoid compilation warning on mingw.
75886
75887 2006-07-26  Bruno Haible  <bruno@clisp.org>
75888
75889         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75890         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75891         INT_FAST*_MIN, INTPTR_MIN.
75892
75893 2006-07-25  Bruno Haible  <bruno@clisp.org>
75894
75895         * modules/version-etc (Depends-on): Add stdarg.
75896
75897 2006-07-25  Bruno Haible  <bruno@clisp.org>
75898
75899         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75900         complex commands.
75901
75902 2006-07-25  Bruno Haible  <bruno@clisp.org>
75903
75904         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75905         defined in <stdarg.h> or config.h.
75906
75907 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75908
75909         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75910         (gl_STDIO_SAFER): Remove.
75911
75912 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * MODULES.html.sh (File stream based Input/Output):
75915         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75916         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75917         * modules/fopen-safer, modules/tmpfile-safer: New files.
75918         * modules/stdio-safer: Remove.
75919
75920 2006-07-24  Bruno Haible  <bruno@clisp.org>
75921
75922         * modules/tmpdir: New file.
75923         * MODULES.html.sh (File system functions): Add it.
75924
75925 2006-07-24  Bruno Haible  <bruno@clisp.org>
75926
75927         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75928         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75929
75930 2006-07-24  Bruno Haible  <bruno@clisp.org>
75931
75932         * modules/clean-temp: New file.
75933
75934 2006-07-24  Bruno Haible  <bruno@clisp.org>
75935
75936         * m4/tmpdir.m4: New file, from GNU gettext.
75937
75938 2006-07-24  Bruno Haible  <bruno@clisp.org>
75939
75940         * lib/tmpdir.h: New file, from GNU gettext.
75941         * lib/tmpdir.c: New file, from GNU gettext.
75942
75943 2006-07-24  Bruno Haible  <bruno@clisp.org>
75944
75945         * lib/clean-temp.h: New file, from GNU gettext.
75946         * lib/clean-temp.c: New file, from GNU gettext.
75947
75948 2006-07-23  Eric Blake  <ebb9@byu.net>
75949
75950         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75951         (Depends-on): Add binary-io.
75952
75953 2006-07-23  Eric Blake  <ebb9@byu.net>
75954
75955         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75956
75957 2006-07-23  Eric Blake  <ebb9@byu.net>
75958
75959         * lib/tmpfile-safer.c: New file.
75960         * lib/stdio-safer.h (fopen_safer): Add prototype.
75961         * lib/stdio--.h (tmpfile): Make safer.
75962
75963 2006-07-23  Bruno Haible  <bruno@clisp.org>
75964
75965         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75966         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75967         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75968         gl_linked_remove_at): Use it.
75969
75970 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75971         and Simon Josefsson <jas@extundo.com>
75972
75973         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75974
75975         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75976
75977 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75978
75979         * modules/close-stream: New file.
75980         * modules/closeout (Description): Make it clear that it exits
75981         with a diagnostic on error.
75982         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75983         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75984
75985 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         * m4/close-stream.m4: New file.
75988
75989 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75990
75991         * lib/close-stream.c, lib/close-stream.h: New files.
75992
75993 2006-07-22  Bruno Haible  <bruno@clisp.org>
75994
75995         Merge from GNU gettext 0.15.
75996
75997         2006-05-01  Bruno Haible  <bruno@clisp.org>
75998
75999                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76000
76001         2006-07-22  Bruno Haible  <bruno@clisp.org>
76002
76003                 * modules/javaversion: New file.
76004                 * MODULES.html.sh (Java): Add javaversion.
76005
76006         2006-03-12  Bruno Haible  <bruno@clisp.org>
76007
76008                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76009
76010         2005-12-04  Bruno Haible  <bruno@clisp.org>
76011
76012                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76013                 (untested).
76014
76015         2006-06-21  Bruno Haible  <bruno@clisp.org>
76016
76017                 Avoid warnings from recent versions of mcs.
76018                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76019                 -o, -L, -r any more. Use options documented since mcs-1.0
76020                 instead. Similarly for -g.
76021
76022         2005-12-04  Bruno Haible  <bruno@clisp.org>
76023
76024                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76025                 .resources, not .resource.
76026
76027         2005-07-09  Bruno Haible  <bruno@clisp.org>
76028
76029                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76030                 add a .dll suffix.
76031                 Reported by Mark Junker <mjscod@gmx.de>.
76032
76033         2006-07-22  Bruno Haible  <bruno@clisp.org>
76034
76035                 * modules/gettext: Upgrade to gettext-0.15.
76036                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76037                 m4/visibility.m4.
76038                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76039
76040 2006-07-22  Bruno Haible  <bruno@clisp.org>
76041
76042         Merge from GNU gettext 0.15.
76043
76044         2006-03-25  Bruno Haible  <bruno@clisp.org>
76045
76046                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76047
76048         2006-07-21  Bruno Haible  <bruno@clisp.org>
76049
76050                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76051                 "1.1".
76052
76053         2006-05-09  Bruno Haible  <bruno@clisp.org>
76054
76055                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76056                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76057                 for the conftestver execution.
76058
76059         2006-05-01  Bruno Haible  <bruno@clisp.org>
76060
76061                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76062                 optional target-version argument. Verify that the compiler
76063                 groks source of the specified source-version, or add -source
76064                 option as necessary. Verify that the compiler produces
76065                 bytecode in the specified target-version, or add -target and
76066                 -source options as necessary. Make the result of the test
76067                 available as variable CONF_JAVAC. Also log error output in
76068                 config.log.
76069
76070         2006-03-11  Bruno Haible  <bruno@clisp.org>
76071
76072                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76073
76074         2006-05-09  Bruno Haible  <bruno@clisp.org>
76075
76076                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76077                 CLASSPATH_SEPARATOR to a semicolon.
76078
76079         2006-03-12  Bruno Haible  <bruno@clisp.org>
76080
76081                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76082                 available as variable CONF_JAVA, for subsequent autoconf
76083                 tests. Also log error output in config.log.
76084
76085         2006-07-19  Bruno Haible  <bruno@clisp.org>
76086
76087                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76088                 that getline works on glibc2 systems. Needed to avoid trouble
76089                 in relocatable.c.
76090                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76091
76092         2005-12-04  Bruno Haible  <bruno@clisp.org>
76093
76094                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76095                 launcher (untested).
76096
76097         2005-12-04  Bruno Haible  <bruno@clisp.org>
76098
76099                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76100
76101         2006-07-22  Bruno Haible  <bruno@clisp.org>
76102
76103                 * gettext.m4: Update from GNU gettext-0.15.
76104                 * nls.m4: Likewise.
76105                 * po.m4: Likewise.
76106                 * inttypes-pri.m4: Likewise.
76107                 * inttypes-h.m4: Renamed from inttypes.m4.
76108                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76109
76110 2006-07-22  Bruno Haible  <bruno@clisp.org>
76111
76112         Merge from GNU gettext 0.15.
76113
76114         2005-07-05  Bruno Haible  <bruno@clisp.org>
76115
76116                 * printf-args.c (printf_fetchargs): Work around broken
76117                 definition of wint_t on mingw.
76118
76119         2005-02-12  Bruno Haible  <bruno@clisp.org>
76120
76121                 * xallocsa.h: Add extern "C" for C++.
76122
76123         2006-05-17  Bruno Haible  <bruno@clisp.org>
76124
76125                 Cygwin portability.
76126                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76127
76128         2006-04-30  Bruno Haible  <bruno@clisp.org>
76129
76130                 * progreloc.c: Include <mach-o/dyld.h> if available.
76131                 (find_executable): Use _NSGetExecutablePath when possible.
76132
76133         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76134
76135                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76136                 function.
76137
76138         2005-12-29  Bruno Haible  <bruno@clisp.org>
76139
76140                 * progreloc.c (set_program_name_and_installdir): Fix
76141                 compilation error.
76142
76143         2005-12-04  Bruno Haible  <bruno@clisp.org>
76144
76145                 Cygwin portability.
76146                 * progreloc.c: Include <windows.h> also on Cygwin.
76147                 (find_executable): Add support for Cygwin.
76148                 (set_program_name_and_installdir): Handle also platforms with
76149                 nonempty EXEEXT.
76150
76151         2006-07-11  Bruno Haible  <bruno@clisp.org>
76152
76153                 * javacomp.c: Fix a comment.
76154                 Reported by Jim Meyering.
76155
76156         2006-04-30  Bruno Haible  <bruno@clisp.org>
76157
76158                 * javacomp.h (compile_java_class): Add source_version,
76159                 target_version arguments.
76160                 * javacomp.c: Rewritten to choose only a compiler that
76161                 respects the specified source_version and target_version.
76162
76163         2006-06-27  Bruno Haible  <bruno@clisp.org>
76164
76165                 Assume correct S_ISDIR macro.
76166                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76167
76168         2006-07-22  Bruno Haible  <bruno@clisp.org>
76169
76170                 * javaversion.h: New file, from GNU gettext.
76171                 * javaversion.c: New file, from GNU gettext.
76172                 * javaversion.java: New file, from GNU gettext.
76173                 * javaversion.class: New file, from GNU gettext.
76174
76175         2006-05-17  Bruno Haible  <bruno@clisp.org>
76176
76177                 Cygwin portability.
76178                 * javaexec.c (execute_java_class): Test for jview program
76179                 also on Cygwin.
76180
76181         2006-04-09  Bruno Haible  <bruno@clisp.org>
76182
76183                 * fatal-signal.c: Don't include string.h.
76184                 (at_fatal_signal): Use a copying loop instead of memcpy.
76185
76186         2005-12-04  Bruno Haible  <bruno@clisp.org>
76187
76188                 * csharpexec.c: Add support for 'clix' launcher (untested).
76189                 (execute_csharp_using_sscli): New function.
76190                 (execute_csharp_program): Call it.
76191
76192         2006-06-21  Bruno Haible  <bruno@clisp.org>
76193
76194                 Avoid warnings from recent versions of mcs.
76195                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76196                 -o, -L, -r any more. Use options documented since mcs-1.0
76197                 instead. Similarly for -g.
76198
76199         2005-07-09  Bruno Haible  <bruno@clisp.org>
76200
76201                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76202                 add a .dll suffix.
76203                 Reported by Mark Junker <mjscod@gmx.de>.
76204
76205         2006-06-17  Bruno Haible  <bruno@clisp.org>
76206
76207                 * config.charset: Update for NetBSD 3.0.
76208
76209         2006-05-17  Bruno Haible  <bruno@clisp.org>
76210
76211                 Cygwin portability.
76212                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76213
76214         2006-05-16  Bruno Haible  <bruno@clisp.org>
76215
76216                 * localcharset.c [CYGWIN]: Include <windows.h>.
76217                 (get_charset_aliases): For Cygwin, return the same CPxxx
76218                 aliases list as under WIN32.
76219                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76220                 the environment variables. Fall back to GetACP().
76221
76222         2006-04-05  Bruno Haible  <bruno@clisp.org>
76223
76224                 * config.charset: Update Juan Manuel Guerrero's address.
76225
76226         2005-02-12  Bruno Haible  <bruno@clisp.org>
76227
76228                 * allocsa.h: Add extern "C" for C++.
76229
76230         2005-02-10  Bruno Haible  <bruno@clisp.org>
76231
76232                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76233                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76234
76235         2006-07-22  Bruno Haible  <bruno@clisp.org>
76236
76237                 * gettext.h: Update to GNU gettext-0.15.
76238
76239 2006-07-22  Bruno Haible  <bruno@clisp.org>
76240
76241         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76242         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76243         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76244
76245 2006-07-21  Eric Blake  <ebb9@byu.net>
76246
76247         * modules/stdlib-safer: New file.
76248         * MODULES.html.sh (File stream based Input/Output): Add
76249         stdlib-safer.
76250
76251 2006-07-21  Eric Blake  <ebb9@byu.net>
76252
76253         * lib/stdlib-safer.h: New file from coreutils, required by
76254         stdlib--.h.
76255
76256 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76259
76260 2006-07-20  Bruno Haible  <bruno@clisp.org>
76261
76262         * gnulib-tool: Recognize new option --assume-autoconf.
76263         (autoconf_minversion): New variable.
76264         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76265
76266 2006-07-20  Bruno Haible  <bruno@clisp.org>
76267
76268         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76269
76270 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76271
76272         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76273         Reindent and repaginate.
76274
76275 2006-07-19  Derek Price  <derek@ximbiot.com>
76276
76277         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76278         Correct grammar.
76279
76280 2006-07-17  Bruno Haible  <bruno@clisp.org>
76281
76282         * modules/list: New file.
76283         * modules/array-list: New file.
76284         * modules/carray-list, modules/carray-list-tests: New files.
76285         * modules/linked-list, modules/linked-list-tests: New files.
76286         * modules/avltree-list, modules/avltree-list-tests: New files.
76287         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76288         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76289         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76290         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76291         * modules/oset: New file.
76292         * modules/array-oset: New file.
76293         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76294         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76295         * tests/test-carray_list.c: New file.
76296         * tests/test-linked_list.c: New file.
76297         * tests/test-avltree_list.c: New file.
76298         * tests/test-rbtree_list.c: New file.
76299         * tests/test-linkedhash_list.c: New file.
76300         * tests/test-avltreehash_list.c: New file.
76301         * tests/test-rbtreehash_list.c: New file.
76302         * tests/test-avltree_oset.c: New file.
76303         * tests/test-rbtree_oset.c: New file.
76304         * MODULES.html.sh (Container data structures): New section.
76305
76306 2006-07-17  Bruno Haible  <bruno@clisp.org>
76307
76308         * m4/gl_list.m4: New file.
76309
76310 2006-07-17  Bruno Haible  <bruno@clisp.org>
76311
76312         * lib/gl_list.h: New file.
76313         * lib/gl_list.c: New file.
76314         * lib/gl_array_list.h: New file.
76315         * lib/gl_array_list.c: New file.
76316         * lib/gl_carray_list.h: New file.
76317         * lib/gl_carray_list.c: New file.
76318         * lib/gl_linked_list.h: New file.
76319         * lib/gl_linked_list.c: New file.
76320         * lib/gl_anylinked_list1.h: New file.
76321         * lib/gl_anylinked_list2.h: New file.
76322         * lib/gl_avltree_list.h: New file.
76323         * lib/gl_avltree_list.c: New file.
76324         * lib/gl_anyavltree_list1.h: New file.
76325         * lib/gl_anyavltree_list2.h: New file.
76326         * lib/gl_rbtree_list.h: New file.
76327         * lib/gl_rbtree_list.c: New file.
76328         * lib/gl_anyrbtree_list1.h: New file.
76329         * lib/gl_anyrbtree_list2.h: New file.
76330         * lib/gl_anytree_list1.h: New file.
76331         * lib/gl_anytree_list2.h: New file.
76332         * lib/gl_linkedhash_list.h: New file.
76333         * lib/gl_linkedhash_list.c: New file.
76334         * lib/gl_anyhash_list1.h: New file.
76335         * lib/gl_anyhash_list2.h: New file.
76336         * lib/gl_avltreehash_list.h: New file.
76337         * lib/gl_avltreehash_list.c: New file.
76338         * lib/gl_rbtreehash_list.h: New file.
76339         * lib/gl_rbtreehash_list.c: New file.
76340         * lib/gl_anytreehash_list1.h: New file.
76341         * lib/gl_anytreehash_list2.h: New file.
76342
76343         * lib/gl_oset.h: New file.
76344         * lib/gl_oset.c: New file.
76345         * lib/gl_array_oset.h: New file.
76346         * lib/gl_array_oset.c: New file.
76347         * lib/gl_avltree_oset.h: New file.
76348         * lib/gl_avltree_oset.c: New file.
76349         * lib/gl_rbtree_oset.h: New file.
76350         * lib/gl_rbtree_oset.c: New file.
76351         * lib/gl_anytree_oset.h: New file.
76352
76353 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76354
76355         * m4/mkancesdirs.m4: New file.
76356         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76357         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76358         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76359         it.
76360
76361 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76364         * lib/mkancesdirs.h: New files.
76365         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76366         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76367         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76368         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76369         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76370         callers changed.  Revamp internals significantly, by not
76371         attempting to create directories that are temporarily more
76372         permissive than the final results.  Do not attempt to use
76373         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76374         This removes some race conditions, fixes some bugs, and simplifies
76375         things.  Use new dirchownmod function to do owner and mode changes.
76376         * lib/mkdir-p.h: Likewise.
76377         * lib/modechange.c (octal_to_mode): New function.
76378         (struct mode_change): New member mentioned.
76379         (make_node_op_equals): New arg mentioned.  All callers changed.
76380         (mode_compile): Keep track of which mode bits the user has explicitly
76381         mentioned.
76382         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76383         New arg PMODE_BITS, to keep track of which mode bits the user
76384         mentioned; it treats S_ISUID and S_ISGID speciall.
76385         All callers changed.
76386         * lib/modechange.h: Likewise.
76387
76388 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * MODULES.html.sh: Add mkancestors.
76391         * modules/mkancesdirs: New module.
76392         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76393         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76394         The chdir-safer and afs files are now orphans; I'll remove them
76395         unless someone speaks up.
76396         Add lib/dirchownmod.c, lib/dirchownmod.h.
76397         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76398         Add lchown, mkancesdirs.
76399         (Maintainer): Add self.
76400
76401 2006-07-15  Karl Berry  <karl@gnu.org>
76402
76403         * gnulib-tool: help message wording/arrangement.
76404
76405 2006-07-14  Simon Josefsson  <jas@extundo.com>
76406
76407         * doc/gnulib.texi (Libtool and Windows): New section.
76408
76409 2006-07-12  Simon Josefsson  <jas@extundo.com>
76410
76411         * modules/gendocs (License): Fix license, approved by Karl.
76412
76413 2006-07-12  Eric Blake  <ebb9@byu.net>
76414
76415         * MODULES.html.sh: Add gendocs.
76416
76417 2006-07-11  Eric Blake  <ebb9@byu.net>
76418
76419         * modules/fdl: New module, to install doc/fdl.texi.
76420         * MODULES.html.sh: Add new section for documentation modules.
76421         * gnulib-tool: Avoid space-tab.
76422         (--doc-base): New option, to manage files from doc.
76423
76424 2006-07-11  Eric Blake  <ebb9@byu.net>
76425
76426         * m4/absolute-header.m4: Fix comments to match recent change.
76427
76428 2006-07-11  Eric Blake  <ebb9@byu.net>
76429
76430         * gnulib-tool: List --doc-base before --tests-base.
76431
76432 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76433
76434         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76435
76436 2006-07-11  Bruno Haible  <bruno@clisp.org>
76437
76438         * README: Mention where to put documentation.
76439
76440 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76441
76442         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76443
76444 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76447         to stdint.m4.
76448
76449 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76450
76451         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76452         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76453         "no/such/file/stdint.h" when there is no such file, so that
76454         the resulting C code can be parsed by dodgy compilers.
76455         Problems reported by Bob Proulx.
76456
76457 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76458
76459         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76460         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76461         macros into the GNU _D_EXACT_NAMLEN.
76462         * lib/savedir.c:  Likewise.
76463         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76464
76465 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76466         and Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76469         * m4/savedir.m4:
76470         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76471         macros into the GNU _D_EXACT_NAMLEN.
76472
76473 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76474
76475         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76476         around the absolute name, to work around a problem with the HP-UX
76477         11.23 native C compiler, reported by Bob Proulx.
76478
76479 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76480
76481         * doc/maintain.texi, make-stds.texi: Sync from
76482         <http://savannah.gnu.org/projects/gnustandards>.
76483
76484 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76485
76486         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76487
76488 2006-07-09  Jim Meyering  <jim@meyering.net>
76489
76490         * m4/glob.m4: Remove a doubled word in a comment.
76491
76492 2006-07-09  Jim Meyering  <jim@meyering.net>
76493
76494         * lib/argp-pv.c: Remove a doubled word in a comment.
76495         * lib/check-version.c (check_version): Likewise.
76496         * lib/javacomp.c (compile_java_class): Likewise.
76497
76498 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76499
76500         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76501         for the benefit of people using Autoconf 2.60.  If you want to
76502         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76503         (or m4/onceonly.m4, if pre-2.57) manually.
76504
76505 2006-07-08  Jim Meyering  <jim@meyering.net>
76506
76507         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76508         comment.
76509         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76510         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76511         comment.
76512
76513 2006-07-08  Jim Meyering  <jim@meyering.net>
76514
76515         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76516
76517 2006-07-07  Simon Josefsson  <jas@extundo.com>
76518
76519         * tests/test-crc.c: Change expected crc value, the test vector
76520         were probably computed using the old broken crc.c?
76521
76522 2006-07-06  Simon Josefsson  <jas@extundo.com>
76523
76524         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76525         now the canonical place for the M4 file).
76526
76527         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76528         from the sys_socket dependency now.
76529
76530         * modules/inet_pton (Files): Ditto.
76531
76532         * modules/inet_ntop (Files): Ditto.
76533
76534 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76535
76536         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76537         not gl_PREREQ_GETUSERSHELL.
76538
76539 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76540
76541         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76542         with only one argument, for Autoconf 2.60.
76543         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76544         expand to nothing, so add a shell command to avoid syntax error.
76545         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76546
76547 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76548
76549         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76550
76551 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76552
76553         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76554         no longer needed.  Check for isblank decl.
76555         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76556         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76557         of existence.
76558
76559 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         * lib/getloadavg.c: Use __VMS, not VMS.
76562         * lib/getopt.c: Likewise.
76563         * lib/getpagesize.h: Likewise.
76564         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76565         and probably does not work.
76566
76567 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * lib/.cppi-disable: Add wcwidth.
76570         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76571         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76572         (ISGRAPH): Remove.  All uses changed to isgraph.
76573         (FOLD) [!defined _LIBC]: Remove special case.
76574         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76575         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76576         HAVE_ISBLANK.
76577         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76578         case.
76579
76580 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76581
76582         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76583         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76584         brackets.  Other minor changes to suppress some compiler
76585         warnings.
76586
76587 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76588         and Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76591         of invoking obsolescent AC_HEADER_DIRENT macro.
76592         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76593         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76594         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76596         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76597         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76598         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76599         * m4/readdir.m4: Remove; no longer needed.
76600
76601 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76602         and Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76605         Don't worry about this obsolete case any more.
76606         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76607         directories.
76608         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76609         worry about this obsolete case any more.
76610         * lib/fts.c: Likewise.
76611         * lib/getcwd.c: Likewise.
76612         * lib/glob.h: Likewise.
76613         * lib/savedir.c: Likewise.
76614
76615 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76616
76617         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76618         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76619         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76620         needed.
76621         All uses removed.
76622         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76623         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76624         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76625         needed.
76626         * m4/getdate.m4 (gl_GETDATE): Likewise.
76627         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76628         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76629         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76630         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76631         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76632         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76633         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76634         needed.
76635
76636 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * lib/memcasecmp.c: Include <limits.h>.
76639         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76640         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76641         Don't assume isdigit succeeds only on '0' through '9'.
76642
76643 2006-07-05  Eric Blake  <ebb9@byu.net>
76644
76645         * modules/getaddrinfo (Depends-on): Add snprintf.
76646
76647 2006-07-05  Eric Blake  <ebb9@byu.net>
76648
76649         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76650         to avoid 'header present but could not be compiled' on cygwin.
76651
76652 2006-07-05  Eric Blake  <ebb9@byu.net>
76653
76654         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76655         missing from netdb.h.
76656         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76657
76658 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76659
76660         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76661         no longer needed.
76662         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76663         * m4/getdate.m4 (gl_GETDATE): Likewise.
76664         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76665         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76666         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76667         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76668         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76669
76670 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76671
76672         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76673         All uses of is_space replaced by isspace.
76674         * lib/exit.h: Don't talk about STDC_HEADERS.
76675         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76676         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76677         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76678         replaced by isprint etc.
76679         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76680         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76681         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76682         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76683         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76684         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76685
76686 2006-07-05  Bruno Haible  <bruno@clisp.org>
76687
76688         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76689         the function exists, before testing against AIX.
76690         Reported by Martin Lambers <marlam@marlam.de>.
76691
76692 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76693
76694         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76695         From Mark D. Baushke.
76696
76697 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76698
76699         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76700         to the absolute name, not just one, to bypass Sun C 5.8's
76701         "warning: #include of /usr/include/... may be non-portable".
76702
76703 2006-07-04  Eric Blake  <ebb9@byu.net>
76704
76705         * modules/dirname-tests: New test module.
76706         * tests/test-dirname.c: New file, replacing dirname.c
76707         TEST_DIRNAME section that was recently deleted.
76708
76709 2006-07-04  Bruno Haible  <bruno@clisp.org>
76710
76711         Assume ANSI C header files and <ctype.h> functions.
76712         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76713         (mbsnwidth): Use isprint, iscntrl instead.
76714
76715 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         Merge from coreutils.
76718         * MODULES.html.sh: Add xstrtold.
76719         * modules/xstrtold: New file.
76720         * modules/cycle-check (Files): Add lib/same-inode.h.
76721         * modules/dirname (Files): Add m4/double-slash-root.m4.
76722         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76723         * modules/mkdir-p (Files): Add lib/same-inode.h.
76724         * modules/same (Files): Add lib/same-inode.h.
76725
76726 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76729         This is to keep the terminology clean; POSIX talks about
76730         "absolute pathnames", not "full pathnames", but the GNU
76731         Coding Standards say to use "path" for something else;
76732         so use "absolute" to keep both sides happy.
76733         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76734         Set gl_absolute_header, not gl_full_header_path.
76735         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76736         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76737         All uses changed.
76738
76739         Merge from coreutils.
76740
76741         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76744         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76745         want to require the building of c-strtod.o.
76746         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76747         needs -lm directly.
76748         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76749
76750         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76753         --as-needed option if available.  Problem reported by Albert Chin in
76754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76755         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76756         cc merely issues a bunch of annoying warnings for --as-needed
76757         (this problem was reported by Bob Proulx).  Also, try linking with
76758         -lm to detect a bug in binutils 2.16 (this problem was reported
76759         by Ralf Wildenhues).
76760
76761         2006-06-18  Jim Meyering  <jim@meyering.net>
76762
76763         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76764         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76765         macro.
76766         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76767         also check for glibc-2.4's abort-inducing bug.
76768
76769         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76770         Low-probability clean-up should be to use rmdir to get rid of
76771         the just-created directory, not unlink.
76772
76773         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76774         configure fail, and request a bug report to inform us about it.
76775         Add a comment that, barring reports to the contrary, in 2007 we'll
76776         assume ftruncate is universally available.
76777
76778         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76781
76782         2006-03-12  Jim Meyering  <jim@meyering.net>
76783
76784         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76785         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76786         * m4/same.m4 (gl_SAME): Likewise.
76787         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76788
76789         2006-03-11  Eric Blake  <ebb9@byu.net>
76790
76791         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76792         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76793         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76794         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76795
76796 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76799         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76800         reported by Mark D. Baushke, one in
76801         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76802
76803         Merge from coreutils.
76804
76805         * lib/.cppi-disable: Add stdint_.h.
76806         * lib/.cvsignore: Add stdint.h.
76807
76808         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76811         both double and long double versions.
76812         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76813         * lib/xstrtold.c: New file.
76814         * lib/xstrtod.h (xstrtold): New decl.
76815
76816         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * lib/filemode.c (setst): Remove.
76819         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76820         (arguably) clearer, and the generated code is a bit smaller on my
76821         Debian GNU/Linux stable x86 host.
76822
76823         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76826         Assume that filemode.h includes sys/types.h and sys/stat.h.
76827         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76828         (ftypelet): Reorder to put common cases first, for efficiency.
76829         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76830         to do 'M'.
76831         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76832         of 10, for compatibility with FreeBSD.  All callers changed.
76833         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76834         types that can't be deduced solely from st_mode.  First arg is now a
76835         const pointer.
76836         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76837         (strmode): Renamed from mode_string.
76838         (filemodestring): New decl.
76839         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76840         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76841         needed.
76842         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76843
76844         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76845
76846         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76847         fsusage.h now does that.  Include fsusage.h first, to test interface.
76848         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76849         at most one method (the old code could have generated decls that
76850         didn't conform to C89, not that this was ever exercised).
76851         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76852
76853         2006-03-19  Jim Meyering  <jim@meyering.net>
76854
76855         Work even in a chroot where d_ino values for entries in "/"
76856         don't match the stat.st_ino values for the same names.
76857         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76858         number, iterate through all entries again, using lstat instead.
76859         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76860         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76861
76862         * lib/getcwd.c (__getcwd): Clarify a comment.
76863         Use memcpy in place of a call to strcpy.
76864
76865         2006-03-12  Jim Meyering  <jim@meyering.net>
76866
76867         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76868         matches that of the current directory (which we're about to chdir ".."
76869         out of), then save the dev-ino of the parent, instead.
76870
76871         * lib/same-inode.h (SAME_INODE): New file/macro.
76872         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76873         Include "same-inode.h", instead.
76874         * lib/same.c: Likewise.
76875         * lib/cycle-check.h: Include "same-inode.h".
76876         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76877         * lib/cycle-check.c (SAME_INODE): Remove definition.
76878         * lib/root-dev-ino.h: Include "same-inode.h".
76879
76880         2006-03-11  Eric Blake  <ebb9@byu.net>
76881
76882         * lib/same.c (same_name): s/base_name/last_component/
76883         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76884         * lib/filenamecat.c (file_name_concat): Likewise.
76885
76886         2006-03-11  Eric Blake  <ebb9@byu.net>,
76887                     Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76890         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76891         drive prefix.
76892         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76893         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76894         (last_component): New method.
76895         * lib/dirname.c (dir_len): Determine when drive letters need a
76896         subsequent slash.  Preserve // when it is special.
76897         (dir_name): Don't append dot when drive letter is absolute.
76898         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76899         * lib/basename.c (base_name): New semantics - malloc the result.
76900         Preserve // when it is special.  Preserve relative files that look
76901         like drive letters.
76902         (base_len): Preserve // when it is special.
76903         (last_component): New method, similar to old base_name semantics.
76904         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76905         base_name.  Strip redundant slashes from ///.
76906
76907 2006-07-03  Jim Meyering  <jim@meyering.net>
76908
76909         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76910         macro is used before the first cycle_check call.
76911
76912 2006-07-03  Eric Blake  <ebb9@byu.net>
76913
76914         * modules/dirname (Depends-on): Add xstrndup.
76915
76916 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76919         test cases, so that config.log is a bit easier to follow.
76920
76921 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76922
76923         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76924         both are 64 bits, since this seems to be the tradition, and this
76925         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76926         we ever run into a host that prefers long long to long in this
76927         case, we'll need another configure-time test.  Problem reported by
76928         Jim Meyering.
76929
76930 2006-07-02  Eric Blake  <ebb9@byu.net>
76931
76932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76933
76934 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         * modules/inttypes (Depends-on): No longer depends on stdint.
76937         * modules/stdint (Description): Say more about assumptions.
76938         Say that the fast types might differ.  Say macros are used.
76939         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76940         (Makefile.am): Revise list of substituted symbols to match
76941         new stdint.m4.
76942         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76943         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76944         * tests/test-stdint.c (verify_same_types)
76945         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76946         the code conforms to C99/C89.
76947         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76948         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76949
76950 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76953         but fix a bug, by requiring at least 64 bits.
76954         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76955         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76956         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76957         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76958
76959         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76960         changes.  Make 2.59 a prerequisite.  Check and substitute for
76961         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76962         inttypes.h.  Do not use special include files; just use the
76963         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76964         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76965         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76966         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76967         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76968         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76969         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76970         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76971         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76972         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76973         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76974         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76975         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76976         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76977         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76978         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76979         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76980         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76981         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76982         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76983         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76984         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76985         not check for things that C99 does not require, e.g., int8_t.  If
76986         a test isn't needed unless <stdint.h> isn't working, and is
76987         unlikely to be needed for any other reason, then don't do it
76988         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76989         size_t, since we assume C89 freestanding at least.  Do not check
76990         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76991         the right thing even if the types are not defined.  Instead use:
76992         (gl_STDINT_TYPE_PROPERTIES): New macro.
76993         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76994         testing whether <sys/types.h> clashes, as Autoconf does this for
76995         us now.  All uses removed.
76996         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76997         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76998         (gl_CHECK_TYPE_SAME):
76999         Remove; no longer needed.
77000         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77001         exists, since we'll return 0 anyway in that case.
77002         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77003
77004 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77005
77006         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77007         possible collision with system files.
77008         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77009         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77010         WCHAR_MIN and WCHAR_MAX in this case.
77011         (<stddef.h>): Do not include; no longer needed.
77012         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77013         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77014         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77015         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77016         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77017         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77018         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77019         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77020         !defined(__c99))]: Include in this case too, since it's harmless
77021         now.
77022         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77023         dangerous to do so.
77024         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77025         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77026         (_STDINT_MIN, _STDINT_MAX): New macros.
77027         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77028         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77029         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77030         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77031         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77032         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77033         macros, not typedefs; this simplifies things quite a bit.
77034         Use long int for all types narrower than int64_t.
77035         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77036         Define in terms of long long int or int64_t or long int,
77037         not int64_t or int32_t.  This saves some compile-time testing.
77038         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77039         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77040         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77041         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77042         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77043         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77044         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77045         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77046         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77047         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77048         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77049         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77050         undef any previous version and define our own version, for
77051         simplicity and consistency with the new macros for types.
77052         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77053         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77054         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77055         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77056         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77057         @WINT_T_SUFFIX@ to keep things simple here.
77058         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77059         Simplify by assuming typical 8/16/32/64 host, since we're
77060         already doing that elsewhere anyway.
77061         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77062         and assume long long int is 64 bits if available.  This
77063         speeds up 'configure'.
77064
77065 2006-07-01  Eric Blake  <ebb9@byu.net>
77066
77067         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77068         Reported by Andreas Buening.
77069
77070 2006-07-01  Eric Blake  <ebb9@byu.net>
77071
77072         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77073
77074 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77075
77076         * lib/getaddrinfo.c: fixed typo
77077
77078 2006-06-29  Jim Meyering  <jim@meyering.net>
77079
77080         * modules/strftime (Maintainer): Add my name, since with the
77081         FPRINTFTIME changes strftime.c has forked from glibc.
77082
77083 2006-06-29  Eric Blake  <ebb9@byu.net>
77084
77085         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77086
77087 2006-06-29  Eric Blake  <ebb9@byu.net>
77088
77089         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77090
77091 2006-06-29  Eric Blake  <ebb9@byu.net>
77092
77093         * lib/stat_.h: New file.
77094
77095 2006-06-29  Eric Blake  <ebb9@byu.net>
77096
77097         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77098         unused static function.
77099
77100 2006-06-29  Eric Blake  <ebb9@byu.net>
77101
77102         * doc/functions.texi (Function Portability): Document missing lstat
77103         on mingw.
77104
77105 2006-06-29  Eric Blake  <ebb9@byu.net>
77106
77107         * MODULES.html.sh: Add sys_stat.
77108         * modules/sys_stat: New module.
77109         * modules/mkstemp (Depends-on): Add sys_stat.
77110
77111 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77112
77113         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77114
77115 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77116
77117         * m4/c-bs-a.m4: Removed.
77118
77119 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77120
77121         * lib/strftime.c: Assume strftime() exists.
77122
77123 2006-06-29  Derek Price  <derek@ximbiot.com>
77124
77125         * modules/c-bs-a: Removed - \a is C89.
77126         * MODULES.html.sh: Remove c-bs-a.
77127
77128 2006-06-29  Bruno Haible  <bruno@clisp.org>
77129
77130         * modules/wcwidth (License): Change to LGPL.
77131
77132 2006-06-28  Simon Josefsson  <jas@extundo.com>
77133
77134         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77135         on _WIN32.
77136
77137         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77138         getnameinfo.
77139
77140 2006-06-28  Simon Josefsson  <jas@extundo.com>
77141
77142         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77143
77144 2006-06-28  Simon Josefsson  <jas@extundo.com>
77145
77146         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77147         functions there.  It will succeed on Windows XP, but on Windows
77148         2000 and (presumably) earlier, it will fail, and use the internal
77149         re-implementation.
77150         (use_win32_p): New function.
77151         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77152         Support AI_NUMERICSERV to disable getservbyname.
77153         (getnameinfo): New function, only supports
77154         NI_NUMERICHOST|NI_NUMERICSERV for now.
77155
77156         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77157         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77158         getnameinfo.
77159
77160 2006-06-28  Eric Blake  <ebb9@byu.net>
77161
77162         * modules/wcwidth: New file.
77163         * modules/mbchar (Depends-on): Add wcwidth.
77164         * modules/mbswidth (Depends-on): Add wcwidth.
77165         * MODULES.html.sh: Add wcwidth.
77166
77167 2006-06-28  Eric Blake  <ebb9@byu.net>
77168
77169         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77171
77172 2006-06-28  Eric Blake  <ebb9@byu.net>
77173
77174         * lib/xvasprintf.h: Fix comments.
77175
77176 2006-06-28  Eric Blake  <ebb9@byu.net>
77177
77178         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77179         * lib/mbswidth.c (wcwidth): Move from here...
77180         * lib/wcwidth.h: ...to this new file.
77181
77182 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77183
77184         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77185
77186         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77187         it's obsolete.
77188         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77189
77190 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77191
77192         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77193         Autoconf 2.60 says this stuff was obsolete.
77194
77195 2006-06-28  Bruno Haible  <bruno@clisp.org>
77196
77197         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77198
77199 2006-06-28  Bruno Haible  <bruno@clisp.org>
77200
77201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77202         gt_TYPE_WCHAR_T.
77203
77204 2006-06-28  Bruno Haible  <bruno@clisp.org>
77205
77206         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77207         declaration for wcwidth.
77208         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77209
77210 2006-06-28  Bruno Haible  <bruno@clisp.org>
77211
77212         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77213         (mkdir): Define using _mkdir.
77214
77215 2006-06-28  Bruno Haible  <bruno@clisp.org>
77216
77217         * lib/getaddrinfo.h: Fix POSIX URL.
77218         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77219         _WIN32.
77220         (use_win32_p): Make static.
77221         (getaddrinfo): Reject service name if it is empty or does not consist
77222         solely of decimal digits, or if its value is > 65535.
77223         (getnameinfo): Remove useless casts.
77224
77225 2006-06-27  Simon Josefsson  <jas@extundo.com>
77226
77227         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77228         Eggert and Martin Lambers.
77229
77230 2006-06-27  Simon Josefsson  <jas@extundo.com>
77231
77232         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77233         Eggert and Martin Lambers.
77234
77235 2006-06-27  Bruno Haible  <bruno@clisp.org>
77236
77237         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77238         result to 0, not to empty.
77239         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77240
77241 2006-06-27  Bruno Haible  <bruno@clisp.org>
77242
77243         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77244
77245 2006-06-26  Simon Josefsson  <jas@extundo.com>
77246
77247         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77248         present.
77249
77250 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77253         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77255
77256 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77257
77258         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77259
77260 2006-06-26  Bruno Haible  <bruno@clisp.org>
77261
77262         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77263
77264 2006-06-26  Bruno Haible  <bruno@clisp.org>
77265
77266         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77267
77268 2006-06-26  Bruno Haible  <bruno@clisp.org>
77269
77270         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77271         SGI C compiler in pre-C99 mode.
77272         Suggested by Mark D. Baushke and Larry Jones.
77273
77274 2006-06-26  Bruno Haible  <bruno@clisp.org>
77275
77276         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77277         WCHAR_MAX.
77278         Reported by Mark D. Baushke and Larry Jones.
77279
77280 2006-06-26  Bruno Haible  <bruno@clisp.org>
77281
77282         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77283         in pre-C99 mode.
77284         Suggested by Mark D. Baushke and Larry Jones.
77285
77286 2006-06-23  Simon Josefsson  <jas@extundo.com>
77287             Bruno Haible  <bruno@clisp.org>
77288
77289         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77290         Emit mostlyclean-local rule.
77291         (func_emit_tests_Makefile_am): Likewise.
77292         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77293
77294 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77295
77296         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77297
77298 2006-06-23  Bruno Haible  <bruno@clisp.org>
77299
77300         * tests/test-stdint.c: Update to match ISO C 99 Technical
77301         Corrigendum 1.
77302
77303 2006-06-23  Bruno Haible  <bruno@clisp.org>
77304
77305         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77306
77307 2006-06-23  Bruno Haible  <bruno@clisp.org>
77308
77309         * lib/stdint_.h: Treat IRIX like OpenBSD.
77310
77311 2006-06-23  Bruno Haible  <bruno@clisp.org>
77312
77313         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77314         ISO C 99 Technical Corrigendum 1.
77315
77316 2006-06-22  Simon Josefsson  <jas@extundo.com>
77317
77318         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77319         MinGW.
77320
77321 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77322
77323         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77324         needed.  Some compiler complained about some of them.  Problem reported
77325         by Larry Jones in
77326         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77327
77328 2006-06-21  Simon Josefsson  <jas@extundo.com>
77329
77330         * tests/test-getaddrinfo.c: New file.
77331
77332         * modules/getaddrinfo-tests: New file.
77333
77334         * MODULES.html.sh: Add inet_pton.
77335
77336         * modules/inet_pton: New file.
77337
77338 2006-06-21  Simon Josefsson  <jas@extundo.com>
77339
77340         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77341         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77342         of using the (limited) gnulib implementation on Windows XP.
77343
77344         * m4/inet_pton.m4: New file.
77345
77346 2006-06-21  Simon Josefsson  <jas@extundo.com>
77347
77348         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77349         variable.
77350
77351         * lib/socket_.h: Don't define WINVER.
77352
77353         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77354         slightly modified to work in gnulib.
77355
77356 2006-06-21  Simon Josefsson  <jas@extundo.com>
77357
77358         * doc/gnulib.texi (Windows sockets): Add.
77359
77360 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * lib/read-file.c (fread_file): Start with buffer allocation of
77363         0 bytes rather than 1 byte; this simplifies the code.
77364         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77365         code to free buffer and save/restore errno.
77366         (internal_read_file): Remove unused local.
77367
77368 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77369
77370         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77371         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77372         Problem reported by Denis Excoffier in
77373         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77374
77375 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77376
77377         * modules/sys_socket, modules/socklen: Include sys/types since
77378         FreeBSD 4.x's sys/socket.h needs it.
77379
77380 2006-06-19  Simon Josefsson  <jas@extundo.com>
77381
77382         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77383
77384 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77385
77386         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77387
77388 2006-06-19  Bruno Haible  <bruno@clisp.org>
77389
77390         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77391         and FULL_PATH_INTTYPES_H in angle brackets.
77392         Reported by Mark D. Baushke <mdb@gnu.org>.
77393
77394 2006-06-17  Eric Blake  <ebb9@byu.net>
77395
77396         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77397         errno.
77398
77399 2006-06-17  Bruno Haible  <bruno@clisp.org>
77400
77401         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77402         <sys/inttypes.h>.
77403
77404 2006-06-17  Bruno Haible  <bruno@clisp.org>
77405
77406         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77407         whether errno is declared. Assume <errno.h> declares errno.
77408
77409 2006-06-17  Bruno Haible  <bruno@clisp.org>
77410
77411         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77412
77413 2006-06-17  Bruno Haible  <bruno@clisp.org>
77414
77415         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77416         problem on Solaris 2.5.1.
77417
77418 2006-06-16  Eric Blake  <ebb9@byu.net>
77419
77420         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77421         * lib/unicodeio.c [!defined errno]: Likewise.
77422         * lib/strtol.c [!defined errno]: Likewise.
77423         * lib/strtod.c [!defined errno]: Likewise.
77424
77425 2006-06-15  Eric Blake  <ebb9@byu.net>
77426
77427         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77428
77429 2006-06-15  Eric Blake  <ebb9@byu.net>
77430
77431         * config/srclist.txt (ssize_t.m4): Lose sync.
77432
77433 2006-06-15  Bruno Haible  <bruno@clisp.org>
77434
77435         * modules/stdint (Files): Include m4/full-header-path.m4,
77436         m4/size_max.m4, m4/wchar_t.m4.
77437         (Makefile.am): Many more substitutions.
77438         * modules/stdint-tests: New file.
77439         * tests/test-stdint.c: New file.
77440
77441 2006-06-15  Bruno Haible  <bruno@clisp.org>
77442
77443         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77444         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77445         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77446         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77447         gl_CHECK_TYPE_SAME): New macros.
77448
77449 2006-06-15  Bruno Haible  <bruno@clisp.org>
77450
77451         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77452
77453 2006-06-15  Bruno Haible  <bruno@clisp.org>
77454
77455         * lib/stdint_.h: Rewritten to be fully auto-configured.
77456         Fixes bug on HP-UX/IA64.
77457
77458 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77459
77460         * lib/getdate.y (__attribute__): Don't define if already defined.
77461         Problem reported by Larry Jones.
77462         * lib/utimens.c (__attribute__): Likewise.
77463
77464 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77467         reported by Andreas Schwab.
77468
77469 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77470             Bruno Haible  <bruno@clisp.org>
77471
77472         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77473         check for the declaration of strnlen and a run test that exposes the
77474         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77475         rpl_strndup.
77476
77477 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77478             Bruno Haible  <bruno@clisp.org>
77479
77480         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77481
77482 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77483
77484         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77485         compile test, for Tru64 4.0D.
77486
77487 2006-05-28  Karl Berry  <karl@gnu.org>
77488
77489         * config/srclist.txt (printf-args.c): lose sync.
77490
77491 2006-05-26  Martin Lambers  <marlam@marlam.de>
77492
77493         * lib/getpass.c: Updates the test for the native W32 API, and adds
77494         missing includes, thus fixing compilation warnings.
77495
77496 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77497
77498         * lib/exclude.c (exclude_fnmatch): New function.
77499         (excluded_file_name): Call exclude_fnmatch.
77500         * lib/exclude.h (excluded_file_name): New prototype
77501
77502 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77503
77504         * lib/tempname.c (small_open, large_open): New macros.
77505         (__open, __open64) [!_LIBC]: Remove.
77506         (__gen_tempname): Use small_open and large_open instead of __open
77507         and __open64.  This fixes a portability bug on HP-UX 11.11i
77508         reported by Simon Wing-Tang in
77509         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77510
77511 2006-05-24  Bruno Haible  <bruno@clisp.org>
77512
77513         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77514         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77515         Reported by Thorsten Maerz <torte@netztorte.de> via
77516         Aaron Stone <aaron@serendipity.cx>.
77517
77518 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77519
77520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77521         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77522         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77523         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77524         not really conditional on the cache.
77525         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77526
77527 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77530         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77531         (my_usleep): Don't mishandle maximum value.
77532
77533 2006-05-19  Jim Meyering  <jim@meyering.net>
77534
77535         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77536
77537 2006-05-17  Bruno Haible  <bruno@clisp.org>
77538
77539         Cygwin portability.
77540         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77541
77542 2006-05-17  Bruno Haible  <bruno@clisp.org>
77543
77544         * lib/stdint_.h: Fix recognition of Cygwin.
77545
77546 2006-05-15  Bruno Haible  <bruno@clisp.org>
77547
77548         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77549         on libtool patch by Ralf Wildenhues.
77550
77551 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77552
77553         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77554         test for C99 conformance; (bool) 0.5 is an integer constant
77555         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77556         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77557
77558 2006-05-11  Simon Josefsson  <jas@extundo.com>
77559
77560         * m4/xvasprintf.m4: Fix obvious typo.
77561
77562 2006-05-11  Jim Meyering  <jim@meyering.net>
77563
77564         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77565         James Lemley.
77566
77567 2006-05-10  Simon Josefsson  <jas@extundo.com>
77568
77569         * lib/md4.c: Typo fix, update copyright years.
77570         (K1, K2): Don't use L because it turn computations into 64-bit on
77571         64-bit platforms.
77572
77573 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77576         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77577         unwanted sign propagation, e.g., on hosts with 64-bit int.
77578         There still are some problems with reeelly weird theoretical hosts
77579         (e.g., 33-bit int) but it's not worth worrying about now.
77580         * lib/sha1.c (rol): Likewise.
77581         (K1, K2, K3, K4): Remove unnecessary L suffix.
77582
77583 2006-05-10  Bruno Haible  <bruno@clisp.org>
77584
77585         * lib/des.c: Cast to avoid warnings.
77586
77587 2006-05-09  Bruno Haible  <bruno@clisp.org>
77588
77589         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77590         (Depends-on): Depend also on xsize, stdarg.
77591         (configure.ac): Add gl_XVASPRINTF.
77592
77593 2006-05-09  Bruno Haible  <bruno@clisp.org>
77594
77595         * m4/xvasprintf.m4: New file.
77596
77597 2006-05-09  Bruno Haible  <bruno@clisp.org>
77598
77599         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77600         (EOVERFLOW): Define fallback value.
77601         (xstrcat): New function.
77602         (xvasprintf): Recognize the special case of a string concatenation.
77603
77604 2006-05-08  Eric Blake  <ebb9@byu.net>
77605
77606         * gnulib-tool (func_version): Base copyright year on CVS date.
77607         (func_emit_copyright_notice): New function.
77608         (func_emit_lib_Makefile_am): Use it.
77609         (func_emit_tests_Makefile_am): Likewise.
77610         (func_import): Likewise.
77611
77612 2006-05-08  Bruno Haible  <bruno@clisp.org>
77613
77614         * modules/stdarg: New file.
77615         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77616
77617 2006-05-08  Bruno Haible  <bruno@clisp.org>
77618
77619         * m4/stdarg.m4: New file, from GNU gettext.
77620
77621 2006-05-08  Bruno Haible  <bruno@clisp.org>
77622
77623         * config/srclist.txt (build-aux/config.rpath): different from latest
77624         release.
77625
77626 2006-05-08  Bruno Haible  <bruno@clisp.org>
77627
77628         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77629
77630 2006-05-05  Jim Meyering  <jim@meyering.net>
77631
77632         * m4/warning.m4: New file, derived from bison's file by the same name.
77633
77634 2006-05-03  Bruno Haible  <bruno@clisp.org>
77635
77636         * lib/stdint_.h: Shorter URL.
77637         * lib/inttypes.h: Likewise.
77638
77639 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77640
77641         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77642
77643 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77644
77645         * lib/verify.h: Document the internals better.  Most of this change
77646         was written by Bruno Haible.
77647
77648 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77649
77650         * doc/verify.texi: New file, partly based on a proposal by
77651         Bruno Haible.
77652
77653 2006-05-02  Bruno Haible  <bruno@clisp.org>
77654
77655         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77656         test from here...
77657         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77658
77659 2006-04-29  Bruno Haible  <bruno@clisp.org>
77660
77661         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77662         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77663
77664 2006-04-29  Bruno Haible  <bruno@clisp.org>
77665
77666         * gnulib-tool: Make --update option actually work.
77667
77668 2006-04-29  Bruno Haible  <bruno@clisp.org>
77669
77670         * doc/gcd.texi: New file.
77671         * doc/gnulib.texi: Include it.
77672
77673 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * lib/getdate.y (get_date): When adding relative date, start with the
77676         initial time, not with the result of the first mktime call.
77677
77678 2006-04-25  Bruno Haible  <bruno@clisp.org>
77679
77680         * gnulib-tool (func_import): Output the include directives in three
77681         blocks, sorted separately.
77682         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77683
77684 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77687         to define main with arguments, for C++.  Reported by Eric Blake.
77688         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77689         Prefer 'int main ()' to 'int main (void)', for C++.
77690         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77691         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77692         for 'main', for C99 and C++.
77693
77694 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77695
77696         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77697         Don't assume that exit status -1 is valid.
77698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77699         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77700         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77701         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77702         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77703         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77704         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77705         functions can be used without declaring them, or that you can
77706         exit with status -1.
77707         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77708
77709 2006-04-24  Karl Berry  <karl@gnu.org>
77710
77711         * config/srclist.txt (longdouble.m4): sync lost.
77712
77713 2006-04-24  Eric Blake  <ebb9@byu.net>
77714
77715         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77716
77717 2006-04-24  Bruno Haible  <bruno@clisp.org>
77718
77719         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77720         poll() implementation in AIX.
77721         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77722
77723 2006-04-24  Bruno Haible  <bruno@clisp.org>
77724
77725         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77726         assigned exactly once.
77727
77728 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77729             Bruno Haible  <bruno@clisp.org>
77730
77731         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77732         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77733         for AM_CPPFLAGS.
77734
77735 2006-04-23  Bruno Haible  <bruno@clisp.org>
77736
77737         * modules/copy-file: Depend on unistd.
77738         * modules/execute: Likewise.
77739         * modules/fatal-signal: Likewise.
77740         * modules/findprog: Likewise.
77741         * modules/mkdtemp : Likewise.
77742         * modules/pipe: Likewise.
77743         * modules/wait-process: Likewise.
77744
77745 2006-04-23  Bruno Haible  <bruno@clisp.org>
77746
77747         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77748         condition was already detected.
77749         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77750
77751 2006-04-23  Bruno Haible  <bruno@clisp.org>
77752
77753         * lib/copy-file.c: Include <unistd.h> unconditionally.
77754         * lib/execute.c: Likewise.
77755         * lib/fatal-signal.c: Likewise.
77756         * lib/findprog.c: Likewise.
77757         * lib/mkdtemp.c: Likewise.
77758         * lib/pipe.h: Likewise.
77759         * lib/pipe.c: Likewise.
77760         * lib/wait-process.h: Likewise.
77761
77762 2006-04-23  Bruno Haible  <bruno@clisp.org>
77763
77764         * gnulib-tool (func_usage): Fix --import description. Document
77765         --update.
77766         (func_import): Create temporary file in a temporary directory, if
77767         --dry-run is specified. Silence errors from 'grep' when there are no
77768         m4 files in $m4dir.
77769         (func_create_testdir): Silence errors from 'grep' when there are no
77770         m4 files in $m4dir.
77771         Reported by Karl Berry <karl@freefriends.org>.
77772
77773 2006-04-20  Bruno Haible  <bruno@clisp.org>
77774
77775         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77776         one argument, so that the code will be portable to Autoconf 2.60.
77777         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77778         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77779         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77780
77781 2006-04-19  Derek Price  <derek@ximbiot.com>
77782             Eric Blake  <ebb9@byu.net>
77783
77784         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77785         rather than "/full/path.h".  Update comment to match.  Shorten &
77786         generalize m4_translit call via AS_TR_CPP.
77787
77788 2006-04-19  Derek Price  <derek@ximbiot.com>
77789             Eric Blake  <ebb9@byu.net>
77790
77791         * lib/inttypes.h: Correct grammar in comment.
77792
77793 2006-04-18  Derek Price  <derek@ximbiot.com>
77794             Paul Eggert  <eggert@cs.ucla.edu>
77795
77796         * modules/inttypes: New file.
77797         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77798
77799 2006-04-18  Derek Price  <derek@ximbiot.com>
77800             Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77803         New files.
77804
77805 2006-04-18  Derek Price  <derek@ximbiot.com>
77806             Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * lib/inttypes.h: New file.
77809         * lib/strtoimax.c: Assume <inttypes.h>.
77810
77811 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77812
77813         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77814         isn't mounted.  Problem reported by Kir Kolyshkin.
77815
77816 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77817
77818         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77819         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77820         Derek R. Price.
77821         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77822         implementation.
77823
77824 2006-04-12  Eric Blake  <ebb9@byu.net>
77825
77826         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77827         is now done automatically by the corresponding Autoconf macro.
77828
77829 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77832         time_r.h.
77833
77834 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77835
77836         Merge regex changes from libc, removing some of our
77837         POSIX-conformance changes that were rejected and redoing them in a
77838         less-intrusive way.
77839
77840         * lib/regcomp.c (re_compile_internal, init_dfa):
77841         Length arg is now size_t, not Idx.  All uses changed.
77842         (peek_token): Forward decl now says internal_function.
77843         (__re_error_msgid, __re_error_msgid_idx):
77844         Now static rather than extern with attribute_hidden.
77845         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77846         For some reason libc prefers K&R style defns for external functions.
77847         (regerror) [!defined _LIBC]: Likewise.
77848         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77849         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77850         (build_range_exp, build_collating_symbol):
77851         Use K&R-style defn.
77852         (re_compile_fastmap): Use '\0' to memset, not 0.
77853         (utf8_sb_map): Make the calculations more obvious.
77854         (init_dfa, parse_bracket_exp, build_charclass_op):
77855         Call calloc and cast result, as glibc does.
77856         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77857         (build_range_exp, build_collating_symbol):
77858         Now internal functions.
77859
77860         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77861
77862         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77863         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77864         Don't depend on VMS; depend on __VMS instead, for POSIX
77865         namespace cleanness.
77866         (regoff_t): Define to ssize_t, not long int.
77867
77868         Remove the REG_ macros named below.  Instead, make the old names
77869         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77870         __USE_GNU_REGEX.
77871         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77872         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77873         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77874         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77875         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77876         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77877         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77878         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77879         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77880         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77881         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77882         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77883         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77884         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77885         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77886         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77887         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77888         (REG_NREGS):
77889         Remove.  All uses replaced by the old RE_* names.
77890         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77891         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77892         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77893         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77894         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77895         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77896         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77897         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77898         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77899         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77900         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77901         Don't bother having these macros be independent of each others'
77902         values, since they no longer exist in the POSIX name space.
77903
77904         Rename the following member names back to their old names,
77905         unless !__USE_GNU_REGEX.  All uses changed back.
77906         (buffer): Renamed from re_buffer.
77907         (allocated): Renamed from re_allocated.
77908         (used): Renamed from re_used.
77909         (syntax): Renamed from re_syntax.
77910         (fastmap): Renamed from re_fastmap.
77911         (translate): Renamed from re_translate.
77912         (can_be_null): Renamed from re_can_be_null.
77913         (regs_allocated): Renamed from re_regs_allocated.
77914         (fastmap_accurate): Renamed from re_fastmap_accurate.
77915         (no_sub): Renamed from re_no_sub.
77916         (not_bol): Renamed from re_not_bol.
77917         (not_eol): Renamed from re_not_eol.
77918         (newline_anchor): Renamed from re_newline_anchor.
77919         (num_regs): Renamed from rm_num_regs.
77920         (start): Renamed from rm_start.
77921         (end): Renamed from rm_end.
77922
77923         (free_state): Move up a bit.
77924
77925         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77926         #define to be empty.
77927         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77928         when that is what is intended.
77929         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77930         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77931         (MAX): New macro.
77932         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77933         All uses changed back to re_malloc, etc.  It's now the caller's
77934         responsibility to check for overflow; all callers changed.
77935         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77936         (re_x2nrealloc): Remove.
77937         (free_state): Remove decl.
77938
77939         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77940         (re_set_registers, re_exec):
77941         Use K&R-style defn.
77942
77943         2006-01-31  Roland McGrath  <roland@redhat.com>
77944
77945         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77946         Reported by Mike Frysinger <vapier@gentoo.org>.
77947
77948         2006-01-15  Andreas Jaeger  <aj@suse.de>
77949
77950         [BZ #1950]
77951         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77952         build_wcs_upper_buffer change.
77953         (build_wcs_upper_buffer): Change return type.
77954
77955         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77956
77957         * lib/regex_internal.h: Include <stdint.h> if available.
77958
77959         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77960
77961         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77962
77963         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77964
77965         * lib/regcomp.c: Adjust for changed secondary hash function.
77966
77967         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77968
77969         * lib/regex.h: Pretty printing.
77970         Clean up namespace a bit.
77971
77972         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77973
77974         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77975         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77976
77977         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77978                     Ulrich Drepper  <drepper@redhat.com>
77979
77980         [BZ #1302]
77981         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77982         changed.
77983         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77984
77985         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77986
77987         [BZ #281]
77988         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77989         * lib/regcomp.c: Remove unnecessary uses of
77990         unsigned RE_TRANSLATE_TYPE.
77991         * lib/regex_internal.h: Likewise.
77992         * lib/regex_internal.c: Likewise.
77993         * lib/regexec.c: Likewise.
77994         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77995
77996         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77997
77998         * lib/regexec.c (find_recover_state): Remove unnecessary
77999         initialization.
78000         (transit_state_bkref): Make DFA a const pointer.
78001         (get_subexp): Likewise.
78002         (check_arrival): Likewise.
78003         (update_cur_sifted_state): Likewise.
78004         (re_search_internal): Likewise.
78005         (prune_impossible_nodes): Likewise.
78006         (acquire_init_state_context): Likewise.
78007         (proceed_next_node): Likewise.
78008         (set_regs): Likewise.
78009         (free_fail_stack_return): Likewise.
78010         (check_arrival_expand_ecl): Mark DFA parameter as const.
78011         (check_arrival_expand_ecl_sub): Likewise.
78012         (check_subexp_limits): Likewise.
78013         (sub_epsilon_src_nodes):  Likewise.
78014         (add_epsilon_src_nodes):  Likewise.
78015         (merge_state_array): Likewise.
78016         (update_regs): Likewise.
78017         (build_trtable): Likewise.
78018         (sift_states_backward): Mark MCTX parameter as const.
78019         (build_sifted_states): Likewise.
78020         (update_cur_sifted_state): Likewise.
78021         (sift_states_mkref): Likewise.
78022         (check_arrival_expand_ecl): Mark eclosure as const.
78023         (check_dst_limits_calc_pos_1): Likewise.
78024         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78025         pointer.
78026
78027         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78028
78029         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78030         (transit_state_sb): Likewise.
78031         (transit_state_mb): Likewise.
78032         (sift_states_iter_mb): Likewise.
78033         (check_arrival_add_next_nodes): Likewise.
78034         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78035         [_LIBC] (re_search_2_stub): Use mempcpy.
78036
78037         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78038         mbrtowc for very simple UTF-8 case.
78039
78040         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78041         a pointer-to-const.
78042         (re_acquire_state_context): Likewise.
78043         * lib/regex_internal.h: Adjust prototypes.
78044
78045         * lib/regex.c: Prevent using C++ compilers.
78046
78047         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78048         (re_acquire_state_context): Likewise.
78049
78050 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * modules/regex (Depends-on): Add ssize_t.
78053
78054 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78055
78056         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78057         translation table.
78058
78059 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78060
78061         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78062
78063 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78064             Bruno Haible  <bruno@clisp.org>
78065
78066         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78067         <sys/types.h> and <inttypes.h>.
78068
78069 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78070
78071         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78072         `__error_t_defined', so argp.h will not typedef the former.
78073
78074 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78075
78076         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78077         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78078         glibc names.  Even if glibc is changed to conform to POSIX, the
78079         traditional names will be available anyway, since regex depends on
78080         the extensions module.  Also, fix a longstanding typo in the
78081         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78082         reported by Emanuele Giaquinta.  Also, change sense of cached
78083         variable, so that the message makes sense.
78084
78085 2006-03-24  Simon Josefsson  <jas@extundo.com>
78086
78087         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78088         including some doc fixes.
78089         (base64_encode_alloc): Fix +1 bug on allocation failures.
78090
78091 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78092
78093         * lib/base64.c (base64_encode): Do not read past end of array with
78094         unsanitized input on systems with CHAR_BIT > 8.
78095
78096 2006-03-24  Eric Blake  <ebb9@byu.net>
78097
78098         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78099
78100 2006-03-22  Karl Berry  <karl@gnu.org>
78101
78102         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78103         * config/srclistvars.sh (COREUTILS): new var.
78104
78105 2006-03-17  Jim Meyering  <jim@meyering.net>
78106
78107         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78108         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78109
78110 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78111
78112         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78113         no longer needs it.  Instead, check that regoff_t is as least
78114         as wide as ptrdiff_t.
78115
78116         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78117         so that our regex.h stays compatible with the installed regex.
78118         This is helpful for installers who configure --without-included-regex.
78119         Problem reported by Emanuele Giaquinta.
78120
78121 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78124         Typedef to long int, not to off_, as POSIX will likely change
78125         in that direction.
78126
78127 2006-03-15  Eric Blake  <ebb9@byu.net>
78128
78129         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78130
78131 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78132
78133         * lib/argp-help.c (validate_uparams): Fix typo
78134         * lib/argp-parse.c (argp_default_options): Consistently begin help
78135         messages with a lowercase letter.
78136
78137 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78140         overrun buffers and shouldn't be used (much as gets shouldn't be
78141         used).
78142         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78143
78144 2006-03-08  Simon Josefsson  <jas@extundo.com>
78145
78146         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78147         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78148
78149 2006-03-08  Simon Josefsson  <jas@extundo.com>
78150
78151         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78152         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78153
78154 2006-03-08  Simon Josefsson  <jas@extundo.com>
78155
78156         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78157         signal that configure disabled the device.
78158
78159 2006-03-08  Simon Josefsson  <jas@extundo.com>
78160
78161         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78162         languages.
78163
78164 2006-03-07  Simon Josefsson  <jas@extundo.com>
78165
78166         * modules/getopt (Depends-on): Add unistd.
78167
78168         * modules/unistd: New file.
78169
78170 2006-03-07  Simon Josefsson  <jas@extundo.com>
78171
78172         * modules/gc-random: New file.
78173
78174 2006-03-07  Simon Josefsson  <jas@extundo.com>
78175
78176         * m4/unistd_h.m4: New file.
78177
78178 2006-03-07  Simon Josefsson  <jas@extundo.com>
78179
78180         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78181         test to be side-effect free by storing the result in the cache
78182         variable gl_cv_lib_readline, and moving the assignment of
78183         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78184         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78185
78186 2006-03-07  Simon Josefsson  <jas@extundo.com>
78187
78188         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78189         error on missing devices (the functions will return an error).
78190
78191         * m4/gc.m4: Move random stuff to gc-random.m4
78192
78193 2006-03-07  Simon Josefsson  <jas@extundo.com>
78194
78195         * lib/unistd_.h: New file.
78196
78197 2006-03-07  Simon Josefsson  <jas@extundo.com>
78198
78199         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78200
78201 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78202
78203         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78204         Problem reported by Juan Manuel Guerrero.
78205
78206 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78207
78208         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78209         the unistd module.
78210         * lib/getlogin_r.c: Likewise.
78211         * lib/getlogin_r.h: Likewise.
78212         * lib/glob.c: Likewise.
78213         * lib/pagealign_alloc.c: Likewise.
78214         * lib/unistd_.h: Remove; no longer needed.
78215
78216 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78217
78218         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78219         Add unistd.
78220         * modules/c-stack (Depends-on): Add unistd.
78221         * modules/getlogin_r: Likewise.
78222         * modules/glob: Likewise.
78223         * modules/pagealign_alloc: Likewise.
78224         * modules/unistd (Files): Remove lib/unistd_.h.
78225         (EXTRA_DIST): Remove.
78226         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78227         need unistd_.h.
78228         (MOSTLYCLEANFILES): Remove unistd.h-t.
78229
78230 2006-03-03  Simon Josefsson  <jas@extundo.com>
78231
78232         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78233
78234 2006-03-03  Simon Josefsson  <jas@extundo.com>
78235
78236         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78237         libidn and bison.
78238
78239 2006-03-03  Simon Josefsson  <jas@extundo.com>
78240
78241         * build-aux/maint.mk: Add indent target.
78242
78243 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78244
78245         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78246         our replacement poll.h in any case, to avoid a differing
78247         declaration from a system header.  Seen on AIX.
78248
78249 2006-03-01  Simon Josefsson  <jas@extundo.com>
78250
78251         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78252         <kasal@ucw.cz>.
78253
78254 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         * modules/gettime (Depends-on): Add extensions module.
78257         * modules/nanosleep (Depends-on): Likewise.
78258         * modules/settime (Depends-on): Likewise.
78259
78260 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78263         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78264         pedantically.
78265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78266         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78267
78268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78269         not "==".  Reported by Ralf Wildenhues.
78270
78271 2006-03-01  Karl Berry  <karl@gnu.org>
78272
78273         * doc/Copyright/request-*: new files, synced from gnuorg.
78274
78275 2006-03-01  Karl Berry  <karl@gnu.org>
78276
78277         * config/srclist.txt (Copyright/*): new entries.
78278
78279 2006-02-28  Simon Josefsson  <jas@extundo.com>
78280
78281         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78282
78283 2006-02-27  Simon Josefsson  <jas@extundo.com>
78284
78285         * lib/base64.h: Indent #define's.  From Jim Meyering
78286         <jim@meyering.net>.
78287
78288 2006-02-27  Jim Meyering  <jim@meyering.net>
78289
78290         Revert the change of 2006-02-24, so these files can continue
78291         to be sync'd from gettext.
78292         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78293         of `config.h'.
78294
78295 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78296
78297         * modules/intprops: New file.
78298         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78299         Add intprops.
78300         * modules/getloadavg (Files): Remove lib/intprops.h.
78301         (Depends-on): Add intprops.
78302         * modules/human: Likewise.
78303         * modules/inttostr: Likewise.
78304         * modules/openat: Likewise.
78305         * modules/sig2str: Likewise.
78306         * modules/userspec: Likewise.
78307         * modules/utimecmp: Likewise.
78308         * modules/xnanosleep: Likewise.
78309         * modules/xstrtol: Likewise.
78310
78311 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78312
78313         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78314         * modules/lock-tests (TESTS): Use $(EXEEXT).
78315         * modules/tls-tests: Likewise.
78316         * modules/argp-tests: Likewise.
78317         (check_PROGRAMS): New var, replacing...
78318         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78319
78320 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78321
78322         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78323         `config.h'.
78324
78325 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78326
78327         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78328
78329 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78330
78331         Sync from coreutils.
78332         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78333         gl_CHDIR_SAFER.
78334
78335 2006-02-22  Jim Meyering  <jim@meyering.net>
78336
78337         Sync from coreutils.
78338         * m4/chdir-safer.m4: New file.
78339
78340 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78341
78342         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78343         AT_FDCWD exceeds INT_MAX.
78344         * lib/openat.h (AT_FDCWD): Likewise.
78345
78346 2006-02-17  Eric Blake  <address@hidden>
78347
78348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78349
78350 2006-02-16  Simon Josefsson  <jas@extundo.com>
78351
78352         * modules/getaddrinfo (Depends-on): Add sys_socket.
78353
78354 2006-02-15  Simon Josefsson  <jas@extundo.com>
78355
78356         * build-aux/maint.mk: Add dsyntax-check rule.
78357
78358 2006-02-15  Eric Blake  <ebb9@byu.net>
78359
78360         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78361         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78362         'present but cannot compile' warnings on cygwin.
78363         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78364         use ws2tcpip.h if sys/socket.h works.
78365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78366         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78367
78368 2006-02-14  Simon Josefsson  <jas@extundo.com>
78369
78370         * modules/maintainer-makefile (Files): Rename.
78371
78372         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78373         and (the local) Makefile.cfg to maint-cfg.mk.
78374
78375         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78376         to the latter.
78377
78378         * modules/maintainer-makefile: New module.
78379
78380         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78381         severaly stripped to make it possible to build it up from scratch
78382         with reliable tests.
78383
78384         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78385         fixes to permit overriding the default actions when configure and
78386         makefile are not available.
78387
78388 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         Sync from coreutils.
78391         * modules/lstat (Depends-on): Don't depend on xalloc.
78392         (License): Change from GPL to LGPL, since this is now simply a
78393         replacement for a libc function.
78394
78395 2006-02-14  Jim Meyering  <jim@meyering.net>
78396
78397         Sync from coreutils.
78398
78399         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78400         failure on deficient systems, and simplify gnulib lgpl dependencies.
78401         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78402         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78403
78404         * lib/xalloc-die.c: Remove unused definition of N_.
78405
78406 2006-02-14  Jim Meyering  <jim@meyering.net>
78407
78408         Sync from coreutils.
78409         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78410         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78411         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78412         double-quote uses of that variable, to accommodate the rare case in
78413         which getmntent is available in none of the libraries checked.  This
78414         happens at least on FreeBSD 5.0.
78415
78416 2006-02-13  Simon Josefsson  <jas@extundo.com>
78417
78418         * gnulib-tool (Usage): Fix --import, from
78419         karl@freefriends.org (Karl Berry).
78420
78421 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78422
78423         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78424
78425 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78426
78427         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78428         "autoupdate" on 2005-12-12.
78429
78430 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         * modules/closeout (Depends-on): Remove atexit.
78433
78434 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78437         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78438
78439 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78442         __EXTENSIONS__ if this causes compilation to fail.  Problem
78443         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78444         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78445
78446 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78449         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78451         All uses changed.
78452
78453 2006-01-26  Simon Josefsson  <jas@extundo.com>
78454
78455         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78456         prototype is visible on mingw32.
78457
78458         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78459         for mingw32.
78460
78461         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78462         mingw32).
78463
78464 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78465
78466         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78467         attempt to open for write; this always fails, at least on POSIX
78468         hosts.  This reinstates the 2006-01-09 change, which was
78469         inadvertently removed.
78470
78471 2006-01-26  Bruno Haible  <bruno@clisp.org>
78472
78473         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78474         Reported by Paul Eggert.
78475
78476 2006-01-26  Bruno Haible  <bruno@clisp.org>
78477             Paul Eggert  <eggert@cs.ucla.edu>
78478
78479         * lib/stdbool_.h (_Bool)
78480         [(! (defined __cplusplus || defined __BEOS__)
78481           && !defined __GNUC__
78482           && !(defined __HP_cc || defined __xlc__
78483                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78484                || defined __sgi))]:
78485         #define to signed char in these cases too; this simplifies
78486         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78487         etc., separately) and makes it more conservative.
78488
78489 2006-01-25  Simon Josefsson  <jas@extundo.com>
78490
78491         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78492         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78493         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78494
78495 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78496
78497         * lib/argp-namefrob.h: Bugfix. Remove stray #
78498
78499 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78502         so that we test the test.
78503         Check for yet another HP-UX cc bug involving *bool |= bool.
78504
78505 2006-01-25  Karl Berry  <karl@gnu.org>
78506
78507         * config/srclist.txt (vasnprintf.c): sync lost.
78508
78509 2006-01-25  Jim Meyering  <jim@meyering.net>
78510
78511         Sync from the stable (b5) branch of coreutils:
78512
78513         * lib/fts.c (fts_children): Don't let close() clobber errno from
78514         failed fchdir().
78515
78516         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78517         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78518         a dangling symlink.  That can also happen at least for ELOOP.
78519         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78520         FYI, this bug predates the inclusion of fts.c in coreutils.
78521
78522         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78523         in their own block, so pre-c99 compilers don't object.
78524
78525         Avoid the double-free (first in fts_read, second in fts_close) that
78526         would occur when an `active' directory is made inaccessible (e.g.,
78527         via chmod a-x) during a traversal.
78528         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78529         before returning.  Reproduce this failure by
78530         mkdir -p a/b; cd a; chmod a-x . b
78531         Reported by Stavros Passas.
78532
78533 2006-01-25  Jim Meyering  <jim@meyering.net>
78534
78535         * lib/fileblocks.c: Remove more useless parentheses.
78536         * lib/readutmp.h: Likewise.
78537
78538 2006-01-25  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78541         warnings.
78542         Reported by Paul Eggert.
78543
78544 2006-01-25  Bruno Haible  <bruno@clisp.org>
78545
78546         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78547         rid of a trap command. For Solaris sh.
78548         Reported by Mark D. Baushke <mdb@gnu.org>.
78549
78550 2006-01-24  Simon Josefsson  <jas@extundo.com>
78551
78552         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78553         Bruno.
78554
78555 2006-01-24  Karl Berry  <karl@gnu.org>
78556
78557         * config/srclist.txt (argp-namefrob.h): sync lost.
78558
78559 2006-01-24  Jim Meyering  <jim@meyering.net>
78560
78561         * modules/openat (Files): Add lib/intprops.h.
78562         From Mark D. Baushke.
78563
78564 2006-01-24  Jim Meyering  <jim@meyering.net>
78565
78566         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78567         Reported by Mark D. Baushke.
78568
78569 2006-01-24  Jim Meyering  <jim@meyering.net>
78570
78571         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78572
78573 2006-01-24  Bruno Haible  <bruno@clisp.org>
78574
78575         * modules/strnlen (Maintainer): Change from glibc to all.
78576
78577 2006-01-24  Bruno Haible  <bruno@clisp.org>
78578
78579         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78580         Patch by Paul Eggert.
78581
78582 2006-01-24  Bruno Haible  <bruno@clisp.org>
78583
78584         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78585         already has it.
78586         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78587         2005-11-26.
78588
78589         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78590         'signed char' to avoid problems with the built-in _Bool type.
78591         Reported by Paul Eggert on 2005-11-26.
78592
78593 2006-01-24  Bruno Haible  <bruno@clisp.org>
78594
78595         * gnulib-tool (func_import): Avoid constructing complicated sed
78596         expressions inside backquote.
78597         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78598
78599 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78600
78601         These changes imported from libc.
78602         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78603         test and two separate function calls.
78604         * lib/strndup.c (__strndup): Add libc_hidden_def.
78605
78606 2006-01-23  Simon Josefsson  <jas@extundo.com>
78607
78608         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78609         Remove the test_*_SOURCES variable: automake infers it by default.
78610         * modules/tls-tests: Likewise.
78611
78612 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         Work around porting bugs reported by Dieter in
78615         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78616         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78617         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78618         Include "getopt.h" first, to check interface.
78619         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78620         !HAVE_DECL_GETENV.
78621         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78622         (__strndup): Revert to K&R-style function dfns, the glibc style.
78623         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78624         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78625         Include strnlen.h first, to get prototype properly.
78626         (strnlen): Renamed from __strnlen.
78627         Remove weak alias.
78628
78629 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78632
78633 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * config/srclist.txt: Adjust to reflect glibc reorganization.
78636         This affects only comments.
78637
78638 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78639
78640          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78641          Reported by Bruce Korb <bkorb@gnu.org>.
78642
78643 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78646         to pacify gcc -Wswitch-default.
78647
78648 2006-01-22  Bruno Haible  <bruno@clisp.org>
78649
78650         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78651         temporary buffer for sprintf, take into account the precision also
78652         for 'd', 'i', 'u', 'o', 'x', 'X'.
78653
78654 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78655
78656         * modules/argp-tests: New module
78657         * tests/test-argp.c: New file
78658         * tests/test-argp-2.sh: New file
78659
78660 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78661
78662         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78663         (__argp_base_name): Removed
78664         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78665         typo.
78666         (__argp_base_name): Provide macro definition or extern declaration
78667         depending on the configuration
78668
78669 2006-01-20  Simon Josefsson  <jas@extundo.com>
78670
78671         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78672
78673 2006-01-20  Simon Josefsson  <jas@extundo.com>
78674
78675         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78676
78677 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78678
78679         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78680         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78681         Suggested by Bruno Haible.
78682
78683 2006-01-20  Karl Berry  <karl@gnu.org>
78684
78685         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78686         until changes propagate, I guess.
78687
78688 2006-01-19  Simon Josefsson  <jas@extundo.com>
78689
78690         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78691
78692 2006-01-19  Simon Josefsson  <jas@extundo.com>
78693
78694         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78695
78696 2006-01-19  Simon Josefsson  <jas@extundo.com>
78697
78698         * gnulib-tool: Set check_PROGRAMS.
78699
78700         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78701         modules/des-tests, modules/gc-arcfour-tests,
78702         modules/gc-arctwo-tests, modules/gc-des-tests,
78703         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78704         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78705         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78706         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78707         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78708         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78709         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78710         test_*_SOURCES.
78711
78712 2006-01-18  Simon Josefsson  <jas@extundo.com>
78713
78714         * modules/socklen (Depends-on): Depend on sys_socket.
78715
78716 2006-01-18  Simon Josefsson  <jas@extundo.com>
78717
78718         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78719         modules/des-tests, modules/gc-arcfour-tests,
78720         modules/gc-arctwo-tests, modules/gc-des-tests,
78721         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78722         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78723         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78724         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78725         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78726         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78727         $(EXEEXT) to automake TESTS variable, for mingw32.
78728
78729 2006-01-17  Simon Josefsson  <jas@extundo.com>
78730
78731         * modules/socklen (Include): Need sys/socket.h.
78732
78733 2006-01-17  Bruno Haible  <bruno@clisp.org>
78734
78735         * modules/ssize_t (Include): Add <sys/types.h>.
78736
78737 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78740         it's not portable and it doesn't work with cross-compiles.
78741         Problem reported by Bruno Haible.  Fix missing-$ typo in
78742         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78743         -zignore from being used with Sun's C compiler.
78744
78745 2006-01-12  Simon Josefsson  <jas@extundo.com>
78746
78747         * lib/base64.c: Fix warning, reported by Bruno Haible
78748         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78749
78750 2006-01-12  Bruno Haible  <bruno@clisp.org>
78751
78752         * modules/ldd: New file.
78753         * build-aux/ldd.sh.in: New file.
78754         * MODULES.html.sh (Support for building libraries and executables): Add
78755         ldd.
78756
78757 2006-01-12  Bruno Haible  <bruno@clisp.org>
78758
78759         * m4/ldd.m4: New file.
78760
78761 2006-01-12  Bruno Haible  <bruno@clisp.org>
78762
78763         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78764         endless loop while replacing $auxdir with build-aux.
78765
78766 2006-01-11  Simon Josefsson  <jas@extundo.com>
78767
78768         * lib/stdint_.h (SIZE_MAX): Add missing (.
78769
78770 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         Sync from coreutils.
78773         * lib/md5.c: Fix commentary typos.
78774         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78775         * lib/md5.h (__attribute__): Remove; unused.
78776         * lib/sha1.c: Fix commentary to match md5 better.
78777         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78778         so that we don't need to worry about alignment.  All uses changed.
78779         This merges the 2005-10-28 md5 change into sha1.
78780
78781 2006-01-11  Jim Meyering  <jim@meyering.net>
78782
78783         Sync from coreutils.
78784         * lib/md5.c (OP): Fix spacing.
78785
78786 2006-01-11  Bruno Haible  <bruno@clisp.org>
78787
78788         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78789         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78790         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78791
78792 2006-01-11  Bruno Haible  <bruno@clisp.org>
78793
78794         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78795         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78796         the "early" section as well.
78797
78798 2006-01-11  Bruno Haible  <bruno@clisp.org>
78799
78800         Avoid "ar: no archive members specified" error on MacOS X.
78801         * gnulib-tool (func_modules_add_dummy): New function.
78802         (func_import, func_create_testdir): Invoke it.
78803
78804 2006-01-11  Bruno Haible  <bruno@clisp.org>
78805
78806         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78807         with $auxdir in AC_CONFIG_FILES statements.
78808
78809 2006-01-11  Bruno Haible  <bruno@clisp.org>
78810
78811         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78812         Initialize also noinst_HEADERS to empty.
78813
78814 2006-01-11  Bruno Haible  <bruno@clisp.org>
78815
78816         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78817         variables.
78818         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78819         autoreconf.
78820
78821 2006-01-11  Bruno Haible  <bruno@clisp.org>
78822
78823         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78824         overridable by the user.
78825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78826
78827 2006-01-10  Simon Josefsson  <jas@extundo.com>
78828
78829         * modules/sys_socket: New file.
78830
78831 2006-01-10  Simon Josefsson  <jas@extundo.com>
78832
78833         * m4/sys_socket_h.m4: New file.
78834
78835 2006-01-10  Simon Josefsson  <jas@extundo.com>
78836
78837         * lib/socket_.h: New file.
78838
78839 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * modules/readutmp (Maintainer): Add myself.
78842
78843 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78844
78845         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78846         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78847         People who are still concerned with buggy memcmp implementations
78848         can invoke gl_FUNC_MEMCMP themselves.
78849
78850 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78851
78852         * lib/regex_internal.h (BITSET_WORD_BITS):
78853         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78854         preprocessor mishandles large unsigned values as if they were signed.
78855         Problem reported by Claudio Fontana in
78856         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78857
78858 2006-01-10  Jim Meyering  <jim@meyering.net>
78859
78860         Avoid the double-free (first in fts_read, second in fts_close) that
78861         would occur when an `active' directory is made inaccessible (e.g.,
78862         via chmod a-x) during a traversal.
78863         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78864         before returning.  Reproduce this failure by
78865         mkdir -p a/b; cd a; chmod a-x . b
78866         Reported by Stavros Passas.
78867
78868         Sync from coreutils.
78869         * lib/sha1.c: Tweak grammar in a comment.
78870
78871 2006-01-10  Jim Meyering  <jim@meyering.net>
78872
78873         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78874         Patch by Joerg Sonnenberger.
78875
78876 2006-01-10  Bruno Haible  <bruno@clisp.org>
78877
78878         * modules/readutmp: Depend on module free.
78879         * modules/strtok_r: Depend on module restrict.
78880
78881 2006-01-10  Bruno Haible  <bruno@clisp.org>
78882
78883         * modules/gettext (configure.ac): Add an invocation of
78884         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78885
78886 2006-01-10  Bruno Haible  <bruno@clisp.org>
78887
78888         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78889         Reported by Werner Lemberg <wl@gnu.org>.
78890
78891 2006-01-10  Bruno Haible  <bruno@clisp.org>
78892
78893         * lib/localcharset.c: Update from GNU gettext.
78894
78895 2006-01-10  Bruno Haible  <bruno@clisp.org>
78896
78897         * lib/argp.h (__const): Remove macro. Use const instead.
78898         * lib/argp-fmtstream.h (__const): Likewise.
78899         * lib/glob_.h (__const): Remove macro.
78900         * lib/glob-libc.h: Use const instead of __const.
78901
78902 2006-01-10  Bruno Haible  <bruno@clisp.org>
78903
78904         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78905         variable.
78906         Needed to avoid an automake error regarding the 'gettext' module.
78907
78908 2006-01-09  Simon Josefsson  <jas@extundo.com>
78909
78910         * modules/inet_ntop (Depends-on): Add restrict.
78911
78912 2006-01-09  Simon Josefsson  <jas@extundo.com>
78913
78914         * modules/gc-rijndael-tests (License): Put under LGPL.
78915
78916         * modules/gc-des-tests (License): Likewise.
78917
78918         * modules/gc-arcfour-tests (License): Likewise.
78919
78920         * modules/gc-arctwo-tests (License): Likewise.
78921
78922         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78923
78924         * modules/gc-hmac-sha1-tests (Files): Likewise.
78925
78926         * modules/gc-hmac-md5-tests (License): Likewise.
78927
78928         * modules/gc-sha1-tests (License): Likewise.
78929
78930         * modules/gc-md5-tests (License): Likewise.
78931
78932         * modules/gc-md4-tests (License): Likewise.
78933
78934         * modules/gc-md2-tests (License): Likewise.
78935
78936         * modules/gc-tests (License): Likewise.
78937
78938         * modules/des-tests (License): Likewise.
78939
78940         * modules/md4-tests (License): Likewise.
78941
78942         * modules/md2-tests (License): Likewise.
78943
78944 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78945
78946         Sync from coreutils:
78947
78948         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78949         * modules/lib-ignore: New file.
78950         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78951         chdir-safer.m4, lchmod.m4.
78952         * modules/openat: Add mkdirat.c, openat-priv.h.
78953
78954 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78955
78956         Sync from coreutils.
78957         * m4/lib-ignore.m4: New file.
78958         * m4/lchmod.m4: New file.
78959
78960 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78961
78962         Sync from coreutils.
78963         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78964         for write access: POSIX says that must fail.
78965         * lib/fts.c (diropen): Likewise.
78966         * lib/save-cwd.c (save_cwd): Likewise.
78967         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78968         well, for minor improvements on hosts that lack O_DIRECTORY.
78969         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78970         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78971         Fall back on chown if open failed with EACCES.
78972
78973         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78974         Report an error at compile-time if only a 1-second nominal clock
78975         resolution is found.
78976
78977         * lib/lchmod.h: New file.
78978         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78979         (make_dir_parents): Use lchown rather than chown, and
78980         lchmod rather than chmod.
78981
78982         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78983         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78984         "proc" reported by n0dalus.
78985
78986         * lib/mountlist.c: Include <limits.h>.
78987         (dev_from_mount_options)
78988         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78989         New function.  It no longer assumes "dev=" has the System V meaning
78990         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78991         (read_file_system_list)
78992         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78993         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78994         dev= in that case.
78995
78996         * lib/posixtm.h (PDS_PRE_2000): New macro.
78997         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78998         allow_century.  All usages changed.  Reject dates outside the range
78999         1969-1999 if PDS_PRE_2000 is used.
79000
79001 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         Sync from coreutils.
79004         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79005         (Time of day items): Mention the possibility of leap seconds.
79006         Problem reported by Dr. David Alan Gilbert.
79007
79008 2006-01-09  Jim Meyering  <jim@meyering.net>
79009
79010         Sync from coreutils.
79011
79012         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79013
79014         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79015
79016         * lib/modechange.c (mode_compile): Reject an invalid mode string
79017         that starts with an octal digit.  From Andreas Gruenbacher.
79018
79019         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79020         and dup to open_safer and dup_safer, respectively.
79021         (openat_permissive): Fix typo in comment.
79022
79023         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79024         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79025         (_): Remove; no longer needed.
79026         (openat): Renamed from rpl_openat; no need for rpl_openat
79027         since openat.h renames openat for us.
79028         Replace most of the body with a call to openat_permissive,
79029         to avoid duplicate code.
79030         Port to (probably hypothetical) environments were mode_t is
79031         wider than int.
79032         (openat_permissive): Require mode arg, so that we can check
79033         types better.  Put it just after flags.  Change cwd failure
79034         indicator from pointer-to-bool to pointer-to-errno-value.
79035         All callers changed.
79036         Invoke openat_save_fail and/or openat_restore_fail if
79037         cwd_errno is null, so that openat can call us.
79038         (openat_permissive, fdopendir, fstatat, unlinkat):
79039         Simplify errno handling to avoid some duplicate code,
79040         as it's OK to set errno on success.
79041         * lib/openat.h: Revamp code so that function macros depend on
79042         __OPENAT_PREFIX only, not also on AT_FDCWD.
79043         (openat_ro): Remove.  Caller changed to use openat_permissive.
79044         (openat_permissive): Now a macro, if not a function.
79045         (openat_restore_fail, openat_save_fail): Now always functions,
79046         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79047
79048         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79049         and openat.c.
79050         * lib/mkdirat.c: Include openat-priv.h.
79051         Remove definitions of macros defined therein.
79052         * lib/openat.c: Likewise.
79053
79054         * lib/mkdirat.c (mkdirat): New file and function.
79055         * lib/openat.h (mkdirat): Declare.
79056
79057         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79058
79059         * lib/openat.h (openat_permissive): Declare.
79060         (openat_ro): Define.
79061
79062         * lib/openat.c (EXPECTED_ERRNO): New macro.
79063         (openat_permissive): New function -- used in remove.c rewrite.
79064         (all functions): Set errno just before returning, only if there
79065         was an actual failure.
79066         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79067
79068         Emulate openat-family functions using Linux's procfs, if possible.
79069         Idea and some code based on Ulrich Drepper's glibc changes.
79070
79071         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79072         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79073         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79074         before falling back on save_cwd and restore_cwd.
79075         (fdopendir, fstatat, unlinkat): Likewise.
79076
79077         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79078         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79079
79080         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79081         as second argument to va_arg.  Otherwise, some versions of gcc
79082         warn that `if this code is reached, the program will abort'.
79083
79084 2006-01-09  Jim Meyering  <jim@meyering.net>
79085
79086         Sync from coreutils.
79087         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79088         Require openat-priv.h.
79089
79090 2006-01-09  Bruno Haible  <bruno@clisp.org>
79091
79092         * modules/strnlen (Include): Use strnlen.h.
79093
79094 2006-01-09  Bruno Haible  <bruno@clisp.org>
79095
79096         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79097
79098 2006-01-09  Bruno Haible  <bruno@clisp.org>
79099
79100         * lib/sysexit_.h (EX_OK): New macro.
79101         Suggested by Martin Lambers <marlam@marlam.de>.
79102
79103 2006-01-09  Bruno Haible  <bruno@clisp.org>
79104
79105         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79106         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79107
79108 2006-01-09  Bruno Haible  <bruno@clisp.org>
79109
79110         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79111         numbers.
79112
79113 2006-01-09  Bruno Haible  <bruno@clisp.org>
79114
79115         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79116         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79117         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79118         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79119
79120 2006-01-09  Bruno Haible  <bruno@clisp.org>
79121
79122         * build-aux/javacomp.sh.in: New file, moved from lib/.
79123         * modules/javacomp-script (Files): Update.
79124         (configure.ac): Add AC_CONFIG_FILES invocation.
79125         (EXTRA_DIST): Remove variable.
79126
79127         * build-aux/javaexec.sh.in: New file, moved from lib/.
79128         * modules/javaexec (Files): Update.
79129         (configure.ac): Add AC_CONFIG_FILES invocation.
79130         (EXTRA_DIST): Remove javaexec.sh.in.
79131
79132         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79133         * modules/csharpcomp-script (Files): Update.
79134         (configure.ac): Add AC_CONFIG_FILES invocation.
79135         (EXTRA_DIST): Remove variable.
79136
79137         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79138         * modules/csharpexec (Files): Update.
79139         (configure.ac): Add AC_CONFIG_FILES invocation.
79140         (EXTRA_DIST): Remove csharpexec.sh.in.
79141
79142 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79143
79144         Sync from coreutils.
79145
79146         Add POSIX ACL support
79147         * lib/acl.h (copy_acl, set_acl): Add declarations.
79148         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79149         systems other than Linux.
79150         (chmod_or_fchmod): New function: use fchmod when possible,
79151         and chmod otherwise.
79152         (file_has_acl): Add a POSIX ACL implementation, with a
79153         Linux-specific subcase.
79154         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79155         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79156         acls are unsupported.
79157         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79158         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79159         are unsupported.
79160
79161 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79162
79163         Sync from coreutils.
79164         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79165
79166 2006-01-07  Bruno Haible  <bruno@clisp.org>
79167
79168         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79169         gl_EARLY.
79170
79171 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79174         Problem reported for Mingw by Mark Junker.
79175
79176 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * README: Gnulib normally doesn't generate a tarball.
79179
79180 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79181
79182         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79183         long int, not int, for nanosecond counts, so that people who are
79184         used to POSIX struct timespec won't be surprised.  Reported by Jim
79185         Meyering.
79186
79187 2005-12-28  Bruno Haible  <bruno@clisp.org>
79188
79189         * build-aux/config.rpath: Update from GNU gettext.
79190
79191 2005-12-16  Jim Meyering  <jim@meyering.net>
79192
79193         * modules/fprintftime: New module.
79194         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79195
79196 2005-12-16  Jim Meyering  <jim@meyering.net>
79197
79198         * m4/fprintftime.m4: New file.
79199
79200 2005-12-16  Jim Meyering  <jim@meyering.net>
79201
79202         * lib/fprintftime.c, lib/fprintftime.h: New files.
79203
79204 2005-12-15  Simon Josefsson  <jas@extundo.com>
79205
79206         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79207         new m4/socklen.m4.
79208
79209 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79210
79211         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79212         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79213
79214 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79215
79216         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79217         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79218         struct uparams is valid. Fall back to the default values if it is
79219         not.
79220
79221 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79222
79223         * modules/argp (Files): Add argp-pin.c
79224         (Depends-on): dirname
79225         (lib_SOURCES): Add argp-pin.c
79226
79227 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79228
79229         * m4/argp.m4:  Check if program_invocation_name and
79230         program_invocation_short_name are declared and define appropriate
79231         macros if they are not.
79232
79233 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79234
79235         * lib/argp-help.c (__argp_base_name): New function
79236         (__argp_short_program_name): Rewrite using __argp_base_name
79237         * lib/argp-namefrob.h: Define program_invocation_name and
79238         program_invocation_short_name if requested
79239         (__argp_base_name): Add prototype
79240         * lib/argp-parse.c (argp_def): Use gettext wrappers
79241         (argp_default_parser): Use __argp_base_name
79242         * lib/argp-pin.c: New file. Defines program_invocation_name and
79243         program_invocation_short_name on systems that lack them.
79244
79245 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * m4/stat-time.m4 (gl_STAT_TIME): 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-07  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79255         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79256         porting problem reported by Georg Schwarz in
79257         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79258
79259 2005-12-05  Bruno Haible  <bruno@clisp.org>
79260
79261         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79262         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79263         Reported by Mark Junker <mjscod@gmx.de>.
79264
79265 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79268         Use implementation from Albert Chin, with some
79269         comments/corrections by Stepan Kasal and myself.
79270
79271 2005-12-02  Bruno Haible  <bruno@clisp.org>
79272
79273         * gnulib-tool (func_import): Accept GPLed build tool modules when
79274         --lgpl is given.
79275         * modules/csharpcomp-script: New file.
79276         * modules/csharpcomp: Depend on it.
79277         * modules/javacomp-script: New file.
79278         * modules/javacomp: Depend on it.
79279         Suggested by Simon Josefsson.
79280
79281 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79282
79283         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79284         statement, to work around an HP-UX 10.20 compiler bug reported by
79285         Peter O'Gorman.
79286
79287 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         * modules/savedir (Depends-on): Add openat.
79290
79291 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79294         (uintmax_t) [defined uintmax_t]: Do not declare.
79295         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79296         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79297         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79298         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79299         sake of portability to weird hosts that C allows (though we don't
79300         know of any practical examples).
79301
79302         * lib/savedir.h (fdsavedir): New decl.
79303         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79304         contains most of the former guts of savedir.
79305         (savedir): Use savedirstream.
79306         Include "openat.h".
79307
79308 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * modules/obstack (Files): Add m4/ulonglong.m4.
79311         Problem reported by Davide Angelocola.
79312
79313 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79314
79315         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79316         coreutils no longer futzes with rounding modes.
79317
79318 2005-11-14  Jim Meyering  <jim@meyering.net>
79319
79320         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79321         replacement of mkstemp.
79322
79323 2005-11-10  Simon Josefsson  <jas@extundo.com>
79324
79325         * lib/readline.c: Remove EOL.
79326
79327 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * modules/gethrxtime (Depends-on): Add gettime.
79330
79331 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79334         or gettimeofday; no longer needed.
79335
79336 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79339         time business.
79340         (gethrxtime) [! (HAVE_NANOUPTIME
79341         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79342         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79343         our own approximation.
79344
79345 2005-11-08  Eric Blake  <ebb9@byu.net>
79346
79347         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79348
79349 2005-11-08  Eric Blake  <ebb9@byu.net>
79350
79351         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79352
79353 2005-11-04  Bruno Haible  <bruno@clisp.org>
79354
79355         * gnulib-tool: Implement --update mode.
79356
79357 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79358
79359         Fix porting problem reported by Theodoros V. Kalamatianos.
79360         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79361         Don't assume that futimes failing means we must fail.
79362
79363 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79366         variables to suggest the intended function of the PATH_MAX check.
79367
79368 2005-10-30  Kean Johnston  <jkj@sco.com>
79369
79370         Trivial changes to support SCO systems.
79371         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79372         as PATH_MAX.
79373         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79374         where __ptr is null when no I/O is pending.
79375
79376 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79379         leave errno alone.  Problem reported by Dmitry V. Levin.
79380
79381 2005-10-28  Simon Josefsson  <jas@extundo.com>
79382
79383         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79384         Test more.
79385
79386         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79387
79388         * modules/md2, modules/md2-tests: New files.
79389
79390 2005-10-28  Simon Josefsson  <jas@extundo.com>
79391
79392         * m4/inet_ntop.m4: More tests.
79393
79394         * m4/gc-md2.m4, md2.m4: New file.
79395
79396 2005-10-28  Simon Josefsson  <jas@extundo.com>
79397
79398         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79399         "restrict" keywords, as per POSIX.  Protect the function
79400         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79401         Don't use K&R prototypes.  Check the sprintf return values.
79402         Re-define EAFNOSUPPORT if not present.  Indent.
79403
79404         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79405         suggested by Bruno Haible <bruno@clisp.org>.
79406
79407         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79408
79409         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79410
79411         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79412         libgcrypt).
79413
79414         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79415
79416         * lib/md2.h, lib/md2.c: New files.
79417
79418 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79421         errno alone.  Problem reported by Frederic Jolliton.
79422
79423 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         * modules/verify (License): Change from GPL to LGPL.  This is a
79426         tiny module and there are apparently near-equivalents that are
79427         under the BSD license.
79428
79429 2005-10-24  Simon Josefsson  <jas@extundo.com>
79430
79431         * modules/sha1: Relicense to LGPL.
79432
79433 2005-10-24  Simon Josefsson  <jas@extundo.com>
79434
79435         * lib/md4.h: Shrink buffer size, now that we changed the type.
79436
79437 2005-10-23  Simon Josefsson  <jas@extundo.com>
79438
79439         * gnulib-tool (func_import): Fix --tests-base.
79440
79441 2005-10-22  Simon Josefsson  <jas@extundo.com>
79442
79443         * modules/arcfour (Depends-on): Need stdint.
79444
79445 2005-10-22  Simon Josefsson  <jas@extundo.com>
79446
79447         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79448         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79449
79450 2005-10-22  Simon Josefsson  <jas@extundo.com>
79451
79452         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79453         suggested by Bruno Haible <bruno@clisp.org>.
79454
79455 2005-10-22  Simon Josefsson  <jas@extundo.com>
79456
79457         * lib/crc.h: Include stddef.h, for size_t.
79458
79459 2005-10-22  Simon Josefsson  <jas@extundo.com>
79460
79461         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79462         arcfour_context struct (simplify test vector testing in GNU
79463         Shishi).
79464
79465 2005-10-21  Simon Josefsson  <jas@extundo.com>
79466
79467         * modules/des, modules/des-tests: New files.
79468
79469         * modules/gc-des, modules/gc-des-tests: New files.
79470
79471         * tests/test-des.c, tests/test-gc-des.c: New file.
79472
79473 2005-10-21  Simon Josefsson  <jas@extundo.com>
79474
79475         * modules/arctwo, modules/arctwo-tests: New files.
79476
79477         * tests/test-arctwo.c: New file.
79478
79479         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79480
79481         * tests/test-gc-arctwo.c: New file.
79482
79483 2005-10-21  Simon Josefsson  <jas@extundo.com>
79484
79485         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79486         Bruno Haible <bruno@clisp.org>.
79487
79488         * m4/gc-des.m4: New file.
79489
79490 2005-10-21  Simon Josefsson  <jas@extundo.com>
79491
79492         * m4/arctwo.m4: New file.
79493
79494         * m4/gc-arctwo.m4: New file.
79495
79496 2005-10-21  Simon Josefsson  <jas@extundo.com>
79497
79498         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79499         block.
79500
79501 2005-10-21  Simon Josefsson  <jas@extundo.com>
79502
79503         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79504         <bruno@clisp.org>.
79505
79506         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79507
79508         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79509         Bruno Haible <bruno@clisp.org>.
79510
79511         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79512         <bruno@clisp.org>.
79513
79514 2005-10-21  Simon Josefsson  <jas@extundo.com>
79515
79516         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79517
79518 2005-10-21  Simon Josefsson  <jas@extundo.com>
79519
79520         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79521
79522 2005-10-21  Simon Josefsson  <jas@extundo.com>
79523
79524         * lib/des.h, lib/des.c: New files.
79525
79526         * lib/gc-gnulib.c: Support DES.c
79527
79528 2005-10-21  Simon Josefsson  <jas@extundo.com>
79529
79530         * lib/arctwo.h, lib/arctwo.c: New files.
79531
79532         * lib/gc-gnulib.c: Support ARCTWO.
79533
79534 2005-10-21  Simon Josefsson  <jas@extundo.com>
79535
79536         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79537         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79538
79539 2005-10-21  Simon Josefsson  <jas@extundo.com>
79540
79541         * gnulib-tool (func_import, func_create_testdir): Define automake
79542         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79543         Makefile.am snippet),
79544         suggested by Bruno Haible <bruno@clisp.org>.
79545
79546         * modules/gc (Makefile.am): Use it.
79547
79548 2005-10-21  Bruno Haible  <bruno@clisp.org>
79549
79550         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79551         patch.
79552
79553 2005-10-19  Simon Josefsson  <jas@extundo.com>
79554
79555         * tests/test-gc-rijndael.c: New file.
79556
79557         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79558
79559 2005-10-19  Simon Josefsson  <jas@extundo.com>
79560
79561         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79562         interface too.
79563
79564 2005-10-19  Simon Josefsson  <jas@extundo.com>
79565
79566         * tests/test-gc-arcfour.c: New file.
79567
79568         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79569
79570 2005-10-19  Simon Josefsson  <jas@extundo.com>
79571
79572         * modules/gc-md4, modules/gc-md4-tests: New file.
79573
79574         * tests/test-gc-md4.c: New file.
79575
79576 2005-10-19  Simon Josefsson  <jas@extundo.com>
79577
79578         * m4/gc-md4.m4: New file.
79579
79580 2005-10-19  Simon Josefsson  <jas@extundo.com>
79581
79582         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79583         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79584         <kasal@ucw.cz>.
79585
79586 2005-10-19  Simon Josefsson  <jas@extundo.com>
79587
79588         * m4/gc-arcfour.m4: New file.
79589
79590         * m4/gc-rijndael.m4: New file.
79591
79592 2005-10-19  Simon Josefsson  <jas@extundo.com>
79593
79594         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79595
79596 2005-10-19  Simon Josefsson  <jas@extundo.com>
79597
79598         * lib/gc-gnulib.c: Support ARCFOUR.
79599
79600 2005-10-19  Simon Josefsson  <jas@extundo.com>
79601
79602         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79603         support.
79604
79605         * lib/gc.h: Add ECB enum type.
79606
79607         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79608
79609 2005-10-18  Simon Josefsson  <jas@extundo.com>
79610
79611         * tests/test-md5.c: New file.
79612
79613         * modules/md5-tests: New file.
79614
79615 2005-10-18  Simon Josefsson  <jas@extundo.com>
79616
79617         * tests/test-md4.c: New file.
79618
79619         * modules/md4, modules/md4-tests: New files.
79620
79621 2005-10-18  Simon Josefsson  <jas@extundo.com>
79622
79623         * m4/md4.m4: New file.
79624
79625 2005-10-18  Simon Josefsson  <jas@extundo.com>
79626
79627         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79628
79629 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79630
79631         * gnulib-tool (func_create_testdir): Omit the second check whether
79632         BUILT_SOURCES in nonempty.
79633
79634 2005-10-17  Simon Josefsson  <jas@extundo.com>
79635
79636         * tests/test-rijndael.c: New file.
79637
79638 2005-10-17  Simon Josefsson  <jas@extundo.com>
79639
79640         * modules/sha1: Depend on stdint instead of md5.
79641
79642         * modules/md5: Depend on stdint, remove uint32_t.
79643
79644 2005-10-17  Simon Josefsson  <jas@extundo.com>
79645
79646         * modules/gc-sha1-tests: New file.
79647
79648         * tests/test-gc-sha1.c: New file.
79649
79650 2005-10-17  Simon Josefsson  <jas@extundo.com>
79651
79652         * m4/md5.m4: Remove call to uint32_t.m4.
79653
79654 2005-10-17  Simon Josefsson  <jas@extundo.com>
79655
79656         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79657
79658         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79659         md5.h.
79660
79661         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79662
79663         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79664
79665 2005-10-17  Simon Josefsson  <jas@extundo.com>
79666
79667         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79668
79669 2005-10-17  Simon Josefsson  <jas@extundo.com>
79670
79671         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79672
79673 2005-10-17  Simon Josefsson  <jas@extundo.com>
79674
79675         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79676
79677         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79678
79679 2005-10-17  Bruno Haible  <bruno@clisp.org>
79680
79681         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79682         that it can also be used in a test.
79683
79684 2005-10-16  Bruno Haible  <bruno@clisp.org>
79685
79686         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79687         TESTS_ENVIRONMENT, so that individual tests can augment it.
79688
79689         * gnulib-tool (func_create_testdir): Use an intermediate target for
79690         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79691         macros, like $(ALLOCA_H), which cannot be passed through the command
79692         line.
79693
79694 2005-10-15  Simon Josefsson  <jas@extundo.com>
79695
79696         * modules/rijndael-tests: New file.
79697
79698         * modules/rijndael: New file.
79699
79700 2005-10-15  Simon Josefsson  <jas@extundo.com>
79701
79702         * m4/rijndael.m4: New file.
79703
79704 2005-10-15  Simon Josefsson  <jas@extundo.com>
79705
79706         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79707
79708         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79709
79710 2005-10-14  Simon Josefsson  <jas@extundo.com>
79711
79712         * tests/test-arcfour.c: New file.
79713
79714         * modules/arcfour, modules/arcfour-tests: New files.
79715
79716 2005-10-14  Simon Josefsson  <jas@extundo.com>
79717
79718         * m4/arcfour.m4: New file.
79719
79720 2005-10-14  Simon Josefsson  <jas@extundo.com>
79721
79722         * lib/arcfour.h, lib/arcfour.c: New files.
79723
79724 2005-10-14  Roland McGrath  <roland@redhat.com>
79725
79726         Import from libc.  [BZ #1331]
79727         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79728         macro argument.
79729         Reported by Matej Vela <vela@debian.org>.
79730
79731 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79734         include <wchar.h>; no longer needed.
79735
79736 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79739
79740 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79741         and  Ulrich Drepper  <drepper@redhat.com>
79742
79743         Import from libc.
79744         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79745         instead of inline stream orientation test and two separate
79746         function calls.  Pay no attention to USE_IN_LIBIO.
79747
79748 2005-10-13  Simon Josefsson  <jas@extundo.com>
79749
79750         * modules/gc-hmac-md5-tests: New file.
79751
79752         * tests/test-gc-hmac-sha1.c: New file.
79753
79754         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79755
79756         * modules/gc-hmac-md5-tests: New file.
79757
79758         * tests/test-gc-md5.c: New file.
79759
79760         * modules/gc-md5-tests: New file.
79761
79762 2005-10-13  Simon Josefsson  <jas@extundo.com>
79763
79764         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79765         Move memory allocation outside of loop.
79766
79767 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79768
79769         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79770         intermediate directory is in a read-only file system.  Problem
79771         reported by Eric Blake.
79772
79773 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79774
79775         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79776
79777 2005-10-12  Simon Josefsson  <jas@extundo.com>
79778
79779         * tests/test-hmac-sha1.c: New file.
79780
79781         * modules/hmac-sha1-tests: New file.
79782
79783         * modules/hmac-sha1: New file.
79784
79785 2005-10-12  Simon Josefsson  <jas@extundo.com>
79786
79787         * modules/gc-sha1: New file.
79788
79789 2005-10-12  Simon Josefsson  <jas@extundo.com>
79790
79791         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79792
79793         * tests/test-gc-pbkdf2-sha1.c: New file.
79794
79795 2005-10-12  Simon Josefsson  <jas@extundo.com>
79796
79797         * modules/gc-md5, modules/gc-hmac-md5: New files.
79798
79799         * modules/gc (Files): Remove md5, memxor and hmac files.
79800
79801 2005-10-12  Simon Josefsson  <jas@extundo.com>
79802
79803         * m4/gc-pbkdf2-sha1.m4: New file.
79804
79805         * m4/gc-hmac-sha1.m4: New file.
79806
79807         * m4/gc-sha1: New file.
79808
79809         * m4/hmac-sha1.m4: New file.
79810
79811 2005-10-12  Simon Josefsson  <jas@extundo.com>
79812
79813         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79814
79815         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79816
79817 2005-10-12  Simon Josefsson  <jas@extundo.com>
79818
79819         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79820         suggested by Bruno Haible <bruno@clisp.org>.
79821
79822 2005-10-12  Simon Josefsson  <jas@extundo.com>
79823
79824         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79825
79826 2005-10-12  Simon Josefsson  <jas@extundo.com>
79827
79828         * lib/gc-pbkdf2-sha1.c: New file.
79829
79830         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79831
79832 2005-10-12  Simon Josefsson  <jas@extundo.com>
79833
79834         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79835
79836         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79837
79838 2005-10-12  Simon Josefsson  <jas@extundo.com>
79839
79840         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79841         GC_USE_HMAC_MD5, respectively.
79842
79843         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79844         (gc_md5): Fix typo.
79845
79846         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79847
79848         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79849
79850         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79851
79852 2005-10-12  Bruno Haible  <bruno@clisp.org>
79853
79854         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79855         Reported by Stepan Kasal <kasal@ucw.cz>.
79856
79857 2005-10-11  Simon Josefsson  <jas@extundo.com>
79858
79859         * tests/test-crc.c: New file.
79860
79861         * modules/crc, modules/crc-tests: New files.
79862
79863 2005-10-11  Simon Josefsson  <jas@extundo.com>
79864
79865         * m4/crc.m4: New file.
79866
79867 2005-10-11  Simon Josefsson  <jas@extundo.com>
79868
79869         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79870
79871         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79872
79873         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79874
79875 2005-10-11  Simon Josefsson  <jas@extundo.com>
79876
79877         * lib/crc.h, lib/crc.c: New files.
79878
79879         * lib/gc.h (gc_hash_buffer): Add doc.
79880
79881 2005-10-11  Bruno Haible  <bruno@clisp.org>
79882
79883         * modules/c-strcasestr: New file.
79884         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79885
79886 2005-10-11  Bruno Haible  <bruno@clisp.org>
79887
79888         * modules/c-strcase: New file.
79889         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79890
79891 2005-10-11  Bruno Haible  <bruno@clisp.org>
79892
79893         * lib/strcasecmp.c: Include limits.h.
79894         (strcasecmp): Avoid integer overflow on exotic platforms.
79895         * lib/strncasecmp.c: Include limits.h.
79896         (strncasecmp): Avoid integer overflow on exotic platforms.
79897         Reported by Paul Eggert.
79898
79899 2005-10-11  Bruno Haible  <bruno@clisp.org>
79900
79901         * lib/c-strcasestr.h: New file, from GNU gettext.
79902         * lib/c-strcasestr.c: New file, from GNU gettext.
79903
79904 2005-10-11  Bruno Haible  <bruno@clisp.org>
79905
79906         * lib/c-strcase.h: New file, from GNU gettext.
79907         * lib/c-strcasecmp.c: New file, from GNU gettext.
79908         * lib/c-strncasecmp.c: New file, from GNU gettext.
79909
79910 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79911
79912         * modules/mempcpy (License): GPL -> LGPL.
79913         * modules/strchrnul (License): Likewise.
79914         * modules/sysexits (License): Likewise.
79915
79916 2005-10-08  Simon Josefsson  <jas@extundo.com>
79917
79918         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79919
79920 2005-10-07  Simon Josefsson  <jas@extundo.com>
79921
79922         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79923
79924 2005-10-06  Simon Josefsson  <jas@extundo.com>
79925
79926         * tests/test-hmac-md5.c: New file.
79927
79928         * modules/hmac-md5-tests: New file.
79929
79930         * modules/hmac-md5: New file.
79931
79932 2005-10-06  Simon Josefsson  <jas@extundo.com>
79933
79934         * m4/hmac-md5.m4: New file.
79935
79936         * m4/memxor.m4: Require gl_C_RESTRICT.
79937
79938 2005-10-06  Simon Josefsson  <jas@extundo.com>
79939
79940         * lib/memxor.c (memxor): Avoid casts and warnings.
79941
79942 2005-10-06  Simon Josefsson  <jas@extundo.com>
79943
79944         * lib/hmac-md5.c: New file.
79945
79946         * lib/hmac.h: New file.
79947
79948 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79951         promotes to int, not unsigned int, to catch the AIX 5.3
79952         compiler bug.
79953
79954 2005-10-05  Simon Josefsson  <jas@extundo.com>
79955
79956         * modules/memxor: New file.
79957
79958         * modules/iconv (Files): Move config.rpath to havelib, it is used
79959         there.
79960
79961         * modules/havelib (Files): Add config.rpath.
79962
79963 2005-10-05  Simon Josefsson  <jas@extundo.com>
79964
79965         * m4/memxor.m4: New file.
79966
79967 2005-10-05  Simon Josefsson  <jas@extundo.com>
79968
79969         * lib/memxor.c (memxor): Fix compiler error.
79970
79971         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79972         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79973
79974         * lib/memxor.h, lib/memxor.c: New files.
79975
79976         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79977         we assume all systems have it, suggested by Jim Meyering
79978         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79979         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79980         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79981         same reasons.
79982
79983 2005-10-05  Simon Josefsson  <jas@extundo.com>
79984
79985         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79986
79987 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79990         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79991         needed, since the source code now assumes these .h files.
79992
79993 2005-10-05  Derek Price  <derek@ximbiot.com>
79994
79995         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79996
79997 2005-10-05  Bruno Haible  <bruno@clisp.org>
79998
79999         * modules/stdint (License): Change to LGPL.
80000
80001 2005-10-04  Simon Josefsson  <jas@extundo.com>
80002
80003         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80004         D. Baushke" <mdb@gnu.org>.
80005
80006 2005-10-04  Bruno Haible  <bruno@clisp.org>
80007
80008         * lib/verify.h (verify_true): Provide alternative definition for C++.
80009
80010 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80013         (SSIZE_MAX): New macro, if not already defined.
80014         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80015         than 2 GiB.
80016
80017 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80018
80019         Sync from coreutils.
80020         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80021         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80022         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80023         ULLONG_MAX doesn't work with 2.7.2.1.
80024
80025 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80026
80027         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80028         From Ben Pfaff.
80029
80030         * modules/exclude (Depends-on): Depend on verify.
80031         * modules/strtoimax (Depends-on): Likewise.
80032         * modules/utimecmp (Depends-on): Likewise.
80033
80034 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80035
80036         * lib/exclude.c: Include verify.h.
80037         (verify): Remove.  All callers changed to use verify.h's version.
80038         * lib/strtoimax.c: Likewise.
80039         * lib/utimecmp.c: Likewis.e
80040
80041         Sync from coreutils.
80042         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80043         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80044         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80045         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80046         bother returning ENOSYS if settimeofday or stime fails; just let
80047         them return whatever errno they want to return.
80048         * lib/utimens.c: Include unistd.h, for dup2.
80049         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80050         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80051
80052 2005-10-02  Jim Meyering  <jim@meyering.net>
80053
80054         Sync from coreutils.
80055         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80056         from glibc-2.2.5 that fails for read-only files.
80057
80058 2005-10-02  Jim Meyering  <jim@meyering.net>
80059
80060         Sync from coreutils.
80061         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80062         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80063         `#if HAVE_CONFIG_H'.
80064         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80065         Remove AT_FDCWD test.
80066         Do not consume the fd unless successful.
80067         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80068         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80069         block, so that we don't even try to compile it if settimeofday is
80070         available.  This works around a compilation failure on OSF1 V5.1,
80071         due to stime requiring a `long int*' while tv_sec is `int'.
80072
80073 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80074
80075         Sync from coreutils.
80076         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80077         against `yes', rather than just testing for nonempty.
80078
80079 2005-10-01  Simon Josefsson  <jas@extundo.com>
80080
80081         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80082         and Darwin.
80083
80084         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80085         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80086         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80087         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80088         Check if struct addrinfo is declared.
80089
80090 2005-10-01  Simon Josefsson  <jas@extundo.com>
80091
80092         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80093         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80094         AI_* and EAI_* definitions.  Protect function declarations.
80095
80096 2005-10-01  Jim Meyering  <jim@meyering.net>
80097
80098         Sync from coreutils.
80099
80100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80101         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80102         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80103         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80104         in the inet and nsl libraries.  Required on Solaris 5.7.
80105
80106 2005-10-01  Jim Meyering  <jim@meyering.net>
80107
80108         Sync from coreutils.
80109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80110         in the inet and nsl libraries.  Required on Solaris 5.7.
80111
80112 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80113
80114         * lib/getdelim.c (getdelim): Remove unused variables.
80115
80116 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80119         so that the code works even with ancient cpp.  Portability problem
80120         with GCC 2.7.2.1 reported by Thomas M.Ott.
80121
80122 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * modules/regex (Depends-on): Add strcase.
80125
80126         * modules/gethostname (Licence): Change from GPL to LGPL, since
80127         gethostname.c is a trivial implementation of a standard library
80128         function.
80129         * modules/poll (License): Change from GPL to LGPL, since it's
80130         derived from LGPL code.
80131
80132 2005-09-27  Jim Meyering  <jim@meyering.net>
80133
80134         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80135         HAVE_CONFIG_H.
80136
80137         * lib/intprops.h (signed_type_or_expr__): Define.
80138         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80139         for unsigned types.
80140
80141 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         * lib/verify.h (verify_expr): Remove, replacing with:
80144         (verify_true): New macro that returns true instead of void.
80145         (verify_type__): Remove.
80146         (verify): Use verify_true rather than verify_type__.
80147
80148 2005-09-26  Bruno Haible  <bruno@clisp.org>
80149
80150         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80151         is necessary.
80152         (lib_SOURCES): Remove mbchar.c.
80153         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80154         (Files): Add m4/mbrtowc.m4.
80155         * modules/mbiter: Likewise.
80156         * modules/mbuiter: Likewise.
80157
80158 2005-09-26  Bruno Haible  <bruno@clisp.org>
80159
80160         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80161         compile mbchar.c if they are not both present.
80162         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80163         * m4/mbiter.m4 (gl_MBITER): Likewise.
80164         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80165         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80166         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80167
80168 2005-09-25  Jim Meyering  <jim@meyering.net>
80169
80170         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80171         also uses socklen_t.
80172
80173 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * lib/utimens.c (ENOSYS): Define if not already defined.
80176         (futimens): Support having a null PATH if the file descriptor
80177         is nonnegative.
80178
80179         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80180         Remove.
80181         (__attribute): Define to empty unless GCC 3.1 or later.
80182         This works around a core dump on OpenBSD 3.4, which has GCC
80183         2.95.3, which dumps core when given __attribute__(()).  It also
80184         simplifies other tests, since we really don't want to bother with
80185         worrying about which ancient version of GCC supported what.
80186         Original problem reported by Yoann Vandoorselaere, with part of
80187         the fix suggested by Derek Price.
80188
80189 2005-09-24  Jim Meyering  <jim@meyering.net>
80190
80191         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80192         so we can once again use a positive bitfield width of 1 -- now we
80193         don't have to explain why we were using a bitfield width of 2.
80194
80195 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80196
80197         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80198         and similarly for the other external symbols.  Problem reported
80199         by James Gallager.
80200
80201         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80202         bug reported by Jim Meyering.
80203
80204         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80205         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80206         not needed, since socklen is a prerequisite module.
80207
80208 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80211         Problem reported by Eric Blake.
80212         (getaddrinfo): Initialize se so that it's not garbage.
80213         Redo internal storage allocation so that it doesn't make unportable
80214         assumptions about alignment.
80215         Fix a memory leak.
80216
80217         * lib/utimens.c (futimens): Use futimesat if available.
80218         Prefer it to futimes since it doesn't have the futimes bug.
80219
80220         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80221         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80222         Instead, declare a function that returns a pointer to an array,
80223         and use verify_type__ to declare the size of the array.
80224         Problem and germ of a solution reported by Bruno Haible.
80225         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80226         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80227
80228 2005-09-23  Jim Meyering  <jim@meyering.net>
80229
80230         Sync from coreutils.
80231         Correct build failure (socklen_t not defined) on at least
80232         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80233         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80234
80235 2005-09-23  Jim Meyering  <jim@meyering.net>
80236
80237         * modules/getaddrinfo (Depends-on): Add socklen.
80238
80239 2005-09-23  Bruno Haible  <bruno@clisp.org>
80240
80241         * tests/test-verify.c: New file.
80242
80243 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         Sync from coreutils.
80246
80247         * modules/argmatch (Depends-on): Add verify.
80248         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80249         unistd-safer.
80250         * modules/save-cwd (Depends-on): Likewise.
80251
80252         * modules/openat (Files): Add lib/openat-die.c.
80253         (Depends-on): Remove error, exitfail.
80254         Add dirname.
80255
80256         * modules/verify: New file.
80257         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80258         with "verify" module.
80259
80260 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80261
80262         Sync from coreutils.
80263
80264         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80265         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80266         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80267         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80268         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80269         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80270         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80271         Don't bother checking for string.h, stdlib.h, unistd.h.
80272         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80273         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80274         module's job.
80275         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80276         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80277
80278         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80279         (gl_GETDATE): Use it.
80280
80281         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80282
80283 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80284
80285         Sync from coreutils.
80286
80287         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80288         stat-time.h.
80289         * lib/argmatch.h: Include verify.h
80290         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80291         (ARGMATCH_ASSERT): Remove; unused.
80292         * lib/canonicalize.c: Assume STDC_HEADERS.
80293         * lib/exclude.c: Include "strcase.h".
80294         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80295         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80296         and stdio-safer.h.
80297         (getusershell): Call fopen, not fopen_safer.
80298         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80299         Do not include unistd-safer.h.
80300         (save_cwd): Don't call fd_safer; no longer needed
80301         now that we include fcntl--.h.
80302
80303         * lib/getdate.y (relative_time): New type.
80304         (RELATIVE_TIME_0): New constant.
80305         (parser_control): Use relative_time instead of doing it ourselves.
80306         (%union): Add new relative_time rel member.
80307         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80308         Now typeless.
80309         (relunit, relunit_snumber): Now of type rel.
80310         (zone, rel, relunit, get_date): Adjust to above changes.
80311
80312         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80313         Do not include unistd-safer.h.
80314         (getloadavg): Don't call fd_safer; no longer needed
80315         now that we include fcntl--.h.
80316
80317         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80318         (make_dir_parents): Treat ENOSYS like EEXIST.
80319
80320         Improve quality of diagnostics on restore_cwd failure.
80321         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80322         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80323         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80324         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80325         each time through the loop.  Do not diagnose restore_cwd failure;
80326         that is the caller's job (and perhaps the caller does not care).
80327
80328         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80329         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80330         If the file already exists but is not a directory, don't bother
80331         to try to make its parents.
80332         Close potential file descriptor leak if we can't chdir("/") (!).
80333         Don't always return true if chdir($PWD) fails; return true only
80334         if the requested action was done successfully (except for the
80335         chdir($PWD)).
80336         Don't log final directory unless we actually made it.
80337         Refactor to avoid duplicate code to fix up permissions.
80338         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80339
80340         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80341         to make it a bit faster and (I hope) clearer.
80342         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80343         Fix bug in formats like %2N.
80344
80345         * lib/verify.h: New file.
80346
80347 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         Sync from coreutils.
80350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80351
80352 2005-09-22  Jim Meyering  <jim@meyering.net>
80353
80354         Sync from coreutils.
80355
80356         * m4/lstat.m4 (gl_FUNC_LSTAT):
80357         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80358         Remove obsolete comment.
80359         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80360         * m4/xstrtod.m4: Likewise.
80361
80362         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80363
80364 2005-09-22  Jim Meyering  <jim@meyering.net>
80365
80366         Sync from coreutils.
80367
80368         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80369
80370         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80371         the .tm_year member, since otherwise gcc-4.0 would now warn about
80372         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80373
80374         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80375         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80376
80377         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80378         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80379         when run in a time zone for which daylight savings time is in effect
80380         for the starting date.
80381
80382         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80383         stop us from restricting permissions of just-created absolute-named
80384         directories.
80385         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80386         to restore initial working directory.
80387         * lib/mkdir-p.c (make_dir_parents): New parameter:
80388         different_working_dir, to tell caller if/when we change the working
80389         directory and are unable to return to the initial one.
80390         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80391         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80392         `return false'.  This fixes a bug introduced on 2004-07-30.
80393
80394         * lib/openat.c (fdopendir): Be sure to close the supplied
80395         file descriptor before returning.  This makes our replacement
80396         implementation a little closer to Solaris's, where fdopendir
80397         ties the file descriptor to the returned DIR* pointer.
80398         * lib/openat.c (unlinkat): New function.
80399         * lib/openat.h (unlinkat): Add prototype.
80400         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80401         (openat_restore_fail): Rename from openat_restore_die.
80402         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80403
80404         Provide an alternative to exiting immediately upon save_cwd or
80405         restore_cwd failure.  Now, an application can arrange e.g.,
80406         to perform a longjump in that case.
80407         * lib/openat.c: Include dirname.h.
80408         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80409         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80410         and openat_restore_die rather than calling error directly.
80411         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80412
80413         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80414         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80415         define.
80416
80417         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80418         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80419                             int utc, int nanoseconds);
80420         Background:
80421         date should not have to allocate a megabyte of virtual memory to
80422         handle a format argument like +%1048575T.  When implemented with
80423         strftime, it must allocate such a buffer, use strftime to fill it
80424         in, print it, then free it.
80425         With fprintftime, it simply prints everything and exits.
80426         With no need for memory allocation, that's one fewer way to fail.
80427         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80428         optional field width, not before, so we accept %9:z, not %:9z.
80429         (my_strftime): Be sure to use L_('x') for literals.
80430
80431         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80432         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80433         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80434         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80435         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80436         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80437         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80438         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80439         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80440         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80441         * lib/xgethostname.c, lib/xreadlink.c:
80442         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80443
80444         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80445         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80446         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80447         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80448         and don't include <sys/file.h>).
80449
80450 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80451
80452         Sync from coreutils.
80453
80454         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80455         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80456         [!LDAV_DONE]: Avoid unused variable warning.
80457
80458 2005-09-21  Bruno Haible  <bruno@clisp.org>
80459
80460         * lib/unicodeio.h (unicode_to_mb): New declaration.
80461
80462 2005-09-20  Derek Price  <derek@ximbiot.com>
80463
80464         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80465         getaddrinfo.h.
80466
80467 2005-09-20  Bruno Haible  <bruno@clisp.org>
80468
80469         * gnulib-tool: Remove trailing slashes from the values specified for
80470         --source-base, --m4-base, --tests-base, --aux-dir.
80471         Suggested by Simon Josefsson <jas@extundo.com>.
80472
80473 2005-09-20  Bruno Haible  <bruno@clisp.org>
80474
80475         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80476         func_modules_to_filelist, func_import, func_create_testdir): Make all
80477         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80478         change when gnulib-tool is invoked in a different locale.
80479
80480 2005-09-19  Simon Josefsson  <jas@extundo.com>
80481
80482         * m4/socklen.m4: Fix typo.
80483
80484 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80485
80486         Use a consistent style for including <config.h>.
80487         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80488         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80489         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80490         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80491         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80492         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80493         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80494         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80495         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80496         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80497         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80498         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80499         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80500         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80501         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80502         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80503         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80504         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80505         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80506         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80507         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80508         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80509         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80510         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80511         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80512         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80513         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80514         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80515         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80516         lib/xstrtoumax.c, lib/yesno.c:
80517         Standardize inclusion of config.h.
80518         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80519         lib/inttostr.h:  Removed inclusion of config.h from header files.
80520         * lib/inttostr.c:  Adjusted in-tree users.
80521         * lib/timespec.h: Remove superfluous warning to include config.h.
80522         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80523         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80524         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80525         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80526         config.h with HAVE_CONFIG_H.
80527
80528 2005-09-19  Jim Meyering  <jim@meyering.net>
80529
80530         * modules/pathmax (License): Change to LGPL.
80531
80532 2005-09-19  Derek Price  <derek@ximbiot.com>
80533
80534         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80535
80536 2005-09-19  Bruno Haible  <bruno@clisp.org>
80537
80538         * gnulib-tool (import): Provide default for --tests-base.
80539
80540 2005-09-19  Bruno Haible  <bruno@clisp.org>
80541
80542         * doc/quote.texi: New file, extracted from gnulib.texi.
80543         * doc/ctime.texi: New file, extracted from gnulib.texi.
80544         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80545         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80546         * doc/gnulib.texi: Include them.
80547
80548 2005-09-18  Bruno Haible  <bruno@clisp.org>
80549
80550         Portability fix.
80551         * gnulib-tool (func_readlink): New function.
80552         (func_ln_if_changed): Use it.
80553
80554 2005-09-18  Bruno Haible  <bruno@clisp.org>
80555
80556         * gnulib-tool: Support --with-tests also with --import.
80557         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80558         (func_import): Use variables $testsbase and $inctests. Emit a
80559         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80560         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80561         SUBDIRS += $testsdir.
80562         (func_create_testdir): Update.
80563
80564 2005-09-18  Bruno Haible  <bruno@clisp.org>
80565
80566         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80567         instead of $dry_run.
80568         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80569         (func_ln_if_changed): Don't handle dry-run here.
80570         (func_import): In dry-run mode, detect more precisely which actions
80571         would be performed, and don't use "...ing" verbs.
80572
80573 2005-09-18  Bruno Haible  <bruno@clisp.org>
80574
80575         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80576         (func_import): Use join on two temporary files instead of three nested
80577         loops, in order to determine which files are new or old.
80578
80579 2005-09-18  Bruno Haible  <bruno@clisp.org>
80580
80581         * gnulib-tool (func_import): Comment out code that spits out the
80582         new files with --dry-run.
80583
80584 2005-09-18  Bruno Haible  <bruno@clisp.org>
80585
80586         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80587
80588 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80589
80590         * lib/stat-time.h: New file.
80591         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80592         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80593         in a different way.
80594         (timespec_cmp): New function.
80595         * lib/utimecmp.c: Include stat-time.h.
80596         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80597         members exist, not on the obsolescent ST_MTIM_NSEC.
80598         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80599
80600 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80603
80604 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80605
80606         * MODULES.html.sh (File system functions): Add stat-time.
80607         * modules/stat-time: New file.
80608         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80609         is now done in a different way, by the stat-time module.
80610         * modules/utimecmp (Depends-on): Add stat-time.
80611
80612 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80613
80614         * m4/st_mtim.m4: Remove.  Superseded by...
80615         * m4/stat-time.m4: New file.
80616         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80617         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80618
80619 2005-09-15  Derek Price  <derek@ximbiot.com>
80620
80621         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80622
80623 2005-09-15  Derek Price  <derek@ximbiot.com>
80624
80625         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80626         * lib/regex_internal.c: Ditto, using this...
80627         (__GNUC_PREREQ): ...new macro.
80628         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80629         using...
80630         (__GNUC_PREREQ): ...this new macro.
80631
80632         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80633
80634 2005-09-15  Derek Price  <derek@ximbiot.com>
80635             Paul Eggert  <eggert@cs.ucla.edu>
80636
80637         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80638         changes, consolidating in...
80639         * lib/regex_internal.h: ...this file.
80640
80641 2005-09-13  Jim Meyering  <jim@meyering.net>
80642
80643         * lib/canon-host.c: Filter through gnu indent and reword comments
80644         slightly.
80645         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80646
80647 2005-09-13  Derek Price  <derek@ximbiot.com>
80648
80649         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80650         failure.
80651         Reported by Jim Meyering  <jim@meyering.net>.
80652
80653 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80654
80655         * lib/base64.c: Typo.
80656         (base64_encode): Put b64str in initialized data section.
80657
80658 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         Merge glibc and coreutils changes into gnulib, plus a few
80661         extra fixes.
80662         * lib/md5.c: Use #error rather than a string.
80663         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80664         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80665         (__attribute__): Define to empty for non recent-GCC.
80666         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80667         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80668         Renamed from their non-__ counterparts, with new macros replacing
80669         them if not _LIBC.  Add __THROW attribute.
80670         (rol): Remove.
80671         (struct md5_ctx): Align buffer if using GCC.
80672         * lib/sha1.h (struct sha1_ctx): Likewise.
80673         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80674         The old name was backwards.
80675         (NOTSWAP): Remove; not used.
80676         (rol): New macro, moved here from md5.h.
80677         (sha1_process_block): Remove a FIXME that doesn't make sense.
80678
80679 2005-09-12  Derek Price  <derek@ximbiot.com>
80680
80681         Return usable errors from canon-host.
80682         * lib/canon-host.h: New file.
80683         * lib/canon-host.c (canon_host): Wrap...
80684         (canon_host_r): ...this new function, which now relies exclusively on
80685         getaddrinfo.
80686         (ch_strerror): New function.
80687         (last_cherror): New global.
80688         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80689         interface.
80690         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80691         void *.
80692         (freeaddrinfo): Free ai->ai_canonname when set.
80693
80694 2005-09-12  Derek Price  <derek@ximbiot.com>
80695
80696         Make canon-host require getaddrinfo.
80697         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80698         AC_LIBSOURCE canon-host.h.  Call...
80699         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80700         gl_GETADDRINFO.
80701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80702
80703 2005-09-12  Derek Price  <derek@ximbiot.com>
80704
80705         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80706         LGPL.
80707         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80708
80709 2005-09-12  Derek Price  <derek@ximbiot.com>
80710
80711         * lib/gai_strerror.c: Include config.h when available.  Include
80712         getaddrinfo.h before other headers to test interface.
80713         Reported by Larry Jones <lawrence.jones@ugs.com>.
80714
80715 2005-09-12  Derek Price  <derek@ximbiot.com>
80716             Paul Eggert  <eggert@cs.ucla.edu>
80717
80718         * modules/glob (Files): Add glob-libc.h.
80719
80720 2005-09-12  Derek Price  <derek@ximbiot.com>
80721             Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80724         glob_.h, glob-libc.h.
80725         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80726
80727 2005-09-12  Derek Price  <derek@ximbiot.com>
80728             Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80731         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80732         protecting things that should be done only in gnulib contexts.
80733         * lib/glob_.h: New file, containing only the glob things needed for
80734         gnulib.
80735         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80736         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80737         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80738         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80739         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80740         and to respect the namespace rules better.
80741
80742 2005-09-08  Simon Josefsson  <jas@extundo.com>
80743
80744         * modules/socklen: New file.
80745
80746 2005-09-08  Simon Josefsson  <jas@extundo.com>
80747
80748         * m4/socklen.m4: New file.
80749
80750 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         * modules/utimens (Files): Add m4/utimbuf.m4, since
80753         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80754         Reported by Sergey Poznyakoff.
80755
80756 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80759         definitions, since that's the preferred style in glibc.
80760         Fix a minor spacing issue, and update copyright notice to match
80761         glibc's.
80762
80763 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80764
80765         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80766
80767 2005-09-06  Simon Josefsson  <jas@extundo.com>
80768
80769         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80770         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80771
80772 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80775         warning.
80776
80777 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * config/srclist.txt: Add glibc bug 1302.
80780
80781 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80782
80783         Change bitset word type from unsigned int to unsigned long int,
80784         as this has better performance on typical 64-bit hosts.
80785         Port bitset code to hosts with unusual word sizes.
80786         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80787         (build_collating_symbol):
80788         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80789         argument is a bitset.  This is merely a style issue, but it makes
80790         it clearer that an entire array is expected.
80791         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80792         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80793         Port to the case where bitset_word is not the same as unsigned int.
80794         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80795         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80796         Likewise.
80797         * lib/regexec.c (check_dst_limits_calc_pos_1,
80798         check_subexp_matching_top):
80799         (build_trtable, group_nodes_into_DFAstates):
80800         Likewise.
80801         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80802         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80803         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80804         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80805         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80806         * lib/regcomp.c (optimize_subexps, lower_subexp):
80807         Work even if bitset_word has holes in its bitwise representation.
80808         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80809         * lib/regexec.c (check_dst_limits_calc_pos_1,
80810         check_subexp_matching_top):
80811         Likewise.
80812         * lib/regex_internal.c (re_string_reconstruct):
80813         Don't assume UCHAR_MAX == 255.
80814         * lib/regex_internal.h (bitset_set_all): Likewise.
80815         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80816         All uses changed.
80817         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80818         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80819         All uses changed.
80820         (BITSET_WORD_MAX): New macro.
80821         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80822         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80823         (bitset_empty, bitset_copy):
80824         Prefer sizeof (bitset) to multiplying it out ourselves.
80825         (bitset_not_merge): Remove; unused.
80826         (bitset_contain): Return bool, not unsigned int with one bit on.
80827         All callers changed.
80828         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80829         alignment than re_node_set; do this by defining a new internal
80830         type struct dests_alloc and using it to allocate memory.
80831
80832 2005-09-05  Bruno Haible  <bruno@clisp.org>
80833
80834         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80835         links.
80836
80837 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80838
80839         * modules/size_max (Makefile.am): Add size_max.h
80840
80841 2005-09-04  Derek Price  <derek@ximbiot.com>
80842
80843         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80844
80845 2005-09-03  Simon Josefsson  <jas@extundo.com>
80846
80847         * gnulib-tool: Fix typo.
80848
80849 2005-09-03  Simon Josefsson  <jas@extundo.com>
80850
80851         * config/srclist.txt: Add glibc bug 1293.
80852
80853 2005-09-03  Derek Price  <derek@ximbiot.com>
80854
80855         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80856         From Larry Jones <lawrence.jones@ugs.com>.
80857
80858 2005-09-02  Simon Josefsson  <jas@extundo.com>
80859
80860         * modules/socklen: New file.
80861
80862 2005-09-02  Simon Josefsson  <jas@extundo.com>
80863
80864         * modules/havelib: New module.
80865
80866         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80867         Use havelib.
80868
80869 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         Check for arithmetic overflow when calculating sizes, to prevent
80872         some buffer-overflow issues.  These patches are conservative, in the
80873         sense that when I couldn't determine whether an overflow was possible,
80874         I inserted a run-time check.
80875         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80876         macros.
80877         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80878         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80879         (re_xnrealloc, re_x2nrealloc): New inline functions.
80880         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80881         parse_bracket_exp):
80882         (build_equiv_class, build_charclass): Check for arithmetic overflow
80883         in size expression calculations.
80884         * lib/regex_internal.c (re_string_realloc_buffers):
80885         (build_wcs_upper_buffer, re_node_set_add_intersect):
80886         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80887         (re_dfa_add_node, register_state): Likewise.
80888         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80889         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80890         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80891         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80892
80893 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80894
80895         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80896         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80897
80898 2005-09-02  Bruno Haible  <bruno@clisp.org>
80899
80900         Support for lib vs. lib64 distinction on biarch platforms.
80901         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80902         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80903         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80904
80905 2005-09-02  Bruno Haible  <bruno@clisp.org>
80906
80907         * gnulib-tool (import): In the other first-use case, provide defaults
80908         as well.
80909
80910 2005-09-02  Bruno Haible  <bruno@clisp.org>
80911
80912         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80913         patches not yet found in the latest gettext release.
80914
80915 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80916
80917         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80918         to avoid a collision with bits/local_lim.h in glibc.
80919         All uses changed.  Problem reported by Dmitry V. Levin in
80920         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80921
80922         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80923         bugs in int versus size_t comparisons.
80924         (re_string_context_at): Fix bug where the code assumed that
80925         Idx is signed.
80926
80927         Use bool where appropriate.
80928         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80929         All callers changed.
80930         (calc_eclosure_iter): Likewise, for ROOT arg.
80931         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80932         (build_charclass_op): Likewise, for NON_MATCH arg.
80933         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80934         (re_string_construct_common): Likewise, for ICASE arg.
80935         * lib/regexec.c (re_search_2_stub, re_search_stub):
80936         Likewise, for RET_LEN arg.
80937         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80938         (set_regs): Likewise, for FL_BACKTRACK arg.
80939         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80940         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80941         (calc_eclosure_iter, parse_bracket_exp):
80942         Use bool for internal variables that are booleans.
80943         * lib/regexec.c (re_search_internal, check_matching,
80944         proceed_next_node):
80945         (set_regs, build_sifted_states, sift_states_bkref):
80946         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80947         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80948         (find_collation_sequence_value):
80949         Likewise.
80950         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80951         (re_node_set_compare):
80952         Return bool, not int. All callers changed.
80953         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80954         (build_trtable, check_node_accept): Likewise.
80955         * lib/regex_internal.h: Include stdbool.h.
80956
80957         Fix bugs uncovered when converting to bool.
80958         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80959         failure instead of charging ahead blindly.
80960         * lib/regex_internal.c (register_state): Likewise.
80961         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80962         for freeing internal storage.
80963         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80964         bitset pieces used as boolean, to avoid undefined behavior
80965         on hosts that do int overflow checking.
80966
80967 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80968
80969         * config/srclist.txt: Add glibc bugs 1285-1287.
80970
80971 2005-09-01  Jim Meyering  <jim@meyering.net>
80972
80973         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80974         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80975         Require gl_STAT_MACROS, too.
80976
80977 2005-09-01  Bruno Haible  <bruno@clisp.org>
80978
80979         * gnulib-tool (import): In the first-use case, provide defaults.
80980
80981 2005-09-01  Bruno Haible  <bruno@clisp.org>
80982
80983         * gnulib-tool (func_import): Remove the .tmp files.
80984
80985 2005-09-01  Bruno Haible  <bruno@clisp.org>
80986
80987         * gnulib-tool (func_import): Fix handling of symbolic links.
80988
80989 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80990
80991         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80992         old glibc regex code mishandles strings longer than 2**31 bytes.
80993         This patch fixes this when the regex code is used in gnulib
80994         (i.e., outside glibc).
80995
80996         This patch should not affect the use of the regex code inside
80997         glibc.  No doubt this problem also needs to be handled for glibc
80998         as well, but the result will be an incompatible change to the
80999         glibc ABI, and the old ABI will have to be supported too.  That
81000         can be the the subject for another patch.
81001
81002         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81003         governing whether the rest of this patch is active.  By default,
81004         the macro is disabled and the patch has no effect.
81005         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81006         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81007         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81008         (re_match_2, re_set_registers): Use the new types.
81009         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81010         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81011         New macros.
81012         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81013         (re_string_context_at, bin_tree_t, re_dfastate_t):
81014         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81015         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81016         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81017         (re_string_char_size_at, re_string_wchar_at):
81018         (re_string_elem_size_at):
81019         Use the new types and macros to port to 64-bit hosts.
81020         Use unsigned types for internal values, so that the code
81021         mostly works even for arrays larger than SSIZE_MAX.
81022         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81023         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81024         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81025         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81026         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81027         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81028         (calc_inveclosure, parse_dup_op, build_range_exp):
81029         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81030         (fetch_number, create_token_tree, mark_opt_subexp):
81031         Likewise.
81032         * lib/regex_internal.c (re_string_construct_common,
81033         create_ci_newstate):
81034         (create_cd_newstate, re_string_allocate, re_string_construct):
81035         (re_string_realloc_buffers, build_wcs_upper_buffer):
81036         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81037         (re_string_reconstruct, re_string_peek_byte_case):
81038         (re_string_fetch_byte_case, re_string_context_at):
81039         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81040         (re_node_set_init_copy, re_node_set_add_intersect):
81041         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81042         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81043         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81044         (re_acquire_state, re_acquire_state_context, register_state):
81045         Likewise.
81046         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81047         search_cur_bkref_entry):
81048         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81049         (re_search_internal, re_search_2_stub, re_search_stub)
81050         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81051         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81052         (update_cur_sifted_state, check_dst_limits):
81053         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81054         (check_subexp_limits, sift_states_bkref, merge_state_array):
81055         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81056         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81057         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81058         (expand_bkref_cache, check_node_accept_bytes):
81059         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81060         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81061         (acquire_init_state_context, check_halt_node_context):
81062         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81063         (sift_states_backward, clean_state_log_if_needed):
81064         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81065         (find_recover_state, transit_state_sb, transit_state_mb):
81066         (transit_state_bkref, build_trtable, match_ctx_clean):
81067         Likewise.
81068         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81069         to work around an assumption that REG_MISSING is negative.
81070
81071         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81072         (seek_collating_symbol_entry) [defined _LIBC]:
81073         (lookup_collation_sequence_value) [defined _LIBC]:
81074         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81075         Use prototypes rather than old-style function definitions.
81076         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81077         (transit_state_sb) [0]:
81078         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81079
81080         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81081         rm_eo.
81082
81083         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81084         (optimize_subexps, lower_subexp):
81085         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81086         since the signed shift might overflow.  Use 1u<<31 instead.
81087         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81088         Likewise.
81089         * lib/regexec.c (check_dst_limits_calc_pos_1,
81090         check_subexp_matching_top): Likewise.
81091
81092         * lib/regcomp.c (optimize_subexps, lower_subexp):
81093         Use CHAR_BIT rather than 8, for clarity.
81094         * lib/regexec.c (check_dst_limits_calc_pos_1):
81095         (check_subexp_matching_top): Likewise.
81096         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81097         have to worry about portability issues when shifting it left.
81098         Remove no-longer-needed test for table_size > 0.
81099         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81100         in a word, as the resulting behavior is undefined.
81101         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81102         in one case, a <= should have been an <, and in another case the
81103         whole test was missing.
81104         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81105         the standard name CHAR_BIT.
81106         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81107         this is not true on one's complement and signed-magnitude hosts.
81108
81109         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81110         next_last_offset.
81111         (struct re_dfa_t): Remove unused member states_alloc.
81112         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81113
81114 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81115
81116         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81117         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81118         and large-file glibc and in 32-bit large-file Solaris.
81119
81120 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81121
81122         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81123         lengths fit in regoff_t; this isn't true if regoff_t is the same
81124         width as size_t.
81125         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81126         (= START + RANGE) instead of RANGE.  This avoids overflow
81127         problems when regoff_t is the same width as size_t.
81128         All callers changed.
81129         (re_search_2_stub): Check for overflow when adding the
81130         sizes of the two strings.
81131         (re_search_stub): Check for overflow when adding START
81132         to RANGE; if it occurs, substitute the extreme value.
81133
81134 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81137
81138 2005-08-31  Jim Meyering  <jim@meyering.net>
81139
81140         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81141         a pointer-to-const.
81142         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81143         (register_state): Likewise.
81144         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81145         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81146         (group_nodes_into_DFAstates): Likewise.
81147
81148 2005-08-31  Jim Meyering  <jim@meyering.net>
81149
81150         * check-module: Add a FIXME comment.
81151
81152 2005-08-31  Eric Blake  <ebb9@byu.net>
81153
81154         * modules/unistd-safer (Files): Add unistd--.h.
81155         * modules/stdio-safer (Files): Add stdio--.h.
81156
81157 2005-08-31  Derek Price  <derek@ximbiot.com>
81158
81159         * lib/getdelim.c (getdelim): Return EOF on EOF.
81160         Reported by Larry Jones <lawrence.jones@ugs.com>.
81161
81162 2005-08-31  Bruno Haible  <bruno@clisp.org>
81163
81164         Avoid unnecessary diffs in the generated lib/Makefile.am.
81165         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81166         the generated files.
81167         (func_import): Don't set cmd.
81168
81169 2005-08-31  Bruno Haible  <bruno@clisp.org>
81170
81171         * lib/strstr.c: Include <stddef.h>, for NULL.
81172         * lib/strcasestr.c: Likewise.
81173         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81174
81175 2005-08-31  Bruno Haible  <bruno@clisp.org>
81176
81177         * gnulib-tool: New option --macro-prefix.
81178         (func_import): Use macro_prefix.
81179         (import): Handle option --macro-prefix.
81180
81181 2005-08-31  Bruno Haible  <bruno@clisp.org>
81182
81183         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81184         Also use new variables cached_lgpl, cached_libtool.
81185
81186 2005-08-31  Bruno Haible  <bruno@clisp.org>
81187
81188         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81189         always instantiating them.
81190
81191 2005-08-31  Bruno Haible  <bruno@clisp.org>
81192
81193         * gnulib-tool (func_import): Read the previous cached settings
81194         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81195         earlier added by gnulib but are now dropped. Warn when a gnulib file
81196         overwrites a non-gnulib file.
81197
81198 2005-08-31  Bruno Haible  <bruno@clisp.org>
81199
81200         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81201         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81202         projects that don't keep autogenerated files in CVS. Put into
81203         actioncmd only the specified modules, not the transitive closure.
81204
81205 2005-08-31  Bruno Haible  <bruno@clisp.org>
81206
81207         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81208         Create directories that shall be filled.
81209         (import): Don't look for gl_* macros in configure.ac. Recurse across
81210         all directories containing a gnulib-cache.m4 files, if meaningful.
81211
81212 2005-08-31  Bruno Haible  <bruno@clisp.org>
81213
81214         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81215         (import): Set seen_libtool when we see gl_LIBTOOL.
81216
81217 2005-08-31  Bruno Haible  <bruno@clisp.org>
81218
81219         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81220         declaration macro definitions from generated gnulib.m4.
81221
81222 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81223
81224         * lib/iconvme.h: Add prototype for iconv_alloc.
81225
81226 2005-08-29  Simon Josefsson  <jas@extundo.com>
81227
81228         * lib/iconvme.c: Fix errno.
81229
81230 2005-08-29  Bruno Haible  <bruno@clisp.org>
81231
81232         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81233         that it works when the directory contains spaces.
81234
81235 2005-08-29  Bruno Haible  <bruno@clisp.org>
81236
81237         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81238
81239 2005-08-29  Bruno Haible  <bruno@clisp.org>
81240
81241         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81242         Emit more advice.
81243
81244 2005-08-29  Bruno Haible  <bruno@clisp.org>
81245         and Stepan Kasal  <kasal@ucw.cz>
81246
81247         * check-module: If more parameters are given, check each of them
81248         separately; add more exceptions, as noted by Jim Meyering.
81249         (check_module): New procedure.
81250         (%exempt_header): Now contains all exceptions.
81251
81252 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81253
81254         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81255
81256 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81257
81258         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81259
81260 2005-08-28  Bruno Haible  <bruno@clisp.org>
81261
81262         * m4/gnulib-tool.m4: New file.
81263
81264 2005-08-27  Jim Meyering  <jim@meyering.net>
81265
81266         * modules/unistd-safer (Files): Add pipe-safer.c.
81267         * modules/fcntl-safer (Files): Add creat-safer.c.
81268
81269 2005-08-27  Jim Meyering  <jim@meyering.net>
81270
81271         * m4/stdlib-safer.m4: New file.  From coreutils.
81272         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81273         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81274         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81275         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81276         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81277
81278 2005-08-27  Jim Meyering  <jim@meyering.net>
81279
81280         * lib/fopen-safer.c: Merge minor changes from coreutils.
81281         * lib/dup-safer.c: Likewise.
81282         * lib/fd-safer.c: Likewise.
81283
81284         Merge from coreutils.
81285         * lib/stdio--.h: New file.
81286         * lib/stdlib--.h: New file.
81287         * lib/mkstemp-safer.c: New file.
81288
81289         GNU tar needs these.
81290         * lib/pipe-safer.c: New file.
81291         * lib/creat-safer.c: New file.
81292         * lib/fcntl--.h (creat): Define to creat_safer.
81293         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81294         * lib/unistd--.h (pipe): Define to pipe_safer.
81295         * lib/unistd-safer.h: Declare pipe_safer.
81296
81297 2005-08-26  Simon Josefsson  <jas@extundo.com>
81298
81299         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81300         Haible <bruno@clisp.org>.
81301
81302 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81303
81304         * lib/regex_internal.h: Remove all references to
81305         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81306         or better.
81307         (bitset_not, bitset_merge, bitset_not_merge):
81308         (bitset_mask, re_string_allocate, re_string_construct):
81309         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81310         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81311         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81312         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81313         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81314         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81315         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81316         (re_acquire_state_context):
81317         Remove unnecessary forward decls.
81318         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81319         Put __attribute at function definition,
81320         now that the function decl has been removed.
81321         * lib/regex_internal.c (re_string_peek_byte_case):
81322         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81323         Likewise.
81324
81325 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81326
81327         * m4/regex.m4: Add AC_PREREQ(2.50).
81328         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81329
81330 2005-08-25  Simon Josefsson  <jas@extundo.com>
81331
81332         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81333         __fsetlocking.
81334
81335 2005-08-25  Simon Josefsson  <jas@extundo.com>
81336
81337         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81338         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81339         GLIBC specific code.
81340
81341 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81342
81343         Make regex safe for g++.  This fixes one real bug (an "err"
81344         that should have been "*err").  g++ problem reported by
81345         Sam Steingold.
81346         * lib/regex_internal.h (re_calloc): New macro, consistent with
81347         re_malloc etc.  All callers of calloc changed to use re_calloc.
81348         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81349         not int.  All callers changed.
81350         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81351         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81352         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81353         (find_recover_state): Change "err" to "*err"; this fixes what
81354         appears to be a real bug.
81355         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81356         versus int.
81357
81358 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81359
81360         * modules/regex (Depends-on): Add malloc, since the code
81361         assumes that !malloc(0) means failure.
81362
81363 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81364
81365         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81366
81367         alloca modernization/simplification for regex.
81368         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81369         needs to be at the start of the file, and can be moved into
81370         regex_internal.h and simplified.
81371         * lib/regex_internal.h: Include <alloca.h>.
81372         (__libc_use_alloca) [!defined _LIBC]: New macro.
81373         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81374         now works outside glibc.
81375
81376 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * config/srclist.txt: Add glibc bugs 1241, 1245.
81379
81380 2005-08-25  Jim Meyering  <jim@meyering.net>
81381
81382         * lib/open-safer.c: Include <config.h>.
81383         Otherwise, we'd lose LARGEFILE support in any file using
81384         e.g. "fcntl--.h"
81385
81386 2005-08-25  Bruno Haible  <bruno@clisp.org>
81387
81388         * m4/minmax.m4: Require autoconf 2.52.
81389         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81390         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81391         alternatives of translit over the alphabet.
81392         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81393
81394 2005-08-24  Simon Josefsson  <jas@extundo.com>
81395
81396         * tests/test-getpass.c: New file.
81397
81398 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81399
81400         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81401         for GNU regex features.
81402
81403 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81404
81405         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81406         * lib/regex.h (regerror): Likewise.
81407
81408         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81409         requires this.  (The code never needed it.)
81410
81411         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81412         All uses of recently-renamed identifiers changed to use the new,
81413         POSIX-compliant names.  The code will build and run just fine
81414         without these changes, but it's better to eat our own dog food
81415         and use the standard-conforming names.
81416
81417         * lib/regex.h: Fix a multitude of POSIX name space violations.
81418         These changes have an effect only for programs that define
81419         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81420         do not change anything for programs compiled in the normal way.
81421         Also, there is no effect on the ABI.
81422
81423         (_REGEX_SOURCE): New macro.
81424         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81425         defined and _GNU_SOURCE is not; this fixes a name space violation.
81426
81427         Rename the following macros to obey POSIX requirements.
81428         The old names are still visible as macros if _REGEX_SOURCE is defined.
81429         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81430         RE_BACKSLASH_ESCAPE_IN_LISTS.
81431         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81432         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81433         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81434         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81435         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81436         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81437         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81438         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81439         (REG_INTERVALS): renamed from RE_INTERVALS.
81440         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81441         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81442         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81443         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81444         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81445         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81446         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81447         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81448         RE_UNMATCHED_RIGHT_PAREN_ORD.
81449         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81450         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81451         (REG_DEBUG): renamed from RE_DEBUG.
81452         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81453         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81454         unusual, since we can't clash with the POSIX REG_ICASE.
81455         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81456         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81457         (REG_NO_SUB): renamed from RE_NO_SUB.
81458         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81459         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81460         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81461         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81462         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81463         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81464         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81465         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81466         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81467         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81468         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81469         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81470         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81471         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81472         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81473         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81474         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81475         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81476         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81477         (REG_FIXED): Renamed from REGS_FIXED.
81478         (REG_NREGS): Renamed from RE_NREGS.
81479
81480         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81481         of other REG_* macros, since POSIX says the user is allowed to
81482         #undef these macros selectively.
81483
81484         (reg_errcode_t): Update comment stating what other tables need
81485         to be consistent.
81486
81487         Rename the following enum values to obey POSIX requirements.
81488         The old names are still visible as macros.
81489         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81490         is not defined, since GNU is supposed to be a superset of POSIX as
81491         much as possible, and since we want reg_errcode_t to be a signed
81492         type for implementation consistency.
81493         (_REG_NOERROR): Renamed from REG_NOERROR.
81494         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81495         (_REG_BADPAT): Renamed from REG_BADPAT.
81496         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81497         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81498         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81499         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81500         (_REG_EBRACK): Renamed from REG_EBRACK.
81501         (_REG_EPAREN): Renamed from REG_EPAREN.
81502         (_REG_EBRACE): Renamed from REG_EBRACE.
81503         (_REG_BADBR): Renamed from REG_BADBR.
81504         (_REG_ERANGE): Renamed from REG_ERANGE.
81505         (_REG_ESPACE): Renamed from REG_ESPACE.
81506         (_REG_BADRPT): Renamed from REG_BADRPT.
81507         (_REG_EEND): Renamed from REG_EEND.
81508         (_REG_ESIZE): Renamed from REG_ESIZE.
81509         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81510         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81511         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81512         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81513         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81514
81515         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81516         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81517         changed.  But support the old name if the new one is not defined
81518         and if _REGEX_SOURCE.
81519
81520         Change the following member names in struct re_pattern_buffer.
81521         The old names are still supported if !_REGEX_SOURCE.
81522         The new names are always supported, regardless of _REGEX_SOURCE.
81523         (re_buffer): Renamed from buffer.
81524         (re_allocated): Renamed from allocated.
81525         (re_used): Renamed from used.
81526         (re_syntax): Renamed from syntax.
81527         (re_fastmap): Renamed from fastmap.
81528         (re_translate): Renamed from translate.
81529         (re_can_be_null): Renamed from can_be_null.
81530         (re_regs_allocated): Renamed from regs_allocated.
81531         (re_fastmap_accurate): Renamed from fastmap_accurate.
81532         (re_no_sub): Renamed from no_sub.
81533         (re_not_bol): Renamed from not_bol.
81534         (re_not_eol): Renamed from not_eol.
81535         (re_newline_anchor): Renamed from newline_anchor.
81536
81537         Change the following member names in struct re_registers.
81538         The old names are still supported if !_REGEX_SOURCE.
81539         The new names are always supported, regardless of _REGEX_SOURCE.
81540         (rm_num_regs): Renamed from num_regs.
81541         (rm_start): Renamed from start.
81542         (rm_end): Renamed from end.
81543
81544         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81545         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81546         Prepend __ to parameter names.
81547
81548         Undo yesterday's changes.
81549
81550 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81551
81552         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81553         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81554         lib/regex.c.
81555
81556 2005-08-24  Jim Meyering  <jim@meyering.net>
81557
81558         Sync from coreutils.
81559         * m4/fcntl-safer.m4: New file.
81560
81561         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81562         and object files for this module.
81563
81564 2005-08-24  Jim Meyering  <jim@meyering.net>
81565
81566         Sync from coreutils.
81567         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81568
81569 2005-08-24  Jim Meyering  <jim@meyering.net>
81570
81571         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81572         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81573
81574 2005-08-24  Jim Meyering  <jim@meyering.net>
81575
81576         * modules/fcntl-safer: New module.
81577         * modules/fts (Depends-on): Add fcntl-safer.
81578         * MODULES.html.sh (File descriptor based Input/Output):
81579         Add fcntl-safer.
81580
81581 2005-08-24  Bruno Haible  <bruno@clisp.org>
81582
81583         Support for unit test modules.
81584         * modules/README: Mention tests modules.
81585         * modules/TEMPLATE-TESTS: New file.
81586         * gnulib-tool: New options --extract-tests-module, --with-tests and
81587         --tests-base (unused for the moment).
81588         (testsbase, inctests): New variables.
81589         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81590         (func_verify_module): Exclude TEMPLATE-TESTS.
81591         (func_verify_nontests_module, func_verify_tests_module): New functions.
81592         (func_get_dependencies): Add implicit dependency for tests modules.
81593         (func_get_tests_module): New function.
81594         (func_modules_transitive_closure): When --with-tests was specified,
81595         include the unit tests as well, unless explicitly avoided.
81596         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81597         (func_emit_tests_Makefile_am): New function.
81598         (func_create_testdir): When --with-tests was specified, emit a
81599         tests/ directory.
81600         * MODULES.html.sh (Future developments): Update.
81601
81602 2005-08-24  Bruno Haible  <bruno@clisp.org>
81603
81604         * modules/tls-tests: New file.
81605         * tests/test-tls.c: New file, from GNU gettext.
81606
81607 2005-08-24  Bruno Haible  <bruno@clisp.org>
81608
81609         * modules/lock-tests: New file.
81610         * tests/test-lock.c: New file, from GNU gettext.
81611
81612 2005-08-24  Bruno Haible  <bruno@clisp.org>
81613
81614         * lib/lock.h: Add multiple inclusion guard.
81615         * lib/tls.h: Add multiple inclusion guard.
81616
81617 2005-08-24  Bruno Haible  <bruno@clisp.org>
81618
81619         * gnulib-tool: Add support for the --aux-dir option to
81620         --create-testdir, --create-megatestdir, --test, --megatest.
81621         (func_create_testdir, func_create_megatestdir): Optionally emit a
81622         AC_CONFIG_AUX_DIR directive.
81623         (create-testdir, create-megatestdir, test, megatest): Provide a
81624         default value for $auxdir.
81625
81626 2005-08-24  Bruno Haible  <bruno@clisp.org>
81627
81628         * gnulib-tool (import): Use compound statement instead of subshell
81629         where possible.
81630
81631 2005-08-24  Bruno Haible  <bruno@clisp.org>
81632
81633         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81634
81635 2005-08-24  Bruno Haible  <bruno@clisp.org>
81636
81637         * gnulib-tool (func_version): Update.
81638
81639 2005-08-24  Bruno Haible  <bruno@clisp.org>
81640
81641         * gnulib-tool (func_import, func_create_testdir,
81642         func_create_megatestdir): Quote all autoconf macro arguments.
81643
81644 2005-08-24  Bruno Haible  <bruno@clisp.org>
81645
81646         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81647         option --force, because --force causes the aclocal.m4 of each
81648         subdirectory to be newer than the corresponding config.h.in.
81649
81650 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81651
81652         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81653         All contents moved to gl_REGEX.
81654         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81655         assume that it does.
81656
81657 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81658
81659         * lib/regex.h (REG_NOSYS)
81660         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81661         Define, since POSIX requires it as of 2001.
81662         (_REG_ENOSYS)
81663         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81664         New private symbol, used to keep the enum signed in all cases.
81665         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81666         Youngman in
81667         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81668
81669         * lib/regex_internal.c (re_string_skip_chars, register_state):
81670         (calc_state_hash):
81671         Remove forward decls; no longer needed now that we use prototypes.
81672         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81673         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81674         (clean_state_log_if_needed): Likewise.
81675
81676 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81677
81678         * config/srclist.txt: Add glibc bugs 1231-1233.
81679
81680 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81681
81682         Fix problems reported by Sam Steingold in
81683         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81684         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81685         assumed that reg_errcode_t is a signed type, which is not
81686         necessarily true if _XOPEN_SOURCE is not defined.
81687         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81688         since some compilers warn about it otherwise.
81689
81690 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81691
81692         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81693         (init_word_char, create_initial_state, duplicate_node_closure):
81694         (fetch_token, peek_token_bracket, build_range_exp):
81695         (build_collating_symbol): Remove forward decls; no longer needed
81696         now that we use prototypes.
81697
81698         * lib/regcomp.c:
81699         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81700         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81701         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81702         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81703         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81704         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81705         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81706         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81707         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81708         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81709         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81710         (build_charclass, build_charclass_op, fetch_number, create_tree):
81711         (create_token_tree, mark_opt_subexp, duplicate_tree):
81712         Use prototypes rather than old-style definitions.
81713
81714         * lib/regex_internal.c:
81715         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81716         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81717         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81718         (re_string_reconstruct, re_string_peek_byte_case):
81719         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81720         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81721         (re_node_set_init_copy, re_node_set_add_intersect):
81722         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81723         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81724         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81725         (re_acquire_state, re_acquire_state_context, register_state):
81726         (create_ci_newstate, create_cd_newstate, free_state):
81727         Likewise.
81728         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81729         re_search_2):
81730         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81731         (re_search_internal, prune_impossible_nodes):
81732         (acquire_init_state_context, check_matching, static):
81733         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81734         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81735         (update_regs, sift_states_backward, build_sifted_states):
81736         (clean_state_log_if_needed, merge_state_array):
81737         (update_cur_sifted_state, add_epsilon_src_nodes):
81738         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81739         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81740         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81741         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81742         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81743         (check_arrival, check_arrival_add_next_nodes):
81744         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81745         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81746         (check_node_accept_bytes, check_node_accept, extend_buffers):
81747         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81748         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81749         (sift_ctx_init):
81750         Likewise.
81751
81752         * lib/regex_internal.h:
81753         (re_string_allocate, re_string_construct, re_string_reconstruct):
81754         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81755         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81756         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81757         (re_string_context_at, re_string_peek_byte_case):
81758         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81759         is defined, since we now use prototypes always.
81760
81761         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81762         C89 or better.  All uses removed.
81763
81764 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81765
81766         * config/srclist.txt: Add glibc bugs 1220-1227.
81767
81768 2005-08-20  Jim Meyering  <jim@meyering.net>
81769
81770         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81771         of unused local, dfa.
81772
81773 2005-08-20  Bruno Haible  <bruno@clisp.org>
81774
81775         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81776
81777 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81778
81779         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81780         (re_node_set_insert_last, re_dfa_add_node):
81781         Rename local variables to avoid GCC shadowing warnings.
81782
81783 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81784
81785         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81786         [defined lint]: Suppress bogus uninitialized-variable warnings.
81787
81788         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81789         and let the caller return REG_ESPACE if out of space.  This
81790         removes an uninitialied-variable warning with GCC 4.0.1, and also
81791         avoids taking the address of a local variable.  All callers
81792         changed.
81793
81794 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81795
81796         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81797         $LIBCSRC/posix/regexec.c.
81798         Add glibc bug 1217 for regcomp.c.
81799
81800 2005-08-19  Jim Meyering  <jim@meyering.net>
81801
81802         * lib/regexec.c (proceed_next_node): Redo local variables to
81803         avoid GCC shadowing warnings.
81804
81805 2005-08-18  Bruno Haible  <bruno@clisp.org>
81806
81807         * lib/strstr.c (strstr): Fix return value in multibyte case.
81808         * lib/strcasestr.c (strcasestr): Likewise.
81809
81810 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81813
81814 2005-08-17  Jim Meyering  <jim@meyering.net>
81815
81816         Make the %s format (seconds since the epoch) work for a negative
81817         number and when used with a zero-padded field width, e.g. %015s.
81818
81819         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81820         label so that it precedes the code to set `digits'.  Otherwise,
81821         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81822         print `00-22'.  Now, it prints `-0022', as it should.
81823
81824 2005-08-17  Bruno Haible  <bruno@clisp.org>
81825
81826         * modules/strstr (Files): Add m4/mbrtowc.m4.
81827         (Depends-on): Add mbuiter.
81828
81829 2005-08-17  Bruno Haible  <bruno@clisp.org>
81830
81831         * modules/strcasestr: New file.
81832         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81833         strcasestr.
81834
81835 2005-08-17  Bruno Haible  <bruno@clisp.org>
81836
81837         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81838
81839 2005-08-17  Bruno Haible  <bruno@clisp.org>
81840
81841         * modules/mbuiter: New file.
81842         * MODULES.html.sh (Extended multibyte and wide character utilities):
81843         Add mbuiter.
81844
81845 2005-08-17  Bruno Haible  <bruno@clisp.org>
81846
81847         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81848         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81849
81850 2005-08-17  Bruno Haible  <bruno@clisp.org>
81851
81852         * m4/strcasestr.m4: New file.
81853
81854 2005-08-17  Bruno Haible  <bruno@clisp.org>
81855
81856         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81857         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81858
81859 2005-08-17  Bruno Haible  <bruno@clisp.org>
81860
81861         * lib/strcasestr.h: New file.
81862         * lib/strcasestr.c: New file.
81863
81864 2005-08-17  Bruno Haible  <bruno@clisp.org>
81865
81866         * lib/strcasecmp.c: Use mbuiter.h.
81867
81868 2005-08-17  Bruno Haible  <bruno@clisp.org>
81869
81870         * lib/mbuiter.h: New file.
81871
81872 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81875         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81876         and gl_GETOPT are both invoked via different paths (as happens
81877         with GNU tar CVS because it uses both argp and getopt), the former
81878         wins.
81879
81880 2005-08-16  Bruno Haible  <bruno@clisp.org>
81881
81882         * modules/tls: New file.
81883         * MODULES.html.sh (Multithreading): Add tls.
81884
81885 2005-08-16  Bruno Haible  <bruno@clisp.org>
81886
81887         * modules/strnlen1: New file.
81888         * MODULES.html.sh (String handling): Add strnlen1.
81889
81890 2005-08-16  Bruno Haible  <bruno@clisp.org>
81891
81892         * modules/strcase (Files): Add m4/mbrtowc.m4.
81893         (Depends-on): Add strnlen1, mbchar.
81894
81895 2005-08-16  Bruno Haible  <bruno@clisp.org>
81896
81897         * modules/mbiter: New file.
81898         * MODULES.html.sh (Extended multibyte and wide character utilities):
81899         Add mbiter.
81900
81901 2005-08-16  Bruno Haible  <bruno@clisp.org>
81902
81903         * modules/mbfile: New file.
81904         * MODULES.html.sh (Extended multibyte and wide character utilities):
81905         Add mbfile.
81906
81907 2005-08-16  Bruno Haible  <bruno@clisp.org>
81908
81909         * modules/mbchar: New file.
81910         * MODULES.html.sh (Extended multibyte and wide character utilities):
81911         New section.
81912
81913 2005-08-16  Bruno Haible  <bruno@clisp.org>
81914
81915         * m4/tls.m4: New file, from GNU gettext.
81916
81917 2005-08-16  Bruno Haible  <bruno@clisp.org>
81918
81919         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81920         always.
81921         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81922
81923 2005-08-16  Bruno Haible  <bruno@clisp.org>
81924
81925         * m4/mbiter.m4: New file.
81926
81927 2005-08-16  Bruno Haible  <bruno@clisp.org>
81928
81929         * m4/mbfile.m4: New file.
81930
81931 2005-08-16  Bruno Haible  <bruno@clisp.org>
81932
81933         * m4/mbchar.m4: New file.
81934
81935 2005-08-16  Bruno Haible  <bruno@clisp.org>
81936
81937         * lib/tls.h: New file, from GNU gettext.
81938         * lib/tls.c: New file, from GNU gettext.
81939
81940 2005-08-16  Bruno Haible  <bruno@clisp.org>
81941
81942         * lib/strnlen1.h: New file.
81943         * lib/strnlen1.c: New file.
81944
81945 2005-08-16  Bruno Haible  <bruno@clisp.org>
81946
81947         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81948         (mbi_init): Update.
81949         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81950         NUL byte, not after it.
81951
81952 2005-08-16  Bruno Haible  <bruno@clisp.org>
81953
81954         * lib/strcase.h (strcasecmp): Add note in comments.
81955         * lib/strncasecmp.c: Use code from strcasecmp.c.
81956         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81957         (strcasecmp): Work correctly in multibyte locales.
81958
81959 2005-08-16  Bruno Haible  <bruno@clisp.org>
81960
81961         * lib/mbiter.h: New file.
81962
81963 2005-08-16  Bruno Haible  <bruno@clisp.org>
81964
81965         * lib/mbfile.h: New file.
81966
81967 2005-08-16  Bruno Haible  <bruno@clisp.org>
81968
81969         * lib/mbchar.h: New file.
81970         * lib/mbchar.c: New file.
81971
81972 2005-08-16  Bruno Haible  <bruno@clisp.org>
81973
81974         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81975         the valid ones. Makes the comparison operations transitive:
81976         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81977         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81978
81979 2005-08-15  Simon Josefsson  <jas@extundo.com>
81980
81981         * modules/ssize_t (License): Change to 'unlimited'.
81982
81983         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81984
81985 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81986
81987         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81988         Add comments for each pending glibc patch.
81989
81990 2005-08-15  Bruno Haible  <bruno@clisp.org>
81991
81992         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81993         __cplusplus is defined.
81994
81995 2005-08-14  Jim Meyering  <jim@meyering.net>
81996
81997         Sync from coreutils.
81998
81999         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82000         Use the hash-table-based cycle-detection code not just when
82001         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82002         Reported by James Youngman in
82003         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82004         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82005         FTS_TIGHT_CYCLE_CHECK.
82006         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82007         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82008         once again.
82009         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82010         * lib/fts.c (fd_safer): Remove decl.
82011         Include fcntl--.h rather than unistd-safer.h
82012         (fts_safe_changedir): Don't call fd_safer; no longer needed
82013         now that we include fcntl--.h.
82014
82015 2005-08-12  Simon Josefsson  <jas@extundo.com>
82016
82017         * modules/getndelim2: Use ssize_t module.
82018         * modules/getnline: Likewise.
82019         * modules/safe-read: Likewise.
82020         * modules/xreadlink: Likewise.
82021
82022         * modules/ssize_t: New file.
82023
82024 2005-08-12  Simon Josefsson  <jas@extundo.com>
82025
82026         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82027
82028 2005-08-12  Simon Josefsson  <jas@extundo.com>
82029
82030         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82031         ssize_t.
82032
82033 2005-08-12  Simon Josefsson  <jas@extundo.com>
82034
82035         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82036         readline, getdelim and check_version.
82037         (Support for systems lacking ISO C 99: Sizes of integer types):
82038         Add size_max.
82039
82040 2005-08-12  Bruno Haible  <bruno@clisp.org>
82041
82042         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82043
82044 2005-08-11  Simon Josefsson  <jas@extundo.com>
82045
82046         * modules/readline: New file.
82047
82048         * modules/strnlen (Files): Add strnlen.h.
82049
82050 2005-08-11  Simon Josefsson  <jas@extundo.com>
82051
82052         * m4/readline.m4: New file.
82053
82054 2005-08-11  Simon Josefsson  <jas@extundo.com>
82055
82056         * lib/readline.h, readline.c: New file.
82057
82058 2005-08-11  Simon Josefsson  <jas@extundo.com>
82059
82060         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82061         gl_AVOID.
82062
82063 2005-08-11  Bruno Haible  <bruno@clisp.org>
82064
82065         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82066
82067 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82068
82069         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82070
82071 2005-08-10  Simon Josefsson  <jas@extundo.com>
82072
82073         * tests/test-iconvme.c: New file.
82074
82075 2005-08-10  Simon Josefsson  <jas@extundo.com>
82076
82077         * m4/strnlen.m4: New file.
82078
82079         * m4/strndup.m4: Don't check for strnlen declaration, done in
82080         strnlen.m4.
82081
82082 2005-08-10  Simon Josefsson  <jas@extundo.com>
82083
82084         * lib/strndup.c: Use strnlen.h.
82085
82086         * lib/strnlen.h: New file.
82087
82088 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82089
82090         * README: Typos.
82091
82092 2005-08-02  Simon Josefsson  <jas@extundo.com>
82093
82094         * modules/readline: New file.
82095
82096 2005-08-02  Simon Josefsson  <jas@extundo.com>
82097
82098         * modules/getdelim: New file.
82099
82100         * modules/getline: Rewrite, don't use getndelim2.
82101
82102 2005-08-02  Simon Josefsson  <jas@extundo.com>
82103
82104         * m4/getline.m4: Separate out getdelim stuff into separate module.
82105
82106         * m4/getdelim.m4: New file.
82107
82108 2005-08-02  Simon Josefsson  <jas@extundo.com>
82109
82110         * lib/getline.h, getline.c: Rewrite.
82111
82112         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82113
82114 2005-07-31  Bruno Haible  <bruno@clisp.org>
82115
82116         * lib/lock.h (gl_lock_initializer): New macro.
82117         (gl_lock_define_initialized): Use it.
82118         (gl_rwlock_initializer): New macro.
82119         (gl_rwlock_define_initialized): Use it.
82120         (gl_recursive_lock_initializer): New macro.
82121         (gl_recursive_lock_define_initialized): Use it.
82122
82123 2005-07-30  Karl Berry  <karl@gnu.org>
82124
82125         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82126         Report from Ben Pfaff, regarding getopt.
82127
82128 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82129
82130         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82131         normal way.
82132         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82133         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82134         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82135         (gl_GETOPT): Use the new macros.  Most of the implementation
82136         is moved to the new macros.  This is for programs like Emacs
82137         that don't want all the functionality of gl_GETOPT.
82138
82139 2005-07-26  Bruno Haible  <bruno@clisp.org>
82140
82141         * m4/lock.m4: Update from GNU gettext.
82142
82143 2005-07-26  Bruno Haible  <bruno@clisp.org>
82144
82145         * lib/lock.h: Update from GNU gettext.
82146         * lib/lock.c: Update from GNU gettext.
82147
82148 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82149
82150         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82151         obsolescent AC_TRY_RUN.  Include the default includes files, for
82152         'exit'.
82153
82154 2005-07-24  Bruno Haible  <bruno@clisp.org>
82155
82156         * modules/visibility: New file.
82157         * MODULES.html.sh (Misc): Add visibility.
82158
82159 2005-07-24  Bruno Haible  <bruno@clisp.org>
82160
82161         * m4/visibility.m4: New file.
82162
82163 2005-07-24  Bruno Haible  <bruno@clisp.org>
82164
82165         * doc/visibility.texi: New file.
82166
82167 2005-07-22  Bruno Haible  <bruno@clisp.org>
82168
82169         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82170         $(ALLOCA_H), redundant through BUILT_SOURCES.
82171         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82172         redundant through BUILT_SOURCES.
82173         * modules/byteswap (Makefile.am): Remove explicit dependency on
82174         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82175         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82176         $(FNMATCH_H), redundant through BUILT_SOURCES.
82177         * modules/getopt (Makefile.am): Remove explicit dependency on
82178         $(GETOPT_H), redundant through BUILT_SOURCES.
82179         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82180         redundant through BUILT_SOURCES.
82181         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82182         redundant through BUILT_SOURCES.
82183         * modules/stdbool (Makefile.am): Remove explicit dependency on
82184         $(STDBOOL_H), redundant through BUILT_SOURCES.
82185         * modules/stdint (Makefile.am): Remove explicit dependency on
82186         $(STDINT_H), redundant through BUILT_SOURCES.
82187         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82188         Remove explicit dependency on $(SYSEXITS_H).
82189         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82190
82191 2005-07-18  Simon Josefsson  <jas@extundo.com>
82192
82193         * lib/check-version.c (check_version): Accept identical versions too.
82194
82195 2005-07-18  Bruno Haible  <bruno@clisp.org>
82196
82197         * modules/lock: New file.
82198         * MODULES.html.sh (Multithreading): New section.
82199
82200 2005-07-18  Bruno Haible  <bruno@clisp.org>
82201
82202         * m4/lock.m4: New file, from GNU gettext.
82203
82204 2005-07-18  Bruno Haible  <bruno@clisp.org>
82205
82206         * lib/lock.h: New file, from GNU gettext.
82207         * lib/lock.c: New file, from GNU gettext.
82208
82209 2005-07-18  Bruno Haible  <bruno@clisp.org>
82210
82211         * lib/lock.h (gl_once_t): New type.
82212         (gl_once_define, gl_once): New macros.
82213         * lib/lock.c (fresh_once): New variable.
82214         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82215         functions.
82216
82217 2005-07-16  Simon Josefsson  <jas@extundo.com>
82218
82219         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82220         workaround, suggested by Bruno.
82221
82222 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82223
82224         * modules/xalloc (Depends-on): Add xalloc-die.
82225         * modules/xvasprintf (Depends-on): Add xalloc-die.
82226
82227 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82230         with a minor change.
82231
82232 2005-07-15  Bruno Haible  <bruno@clisp.org>
82233
82234         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82235         When using lib/poll.c, define poll as rpl_poll.
82236
82237 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82238
82239         * modules/argp (Depends-on): Remove unlocked-io.
82240
82241 2005-07-14  Derek Price  <derek@ximbiot.com>
82242
82243         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82244         for glob symlink bug.
82245
82246 2005-07-14  Bruno Haible  <bruno@clisp.org>
82247
82248         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82249         Instead, test for *_unlocked function declarations directly.
82250
82251 2005-07-11  Simon Josefsson  <jas@extundo.com>
82252
82253         * modules/size_max: New file.
82254
82255         * modules/xsize: Depend on size_max module for size_max.m4.
82256
82257 2005-07-11  Simon Josefsson  <jas@extundo.com>
82258
82259         * lib/size_max.h: New file.
82260
82261 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82262
82263         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82264         copyright symbol and the year.
82265         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82266         (version_etc_va): Use parameterized copyright notice.
82267         Reword to conform to the current GNU coding standards.
82268
82269 2005-07-11  Karl Berry  <karl@gnu.org>
82270
82271         * doc/gnulib.texi (Quoting): new node.
82272         (Initial import): more info, from Patrice.
82273
82274 2005-07-11  Bruno Haible  <bruno@clisp.org>
82275
82276         * gnulib-tool (func_usage): Document option --avoid.
82277         (Command line options): Handle --avoid.
82278         (func_acceptable): New function.
82279         (func_modules_transitive_closure): Use it.
82280
82281 2005-07-11  Bruno Haible  <bruno@clisp.org>
82282
82283         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82284         Reported by Jim Meyering.
82285
82286 2005-07-10  Bruno Haible  <bruno@clisp.org>
82287
82288         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82289         Needed when size_t is smaller than 'unsigned int'.
82290         Reported by Paul Eggert.
82291
82292 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82293
82294         * modules/argp (Depends-on): Add unlocked-io
82295
82296 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82297
82298         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82299         block of defines.
82300
82301 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82302
82303         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82304         fix now.
82305
82306 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82307         and Paul Eggert  <eggert@cs.ucla.edu>
82308
82309         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82310         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82311
82312 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82313
82314         * modules/regex (Files): Add lib/regex_internal.c,
82315         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82316         (Depends-on): Add extensions.
82317         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82318
82319 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82320
82321         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82322         pathconf.
82323         * m4/same.m4 (gl_SAME): Likewise.
82324         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82325
82326         * m4/regex.m4: Adjust to new libc regex implementation.
82327         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82328         all the .c and .h parts of (the new) regex.
82329         Quote the m4 stuff better.
82330         Check for RE_ICASE bug of old gnulib.
82331         Check for REG_STARTEND of recent libc.
82332         Rename local variables from jm_* to gl_*.
82333         Quote operand of "test -f".
82334         Say "recent enough" version of libc, not "version 2".
82335         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82336         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82337         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82338         Remove check for btowc, isascii.
82339         Require AM_LANGINFO_CODESET.
82340
82341 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82342
82343         * lib/regex.c, regex.h: Sync from libc.
82344         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82345         * lib/regexec.c:
82346         New files, synced from libc, except that regex_internal.h
82347         currently has a small porting fix.
82348
82349 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82352         regex_internal.c, regexec.c.
82353         Add regex_internal.h too, but as a comment, since the libc version
82354         is currently broken in gnulib mode.
82355
82356 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82357
82358         Support programs like Emacs that use gnulib but not gettext.
82359         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82360         * modules/gettext-h: New file.
82361         * modules/gettext (Files): Remove lib/gettext.h.
82362         (Depends-on): Add gettext-h.
82363         (Makefile.am): Remove lib_SOURCES.
82364         * modules/argmatch, modules/c-stack, modules/closeout:
82365         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82366         * modules/execute, modules/file-type, modules/getaddrinfo:
82367         * modules/getopt, modules/human, modules/javacomp:
82368         * modules/javaexec, modules/mkdir-p, modules/obstack:
82369         * modules/openat, modules/pagealign_alloc, modules/pipe:
82370         * modules/quotearg, modules/regex, modules/rpmatch:
82371         * modules/unicodeio, modules/userspec, modules/version-etc:
82372         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82373         * modules/xsetenv:
82374         Depend on gettext-h, not gettext.
82375
82376 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82377
82378         * gnulib-tool (func_import): Add support for 'public domain' license.
82379         * modules/alloca, modules/atexit, modules/memmove:
82380         Now public domain, not GPL.
82381         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82382         * modules/realloc, modules/strerror, modules/strtod:
82383         Now LGPL, not GPL.
82384
82385 2005-07-05  Bruno Haible  <bruno@clisp.org>
82386
82387         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82388         autoconf CVS. Needed for mingw.
82389
82390 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82391
82392         Remove the dependency of the strftime module on the tzset module.
82393         * modules/strftime (Depends-on): Remove dependency on tzset.
82394
82395 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82396
82397         Remove the dependency of the strftime module on the tzset module.
82398         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82399         gl_FUNC_TZSET_CLOBBER.
82400
82401 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82402
82403         Remove the dependency of the strftime module on the tzset module.
82404         * lib/strftime.c (my_strftime)
82405         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82406         Copy the input structure, to work around some of the bug with
82407         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82408         Solaris releases, you should also use the tzset module, but we won't
82409         require it as a dependency any more since we don't want LGPLed code
82410         to depend on GPLed code.
82411
82412 2005-07-02  Jim Meyering  <jim@meyering.net>
82413
82414         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82415         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82416         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82417         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82418
82419 2005-07-02  Jim Meyering  <jim@meyering.net>
82420
82421         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82422
82423 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82424
82425         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82426         declares only 'struct timespec;' (!).
82427
82428 2005-07-01  Jim Meyering  <jim@meyering.net>
82429
82430         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82431         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82432         * lib/save-cwd.c, tempname.c:
82433         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82434         and don't include <sys/file.h>).
82435
82436 2005-06-29  Jim Meyering  <jim@meyering.net>
82437
82438         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82439         type name.  Use the variable name instead.
82440         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82441         Likewise.
82442
82443 2005-06-28  Simon Josefsson  <jas@extundo.com>
82444
82445         * modules/check-version (Files): Add check-version.m4.
82446
82447 2005-06-28  Simon Josefsson  <jas@extundo.com>
82448
82449         * m4/check-version.m4: New file, suggested by Jim Meyering
82450         <jim@meyering.net>.
82451
82452 2005-06-28  Simon Josefsson  <jas@extundo.com>
82453
82454         * lib/check-version.h, lib/check-version.c: New files.
82455
82456 2005-06-28  Simon Josefsson  <jas@extundo.com>
82457
82458         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82459         collision with global variable.  Better indentation.  Don't
82460         increment buffer pointer beyond buffer end.  Based on comments
82461         from Paul Eggert <eggert@cs.ucla.edu>.
82462
82463         * lib/base64.h: Indent.
82464
82465 2005-06-28  Simon Josefsson  <jas@extundo.com>
82466
82467         * doc/gnulib.texi (Library version handling): New section.
82468
82469 2005-06-28  Jim Meyering  <jim@meyering.net>
82470
82471         * check-module (find_included_lib_files): Hard-code another
82472         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82473         but modules/fts-lgpl (correctly) does not list those files.
82474
82475         * modules/canonicalize (Files): Add lib/pathmax.h.
82476
82477 2005-06-25  Simon Josefsson  <jas@extundo.com>
82478
82479         * modules/check-version: New file.
82480
82481 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82482
82483         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82484         initializer of struct addrinfo, as an indication that we don't
82485         care how many members the structure has.
82486
82487 2005-06-24  Derek Price  <derek@ximbiot.com>
82488         and Bruno Haible  <bruno@clisp.org>
82489
82490         Remove stat module & update lstat.
82491         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82492         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82493         * m4/stat.m4: Remove this file.
82494
82495 2005-06-24  Derek Price  <derek@ximbiot.com>
82496         and Bruno Haible  <bruno@clisp.org>
82497
82498         Remove stat module & update lstat.
82499         * lib/stat.c: Remove this file...
82500         (slash_aware_lstat): ...moving this content and its support...
82501         * lib/lstat.c (rpl_lstat): ...into here.
82502         * lib/lstat.h: New file.
82503
82504 2005-06-24  Derek Price  <derek@ximbiot.com>
82505         and Bruno Haible  <bruno@clisp.org>
82506
82507         Remove stat module & update lstat.
82508         * config/srclist.txt (libc sources): Remove stat.
82509
82510 2005-06-24  Derek Price  <derek@ximbiot.com>
82511         and Bruno Haible  <bruno@clisp.org>
82512
82513         Remove stat module & update lstat.
82514         * MODULES.html.sh (stat): Remove.
82515         * MODULES.html: Regenerated.
82516         * modules/lstat (Description): Correct function name.
82517         (Files): Add "lstat.h".
82518         (Depends-on): Remove stat, add xalloc, stat-macros.
82519         * modules/stat: Remove this file.
82520         (Include): Add "lstat.h", remove <sys/stat.h>.
82521
82522 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82523
82524         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82525         (ranged_convert): Don't save conversion in a temporary struct.
82526         This causes a warning with GCC 4.0.0, and anyway in the typical
82527         case it's not worth the extra 100 bytes or so of code.
82528         (ranged_convert, __mktime_internal): When calling a function via a
82529         pointer P, use P () rather than (*P) (), as we now assume C89 or
82530         better.
82531
82532 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82533
82534         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82535         "who -r" failed to give output.  Problem reported by Tim Waugh.
82536
82537         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82538         (xcalloc): Use it to avoid needless tests.
82539         Problem reported by Jim Meyering.
82540
82541 2005-06-20  Derek Price  <derek@ximbiot.com>
82542
82543         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82544         unnecessary for Autoconfs > 2.59c.
82545
82546 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82547
82548         * lib/argp.h (__option_is_short): Check upper limit of
82549         __key. Isprint() requires its argument to have the value
82550         of an unsigned char or EOF.
82551
82552 2005-06-16  Jim Meyering  <jim@meyering.net>
82553
82554         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82555         when either N or S is zero.
82556
82557 2005-06-16  Derek Price  <derek@ximbiot.com>
82558
82559         * m4/bison.m4: Declare YACC & YFLAGS precious.
82560
82561 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82562
82563         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82564         multibyte string or pattern, fall back on unibyte matching.
82565         Problem reported by James Youngman.
82566
82567 2005-06-08  Bruno Haible  <bruno@clisp.org>
82568
82569         * modules/csharpcomp: New file.
82570         * MODULES.html.sh (C#): Add csharpcomp.
82571
82572 2005-06-08  Bruno Haible  <bruno@clisp.org>
82573
82574         * m4/csharpcomp.m4: New file, from GNU gettext.
82575
82576 2005-06-08  Bruno Haible  <bruno@clisp.org>
82577
82578         * lib/csharpcomp.h: New file, from GNU gettext.
82579         * lib/csharpcomp.c: New file, from GNU gettext.
82580         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82581
82582 2005-06-08  Bruno Haible  <bruno@clisp.org>
82583
82584         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82585         warning on mingw.
82586
82587 2005-06-07  Derek Price  <derek@ximbiot.com>
82588
82589         Sync from CVS.
82590         * lib/glob_.h: Indent nested #ifdef.
82591
82592 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82593
82594         Sync from coreutils.
82595         Use "file name" when talking about file names, instead of "filename"
82596         or "path", as per the GNU coding standards.
82597         * lib/mkdir-p.c: Renamed from makepath.c.
82598         (make_dir_parents): Renamed from make_path.  All callers changed.
82599         * lib/mkdir-p.h: Likewise.  All includers changed.
82600         * lib/filenamecat.c: Renamed from path-concat.c.
82601         (file_name_concat): Renamed from path_concat.  All callers changed.
82602         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82603         * lib/filenamecat.h: Likewise.  All includers changed.
82604         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82605         in comments or local variable names.
82606         * lib/basename.c: Likewise.
82607         * lib/canonicalize.c, canonicalize.h: Likewise.
82608         * lib/dirname.c, dirname.h: Likewise.
82609         * lib/euidaccess.c: Likewise.
82610         * lib/exclude.c: Likewise
82611         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82612         * lib/fsusage.c, fsuage.h: Likewise.
82613         * lib/fts.c, fts_.h: Likewise.
82614         * lib/getcwd.c: Likewise.
82615         * lib/getloadavg.c: Likewise.
82616         * lib/mkstemp.c: Likewise.
82617         * lib/mountlist.c, mountlist.h: Likewise.
82618         * lib/openat.c, openat.h: Likewise.
82619         * lib/readlink-stub.c: Likewise.
82620         * lib/readutmp.c, readutmp.h: Likewise.
82621         * lib/rename.c: Likewise.
82622         * lib/rmdir.c: Likewise.
82623         * lib/same.c: Likewise.
82624         * lib/savedir.c: Likewise.
82625         * lib/stripslash.c: Likewise.
82626         * lib/tempname.c: Likewise.
82627         * lib/xreadlink.c: Likewise.
82628         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82629         All uses changed.
82630         * lib/exclude.h: Likewise.
82631
82632         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82633         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82634         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82635         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82636         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82637         files have been getting away with it for years (MORE/BSD 4.3
82638         is extinct now).
82639         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82640         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82641
82642         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82643         Define to 256, not 255, as per modern POSIX.
82644
82645 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82646
82647         Sync from coreutils.
82648         Use "file name" when talking about file names, instead of "filename"
82649         or "path", as per the GNU coding standards.
82650         * MODULES.html.sh: mkdir-p renamed from makepath.
82651         filenamecat renamed from path-concat.
82652         * modules/filenamecat: Renamed from modules/path-concat.
82653         (Files): filenamecat.h and filenamecat.c renamed from
82654         path-concat.h and path-concat.c.
82655         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82656         (Include): filenamecat.h, not path-concat.h.
82657         * modules/mkdir-p: Renamed from modules/makepath.
82658         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82659         makepath.c.
82660         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82661         (Include): mkdir-p.h, not makepath.h.
82662
82663 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         Sync from coreutils.
82666         * m4/mkdir-p.m4: Renamed from makepath.m4.
82667         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82668         Rename files from makepath.c to mkdir-p.c, and from
82669         makepath.h to mkdir-p.h.
82670         * m4/filenamecat.m4: Renamed from path-concat.m4.
82671         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82672         Rename files from path-concat.c to filenamecat.c,
82673         and from path-concat.h to filenamecat.h.
82674         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82675         "file name" in local variables or comments.
82676         * m4/rename.m4: Likewise.
82677
82678 2005-06-01  Bruno Haible  <bruno@clisp.org>
82679
82680         * modules/csharpexec: New file.
82681         * MODULES.html.sh (C#): New section.
82682
82683 2005-06-01  Bruno Haible  <bruno@clisp.org>
82684
82685         * m4/csharp.m4: New file, from GNU gettext.
82686         * m4/csharpexec.m4: New file, from GNU gettext.
82687
82688 2005-06-01  Bruno Haible  <bruno@clisp.org>
82689
82690         * lib/csharpexec.h: New file, from GNU gettext.
82691         * lib/csharpexec.c: New file, from GNU gettext.
82692         * lib/csharpexec.sh.in: New file, from GNU gettext.
82693
82694 2005-05-31  Derek Price  <derek@ximbiot.com>
82695             Paul Eggert  <eggert@cs.ucla.edu>
82696
82697         Sync from cvs.
82698         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82699
82700 2005-05-31  Derek Price  <derek@ximbiot.com>
82701             Paul Eggert  <eggert@cs.ucla.edu>
82702
82703         Sync from cvs.
82704         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82705
82706 2005-05-29  Derek Price  <derek@ximbiot.com>
82707
82708         * config/srclist.txt (glob_.h, glob.c): Add these files.
82709
82710 2005-05-29  Derek Price  <derek@ximbiot.com>
82711
82712         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82713         * modules/glob: New file.
82714         * modules/getlogin_r: Add link to POSIX spec in description.
82715
82716 2005-05-29  Derek Price  <derek@ximbiot.com>
82717             Paul Eggert  <eggert@cs.ucla.edu>
82718
82719         * m4/glob.m4: New file.
82720
82721 2005-05-29  Derek Price  <derek@ximbiot.com>
82722             Paul Eggert  <eggert@cs.ucla.edu>
82723
82724         * lib/glob_.h, lib/glob.c: New files.
82725
82726 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82727
82728         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82729         * modules/fts-lgpl (Depends-on): Remove gettext.
82730
82731 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82732
82733         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82734         and don't require gt_INTTYPES_PRI.
82735
82736 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82737
82738         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82739
82740         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82741         the configuration hassle isn't worth it.
82742         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82743         (LONGEST_MODIFIER, PRIuMAX): Remove.
82744
82745 2005-05-27  Bruno Haible  <bruno@clisp.org>
82746
82747         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82748
82749 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82750
82751         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82752         _POSIX_PTHREAD_SEMANTICS for Solaris.
82753
82754 2005-05-25  Derek Price  <derek@ximbiot.com>
82755
82756         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82757
82758 2005-05-25  Derek Price  <derek@ximbiot.com>
82759             Paul Eggert  <eggert@cs.ucla.edu>
82760
82761         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82762         * lib/getlogin_r.c, getlogin_r.h: New files.
82763
82764 2005-05-25  Bruno Haible  <bruno@clisp.org>
82765             Derek Price  <derek@ximbiot.com>
82766
82767         * lib/getlogin_r.h: Simplify API documentation.
82768
82769 2005-05-23  Derek Price  <derek@ximbiot.com>
82770
82771         * modules/minmax (Files): Add m4/minmax.m4.
82772         (configure.ac): Add gl_MINMAX.
82773
82774 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82775
82776         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82777         so that unistd-safer.h (GPL'ed code) need not be included.
82778
82779 2005-05-22  Bruno Haible  <bruno@clisp.org>
82780
82781         * m4/minmax.m4: New file.
82782         Based on a patch by Derek Price <derek@ximbiot.com>.
82783
82784 2005-05-22  Bruno Haible  <bruno@clisp.org>
82785
82786         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82787         (INT64_MIN): Fix definition.
82788         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82789
82790         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82791         NEED_SIGNED_INT_TYPES.
82792
82793         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82794         HAVE_SYSTEM_INTTYPES.
82795
82796 2005-05-22  Bruno Haible  <bruno@clisp.org>
82797
82798         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82799         Also include <sys/param.h> if it defines MIN, MAX.
82800         Based on a patch by Derek Price <derek@ximbiot.com>.
82801
82802 2005-05-21  Jim Meyering  <jim@meyering.net>
82803
82804         * modules/fts (Files): Add m4/inttypes-pri.m4.
82805         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82806
82807 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82808
82809         New fts module.
82810         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82811         (setup_dir, free_dir): New functions.
82812         (enter_dir, leave_dir): Define trivial
82813         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82814         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82815         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82816         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82817         Move to fts-cycle.c.
82818         (fts_open): Use setup_dir.
82819         (fts_close): Use free_dir.
82820         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82821         This adds a label and some gotos, but the alternatives were messier.
82822         Check for memory allocation failure when entering a dir.
82823         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82824         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82825         (FTS): New member fts_cycle, that is a union that contains the
82826         old active_dir_ht and cycle_state.  All uses changed to mention
82827         fts_cycle.ht and fts_cycle.state.
82828         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82829         fts.c, with the following changes:
82830         (setup_dir, free_dir): New functions.
82831         (enter_dir): Now returns bool.  Return true if successful, false
82832         if memory exhausted.  All callers changed.
82833         Do not bother partly cleaning up on
82834         memory allocation failure; that is free_dir's job.
82835         However, free ad if hash_insert fails, to avoid memory leak.
82836         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82837         fts->fts_options to see which union member to use.
82838
82839 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82840
82841         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82842         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82843
82844 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82845
82846         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82847
82848 2005-05-20  Jim Meyering  <jim@meyering.net>
82849
82850         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82851         Now a macro, to pacify GCC.
82852
82853 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82854
82855         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82856         of -1.
82857
82858 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82859
82860         * lib/chown.c (rpl_chown): Return -1 on failure.
82861
82862 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82863
82864         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82865         Don't check for stddef.h.
82866         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82867         don't use its results.
82868         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82869         since we include them unconditionally.  Don't require
82870         AM_STDBOOL_H, since stdbool is a prerequisite.
82871         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82872         since we assume C89 or better.
82873         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82874         as we don't use their results.
82875         Don't check for fchdir, memmove, memset, strrchr, as we use
82876         them unconditionally.
82877         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82878         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82879
82880 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82881
82882         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82883         Include <stddef.h> unconditionally, since we assume C89 now.
82884         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82885         * lib/fts.c: Include fts_.h first, to check interface.
82886         Do not include intprops.h; no longer needed.
82887         Include cycle-check.h and hash.h, since fts_.h no longer does.
82888         Remove unnecessary casts of closedir to void.
82889         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82890         decide whether to decrement nlinks.
82891         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82892         (FTS): Use struct hash_table * instead of Hash_table, so that
82893         we no longer need to include hash.h here.
82894
82895 2005-05-18  Jim Meyering  <jim@meyering.net>
82896
82897         * modules/dirfd (License): Change to LGPL.  Most of the code
82898         is already in the public domain.
82899
82900 2005-05-18  Jim Meyering  <jim@meyering.net>
82901
82902         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82903         Reported by Yoann Vandoorselaere.
82904
82905 2005-05-17  Jim Meyering  <jim@meyering.net>
82906
82907         * m4/fts.m4: New file, from coreutils.
82908
82909 2005-05-17  Jim Meyering  <jim@meyering.net>
82910
82911         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82912
82913 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82914
82915         Sync from coreutils.
82916         * m4/unlinkdir.m4: New file.
82917
82918 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82919
82920         Sync from coreutils.
82921         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82922         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82923         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82924         White space changes only.
82925         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82926         special.
82927         * lib/yesno.c: Include getline.h, not ctype.h.
82928         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82929         Use getline to remove arbitrary restriction on response length.
82930
82931 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82932
82933         * config/srclist-update: Spell out "Street" in FSF postal
82934         mail address; this is the style the FSF seems to prefer.
82935
82936         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82937         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82938         this updates FSF postal mail address.
82939
82940         Sync from coreutils.
82941         * modules/unlinkdir: New file.
82942         * modules/yesno (Depends-on): Add getline.
82943         * MODULES.html.sh (File system functions): Add unlinkdir.
82944
82945 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82946
82947         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82948         lib/strsep.h:
82949         Change the initial comment to refer to GPL, not LGPL.
82950         gnulib-tool will change it to LGPL as needed.
82951
82952         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82953         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82954         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82955         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82956         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82957         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82958         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82959         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82960         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82961         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82962         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82963         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82964         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82965         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82966         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82967         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82968         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82969         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82970         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82971         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82972         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82973         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82974         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82975         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82976         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82977         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82978         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82979         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82980         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82981         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82982         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82983         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82984         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82985         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82986         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82987         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82988         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82989         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82990         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82991         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82992         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82993         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82994         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82995         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82996         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82997         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82998         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82999         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83000         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83001         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83002         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83003         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83004         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83005         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83006         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83007         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83008         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83009         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83010         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83011         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83012         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83013         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83014         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83015         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83016         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83017         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83018         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83019         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83020         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83021         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83022         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83023         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83024         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83025         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83026         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83027         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83028         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83029         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83030         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83031         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83032         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83033         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83034         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83035         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83036         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83037         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83038         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83039         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83040         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83041         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83042         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83043         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83044         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83045         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83046         lib/yesno.c, lib/yesno.h:
83047         Update FSF postal mail address.
83048
83049 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83050
83051         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83052         tests/test-memmem.c, tests/test-stpncpy.c:
83053         Update FSF postal mail address.
83054
83055 2005-05-13  Bruno Haible  <bruno@clisp.org>
83056
83057         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83058         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83059         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83060         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83061         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83062         Add support for 64-bit integers in the MSVC compiler.
83063
83064 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83065
83066         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83067
83068 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83069
83070         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83071
83072 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83073
83074         * doc/getdate.texi (General date syntax): Don't say that date
83075         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83076         Problem reported by Nic Ferrier.
83077
83078 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83079
83080         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83081         specified in ai_socktype. Fix invalid ai_protocol
83082         check. ai_protocol is usually set to 0 or depending on
83083         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83084         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83085         ai_socktype / ai_protocol in the returned addrinfo structure.
83086
83087 2005-05-10  Simon Josefsson  <jas@extundo.com>
83088
83089         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83090         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83091
83092 2005-05-10  Karl Berry  <karl@gnu.org>
83093
83094         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83095         (from http://www.gnu.org/licenses).
83096         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83097         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83098         fdl.texi suffices.
83099
83100 2005-05-10  Karl Berry  <karl@gnu.org>
83101
83102         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83103         (COPYING.DOC): remove.
83104
83105         * config/srclist-update: new FSF address.
83106
83107 2005-05-10  Derek Price  <derek@ximbiot.com>
83108
83109         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83110         possible.
83111
83112 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83113             Bruno Haible  <bruno@clisp.org>
83114
83115         * modules/inet_ntop: New file.
83116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83117         inet_ntop.
83118
83119 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83120             Bruno Haible  <bruno@clisp.org>
83121
83122         * m4/inet_ntop.m4: New file.
83123
83124 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83125             Bruno Haible  <bruno@clisp.org>
83126
83127         * lib/inet_ntop.h: New file.
83128         * lib/inet_ntop.c: New file, from glibc with modifications.
83129
83130 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83131
83132         * modules/time_r (License): Change to LGPL.
83133         * modules/extensions (License): Change to LGPL.  Actually,
83134         the license is more permissive than that, but currently gnulib-tool
83135         doesn't know how to handle more-permissive licenses.
83136
83137         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83138         Problem reported by Dave Love.
83139
83140 2005-05-08  Jim Meyering  <jim@meyering.net>
83141
83142         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83143         blank.
83144
83145 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83146
83147         * modules/argmatch (Depends-on): Add stdbool.
83148         * modules/backupfile (Depends-on): Likewise.
83149         * modules/chdir-long (Depends-on): Likewise.
83150         * modules/closeout (Depends-on): Likewise.
83151         * modules/cycle-check (Depends-on): Likewise.
83152         * modules/dirname (Depends-on): Likewise.
83153         * modules/fnmatch (Depends-on): Likewise.
83154         * modules/fsusage (Depends-on): Likewise.
83155         * modules/fwriteerror (Depends-on): Likewise.
83156         * modules/getcwd (Depends-on): Likewise.
83157         * modules/getloadavg (Depends-on): Likewise.
83158         * modules/hard-locale (Depends-on): Likewise.
83159         * modules/makepath (Depends-on): Likewise.
83160         * modules/mountlist (Depends-on): Likewise.
83161         * modules/nanosleep (Depends-on): Likewise.
83162         * modules/posixtm (Depends-on): Likewise.
83163         * modules/quotearg (Depends-on): Likewise.
83164         * modules/readtokens (Depends-on): Likewise.
83165         * modules/readtokens0 (Depends-on): Likewise.
83166         * modules/readutmp (Depends-on): Likewise.
83167         * modules/save-cwd (Depends-on): Likewise.
83168         * modules/strftime (Depends-on): Likewise.
83169         * modules/userspec (Depends-on): Likewise.
83170         * modules/utimecmp (Depends-on): Likewise.
83171         * modules/xgetcwd (Depends-on): Likewise.
83172         * modules/xnanosleep (Depends-on): Likewise.
83173         * modules/xstrtod (Depends-on): Likewise.
83174         * modules/yesno (Depends-on): Likewise.
83175
83176 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83179         needless checks.
83180
83181 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83182
83183         Merge from coreutils.  Among other things,
83184         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83185         * lib/fd-safer.c: New file.
83186         * lib/fcntl-safer.h, open-safer.c: Remove.
83187         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83188         * lib/dup-safer.c: Include unistd-safer.h first.
83189         Don't include errno.h.
83190         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83191         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83192         * lib/file-type.c: Rely on file-type.h change.
83193         * lib/getloadavg.c: Include unistd-safer.h.
83194         (getloadavg): Use safer open.
83195         * lib/getusershell.c: Include "stdio-safer.h".
83196         (getusershell): Use safer fopen.
83197         * lib/long-options.c (long_options): Use NULL rather than 0.
83198         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83199         'free'.
83200         * lib/modechange.c: Likewise.
83201         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83202         (MODE_DONE): New constant.
83203         (struct mode_change): Remove 'next' member.
83204         (make_node_op_equals): New function; like the old one of the
83205         same name, except it allocates an array.
83206         (mode_compile, mode_create_from_ref): Use it.
83207         (mode_compile): Allocate result as an array, not a linked list.
83208         Parse octal string ourself, so that we catch mistakes like "+0".
83209         (mode_adjust): Arg is an array, not a linked list.
83210         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83211         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83212         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83213         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83214         Remove.  This is now stat-macros.h's job.
83215         (talloc): Remove.  All callers replaced by xalloc, so that
83216         our invokers don't have to worry about reporting memory failures.
83217         (make_node_op_equals): Remove.
83218         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83219         New constants.
83220         (struct mode_change): Moved here from modechange.h.
83221         (mode_append_entry): Remove.
83222         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83223         apps to have incorrect behavior.  Use simpler algorithm for head
83224         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83225         Detect more invalid usages rather than having somewhat-random behavior.
83226         Don't insert an "a=" action, as that leads to incorrect behavior.
83227         (mode_compile, mode_create_from_ref): Return NULL on error instead
83228         of an enum, since now there's only one way to have an error.  All
83229         callers changed.
83230         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83231         at the correct time.  Simplify calculation of "+u" and its ilk.
83232         Don't mishandle "+X".
83233         (mode_free): Remove "register" and localize decls.
83234         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83235         (struct mode_change): Move to modechange.c; callers don't
83236         need to see this stuff.
83237         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83238         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83239         (mode_change, mode_adjust): Reflect the new signatures noted above.
83240         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83241         that might redefine system include files.
83242         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83243         (my_usleep): Use NULL rather than (void *) 0.
83244         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83245         Use siginterrupt to specify that system calls should be interrupted.
83246         (rpl_nanosleep): Move initialization of suspended closer to call of
83247         my_usleep.
83248         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83249         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83250         (desirable_utmp_entry): New function.
83251         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83252         using x2nrealloc, to simplify logic.
83253         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83254         size calculation.  Do not assume utmp file is a regular file.
83255         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83256         (READ_UTMP_CHECK_PIDS): New constant.
83257         * lib/save-cwd.c: Include unistd-safer.h.
83258         (save_cwd): Use fd_safer.
83259         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83260         [!_LIBC] Include "stat-macros.h" instead.
83261         * lib/unistd-safer.h (fd_safer): New decl.
83262
83263 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83264
83265         * modules/getloadavg (Depends-on): Add unistd-safer.
83266         * modules/getusershell (Depends-on): Add stdio-safer.
83267         * modules/lstat (Depends-on): Remove xalloc.
83268         * modules/mkstemp (Depends-on): Add stat-macros.
83269         * modules/modechange (Depends-on): Remove xstrtol.
83270         Add stat-macros, xalloc.
83271         * modules/save-cwd (Depends-on): Add unistd-safer.
83272         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83273         * modules/unistd-safer (Files): Add lib/fd-safer.c
83274         (Makefile.am): Remove lib_SOURCES.
83275
83276         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83277         Remove fcntl-safer; unistd-safer supersedes it.
83278
83279 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83280
83281         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83282         AC_HEADER_STAT.
83283         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83284         (gl_PREREQ_CHOWN): Remove.
83285         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83286         it.  Don't require AC_HEADER_STAT.
83287         (gl_PREREQ_LSTAT): Remove.
83288         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83289         Don't require AC_HEADER_STAT.
83290         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83291         (gl_PREREQ_RMDIR): Remove.
83292         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83293         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83294         the stat-macros module a prerequisite.
83295         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83296         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83297         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83298         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83299         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83300         variable names.
83301         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83302         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83303         variable prefixes.
83304         * m4/fcntl-safer.m4: Remove.
83305         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83306         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83307         Invoke gl_PREREQ_FD_SAFER.
83308         (gl_PREREQ_FD_SAFER): New macro.
83309         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83310         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83311         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83312         Remove duplicate call to AC_LIBOBJ(readutmp).
83313         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83314
83315         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83316         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83317
83318 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83319
83320         * MODULES.html.sh (Misc): Add byteswap.
83321
83322 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83323
83324         * modules/getcwd (Depends-on): Add extensions.
83325         * modules/openat (Depends-on): Likewise.
83326
83327 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83328
83329         * modules/byteswap: New file.
83330
83331 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83332
83333         * m4/byteswap.m4: New file.
83334
83335 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83336
83337         * lib/byteswap_.h: New file.
83338
83339 2005-04-25  Karl Berry  <karl@gnu.org>
83340
83341         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83342
83343 2005-04-25  Albert Chin  <china@thewrittenword.com>
83344
83345         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83346         Toolkit C bug.
83347
83348 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83349
83350         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83351         (func_ln_if_changed): Remove forcibly for no error message
83352         in case file does not exist.
83353
83354 2005-04-19  Simon Josefsson  <jas@extundo.com>
83355
83356         * gnulib-tool (Options): Make --symlink mean --symbolic.
83357
83358 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83359
83360         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83361
83362 2005-04-16  Simon Josefsson  <jas@extundo.com>
83363
83364         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83365
83366 2005-04-15  Simon Josefsson  <jas@extundo.com>
83367
83368         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83369
83370 2005-04-15  Simon Josefsson  <jas@extundo.com>
83371
83372         * gnulib-tool: Rename --symlink to --symbolic.
83373
83374 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83375
83376         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83377         symbolic links to files instead of copying/moving.  Add --aux-dir,
83378         specifying directory relative --dir where auxiliary build tools
83379         are placed.
83380
83381 2005-04-14  Bruno Haible  <bruno@clisp.org>
83382
83383         * modules/allocsa (License): Change to LGPL.
83384         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83385
83386 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83387
83388         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83389         that "UTC +1 second" continues to work.  Problem reported
83390         by Dmitry V. Levin.
83391         (relunit_snumber): New rule.
83392         (relunit): Use it.
83393
83394 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83395
83396         * lib/getdate.y (universal_time_zone_table): New constant.
83397         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83398         universal_time_zone_table.
83399         (lookup_zone): Prefer universal_time_zone_table to
83400         local_time_zone_table, so that "GMT" time stamps are allowed in
83401         London during the summer.  Problem reported by Ian Abbott.
83402
83403 2005-04-12  Jim Meyering  <jim@meyering.net>
83404
83405         * lib/human.c (humblock): Set *options even when returning due to
83406         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83407         warning from gcc-4.
83408
83409 2005-04-09  Jim Meyering  <jim@meyering.net>
83410
83411         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83412         -Wuninitialized: initialize tm0.tm_year.
83413
83414 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83415
83416         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83417         count, since there's no maximum.  All uses changed.
83418         Add member dsts_seen.
83419         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83420         not being INT_MAX.
83421         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83422         Use pc_rels_seen to decide whther a date is absolute.
83423
83424         * lib/getdate.y (number): Don't overwrite year.
83425         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83426         check.
83427
83428 2005-04-02  Simon Josefsson  <jas@extundo.com>
83429
83430         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83431         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83432
83433 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83434
83435         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83436         where no absolute path name can be longer than PATH_MAX.
83437
83438 2005-03-27  Jim Meyering  <jim@meyering.net>
83439
83440         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83441
83442 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83443
83444         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83445         "one's complement" -> "ones' complement" in comment, as per Knuth.
83446         "value of type" -> "type or expression" in comment.
83447         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83448
83449 2005-03-26  Jim Meyering  <jim@meyering.net>
83450
83451         Comment nits.
83452         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83453         Correct typos: s/or/of/.
83454
83455 2005-03-26  Jim Meyering  <jim@meyering.net>
83456
83457         * modules/check-include-files: Move to ../ and rename to...
83458         * check-module: ...this.
83459
83460 2005-03-25  Jim Meyering  <jim@meyering.net>
83461
83462         * modules/xvasprintf (Files): Add xalloc.h.
83463
83464 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         * modules/gettext (Files): config/config.rpath ->
83467         build-aux/config.rpath
83468         * modules/iconv (Files): Likewise.
83469         Problem reported by Oskar Liljeblad.
83470
83471 2005-03-23  Jim Meyering  <jim@meyering.net>
83472
83473         * modules/check-include-files: New script to check for
83474         missing dependencies, multiple includes, etc.
83475
83476         * modules/c-strtold (Depends-on): Add xalloc.
83477         * modules/c-strtod (Depends-on): Add xalloc.
83478         * modules/hash (Depends-on): Add xalloc.
83479         (Files): Remove lib/xalloc.h.
83480
83481         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83482         * modules/userspec (Files): Add lib/inttostr.h.
83483
83484 2005-03-23  Jim Meyering  <jim@meyering.net>
83485
83486         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83487
83488 2005-03-22  Jim Meyering  <jim@meyering.net>
83489
83490         * modules/stat-macros: New module.
83491         * modules/canonicalize, modules/euidaccess, modules/file-type,
83492         * modules/filemode, modules/lchown, modules/makepath,
83493         * modules/rmdir, modules/stat: Depend on new stat-macros module
83494         rather than listing lib/stat-macros.h manually.
83495         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83496
83497 2005-03-22  Jim Meyering  <jim@meyering.net>
83498
83499         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83500
83501 2005-03-22  Bruno Haible  <bruno@clisp.org>
83502
83503         * config/srclist.txt: Replace target directory 'config' with
83504         'build-aux'.
83505         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83506         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83507         ../build-aux/.
83508
83509 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83510
83511         * modules/chdir-long (Depends-on): Add mempcpy.
83512
83513         * modules/acl, modules/backupfile, modules/c-strtod,
83514         modules/c-strtold, modules/canon-host, modules/canonicalize,
83515         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83516         modules/exclude, modules/exitfail, modules/file-type,
83517         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83518         modules/getdate, modules/getline, modules/getpagesize,
83519         modules/getpass, modules/getugroups, modules/group-member,
83520         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83521         modules/inttostr, modules/long-options, modules/makepath,
83522         modules/md5, modules/memcasecmp, modules/memcoll,
83523         modules/modechange, modules/mountlist, modules/path-concat,
83524         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83525         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83526         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83527         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83528         modules/strftime, modules/strndup, modules/strverscmp,
83529         modules/timespec, modules/unlocked-io, modules/userspec,
83530         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83531         modules/yesno:
83532         Remove lib_SOURCES line from Makefile.am section, as this is now
83533         done automatically by the corresponding Autoconf macro.
83534
83535 2005-03-21  Jim Meyering  <jim@meyering.net>
83536
83537         Changes imported from coreutils.
83538
83539         * lib/cycle-check.c: Don't include xalloc.h.
83540
83541         * lib/path-concat.c: Don't include assert.h.
83542         (path_concat): Remove assertion that would have triggered
83543         for ABASE starting with more than one slash.
83544         Reported by Andreas Schwab.
83545
83546         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83547         properly when ABASE is an absolute file name.
83548         Correct the description of this function.
83549         Include <assert.h>.
83550         Add an assertion and a test driver.
83551         This fixes a bug introduced on 2004-07-02.
83552         Andreas Schwab reported the resulting failure of cp --parents:
83553         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83554
83555 2005-03-21  Jim Meyering  <jim@meyering.net>
83556
83557         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83558         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83559
83560 2005-03-21  Jim Meyering  <jim@meyering.net>
83561         and  Paul Eggert  <eggert@cs.ucla.edu>
83562
83563         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83564         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83565         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83566         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83567         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83568         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83569         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83570         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83571         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83572         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83573         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83574         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83575         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83576         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83577         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83578         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83579         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83580         for these modules.
83581
83582 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83583
83584         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83585         (which shouldn't happen), generate nothing instead of returning 0
83586         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83587
83588 2005-03-16  Bruno Haible  <bruno@clisp.org>
83589
83590         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83591         HAVE_LONGLONG_64BIT.
83592
83593 2005-03-16  Bruno Haible  <bruno@clisp.org>
83594
83595         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83596         HAVE_LONGLONG_64BIT.
83597
83598 2005-03-16  Bruno Haible  <bruno@clisp.org>
83599
83600         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83601         HAVE_LONGLONG_64BIT.
83602
83603 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83604
83605         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83606         reliably distinguish strftime failure from empty output on POSIX
83607         hosts.
83608
83609 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83612         (iconv_string): Don't guess a size-zero buffer, as that might cause
83613         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83614         result would be 'too large', where 'too large' is (heuristically)
83615         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83616         overflow concerns.  This will prevent some unwanted malloc failures
83617         when the inputs are very large.
83618
83619 2005-03-15  Karl Berry  <karl@gnu.org>
83620
83621         * config/srclist.txt (config.rpath): from gettext.
83622         * config/config.rpath: update.
83623
83624 2005-03-15  Bruno Haible  <bruno@clisp.org>
83625
83626         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83627         to 'negate'.
83628
83629         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83630         variable.
83631
83632         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83633         results.
83634
83635 2005-03-14  Simon Josefsson  <jas@extundo.com>
83636
83637         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83638         <fx@gnu.org>.
83639
83640 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83641
83642         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83643         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83644         intprops.h.
83645         * lib/strtol.c: Likewise.
83646
83647 2005-03-14  Jim Meyering  <jim@meyering.net>
83648
83649         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83650         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83651         to be nonzero so that we (and caller) can detect the difference
83652         between a valid zero-length expansion and an error return, even
83653         when the underlying strftime fails before writing anything into
83654         that location.
83655
83656 2005-03-14  Bruno Haible  <bruno@clisp.org>
83657
83658         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83659         Update from GNU gettext 0.14.3.
83660
83661 2005-03-10  Jim Meyering  <jim@meyering.net>
83662
83663         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83664
83665 2005-03-10  Jim Meyering  <jim@meyering.net>
83666
83667         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83668         so that this module works on systems without fchdir.
83669
83670 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83671
83672         Factor int-properties macros into a single file, except for
83673         glibc-related files.
83674         * lib/intprops.h: New file.
83675         * lib/getloadavg.c: Include it instead of limits.h.
83676         (INT_STRLEN_BOUND): Remove.
83677         * lib/human.c: Include intprops.h.
83678         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83679         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83680         302/1000.
83681         * lib/inttostr.h: Include intprops.h instead of limits.h.
83682         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83683         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83684         for consistency with intprops.h.
83685         (time_t_is_integer, twos_complement_arithmetic): Use them.
83686         * lib/sig2str.h: Include <signal.h>, intprops.h.
83687         (INT_STRLEN_BOUND): Remove.
83688         * lib/strftime.c (TYPE_SIGNED): Remove.
83689         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83690         * lib/strtol.c: Adjust comments to match intprops.h.
83691         * lib/userspec.c: Include intprops.h.
83692         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83693         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83694         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83695         instead of rolling our own expressions.
83696         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83697
83698         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83699         instead of int.
83700         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83701         the right thing even if adding 1900 would overflow.  Similarly
83702         for tm_mon + 1 and tm_yday + 1.
83703         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83704         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83705         (DO_SIGNED_NUMBER): New macro.
83706         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83707
83708 2005-03-07  Bruno Haible  <bruno@clisp.org>
83709
83710         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83711
83712 2005-03-07  Bruno Haible  <bruno@clisp.org>
83713
83714         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83715
83716 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83717
83718         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83719         (func_import): Only replace files via --import when they have actually
83720         changed.
83721
83722 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83723
83724         * m4/mmap-anon.m4: New file.
83725         * m4/pagealign_alloc.m4: New file.
83726
83727 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83728             Bruno Haible  <bruno@clisp.org>
83729
83730         * modules/pagealign_alloc: New file.
83731         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83732
83733 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83734             Bruno Haible  <bruno@clisp.org>
83735
83736         * lib/pagealign_alloc.h: New file.
83737         * lib/pagealign_alloc.c: New file.
83738
83739 2005-03-03  Bruno Haible  <bruno@clisp.org>
83740
83741         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83742         Use an all-permissive copyright notice, recommended by RMS.
83743
83744 2005-03-02  Bruno Haible  <bruno@clisp.org>
83745
83746         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83747         of AIX, the replacement has to be done only after <string.h> is
83748         included, therefore not in config.h. stpncpy.h does the replacement,
83749         and stpncpy.c uses it.
83750
83751 2005-03-02  Bruno Haible  <bruno@clisp.org>
83752
83753         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83754         stpncpy.c uses it.
83755
83756 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83759         The workaround isn't strictly needed for POSIX conformance, and
83760         it's too much of a pain to configure and maintain.  We'll ask
83761         people to fix their kernels instead.
83762         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83763         (NANOSLEEP_BUG_WORKAROUND): Remove.
83764         (xnanosleep): Remove the workaround.
83765
83766 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83769         Reported by Derek Price.
83770         (Include): Add "timespec.h".
83771
83772         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83773
83774 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83775
83776         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83777         to detect nanosleep bug.
83778
83779 2005-03-01  Bruno Haible  <bruno@clisp.org>
83780
83781         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83782
83783 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83784
83785         * modules/gethrxtime: New file.
83786         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83787         (Depends-on): Add gethrxtime.
83788         (configure.ac): Add gl_XNANOSLEEP.
83789         (Makefile.am): Remove lib_SOURCES line.
83790
83791 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83792
83793         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83794         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83795
83796 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83797
83798         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83799         * lib/timespec.h (gettime): Return void, since it always
83800         succeeds now.  All uses changed.
83801         * lib/gettime.c (gettime): Likewise.
83802         [HAVE_NANOTIME]: Prefer nanotime.
83803         Assume gettimeofday succeeds, as POSIX requires.
83804         Assime time () succeeds, since other code already does.
83805         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83806         (timespec_subtract): Remove.
83807         (NANOSLEEP_BUG_WORKAROUND): New constant.
83808         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83809         things considerably.  Use it only on GNU/Linux hosts, since the
83810         workaround shouldn't be needed elsewhere.
83811
83812 2005-02-24  Bruno Haible  <bruno@clisp.org>
83813
83814         * modules/gettext (Files): Add m4/glibc2.m4.
83815
83816 2005-02-24  Bruno Haible  <bruno@clisp.org>
83817
83818         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83819         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83820         * m4/progtest.m4:
83821         Update from GNU gettext 0.14.2.
83822         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83823
83824 2005-02-24  Bruno Haible  <bruno@clisp.org>
83825
83826         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83827         * lib/config.charset: Update from GNU gettext 0.14.2.
83828
83829 2005-02-24  Bruno Haible  <bruno@clisp.org>
83830
83831         * lib/gettext.h: Update from GNU gettext 0.14.2.
83832
83833 2005-02-23  Simon Josefsson  <jas@extundo.com>
83834
83835         * m4/iconvme.m4: New file.
83836
83837 2005-02-23  Jim Meyering  <jim@meyering.net>
83838
83839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83840         change.
83841         Thanks to Bruno Haible for catching it.
83842
83843 2005-02-22  Simon Josefsson  <jas@extundo.com>
83844
83845         * modules/iconvme: New file.
83846
83847         * MODULES.html.sh: Add iconvme.
83848
83849 2005-02-22  Simon Josefsson  <jas@extundo.com>
83850
83851         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83852
83853 2005-02-22  Simon Josefsson  <jas@extundo.com>
83854
83855         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83856
83857 2005-02-22  Jim Meyering  <jim@meyering.net>
83858
83859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83860         s/ifndef/ifdef/.
83861
83862 2005-02-20  Neil Conway  <neilc@samurai.com>
83863
83864         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83865         returned by OSX/Darwin if the specified buffer is not large
83866         enough for the hostname.
83867
83868 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83869
83870         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83871         pass it to _help, otherwise the latter coredumps trying to
83872         dereference state.root_argp.
83873
83874 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83875
83876         * modules/chdir-long (Depends-on): Add memrchr.
83877         * modules/memrchr (Files): Add lib/memrchr.h.
83878         (Include): "memrchr.h".
83879
83880 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83881
83882         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83883
83884 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83885
83886         * lib/memrchr.h: New file.
83887         * lib/chdir-long.c: Include it.
83888         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83889         Don't bother including stddef.h.
83890
83891 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83892
83893         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83894         inclusion.
83895         Include <sys/types.h>, for dev_t.
83896         (ME_DUMMY, ME_REMOTE): Move from here....
83897         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83898         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83899         Dmitry V. Levin.
83900         Include mountlist.h first, to test the interface.
83901
83902 2005-01-29  Bruno Haible  <bruno@clisp.org>
83903
83904         * lib/progname.c (program_name): Initialize.
83905         Needed when linking statically on MacOS X.
83906
83907 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         Sync from coreutils.
83910         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83911         (Depends-on): Add c-strtod.
83912         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83913
83914 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83915
83916         Sync from coreutils.
83917         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83918
83919         Remove files that are specific to coreutils.
83920         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83921
83922 2005-01-28  Bruno Haible  <bruno@clisp.org>
83923
83924         * modules/javacomp: New file.
83925         * MODULES.html.sh (Java): Add javacomp.
83926
83927 2005-01-28  Bruno Haible  <bruno@clisp.org>
83928
83929         * m4/javacomp.m4: New file, from GNU gettext.
83930
83931 2005-01-28  Bruno Haible  <bruno@clisp.org>
83932
83933         * lib/javacomp.sh.in: New file, from GNU gettext.
83934         * lib/javacomp.h: New file, from GNU gettext.
83935         * lib/javacomp.c: New file, from GNU gettext.
83936
83937 2005-01-26  Simon Josefsson  <jas@extundo.com>
83938
83939         * lib/gai_strerror.c: Use GPL in header.
83940
83941 2005-01-26  Bruno Haible  <bruno@clisp.org>
83942
83943         * modules/javaexec: New file.
83944         * MODULES.html.sh (Java): Add javaexec.
83945
83946 2005-01-26  Bruno Haible  <bruno@clisp.org>
83947
83948         * m4/javaexec.m4: New file, from GNU gettext.
83949
83950 2005-01-26  Bruno Haible  <bruno@clisp.org>
83951
83952         * lib/javaexec.sh.in: New file, from GNU gettext.
83953         * lib/javaexec.h: New file, from GNU gettext.
83954         * lib/javaexec.c: New file, from GNU gettext.
83955
83956 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83957
83958         * modules/lchown (Depends-on): Remove lchown.h
83959
83960 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83961
83962         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83963         must be defined if the header file was not found, in order
83964         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83965
83966 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83967
83968         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83969         initializers for struct pentry_state.
83970         (__argp_error): Check return value of __asprintf
83971         (__argp_failure): Translate error message
83972
83973         * lib/argp-parse.c: Removed braces around the expansion of N_()
83974
83975 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83978         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83979         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83980         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83981         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83982         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83983         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83984         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83985         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83986         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83987         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83988         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83989         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83990         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83991         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83992         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83993         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83994         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83995         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83996         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83997         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83998         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83999         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84000         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84001         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84002         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84003         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84004         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84005         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84006         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84007         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84008         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84009         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84010         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84011         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84012         Use an all-permissive copyright notice, recommended by RMS.
84013
84014 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84015
84016         * modules/chdir-long (Depends-on): Remove mempcpy.
84017
84018 2005-01-21  Jim Meyering  <jim@meyering.net>
84019
84020         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84021         same value as for Solaris 9.
84022
84023         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84024         component length.  This included changing the parameter to be
84025         of type `char *' rather than `char const *'.
84026         * lib/chdir-long.h (chdir_long): Update prototype.
84027
84028         * lib/openat.c (fdopendir, fstatat): New functions.
84029         * lib/openat.h: Include headers required for use of DIR and struct
84030         stat.
84031         [AT_SYMLINK_NOFOLLOW]: Define.
84032         (fdopendir, fstatat): Add prototypes.
84033
84034 2005-01-21  Bruno Haible  <bruno@clisp.org>
84035
84036         * modules/classpath: New file.
84037         * MODULES.html.sh (Java): Add classpath.
84038
84039 2005-01-21  Bruno Haible  <bruno@clisp.org>
84040
84041         * lib/classpath.h: New file, from GNU gettext.
84042         * lib/classpath.c: New file, from GNU gettext.
84043
84044 2005-01-20  Simon Josefsson  <jas@extundo.com>
84045
84046         * modules/version-etc-fsf: New file.
84047
84048 2005-01-20  Simon Josefsson  <jas@extundo.com>
84049
84050         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84051         * lib/version-etc.c: Remove version_etc_copyright.
84052         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84053         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84054
84055 2005-01-20  Simon Josefsson  <jas@extundo.com>
84056
84057         * lib/base64.h (isbase64): Add.
84058
84059         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84060         using a unsigned prototype, don't inline.
84061         (base64_decode): Use it.
84062
84063 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84064
84065         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84066         it.
84067
84068 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84069
84070         * lib/save-cwd.c (save_cwd): Remove code to support the case
84071         where fchdir is missing or flaky.
84072
84073 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84074
84075         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84076
84077 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84078
84079         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84080         AC_LIBSOURCES now does this.
84081         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84082         with new ullong_max module.
84083
84084 2005-01-19  Bruno Haible  <bruno@clisp.org>
84085
84086         * modules/sh-quote: New file.
84087         * MODULES.html.sh (Executing programs): Add sh-quote.
84088
84089 2005-01-19  Bruno Haible  <bruno@clisp.org>
84090
84091         * lib/sh-quote.h: New file, from GNU gettext.
84092         * lib/sh-quote.c: New file, from GNU gettext.
84093
84094 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84095
84096         Merge from coreutils.
84097         * m4/ullong_max.m4: New file.
84098         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84099         (gl_MACROS): Assume localeconv exists.
84100
84101 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84102
84103         Merge changes from coreutils, as described below in several
84104         changelogs dated today.
84105
84106         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84107         (O_DIRECTORY): Remove; not needed here, since "." must be
84108         a directory.  All uses removed.
84109         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84110         universal on Suns, and we also need to test for IRIX.
84111         Revamp code to use 'if' rather than '#if'.
84112         Avoid unnecessary comparison of cwd->desc to 0.
84113
84114         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84115         for known valid error numbers rather than observed invalid ones.
84116
84117 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84118
84119         * modules/ullong_max: New file.
84120
84121         * modules/chdir-long, modules/openat: New files.
84122         * modules/save-cwd (Depends-on): Depend on chdir-long.
84123         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84124
84125 2005-01-18  Jim Meyering  <jim@meyering.net>
84126
84127         Merge from coreutils.
84128         * m4/chdir-long.m4, m4/openat.m4: New files.
84129         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84130         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84131         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84132         is sane and DOES follow symlinks.  Besides, testing 20 different
84133         systems found no broken chown implementations.
84134         Prompted by a change in rsync's copy of this macro.
84135         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84136
84137         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84138
84139         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84140         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84141         NULL-means-set-to-current-time semantics.
84142         Remove temporary file immediately, rather than waiting
84143         for configure's at-exit trap code to do it.
84144
84145 2005-01-18  Jim Meyering  <jim@meyering.net>
84146
84147         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84148
84149         * lib/utimens.c (futimens): Account for the fact that futimes
84150         can also fail with errno == ENOSYS or errno == ENOENT.
84151         Patch from Dmitry V. Levin.
84152
84153         Change the name of the robust chdir function from chdir to chdir_long.
84154         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84155         (restore_cwd): Use chdir_long, not chdir.
84156         * lib/chdir-long.c: Renamed from chdir.c.
84157         * lib/chdir-long.h: Renamed from chdir.h.
84158         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84159         Hurd.
84160
84161 2005-01-18  Bruno Haible  <bruno@clisp.org>
84162
84163         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84164         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84165         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84166         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84167         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84168         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84169         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84170         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84171         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84172         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84173         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84174         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84175         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84176         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84177         Use an all-permissive copyright notice, recommended by RMS.
84178
84179 2005-01-18  Bob Proulx  <bob@proulx.com>
84180
84181         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84182         simplify offsetof() macro construct to avoid compile failure with
84183         native HP-UX 11.0 ANSI C compiler.
84184
84185 2005-01-17  Bruno Haible  <bruno@clisp.org>
84186
84187         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84188         redundant because stpncpy.m4 takes care of it.
84189
84190 2005-01-17  Bruno Haible  <bruno@clisp.org>
84191
84192         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84193
84194 2005-01-17  Bruno Haible  <bruno@clisp.org>
84195
84196         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84197         used.
84198
84199 2005-01-17  Bruno Haible  <bruno@clisp.org>
84200
84201         * lib/fwriteerror.h (fwriteerror): Change specification to include
84202         fclose.
84203         * lib/fwriteerror.c: Include <stdbool.h>.
84204         (fwriteerror): At the end, close the file stream. Record whether
84205         stdout was already closed.
84206
84207 2005-01-17  Bruno Haible  <bruno@clisp.org>
84208
84209         * lib/execute.c (environ): Declare if needed.
84210         * lib/pipe.c (environ): Likewise.
84211         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84212
84213 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84214
84215         * modules/argp: Depend on vsnprintf
84216
84217 2005-01-10  Jim Meyering  <jim@meyering.net>
84218
84219         * modules/closeout (Depends-on): Add atexit.
84220
84221 2005-01-06  Bruno Haible  <bruno@clisp.org>
84222
84223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84224
84225 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84226
84227         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84228         definitions to be after all include files, to avoid collisions.
84229         Problem reported by Bob Proulx.
84230
84231 2005-01-04  Jim Meyering  <jim@meyering.net>
84232
84233         Changes imported from coreutils.
84234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84235         as the mkstemp template, use a temporary directory and an
84236         8.3-friendly template to avoid trouble on systems like DJGPP.
84237         Reported by Juan M. Guerrero via Stepan Kasal.
84238         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84239         close. Remove the temporary directory right away, rather than waiting
84240         for configure's at-exit trap code to do it.
84241         Suggestion from Stepan Kasal.
84242
84243 2005-01-01  Simon Josefsson  <jas@extundo.com>
84244
84245         * gnulib-tool: Print #include directives when --import'ing.
84246
84247 2004-12-28  Simon Josefsson  <jas@extundo.com>
84248
84249         * tests/test-base64.c: Include required header files.  Remove
84250         unused variables.
84251
84252 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84253
84254         * modules/error (Depends-on): Remove gettext.
84255
84256 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84259         not needed.  This removes a dependency on the gettext module.
84260         [defined _LIBC]: Do not include <libintl.h>; not needed.
84261
84262 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84263
84264         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84265         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84266
84267 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84270         HAVE_DECL_STRTOLD.
84271
84272 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84273
84274         * modules/getdate (Depends-on): Remove alloca-opt.
84275
84276 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84279
84280 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84281
84282         * lib/argp-parse.c: Include <stddef.h>.
84283         (alignof, alignto): New macros.
84284         (parser_init): Don't assume that void * is aligned sufficiently
84285         for struct option.
84286
84287         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84288         need to extend the stack.
84289         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84290         large.
84291
84292 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84293
84294         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84295
84296 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84297
84298         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84299         (2004-10-24) change.  Apparently this was a false alarm.
84300
84301         * modules/getdate: Depend on alloca-opt, not alloca.
84302
84303 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84304
84305         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84306         Remove now-obsolete comment about AIX.
84307         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84308         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84309         (YYMAXDEPTH): New macro.
84310
84311 2004-12-18  Simon Josefsson  <jas@extundo.com>
84312
84313         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84314
84315 2004-12-18  Bruno Haible  <bruno@clisp.org>
84316
84317         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84318
84319 2004-12-18  Bruno Haible  <bruno@clisp.org>
84320
84321         * lib/fatal-signal.c (fatal_signals): Make non-const.
84322         (init_fatal_signals): New function.
84323         (uninstall_handlers, install_handlers): Ignore signals that were set to
84324         SIG_IGN.
84325         (at_fatal_signal): Call init_fatal_signals.
84326         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84327         SIG_IGN.
84328         Reported by Paul Eggert.
84329
84330 2004-12-18  Bruno Haible  <bruno@clisp.org>
84331
84332         * doc/alloca.texi: New file.
84333         * doc/alloca-opt.texi: New file.
84334
84335 2004-12-17  Jim Meyering  <jim@meyering.net>
84336
84337         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84338         Otherwise, install-sh could exit with improper exit status when
84339         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84340
84341 2004-12-16  Simon Josefsson  <jas@extundo.com>
84342
84343         * tests/test-base64.c: Add license.
84344
84345 2004-12-15  Stepan Kasal  <address@hidden>
84346
84347         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84348
84349 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84350
84351         * modules/getcwd (Files): Add m4/d-ino.m4.
84352         Suggested by Mark D. Baushke.
84353
84354 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84355
84356         * lib/getdate.y (textint): New member "negative".
84357         (time_zone_hhmm): New function.
84358         Expect 14 shift-reduce conflicts, not 13.
84359         (o_colon_minutes): New rule.
84360         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84361         (yylex): Set the "negative" member of signed numbers.
84362
84363 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84364
84365         * doc/getdate.texi (Time of day items, Time zone items):
84366         Describe new formats +00:00, UTC+00:00.
84367
84368 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84369
84370         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84371         spurious "-l"s.  Problem reported by Stepan Kasal.
84372
84373 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84374
84375         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84376         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84377
84378 2004-12-04  Simon Josefsson  <jas@extundo.com>
84379
84380         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84381         Vandoorselaere <yoann@prelude-ids.org>.
84382
84383 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84384
84385         Changes imported from coreutils.
84386         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84387         exist.
84388         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84389
84390 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         Changes imported from coreutils.
84393         * lib/hard-locale.c: Assume <locale.h> exists.
84394         Include "strdup.h".
84395         (GLIBC_VERSION): New macro.
84396         (hard_locale): Assume setlocale exists.
84397         Rewrite to avoid #ifdef.
84398         Use strdup rather than malloc + strcpy.
84399         * lib/human.c: Assume <locale.h> exists.
84400         (human_readable): Assume localeconv exists.
84401
84402 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84403
84404         * modules/hard-locale (Depends-on): Add strdup.
84405
84406 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84407
84408         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84409         convert T2, not T.  (Imported from libc.)
84410
84411 2004-11-30  Simon Josefsson  <jas@extundo.com>
84412
84413         * modules/restrict (License): Change to LGPL.
84414
84415 2004-11-30  Simon Josefsson  <jas@extundo.com>
84416
84417         * m4/restrict.m4: Add copyright and copying conditions.
84418
84419 2004-11-30  Simon Josefsson  <jas@extundo.com>
84420
84421         * m4/base64.m4: New file.
84422
84423 2004-11-30  Simon Josefsson  <jas@extundo.com>
84424
84425         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84426         base64.
84427
84428         * tests/test-base64.c: New file.
84429
84430         * modules/base64: New file.
84431
84432 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84433
84434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84435         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84436
84437         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84438
84439 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84440
84441         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84442         (__getcwd.c): Don't restore errno; glibc doesn't.
84443         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84444         first, falling back to our code only if its results look suspicious.
84445         Ensure that the resulting buffer is only as large as necessary.
84446
84447         * lib/readutmp.c: Include readutmp.h first.
84448         Include <errno.h>, since readutmp.h no longer does that.
84449         * lib/readutmp.h: Don't include <errno.h>,
84450         <sys/param.h>, <time.h>; not needed to establish interface.
84451         (errno): Remove decl.
84452         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84453         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84454         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84455
84456 2004-11-28  Simon Josefsson  <jas@extundo.com>
84457
84458         * lib/base64.h, base64.c: New file.
84459
84460 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84461
84462         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84463
84464 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84465
84466         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84467         (Depends-on): Remove pathmax, same.  Add mempcpy.
84468         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84469         (Makefile.am): Append getcwd.h to lib_SOURCES.
84470         (Include): Add getcwd.h.
84471         (Maintainer): Change from Jim Meyering to "all, glibc",
84472         since getdate now uses intended-for-glibc code.
84473         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84474         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84475
84476 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84477
84478         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84479         HP's ANSI C compiler.
84480         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84481         Declaring int functions causes warnings on some modern systems and
84482         shouldn't be needed to compile on ancient ones.
84483         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84484         defined.
84485
84486         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84487         with the following changes.
84488         (__set_errno): Parenthesize properly.
84489         Include <stdbool.h>.
84490         (MIN, MAX, MATCHING_INO): New macros.
84491         (__getcwd): Define with prototype, not K&R form.
84492         Use heuristics to allocate default buffer on stack if possible.
84493         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84494         behavior, and to avoid the PATH_MAX limit when computing
84495         ../../../../...
84496         Use MATCHING_INO to compare inode number to file.
84497         Check for arithmetic overflow in size calculations.
84498         Fix bug in reallocation of dot array that caused getcwd to fail
84499         on directories nested deeper than 75.
84500         Be more careful about saving errno on error.
84501         Do not use realloc; use only free+malloc, as this is a bit
84502         more flexible and avoids a needless copy operation.
84503         Do not inspect st_dev and st_ino for symbolic links; POSIX
84504         doesn't specify the latter.
84505         Check for closedir errors.
84506         Avoid needless casts.
84507         Use "#ifdef weak_alias" around weak_alias, to be like other
84508         glibc code.
84509         The following changes to getcwd.c have effect only when used in
84510         gnulib; they have no effect inside glibc proper.
84511         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84512         as alloca isn't used.
84513         (alloca, __alloca): Likewise.
84514         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84515         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84516         unconditionally, as gnulib assumes C89 or better.
84517         Do not include <sys/param.h>.
84518         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84519         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84520         better.
84521         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84522         Include <dirent.h> in a way that is compatible with modern Autoconf.
84523         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84524         New macros, if not already defined.
84525         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84526         Use "_LIBC", not "defined _LIBC", for consistency.
84527         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84528         a mempcpy module.
84529         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84530         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84531         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84532         credit only to Jim Meyering and adjust the copyright dates.
84533         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84534         <stdlib.h>, <unistd.h>, "pathmax.h".
84535         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84536         (INITIAL_BUFFER_SIZE): Remove.
84537         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84538
84539 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84540
84541         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84542         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84543         Use the _ONCE methods, for efficiency.
84544         Check for fcntl.h.  In test program, include <errno.h>
84545         and <fcntl.h> if available.  Remove old K&R cruft from
84546         test program.  Check for common errors in GNU/Linux,
84547         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84548         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84549         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84550         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84551         name accordingly.
84552         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84553         accommodate new getcwd.c.
84554         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84555         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84556         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84557         that's all we need now.
84558
84559 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84560
84561         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84562         argp-parse.c depends on getopt internals, that means we should
84563         always use our getopt, to be on the safe side.
84564         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84565         order not to spoil the result of an eventual previous invocation
84566         of gl_GETOPT_SUBSTITUTE.
84567
84568 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84569
84570         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84571         redefinition warnings. To avoid them, include the defines
84572         in `#if !defined __need_getopt ... #endif'. The only place
84573         where __getopt_argv_const is used is in definitions
84574         of getopt_long and getopt_long_only below, which are as well
84575         protected by `#ifndef __need_getopt'.
84576         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84577         __need_getopt after including <stdio.h> and <unistd.h> These
84578         headers might have defined it.
84579
84580 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84581
84582         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84583
84584 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84587         (futimens): New function, which uses futimes if available.
84588         (futimens, utimens): Support timespec==NULL, with same semantics
84589         as utime and utimens.
84590         * lib/utimens.h (futimens): New decl.
84591
84592 2004-11-23  Jim Meyering  <jim@meyering.net>
84593
84594         * lib/getopt_.h: Remove trailing blanks.
84595
84596 2004-11-23  Jim Meyering  <jim@meyering.net>
84597
84598         * lib/__fpending.c: Add comment.
84599
84600 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84601
84602         * modules/canonicalize (Depends-on): Add xreadlink.
84603         Problem reported by James Youngman.
84604
84605 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84606
84607         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84608         New macros.
84609         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84610         optopt): Use them instead of invoking ## directly; otherwise, the
84611         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84612
84613 2004-11-19  Bruno Haible  <bruno@clisp.org>
84614
84615         * lib/strtok_r.c: Move comments from here...
84616         * lib/strtok_r.h: ... to here.
84617
84618 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84619
84620         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84621         implementations that mishandle size_t overflow.
84622
84623 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84624
84625         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84626         might fail.  Problem reported by Yoann Vandoorselaere.
84627         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84628         implementations that mishandle size_t overflow.
84629
84630 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84631
84632         * modules/canon-host (Depends-on): Add strdup.
84633
84634 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84635
84636         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84637
84638 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84639
84640         * lib/canon-host.c: Include "strdup.h".
84641         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84642         Use strdup instead of malloc/strcpy to duplicate strings.
84643
84644         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84645         (human_space_before_unit): New constant.
84646         * lib/human.c (human_readable): Support it.
84647
84648         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84649         (xgetcwd): Set errno correctly when failing.
84650         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84651         the failure is actually due to a PATH_MAX problem.
84652
84653         Further getopt changes to make it more likely that glibc will
84654         buy the changes back.
84655         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84656         (getopt): Use it, so to preserve glibc semantic
84657         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84658         when compiling for libc.
84659         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84660         (getopt_long, getopt_long_only): Use it.
84661
84662         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84663         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84664         (getopt): Argv is now char * const *, as per standard.
84665         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84666         not char *__getopt_argv_const *.
84667         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84668         _getopt_long_only_r): Likewise.
84669         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84670         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84671         _getopt_long_r, _getopt_long_only_r): Likewise.
84672         * lib/getopt_.h (__getopt_argv_const): Remove.
84673         (getopt): Argv is now char * const *, as per standard.
84674
84675         * lib/getdate.y (tORDINAL): New token.
84676         (day, relunit): Allow it for relative times.
84677         (relative_time_table): Use tORDINAL for ordinals.
84678
84679 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84680
84681         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84682         Document that "second" isn't allowed as an ordinal number.
84683
84684 2004-11-16  Jim Meyering  <jim@meyering.net>
84685
84686         * modules/closeout (Depends-on): Add fpending.
84687
84688 2004-11-15  Jim Meyering  <jim@meyering.net>
84689
84690         * lib/closeout.c: Include "__fpending.h" once again.
84691         Include <stdbool.h>.
84692         (close_stdout): Don't fail just because stdout was closed initially,
84693         since some programs don't write to stdout in the normal course of
84694         operation (other than --version and --help), and we don't want this
84695         function to make e.g. `touch file >&-' fail.
84696         But do fail if it was closed and someone has tried to write to it.
84697         E.g., `printf foo >&-' must fail.
84698
84699 2004-11-13  Jim Meyering  <jim@meyering.net>
84700
84701         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84702
84703 2004-11-12  Simon Josefsson  <jas@extundo.com>
84704
84705         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84706         small doc fix is still pending.
84707
84708 2004-11-11  Simon Josefsson  <jas@extundo.com>
84709
84710         * modules/strtok_r: New file.
84711
84712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84713         strtok_r.
84714
84715 2004-11-11  Simon Josefsson  <jas@extundo.com>
84716
84717         * m4/strtok_r.m4: New file.
84718
84719         * m4/getopt.m4: Replace opterr.
84720
84721 2004-11-11  Simon Josefsson  <jas@extundo.com>
84722
84723         * lib/strtok_r.h, strtok_r.c: New file.
84724
84725 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84728         of replacing opterr, getopt, etc.  This should handle the
84729         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84730
84731 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84732
84733         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84734         we can stop lying to compilers about the constness of argv when we
84735         are compiled outside glibc.
84736         (getopt, getopt_long, getopt_long_only): Use it.
84737         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84738         _getopt_internal, getopt): Likewise.
84739         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84740         _getopt_long_only_r): Likewise.
84741         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84742         _getopt_long_r, _getopt_long_only_r): Likewise.
84743
84744         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84745         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84746         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84747         the other external symbols.
84748         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84749         declaration, since the above renaming now works around collisions.
84750
84751 2004-11-11  Jim Meyering  <jim@meyering.net>
84752
84753         * lib/linebreak.c: Remove trailing blanks.
84754         * lib/alloca_.h: Likewise.
84755         * lib/acosl.c: Likewise.
84756         * lib/euidaccess.c: Likewise.
84757         * lib/allocsa.h: Likewise.
84758
84759 2004-11-10  Simon Josefsson  <jas@extundo.com>
84760
84761         * m4/getaddrinfo.m4: New file.
84762
84763 2004-11-10  Simon Josefsson  <jas@extundo.com>
84764
84765         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84766
84767 2004-11-10  Simon Josefsson  <jas@extundo.com>
84768
84769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84770         getaddrinfo.
84771
84772         * modules/getaddrinfo: New file.
84773
84774 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84775
84776         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84777
84778 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84779
84780         * lib/mktime.c (SHR): New macro, which is a portable
84781         substitute for >> that should work even on Crays.
84782         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84783         Problem reported by Mark D. Baushke in
84784         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84785         * lib/getdate.y (SHR): Likewise.
84786         (tm_diff): Use it.
84787         * lib/strftime.c (SHR): Likewise.
84788         (tm_diff): Use it.
84789         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84790         quote_these_too, so that right shifts are well defined.  All uses
84791         changed.
84792
84793 2004-11-10  Jim Meyering  <jim@meyering.net>
84794
84795         Ensure that no close failure goes unreported.
84796         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84797         return early when it seems there's nothing to flush.
84798         Don't include __fpending.h.
84799
84800 2004-11-10  Jim Meyering  <jim@meyering.net>
84801
84802         * modules/closeout (Depends-on): Remove fpending.
84803
84804 2004-11-10  Jim Meyering  <jim@meyering.net>
84805
84806         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84807
84808 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84809
84810         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84811         gl_FUNC_STRFTIME.
84812         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84813         and AC_REQUIRE when possible, to avoid duplicate checks.
84814         Check for <wchar.h>.
84815
84816 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84817
84818         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84819
84820 2004-11-09  Bruno Haible  <bruno@clisp.org>
84821
84822         * m4/sockpfaf.m4: New file.
84823
84824 2004-11-05  Bruno Haible  <bruno@clisp.org>
84825
84826         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84827         Reported by Mark D. Baushke <mdb@cvshome.org>.
84828
84829 2004-11-04  Bruno Haible  <bruno@clisp.org>
84830
84831         2004-09-11  Bruno Haible  <bruno@clisp.org>
84832                 * allocsa.valgrind: New file.
84833         2004-02-06  Bruno Haible  <bruno@clisp.org>
84834                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84835                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84836                 Reported by Christopher Seip <chris.seip@hp.com>.
84837
84838 2004-11-04  Bruno Haible  <bruno@clisp.org>
84839
84840         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84841         (Makefile.am): Distribute it.
84842
84843 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84844
84845         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84846         with errno == ERANGE if the buffer is too small.
84847         Problem reported by Mark D. Baushke.
84848
84849 2004-11-03  Albert Chin  <china@thewrittenword.com>
84850             Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84853         equivalent, substitute $ac_type for equivalent type rather than
84854         blindly using uint32_t *always* which won't work if uint32_t is not
84855         available.  Define _UINT32_T to work around typedef of uint32_t if
84856         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84857         2.5.1.
84858
84859 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84860
84861         * m4/jm-macros.m4: Sync from coreutils.
84862         (gl_MACROS): Check for mbrlen, for pathchk.
84863         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84864
84865 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84866
84867         * lib/xreadlink.c (MAXSIZE): New macro.
84868         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84869         size does not exceed MAXSIZE.  Avoid cast.
84870         As suggested by Mark D. Baushke in
84871         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84872         if readlink fails with buffer size just under MAXSIZE, try again
84873         with MAXSIZE.
84874
84875 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84876
84877         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84878
84879 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84880         and  Paul Eggert  <eggert@cs.ucla.edu>
84881
84882         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84883         (get_date): Overparenthesize to avoid GCC warning.
84884
84885 2004-11-02  Bruno Haible  <bruno@clisp.org>
84886
84887         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84888         returns void.
84889
84890 2004-11-02  Bruno Haible  <bruno@clisp.org>
84891
84892         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84893         function returns void.
84894
84895 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84896
84897         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84898         fflush_unlocked, flockfile, funlockfile, funlockfile,
84899         fputs_unlocked, putc_unlocked.
84900
84901 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84902
84903         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84904         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84905         already declared.
84906
84907 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84908
84909         * modules/getdate (Files): Add doc/getdate.texi.
84910         (Depends-on): Add setenv, xalloc.
84911
84912 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84913
84914         * lib/getdate.y: Add support for TZ="foo" within a date string.
84915         Fix some bugs near time_t boundaries.  Reject dates with
84916         out-of-range components, e.g., "Sept 31".
84917         Include <stdlib.h>, "setenv.h", "xalloc.h".
84918         (ISDIGIT_LOCALE): Remove; unused.
84919         Note that the TZ and time functions used here are not reentrant.
84920         (mktime_ok, get_tz): New functions.
84921         (TZBUFSIZE): New constant.
84922         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84923         This requires that we sometimes generate our own TZ="XXX..." setting.
84924
84925 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84926
84927         * doc/getdate.texi: New file, from coreutils with modifications for
84928         the new TZ parsing.
84929
84930 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84931
84932         * lib/mktime.c (not_equal_tm): Remove redundant check.
84933
84934 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84935
84936         * modules/regex (lib_SOURCES): Add regex.c.
84937         Reported by James Youngman in
84938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84939
84940 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84941
84942         * lib/getdate.y: Use Bison 1.875 features, and some minor
84943         code cleanups.  This change does not affect semantics.
84944         Don't include <stdlib.h>; no longer needed.
84945         Don't include unlocked-io.h; only the "#if TEST" code uses
84946         stdio, and performance isn't crucial there.
84947         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84948         Bison 1.875 features as described below.
84949         All uses of "PC." replaced by "pc->".
84950         (YYSTYPE): Add a forward declaration.
84951         (yylex, yyerror): Use full prototypes in forward decls.
84952         Use "%pure-parser" rather than obsolescent "%pure_parser".
84953         Use %parse-param and %lex-param instead of obsolescent
84954         YYPARSE_PARAM and YYLEX_PARAM.
84955         (meridian_table, month_and_day_table, time_units_table,
84956         relative_time_table, time_zone_table, military_table,
84957         lookup_zone, lookup_word, get_date):
84958         Use NULL instead of 0 where appropriate.
84959         (to_hour): Avoid abort (), to avoid a dependency on
84960         stdlib.h.
84961         (yyerror, yylex): Now accepts parser_control * arg.
84962         (main) [TEST]: Use '\0' rather than 0 for char.
84963
84964 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84965
84966         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84967
84968 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84969
84970         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84971         It's now the caller's responsibility to handle the case where
84972         !HAVE_GETPAGESIZE && !defined getpagesize.
84973
84974         * lib/mktime.c (leapyear): Arg is long int, not int.
84975
84976 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84979
84980 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84983         missing.  Problem reported by James Youngman.
84984
84985 2004-10-16  Simon Josefsson  <jas@extundo.com>
84986
84987         * gnulib-tool: Fix comments.  Fix parse problem.
84988         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84989
84990 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84991
84992         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84993         implementation of getopt_long.  Problem reported by Alexander Taler in:
84994         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84995
84996 2004-10-15  Bruno Haible  <bruno@clisp.org>
84997
84998         * gnulib-tool: Untabify. Initialize supplied_libname.
84999         (func_usage): More homogenous output.
85000         (func_modules_transitive_closure, func_modules_to_filelist,
85001         func_emit_lib_Makefile_am): New functions.
85002         (func_import): New function, extracted from big case statement. Use
85003         func_get_license, func_modules_transitive_closure,
85004         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85005         opt_lgpl. Don't use test -a, as it's not portable.
85006         (func_create_testdir): Use func_modules_transitive_closure,
85007         func_modules_to_filelist, func_emit_lib_Makefile_am.
85008
85009 2004-10-15  Bruno Haible  <bruno@clisp.org>
85010
85011         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85012
85013 2004-10-15  Bruno Haible  <bruno@clisp.org>
85014
85015         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85016         the portions belonging to each module.
85017         Suggested by Derek Robert Price <derek@ximbiot.com>.
85018
85019 2004-10-12  Simon Josefsson  <jas@extundo.com>
85020
85021         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85022         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85023         to real functions.
85024
85025 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85026
85027         * modules/vsnprintf: New file.
85028
85029 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85030
85031         * m4/vsnprintf.m4: New file.
85032
85033 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85034
85035         * lib/vsnprintf.h: New file.
85036         * lib/vsnprintf.c: New file.
85037
85038 2004-10-11  Bruno Haible  <bruno@clisp.org>
85039
85040         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85041         vsnprintf.
85042
85043 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85044
85045         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85046
85047 2004-10-07  Bruno Haible  <bruno@clisp.org>
85048
85049         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85050         fits into the provided buffer.
85051
85052 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85053
85054         * lib/diacrit.c, diacrit.h: Add GPL notice.
85055
85056         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85057         notice.
85058         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85059         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85060         This avoids a potential constant-folding bug.
85061
85062 2004-10-05  Bruno Haible  <bruno@clisp.org>
85063
85064         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85065         for the declaration of strsep.
85066
85067 2004-10-05  Bruno Haible  <bruno@clisp.org>
85068
85069         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85070
85071 2004-10-04  Simon Josefsson  <jas@extundo.com>
85072
85073         * modules/memmem: New file.
85074         * tests/test-memmem.c: New file.
85075         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85076
85077 2004-10-04  Simon Josefsson  <jas@extundo.com>
85078
85079         * m4/memmem.m4: New file.
85080
85081 2004-10-04  Simon Josefsson  <jas@extundo.com>
85082
85083         * lib/memmem.h: New file.
85084         * lib/memmem.c: New file, taken from glibc.
85085
85086 2004-10-04  Simon Josefsson  <jas@extundo.com>
85087
85088         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85089         '#ifdef USE_UNLOCKED_IO'.
85090
85091 2004-10-04  Simon Josefsson  <jas@extundo.com>
85092
85093         * config/srclist.txt: Add memmem from glibc.
85094
85095 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85096
85097         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85098
85099         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85100         modules/exclude, modules/getdate, modules/getline,
85101         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85102         modules/getusershell, modules/linebuffer, modules/md5,
85103         modules/mountlist, modules/posixtm, modules/readtokens,
85104         modules/readutmp, modules/regex, modules/sha1,
85105         modules/version-etc, modules/yesno:
85106         Remove dependency on unlocked-io.
85107
85108 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85109
85110         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85111
85112         * m4/unlocked-io.m4: Add copyright notice.
85113         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85114
85115 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85116
85117         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85118         * lib/xmalloc.c (xmemdup): Likewise.
85119         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85120         XFREE): Remove these long-obsolescent macros.
85121         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85122         * lib/xstrdup.c: Remove.
85123
85124         * lib/regex.c (re_comp): Cast gettext return value to char *,
85125         Problem reported by Martin Neitzel via Mark D. Baushke.
85126
85127 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85128
85129         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85130         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85131         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85132         regex.c, sha1.c, version-etc.c, yesno.c:
85133         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85134         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85135         the includer's responsibility.
85136
85137         Sync from coreutils.
85138
85139         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85140         points to the start of a string, as the C Standard says the
85141         resulting behavior is undefined.
85142
85143         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85144         simple -> simple_backups, numbered_existing ->
85145         numbered_existing_backups, numbered -> numbered_backups
85146         to avoid shadowing problems.  All uses changed.
85147         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85148         * lib/backupfile.c (check_extension, numbered_backup):
85149         Rename locals to avoid shadowing 'basename'.
85150         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85151         once.
85152
85153         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85154         * lib/.cvsignore: Add getopt.h.
85155
85156 2004-10-04  Bruno Haible  <bruno@clisp.org>
85157
85158         * modules/README: New file.
85159         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85160         not a module.
85161
85162 2004-10-02  Jim Meyering  <jim@meyering.net>
85163
85164         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85165
85166 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85167
85168         * modules/strsep: New file.
85169
85170 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85171
85172         * m4/strsep.m4: New file.
85173
85174 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85175
85176         * lib/strsep.h: New file.
85177         * lib/strsep.c: New file.
85178
85179 2004-10-01  Simon Josefsson  <jas@extundo.com>
85180
85181         * lib/snprintf.c (snprintf): Handle size==0.
85182
85183 2004-10-01  Simon Josefsson  <jas@extundo.com>
85184             Bruno Haible  <bruno@clisp.org>
85185
85186         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85187         (snprintf): Declare 'args'.
85188
85189 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * lib/snprintf.c: Remove comments as to why each header is needed.
85192
85193 2004-10-01  Bruno Haible  <bruno@clisp.org>
85194
85195         * MODULES.html.sh: Add strsep.
85196
85197 2004-09-30  Simon Josefsson  <jas@extundo.com>
85198
85199         * modules/snprintf: New file.
85200
85201 2004-09-30  Simon Josefsson  <jas@extundo.com>
85202
85203         * m4/snprintf.m4: New file.
85204
85205 2004-09-30  Simon Josefsson  <jas@extundo.com>
85206
85207         * lib/snprintf.h, lib/snprintf.c: New files.
85208
85209 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85210
85211         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85212         (hol_entry_help): Never translate an empty string.
85213         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85214         * lib/argp.h (OPTION_NO_TRANS): New option.
85215
85216 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85217
85218         * modules/argp (Maintainer): Replace Simon Josefsson
85219         by Sergey Poznyakoff.
85220
85221 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85222
85223         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85224         changes merged back into glibc.
85225
85226 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85227
85228         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85229
85230 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85231
85232         * lib/xvasprintf.c: Include xalloc.h.
85233         (xvasprintf): Use xalloc_die, not xmalloc_die.
85234
85235 2004-09-29  Bruno Haible  <bruno@clisp.org>
85236
85237         * modules/alloca-opt: New file, derived from modules/alloca.
85238         * modules/allocsa: Depend on alloca-opt instead of alloca.
85239         * modules/setenv: Likewise.
85240         * modules/vasnprintf: Likewise.
85241         * MODULES.html.sh: Add alloca-opt.
85242
85243 2004-09-28  Simon Josefsson  <jas@extundo.com>
85244
85245         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85246         LGPL, and to replace license template from GPL to LGPL.
85247
85248 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * modules/dummy: Change license to LGPL.
85251
85252 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85253
85254         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85255
85256 2004-09-24  Simon Josefsson  <jas@extundo.com>
85257
85258         * modules/minmax (License): Change from GPL to LGPL.
85259
85260 2004-09-23  Simon Josefsson  <jas@extundo.com>
85261
85262         * gnulib-tool (--import): Typo.
85263
85264 2004-09-23  Simon Josefsson  <jas@extundo.com>
85265
85266         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85267
85268 2004-09-22  Bruno Haible  <bruno@clisp.org>
85269
85270         * modules/*: Add 'License' field.
85271         * gnulib-tool: Accept --extract-license option.
85272         (func_get_license): New function.
85273
85274 2004-09-21  Bruno Haible  <bruno@clisp.org>
85275
85276         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85277         Reported by Simon Josefsson.
85278
85279 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85280
85281         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85282         gl_AC_TYPE_LONG_LONG.
85283
85284 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85285
85286         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85287
85288 2004-09-18  Simon Josefsson  <jas@extundo.com>
85289         and  Paul Eggert  <eggert@cs.ucla.edu>
85290
85291         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85292         calls with autoreconf.  Define GL_LIB.
85293
85294 2004-09-14  Karl Berry  <karl@gnu.org>
85295
85296         * config/srclist.txt: unsync setenv.c, sigh.
85297
85298 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85299
85300         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85301         Problem reported by Bruno Haible in:
85302         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85303
85304 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85305
85306         * config/srclist.txt: Comment out argp-pvh.c.
85307
85308 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85309
85310         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85311         in case some system header has #define'd it.  Problem reported by
85312         Soeren D. Schulze in
85313         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85314
85315 2004-09-09  Karl Berry  <karl@gnu.org>
85316
85317         * regex.[ch]: delete from the root.  These were supposed to be
85318                 synced with emacs cvs, but this has not happened for about
85319                 a year, and anyway nothing else uses emacs regex.[ch].
85320                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85321                 lib/regex[.ch] is untouched.
85322
85323 2004-09-09  Bruno Haible  <bruno@clisp.org>
85324
85325         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85326
85327 2004-09-09  Bruno Haible  <bruno@clisp.org>
85328
85329         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85330         modifications.
85331         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85332
85333 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85334
85335         * modules/xvasprintf: New file.
85336         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85337
85338 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85339
85340         * lib/xvasprintf.h: New file.
85341         * lib/xvasprintf.c: New file.
85342         * lib/xasprintf.c: New file.
85343
85344 2004-09-08  Bruno Haible  <bruno@clisp.org>
85345
85346         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85347
85348 2004-09-08  Bruno Haible  <bruno@clisp.org>
85349
85350         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85351         length is > INT_MAX.
85352         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85353         more.
85354
85355 2004-09-08  Bruno Haible  <bruno@clisp.org>
85356
85357         * lib/stdint_.h: New file, taken from GNU clisp.
85358
85359 2004-09-08  Bruno Haible  <bruno@clisp.org>
85360             Oskar Liljeblad  <oskar@osk.mine.nu>
85361
85362         * modules/stdint: New file.
85363         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85364
85365 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         Import from coreutils.
85368         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85369         strings on unbounded length.  alloca's performance benefits aren't
85370         that important here.
85371         (V_STRDUP): Remove.
85372         (parse_with_separator): New function, with most of the internals
85373         of the old parse_user_spec.  Allow user to omit both user and group,
85374         for compatibility with FreeBSD.
85375         Clone only the user name, not the entire spec.
85376         Do not set *uid, *gid unless entirely successful.
85377         Avoid memory leak in some failing cases.
85378         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85379         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85380         (parse_user_spec): Rewrite to use parse_with_separator.
85381
85382 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85383
85384         * modules/userspec: Don't depend on alloca.
85385
85386 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85387
85388         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85389
85390 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85391
85392         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85393         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85394         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85395
85396 2004-08-16  Simon Josefsson  <jas@extundo.com>
85397
85398         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85399         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85400         Add --dry-run for --import.
85401         Let user provided command line parameters override configure.ac
85402         settings.
85403
85404 2004-08-12  Simon Josefsson  <jas@extundo.com>
85405
85406         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85407         as discussed with Paul Eggert in threads rooted at
85408         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85409         and
85410         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85411         Before, the test was empty, and relied on ELIDE_CODE in source
85412         code.)
85413         (gl_PREREQ_GETOPT): New macro.
85414         (gl_GETOPT): Use them.
85415
85416 2004-08-12  Simon Josefsson  <jas@extundo.com>
85417
85418         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85419         * lib/getopt_.h: Renamed from getopt.h.
85420
85421 2004-08-12  Simon Josefsson  <jas@extundo.com>
85422
85423         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85424         Change default library name from libfoo to libgnu.
85425         Now, if you have a configure.ac that says:
85426                 gl_SOURCE_BASE(gl)
85427                 gl_M4_BASE(gl/m4)
85428                 gl_MODULES(error getopt etcetera)
85429                 gl_INIT
85430         you can import all you need by running:
85431                 ../gnulib/gnulib-tool --import
85432
85433         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85434         (Makefile.am): Rewrite, use logic from argz.
85435         (Include): Use <getopt.h> instead of "getopt.h".
85436
85437 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85438
85439         * modules/argp (Files): Add m4/unlocked-io.m4.
85440         (Depends-on): Add extensions.
85441
85442 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85443
85444         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85445         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85446         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85447         Check for program_invocation_name, program_invocation_short_name,
85448         flockfile, funlockfile, features.h, _getopt_long_only_r.
85449
85450 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85451
85452         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85453         its complicated substitute.
85454         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85455         and program_invocation_name.
85456         (__argp_basename) [!_LIBC]: Remove; the only use was
85457         replaced by its body.
85458         (__argp_short_program_name): Change condition from
85459         !defined __argp_short_program_name to
85460         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85461         to match argp-namefrob.h.
85462         (__argp_failure): Don't assume strerror_r returns char *.
85463         * lib/argp-parse.c (N_): Define unconditionally.
85464         (argp_default_options): Fill out initializers with 0 to avoid
85465         gcc warnings.
85466
85467 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85468
85469         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85470         getopt1.c.
85471
85472 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85473
85474         Merge from coreutils.
85475
85476         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85477
85478         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85479         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85480
85481 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         Merge from coreutils.
85484
85485         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85486         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85487         for Reliant Unix 5.43.
85488
85489         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85490         (union fooround): Use uintmax_t, not long int.
85491         The rest is a merge from libc:
85492         [defined _LIBC]: Include <shlib-compat.h>.
85493         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85494
85495         * lib/settime.c (settime): Recode to avoid warning with
85496         Sun Forte C 6U2.
85497
85498         * lib/strverscmp.c: Convert to UTF-8.
85499
85500 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85501
85502         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85503         m4/uintmax_t.m4.
85504
85505 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85506
85507         * modules/xalloc-die: New file.
85508         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85509
85510         * modules/md5 (Files): Add m4/uint32_t.m4.
85511         * modules/sha1: Renamed from modules/sha.
85512         (Files):
85513         Rename lib/sha.h to lib/sha1.h.
85514         Rename lib/sha.c to lib/sha1.c.
85515         Rename m4/sha.m4 to m4/sha1.m4.
85516         (lib_SOURCES): Likewise.
85517         (configure.ac): Rename gl_SHA to gl_SHA1.
85518         (Include): sha.h -> sha1.h.
85519
85520 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85521
85522         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85523         * m4/sha1.m4: Renamed from sha.m4.
85524         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85525
85526 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85527
85528         * lib/obstack.h (obstack_empty_p):
85529         Don't assume that chunk->contents is suitably aligned.
85530         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85531         Likewise. Problem reported by Benno in
85532         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85533
85534         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85535         readable.  This could be improved further but it'd take some work.
85536
85537 2004-08-08  Simon Josefsson  <jas@extundo.com>
85538
85539         * modules/xgethostname (Depends-on): Remove exit and error (not
85540         used).
85541
85542         * modules/getpass-gnu: Add getpass.h.
85543         (Depends-on): Add stdbool.
85544         * modules/getpass: Add getpass.h.
85545
85546 2004-08-08  Simon Josefsson  <jas@extundo.com>
85547
85548         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85549         Check getpass declaration.
85550
85551 2004-08-08  Simon Josefsson  <jas@extundo.com>
85552
85553         * lib/xgethostname.c: Don't include error.h (not used).
85554
85555         * lib/getpass.h: Add.
85556         * lib/getpass.c: Include getpass.h first.
85557
85558 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85559
85560         * lib/xalloc-die.c: New file.
85561         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85562         All uses removed.
85563         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85564         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85565         xalloc-die.c.
85566         (_, N_, xalloc_die): Move to xalloc-die.c.
85567         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85568         so that we needn't mess with xalloc_msg_memory_exhausted.
85569
85570         * lib/sha1.h: Renamed from sha.h.
85571         (SHA1_H): Renamed from _SHA_H.
85572         (sha1_ctx): Renamed from sha_ctx.
85573         (sha1_init_ctx): Renamed from sha_init_ctx.
85574         (sha1_process_block): Renamed from sha_process_block.
85575         (sha1_process_bytes): Renamed from sha_process_bytes.
85576         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85577         (sha1_read_ctx): Renamed from sha_read_ctx.
85578         (sha1_stream): Renamed from sha_stream.
85579         (sha1_buffer): Renamed from sha_buffer.
85580         * lib/sha1.c: Likewise; renamed from sha.c.
85581         Do not include <sys/types.h>.
85582         Include <stddef.h> rather than <stdlib.h>.
85583
85584 2004-08-08  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85587         FILESYSTEM_PREFIX_LEN.
85588         * lib/progreloc.c: Likewise.
85589         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85590
85591 2004-08-06  Simon Josefsson  <jas@extundo.com>
85592
85593         * modules/progname (Depends-on): Don't depend on stdbool.
85594
85595 2004-08-06  Simon Josefsson  <jas@extundo.com>
85596
85597         * modules/getsubopt: New file.
85598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85599         getsubopt.
85600
85601 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85602
85603         More merge from coreutils.
85604
85605         * m4/utimens.m4, m4/utimecmp.m4: New files.
85606         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85607         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85608         prereq.m4, sha.m4: Import changes from coreutils.
85609
85610 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85611
85612         More merge from coreutils.
85613         * modules/raise, modules/readtokens0, modules/utimens:
85614         * modules/utimecmp, module/xnanosleep: New files.
85615         * modules/strftime: Add lib/strftime.h.
85616         Change include from <time.h> to "strftime.h".
85617         * modules/yesno: Add lib/yesno.h.
85618         * modules/backupfile: Remove lib/addext.c.
85619         * modules/euidaccess: Add stat-macros.h.
85620         * modules/canonicalize, modules/euidaccess,
85621         modules/filemode, modules/lchown, modules/makepath,
85622         modules/rmdir, modules/stat: Likewise.
85623
85624 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85625
85626         Merge from tar.
85627         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85628         SIZE_MAX is a valid preprocessor constant.
85629         (__argp_basename): Change from "#ifndef _LIBC"
85630         to "#ifndef __argp_short_program_name", so that
85631         we don't compile these functions for tar.
85632
85633         More merges from coreutils.
85634         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85635         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85636         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85637         * lib/addext.c: Remove; no longer needed.
85638         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85639         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85640         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85641         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85642         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85643         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85644         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85645         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85646         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85647         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85648         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85649         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85650         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85651         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85652         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85653         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85654         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85655         Import changes from coreutils.
85656
85657 2004-08-05  Simon Josefsson  <jas@extundo.com>
85658
85659         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85660
85661 2004-08-05  Simon Josefsson  <jas@extundo.com>
85662
85663         * m4/getsubopt.m4: New file.
85664
85665 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85666
85667         Merge from coreutils.
85668
85669         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85670         * m4/getcwd-path-max.m4: New files.
85671
85672         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85673         FILESYSTEM_PREFIX_LEN ->
85674         FILE_SYSTEM_PREFIX_LEN.
85675         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85676         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85677         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85678         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85679
85680         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85681         prerequisite modules now handle the DOS stuff.
85682         Don't check for unistd.h.
85683
85684 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85685
85686         Merge from coreutils.
85687
85688         * lib/.gdb-history: Remove; this doesn't belong here.
85689
85690         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85691         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85692         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85693         * lib/getcwd.c: New files.
85694
85695         * lib/dirname.h: Include <stdbool.h>.
85696         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85697         for consistency with POSIX terminology.  All uses changed.
85698         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85699         (strip_trailing_slashes): Use bool for booleans.
85700         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85701
85702         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85703         sometimes returns a positive errno value even when it succeeds.
85704         (print_errno_message) [!LIBC]: Fall back on strerror if
85705         __strerror_r fails.
85706
85707         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85708         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85709         (longest_relative_suffix): New function.
85710         (path_concat): Use it.  Assume first argument is not NULL.
85711         Port to DOS.  Omit redundant separators.
85712         Report an error instead of returning NULL.
85713         Use mempcpy instead of memcpy.
85714         (xpath_concat): Remove: not declared or used.
85715
85716         * lib/same.h: Include <stdbool.h>
85717         (same_name): Return bool, not int.
85718         * lib/same.c (same_name): Likewise.
85719         (errno): Don't declare; we assume C89 or better now.
85720
85721         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85722         if not already defined.
85723
85724         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85725         * lib/dup-safer.c (errno): Likewise.
85726
85727 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85728
85729         Merge from coreutils.
85730         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85731         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85732         * modules/path-concat: Don't depend on strdup.
85733
85734 2004-08-03  Simon Josefsson  <jas@extundo.com>
85735
85736         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85737         * lib/progname.h: Don't include stdbool.h.
85738
85739 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85740
85741         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85742         * MODULES.html.sh (func_all_modules): Remove fatal.
85743
85744 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85745
85746         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85747
85748 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85749
85750         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85751         working.
85752
85753 2004-08-02  Simon Josefsson  <jas@extundo.com>
85754
85755         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85756         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85757         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85758
85759 2004-08-01  Simon Josefsson  <jas@extundo.com>
85760
85761         * lib/xgetdomainname.c: Include stdlib.h, for free().
85762
85763 2004-07-19  Bruno Haible  <bruno@clisp.org>
85764
85765         * MODULES.html.sh (func_all_modules): Add dummy.
85766
85767 2004-07-16  Simon Josefsson  <jas@extundo.com>
85768
85769         * modules/dummy: New file.
85770
85771 2004-07-16  Simon Josefsson  <jas@extundo.com>
85772
85773         * lib/dummy.c: New file.
85774
85775 2004-07-16  Bruno Haible  <bruno@clisp.org>
85776
85777         * lib/backupfile.h: Add extern "C" for C++.
85778         * lib/closeout.h: Likewise.
85779         * lib/copy-file.h: Likewise.
85780         * lib/findprog.h: Likewise.
85781         * lib/full-write.h: Likewise.
85782         * lib/pathname.h: Likewise.
85783         * lib/progname.h: Likewise.
85784         * lib/stpcpy.h: Likewise.
85785         * lib/stpncpy.h: Likewise.
85786         * lib/strcase.h: Likewise.
85787         * lib/strstr.h: Likewise.
85788         * lib/xalloc.h: Likewise.
85789
85790         * lib/mbswidth.h: Add extern "C" for C++.
85791         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85792
85793 2004-07-13  Robert Millan  <robertmh@gnu.org>
85794
85795         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85796
85797 2004-07-09  Simon Josefsson  <jas@extundo.com>
85798
85799         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85800         failed without this.)
85801
85802 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85803
85804         * modules/chown (Files): Add lib/fchown-stub.c, since
85805         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85806
85807 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85808
85809         * lib/fchown-stub.c: New file.
85810
85811 2004-06-24  Jim Meyering  <jim@meyering.net>
85812
85813         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85814
85815 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85816
85817         * modules/argz: Omit "#include".
85818
85819         * MODULES.html.sh (func_all_modules): Add calloc, to match
85820         2004-06-01 addition of calloc module.
85821
85822 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85823
85824         * m4/argz.m4: New file, which is autoupdated from libtool.
85825
85826 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85827
85828         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85829         libtool.
85830
85831 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85832
85833         * config/srclist-update: Don't insist on "USA." before the
85834         close-comment, as libtool omits the period and puts the */ on a
85835         separate line.
85836         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85837         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85838
85839 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85840
85841         * modules/argz: New file.
85842         * MODULES.html.sh (func_all_modules): Add argz.
85843
85844 2004-06-12  Jim Meyering  <jim@meyering.net>
85845         and  Paul Eggert  <eggert@cs.ucla.edu>
85846
85847         * modules/hash (Files): Add lib/xalloc.h.
85848         * modules/pipe (Depends-on): Add wait-process.
85849         * modules/stat (Depends-on): Add xalloc.
85850         * modules/userspec (Files): Add lib/userspec.h.
85851         * modules/xstrto
85852
85853         Upgrade from gettext-0.13.
85854         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85855         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85856         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85857
85858 2004-06-10  Jim Meyering  <jim@meyering.net>
85859
85860         * lib/calloc.c: New file.
85861
85862 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85863
85864         * lib/getdate.y (yylex): Allow space between sign and number.
85865         Problem reported by Dan Jacobson.
85866
85867 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85868
85869         Merge from coreutils CVS.
85870
85871         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85872         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85873         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85874         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85875         xstrtol.m4: Fix copyright date and/or serial number.
85876
85877         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85878         See if we need an fchown replacement.
85879         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85880         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85881         and use the replacement function if we detect either defect.
85882
85883         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85884         gl_UTIMECMP.
85885
85886 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85887         and  Jim Meyering  <jim@meyering.net>
85888
85889         Merge from coreutils CVS.
85890
85891         * lib/stat-macros.h: New file, with contents from file-type.h
85892         and coreutils' system.h.
85893         * lib/file-type.c: Include "stat-macros.h".
85894         * lib/file-type.h (file_type): Move all macro definitions to new file,
85895         stat-macros.h.
85896
85897         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85898         Wrap old code with this conditional.
85899         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85900         function that does not dereference symlinks.
85901         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85902
85903         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85904         dependency problems.
85905         (xreadlink): Accept new arg SIZE, for efficiency.
85906         All decls and uses changed.
85907         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85908
85909         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85910         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85911
85912         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85913         sysexits.h.
85914
85915 2004-06-01  Jim Meyering  <jim@meyering.net>
85916
85917         * m4/calloc.m4: New file.
85918
85919 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85920
85921         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85922         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85923         Also, fix a typo in a diagnostic.
85924
85925 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85926
85927         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85928         or AC_FUNC_REALLOC.
85929
85930 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85933         macros to be defined.
85934         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85935         the allocator returns NULL because the requested size is zero.
85936
85937 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85938
85939         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85940         var.  Add comment explaining why libc still defines it.  This
85941         merges the following patch from glibc:
85942         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85943
85944 2004-05-20  Andreas Schwab  <schwab@suse.de>
85945
85946         * m4/free.m4: Replace free if it not known to work, not the other
85947         way round.
85948
85949 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85950
85951         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85952         present in glibc since revision 1.1 of this file.
85953         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85954         obstack_alignment_mask, obstack_alloc, obstack_base,
85955         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85956         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85957         obstack_grow0, obstack_init, obstack_int_grow,
85958         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85959         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85960         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85961         nonexistent functions.
85962
85963 2004-05-18  Karl Berry  <karl@gnu.org>
85964
85965         * config/srclist.txt: break link for vasnprintf.c.
85966
85967 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85968
85969         Port obstack to the AS/400, where pointers are 16 bytes wide and
85970         you cannot cast an integer to a valid pointer.  This patch is
85971         currently waiting to be integrated into glibc; see
85972         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85973
85974         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85975         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85976         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85977         (struct obstack): temp member is now a union of a pointer and
85978         an integer, instead of an integer.  All integer uses changed.
85979         This does not affect the physical layout of struct obstack,
85980         except on hosts (like the AS/400) where the size or alignment of
85981         void * is greater than that of ptrdiff_t.
85982         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85983         __STDC__)]: Store temporary in pointer member of union, not
85984         integer member.
85985         * lib/obstack.c: Include <stddef.h>, for offsetof.
85986         (struct fooalign): Remove; it doesn't need a name.
85987         (union fooround): Change double to long double, and add void *.
85988         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85989         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85990         not a macro.  Hence the values are always int; so remove all
85991         casts-to-int in uses.
85992
85993 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85994
85995         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85996         we can get this patch merged into glibc.
85997
85998 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85999             Paul Eggert  <eggert@cs.ucla.edu>
86000
86001         * m4/argp: Depend on alloca.
86002
86003 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86004             Paul Eggert  <eggert@cs.ucla.edu>
86005
86006         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86007         freecoding.
86008
86009 2004-05-17  Bruno Haible  <bruno@clisp.org>
86010
86011         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86012         precision that consists of a '.' followed by an empty digit string.
86013         Patch by Tor Lillqvist <tml@iki.fi>.
86014
86015 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86016
86017         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86018         for backward compatibility with older code.  We need our own
86019         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86020         it under some other name, and our alloca.h will define it.
86021
86022 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86023             Derek Price  <derek@ximbiot.com>
86024
86025         * lib/alloca.c: Include <alloca.h>, to get our interface.
86026         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86027         include <alloca.h> first.  Use C89 prototype for alloca; this
86028         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86029         Use #elif for simplicity, since we can assume C89 now.
86030         Don't try to source the system alloca.h since it will not be found
86031         and to prevent recursively including its replacement.
86032         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86033         * lib/regex.c: Likewise.
86034
86035 2004-05-16  Derek Price  <derek@ximbiot.com>
86036             Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         getline cleanup.  This changes the getndelim2 API: both order of
86039         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86040         no delimiter).
86041
86042         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86043         interface does that.
86044         (getline): Always use getdelim, so that we don't have two
86045         copies of this code.
86046         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86047         if available.
86048         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86049         (GETNDELIM2_MAXIMUM): New macro.
86050         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86051         instead of the old practice of delim2==0.  All callers changed.
86052         Return -1 on overflow, instead of returning junk.
86053         Do not set *linesize unless allocation succeeds.
86054         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86055         that we include sys/types.h.
86056         * lib/getnline.h: Likewise.
86057         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86058         (getndelim2): Reorder arguments.
86059         * lib/getnline.c (getnline, getndelim):
86060         Don't discard the NMAX argument.
86061         (getnline): Invoke getndelim, to avoid code duplication.
86062         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86063         of (size_t) -1 by callers of the getnline family.
86064
86065 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86068         Check for gettimeofday.
86069         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86070         Check for settimeofday, stime.
86071
86072 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86073
86074         * lib/nanosleep.c (suspended): Change its type from int to
86075         sig_atomic_t volatile.
86076         (first_call): Make it private to rpl_nanosleep, and have it
86077         be zero initially as that's a bit faster.
86078         (my_usleep): Round up fractional times instead of truncating them,
86079         as this is the usual meaning for 'sleep'.
86080
86081         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86082         doesn't work.
86083         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86084         (ENOSYS): Define if not defined.
86085         (settime): Fall back on stime if it exists and settimeofday fails.
86086         But don't bother with fallbacks if a method fails with errno == EPERM.
86087
86088 2004-05-11  Jim Meyering  <jim@meyering.net>
86089
86090         Prior to this change, the save_cwd caller required read access to the
86091         current directory on most systems (ones with the fchdir function).
86092
86093         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86094         fails, try write-only, and finally, resort to using xgetcwd.
86095
86096 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86097
86098         * lib/obstack.c, obstack.h: Import changes from libc.
86099
86100 2004-04-28  Bruno Haible  <bruno@clisp.org>
86101
86102         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86103         also implicitly appends .exe to executables.
86104         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86105         accepts Windows pathnames.
86106         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86107         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86108         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86109         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86110         Reported by Derek Robert Price <derek@ximbiot.com>.
86111
86112 2004-04-21  Karl Berry  <karl@gnu.org>
86113
86114         * config/srclist.txt (localcharset.c): break sync.
86115
86116 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86117
86118         * m4/host-os.m4: Add a copyright notice.
86119
86120 2004-04-20  Jim Meyering  <jim@meyering.net>
86121
86122         Change UTILS_ to gl_ in AC_DEFINE'd names.
86123         Change utils_- and jm_-prefixed variables, too.
86124         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86125         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86127
86128         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86129         Don't emit trailing blanks.
86130         Also rename jm_-prefixed variables to have gl_ prefix.
86131
86132         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86133         Also rename jm_-prefixed variables to have gl_ prefix.
86134
86135         * m4/jm-macros.m4: Reflect the renamings.
86136         * m4/prereq.m4: Likewise.
86137
86138 2004-04-20  Jim Meyering  <jim@meyering.net>
86139
86140         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86141         memory.
86142
86143 2004-04-20  Jim Meyering  <jim@meyering.net>
86144             Bruno Haible  <bruno@clisp.org>
86145
86146         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86147         memory when realloc fails.
86148
86149 2004-04-19  Jim Meyering  <jim@meyering.net>
86150
86151         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86152         now that readutmp.c may call `free (0)'.
86153
86154 2004-04-19  Bruno Haible  <bruno@clisp.org>
86155
86156         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86157         * m4/inttypes_h.m4: Likewise.
86158         * m4/stdint_h.m4: Likewise.
86159         * m4/intmax_t.m4: Likewise.
86160         * m4/uintmax_t.m4: Likewise.
86161
86162 2004-04-18  Jim Meyering  <jim@meyering.net>
86163
86164         * m4/prereq.m4: Don't forbid jm_ prefix.
86165
86166         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86167         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86168         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86169         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86170         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86171         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86172         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86173         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86174         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86175         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86176         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86177         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86178         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86179         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86180         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86181         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86182         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86183         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86184         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86185
86186 2004-04-18  Jim Meyering  <jim@meyering.net>
86187
86188         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86189         failure, don't leak memory and do call END_UTMP_ENT.
86190
86191 2004-04-16  Jim Meyering  <jim@meyering.net>
86192
86193         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86194         coreutils' stat program.
86195         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86196
86197 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86198
86199         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86200         C89.
86201         (CHAR_BIT): Remove, since we assume C89.
86202         Include <stdint.h> if available, as per current Autoconf CVS advice.
86203
86204 2004-03-31  Jim Meyering  <jim@meyering.net>
86205
86206         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86207         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86208         * m4/xalloc.m4: Likewise.
86209
86210 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86211
86212         Merge from coreutils.
86213
86214         * m4/inttostr.m4: New file.
86215         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86216         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86217         Require gl_CLOCK_TIME.
86218         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86219
86220 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86221
86222         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86223         not bool, to be more consistent with Unix conventions.
86224         Suggested by Bruno Haible.
86225
86226         Merge from coreutils.
86227
86228         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86229         * lib/umaxtostr.c: New files.
86230
86231         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86232         the usual <time.h> dance.
86233         (get_date): Change signature to support fractional time stamps.
86234         All callers changed.
86235         * lib/getdate.y: Include "getdate.h" first, as we can now
86236         assume C89 and don't need to worry about 'const'.
86237         Similarly, include "unlocked-io.h" near start, not in middle.
86238         Include <limits.h>.
86239         (textint.value): Use long int rather than int.
86240         (textint.digits): Use size_t rather than int.
86241         (BILLION, LOG10_BILLION): New constants.
86242         (parser_control): New member rel_ns.  Members day_ordinal,
86243         time_zone, month, day, hour, minutes, rel_year, rel_month,
86244         rel_day, rel_hour, rel_minutes, rel_seconds
86245         are now long int, not int.  Member seconds is now struct timespec,
86246         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86247         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86248         not int.
86249         (%union.intval): Now long int, not int.
86250         New member timespec.
86251         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86252         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86253         (spec): Now is a timespec or an item list.
86254         (timespec, items): New nonterminals.
86255         (time, rel, relunit, number, get_date):
86256         Add support for fractional seconds.
86257         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86258         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86259         (to_hour): First arg is now long int, not int.
86260         (to_year): Returns long int, not int.
86261         Don't treat year -70 like 70.
86262         (tm_diff): Returns long int, not int.
86263         (lookup_word): Use bool instead of int when appropriate.
86264         (yylex): Use size_t for count, not int.
86265         Detect overflow when parsing large integer constants.
86266         Add support for fractions.
86267         (get_date): Make pointers 'const' if possible.
86268         Use more-portable code to detect integer overflow.
86269         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86270         Don't use ctime; it's not reliable if the year has >4 digits.
86271
86272         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86273         This is for compatibility with BSD.
86274
86275         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86276         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86277         From coreutils' system.h.
86278
86279         * lib/userspec.c: Don't include "posixver.h".
86280         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86281         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86282         compatible extension.  Simplify code by removing a boolean int
86283         that was always nonzero if a string was nonnull.
86284
86285 2004-03-30  Jim Meyering  <jim@meyering.net>
86286
86287         Merge from coreutils.
86288
86289         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86290         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86291         on some systems one must include <grp.h> before it.
86292         Reported by Christian Krackowizer.
86293
86294 2004-03-30  Jim Meyering  <jim@meyering.net>
86295
86296         Merge from coreutils.
86297
86298         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86299
86300         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86301         an empty input stream.
86302
86303         * lib/readtokens.c: Include <stdbool.h>.
86304         (readtoken): Use `size_t' rather than int/long.
86305         All callers adjusted.
86306         Use `bool' rather than `int' where appropriate.
86307         Use memset rather than an explicit loop.
86308         Use x2nrealloc rather than xrealloc.
86309         Allow the use of `\0' as a delimiter.
86310         (readtokens): Likewise.
86311         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86312
86313 2004-03-30  Jim Meyering  <jim@meyering.net>
86314
86315         * m4/realloc.m4: Remove file, since now it does no more than
86316         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86317         the `configure.ac' section of module/realloc.
86318         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86319
86320 2004-03-30  Bruno Haible  <bruno@clisp.org>
86321
86322         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86323         nonnull.
86324
86325 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86326
86327         Merge changes to getloadavg.c from coreutils and Emacs.
86328
86329         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86330         Define to an expression, not to the empty string.
86331         Include cloexec.h and xalloc.h.
86332         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86333         Use set_cloexec_flag rather than rolling our own.
86334         * lib/cloexec.c, lib/cloexec.h: New files.
86335
86336 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86337
86338         * m4/cloexec.m4: New file.
86339
86340 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86341
86342         * lib/getopt.h: Sync with libc CVS.
86343
86344 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86345             Bruno Haible  <bruno@clisp.org>
86346
86347         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86348         mbswidth.
86349
86350 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86351             Bruno Haible  <bruno@clisp.org>
86352
86353         * lib/mbswidth.h: Include <wchar.h> only if
86354         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86355         <wchar.h>.
86356         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86357
86358 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86359
86360         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86361         Sync with libc CVS.
86362         * lib/getopt_int.h: New file, also synced from libc.
86363
86364 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86365
86366         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86367         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86368         Bring back getopt.c, getopt.h, getopt1.c.
86369
86370 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86371
86372         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86373         All uses changed.  Check for sa_sigaction member; this fixes
86374         a bug first reported by Jason Andrade in
86375         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86376
86377 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86378
86379         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86380         '#if' expressions.  Unlike the code it replaces, it does not
86381         depend on (defined _SC_PAGESIZE).  However, it does depend on
86382         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86383         first reported by Jason Andrade in
86384         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86385
86386 2004-02-25  Simon Josefsson  <jas@extundo.com>
86387
86388         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86389
86390 2004-02-25  Simon Josefsson  <jas@extundo.com>
86391
86392         * lib/strdup.h: New file.
86393         * lib/strdup.c: Include it.
86394         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86395         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86396
86397 2004-02-23  Karl Berry  <karl@gnu.org>
86398
86399         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86400         (from fencepost.gnu.org:/gd/gnuorg).
86401
86402 2004-02-23  Karl Berry  <karl@gnu.org>
86403
86404         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86405         * config/srclist.txt: add maintain/standards documents.
86406
86407 2004-02-18  Bruno Haible  <bruno@clisp.org>
86408
86409         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86410         Reported by Derek Robert Price <derek@ximbiot.com>.
86411
86412 2004-02-16  Karl Berry  <karl@gnu.org>
86413
86414         * config/mkinstalldirs, install-sh: update from automake.
86415
86416 2004-02-06  Karl Berry  <karl@gnu.org>
86417
86418         * m4/po.m4: update from gettext 0.14.1.
86419
86420 2004-02-06  Karl Berry  <karl@gnu.org>
86421
86422         * lib/config.charset: update from gettext 0.14.1.
86423
86424 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86425
86426         Add comments and code, prompted by suggestions from Bruno Haible
86427         for sh-quote.
86428         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86429         describing the enum quoting_style values.
86430         * lib/quotearg.c (quotearg_alloc): New function.
86431         (quotearg_buffer_restyled): Treat lone { and } as special.
86432         Treat = as special.  Work around bug with older shells
86433         that "see" a '\' that is really the 2nd byte of a multibyte char.
86434         Quote empty string with shell_quoting_style.
86435
86436 2004-02-03  Bruno Haible  <bruno@clisp.org>
86437
86438         * m4/pipe.m4: New file, from GNU gettext.
86439
86440 2004-02-03  Bruno Haible  <bruno@clisp.org>
86441
86442         * lib/pipe.h: New file, from GNU gettext.
86443         * lib/pipe.c: New file, from GNU gettext.
86444
86445 2004-01-27  Bruno Haible  <bruno@clisp.org>
86446
86447         * m4/execute.m4: New file, from GNU gettext.
86448
86449 2004-01-27  Bruno Haible  <bruno@clisp.org>
86450
86451         * lib/execute.h: New file, from GNU gettext.
86452         * lib/execute.c: New file, from GNU gettext.
86453         * lib/w32spawn.h: New file, from GNU gettext.
86454
86455 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86456
86457         Merge from diffutils.
86458
86459         * lib/file-type.c (file_type): Add typed memory objects.
86460         * lib/file-type.h (S_TYPEISTMO): New macro.
86461
86462         * lib/c-stack.h (c_stack_action): Remove argv argument.
86463         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86464         (die): Don't calculate message unless segv_action returns.
86465         (get_stack_location, min_address_from_argv, max_address_from_argv,
86466         volatile stack_base, volatile_stack_size): Remove.
86467         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86468         that every segmentation violation is a stack overflow.  (Ouch!)
86469         See Debian bug 136249 (still outstanding) for more info about why
86470         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86471
86472 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86473
86474         Exit-status fix from coreutils.
86475
86476         Use exit_failure consistently in place of EXIT_FAILURE,
86477         so that program exit statuses are consistent on failure.
86478
86479         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86480         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86481         * lib/argmatch.h: Comment fix to match the above.
86482         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86483         Now a macro referring to exit_failure, instead of a separate
86484         variable.  Include "exitfail.h" to get it.
86485         * lib/xstrtol.h: Include "exitfail.h".
86486         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86487
86488         * lib/long-options.c (parse_long_options): Use prototype
86489         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86490         for clarity.
86491
86492 2004-01-21  Jim Meyering  <jim@meyering.net>
86493
86494         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86495         so as not to conflict with a different-sized __mktime_internal
86496         function in GNU libc.
86497         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86498         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86499
86500 2004-01-20  Karl Berry  <karl@gnu.org>
86501
86502         * config/config.guess: update from config.
86503
86504         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86505
86506 2004-01-20  Bruno Haible  <bruno@clisp.org>
86507
86508         Safer stack allocation.
86509         * lib/setenv.c: Include allocsa.h.
86510         (alloca): Remove fallback definition.
86511         (freea): Remove macro.
86512         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86513         instead of freea.
86514
86515 2004-01-20  Bruno Haible  <bruno@clisp.org>
86516
86517         * m4/eealloc.m4: New file, from GNU gettext.
86518
86519 2004-01-20  Bruno Haible  <bruno@clisp.org>
86520
86521         * m4/allocsa.m4: New file, from GNU gettext.
86522
86523 2004-01-20  Bruno Haible  <bruno@clisp.org>
86524
86525         * lib/xallocsa.h: New file, from GNU gettext.
86526         * lib/xallocsa.c: New file, from GNU gettext.
86527
86528 2004-01-20  Bruno Haible  <bruno@clisp.org>
86529
86530         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86531
86532 2004-01-20  Bruno Haible  <bruno@clisp.org>
86533
86534         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86535         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86536         specially.
86537
86538 2004-01-20  Bruno Haible  <bruno@clisp.org>
86539
86540         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86541         patch.
86542
86543 2004-01-20  Bruno Haible  <bruno@clisp.org>
86544
86545         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86546
86547 2004-01-20  Bruno Haible  <bruno@clisp.org>
86548
86549         * lib/eealloc.h: New file.
86550
86551 2004-01-20  Bruno Haible  <bruno@clisp.org>
86552
86553         * lib/binary-io.h: Avoid warnings on Cygwin.
86554
86555 2004-01-20  Bruno Haible  <bruno@clisp.org>
86556
86557         * lib/allocsa.h: New file, from GNU gettext.
86558         * lib/allocsa.c: New file, from GNU gettext.
86559
86560 2004-01-18  Karl Berry  <karl@gnu.org>
86561
86562         * doc/gpl.texi, doc/lgpl.texi: new files.
86563
86564 2004-01-18  Karl Berry  <karl@gnu.org>
86565
86566         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86567         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86568
86569 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86570
86571         Merge from coreutils.
86572
86573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86574         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86575         (gl_DEFAULT_POSIX2_VERSION): Move
86576         the documentation from 'configure' into 'config.hin',
86577         so that 'configure --help' isn't burdened by it and
86578         we don't have to worry about its formatting there.
86579         Reword the documentation so that it's more succinct
86580         and can be run together into a single paragraph.
86581         * m4/same.m4 (gl_SAME): Check for pathconf.
86582
86583 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86584
86585         Merge from coreutils.
86586
86587         * lib/posixver.c: Include posixver.h.
86588
86589         * lib/same.c: Include <stdbool.h>, <limits.h>.
86590         (_POSIX_NAME_MAX): Define if not defined.
86591         (MIN): New macro.
86592         (same_name): If file names are silently truncated, report
86593         that the file names are the same if they are the same after
86594         the silent truncation.
86595
86596         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86597         conversion function.
86598         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86599         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86600         longer needed.
86601
86602 2004-01-15  Jim Meyering  <jim@meyering.net>
86603
86604         Merge from coreutils.
86605
86606         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86607         if no library is required.
86608         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86609         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86610         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86611         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86612         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86613         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86614         value, $ac_cv_search_crypt, if it's "none required".
86615         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86616         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86617         not gl_FUNC_GETLOADAVG.
86618         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86619         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86620
86621 2004-01-15  Jim Meyering  <jim@meyering.net>
86622
86623         Merge from coreutils.
86624
86625         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86626         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86627         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86628
86629         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86630         optional configure-time default.
86631
86632         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86633
86634         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86635
86636 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86637
86638         Merge from coreutils.
86639
86640         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86641         value, $ac_cv_search_nanosleep, if it's "none required".
86642
86643 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86644
86645         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86646         with like-named macro in fnmatch.c.
86647         (EXT): Use an internal constant instead.
86648
86649         Merge fnmatch patches from glibc.
86650         * lib/fnmatch.c (mbsinit): Remove define.
86651         Add libc_hidden_ver (__fnmatch, fnmatch).
86652         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86653         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86654
86655 2004-01-14  Karl Berry  <karl@gnu.org>
86656
86657         * config/install-sh: update from automake.
86658
86659 2004-01-13  Karl Berry  <karl@gnu.org>
86660
86661         * config/install-sh: update from automake.
86662
86663 2004-01-09  Karl Berry  <karl@gnu.org>
86664
86665         * config/install-sh: update from automake.
86666
86667 2004-01-05  Karl Berry  <karl@gnu.org>
86668
86669         * config/config.{sub,guess}: update from config.
86670
86671 2003-12-31  Karl Berry  <karl@gnu.org>
86672
86673         * config/depcomp: update from automake.
86674
86675 2003-12-14  Karl Berry  <karl@gnu.org>
86676
86677         * lib/config.charset: update from gettext-runtime.
86678
86679 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86680
86681         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86682         Bug reported by Alfred M. Szmidt.
86683
86684 2003-12-03  Bruno Haible  <bruno@clisp.org>
86685
86686         * m4/gettext.m4: Upgrade from gettext-0.13.
86687         * m4/po.m4: Upgrade from gettext-0.13.
86688         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86689         * m4/intmax.m4: New file, from gettext-0.13.
86690         * m4/printf-posix.m4: New file, from gettext-0.13.
86691
86692 2003-11-29  Karl Berry  <karl@gnu.org>
86693
86694         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86695
86696 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86697             Bruno Haible  <bruno@clisp.org>
86698
86699         * lib/printf-parse.h: Don't include sys/types.h.
86700         (ARG_NONE): New macro.
86701         (char_directive): Change type of *arg_index fields to size_t.
86702         * lib/printf-parse.c: Don't include sys/types.h.
86703         (SSIZE_MAX): Remove macro.
86704         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86705         Remove unnecessary overflow check.
86706         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86707         fields.
86708
86709 2003-11-25  Bruno Haible  <bruno@clisp.org>
86710
86711         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86712
86713 2003-11-25  Bruno Haible  <bruno@clisp.org>
86714
86715         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86716         gt_TYPE_SSIZE_T.
86717
86718 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86719
86720         * modules/alloca: Remove dependency on xalloc.
86721
86722 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86723
86724         * lib/alloca.c: Remove dependency on xalloc module.
86725         (xalloc_die): Remove.
86726         (memory_full) [!defined emacs]: New macro.
86727         [!defined emacs]: Don't include xalloc.h.
86728         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86729         address arithmetic overflows.  Change datatypes a bit to avoid
86730         unnecessary casts.
86731
86732 2003-11-22  Jim Meyering  <jim@meyering.net>
86733
86734         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86735         s/size/size_t/.
86736
86737 2003-11-21  Karl Berry  <karl@gnu.org>
86738
86739         * config/config.{sub,guess}: update from config.
86740
86741 2003-11-18  Karl Berry  <karl@gnu.org>
86742
86743         * config/config.{sub,guess}: update from config.
86744
86745         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86746
86747 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86748
86749         * README: Mention that S+T cannot overflow if S is the size of
86750         an existing object and T is sufficiently small.
86751
86752 2003-11-17  Jim Meyering  <jim@meyering.net>
86753
86754         On systems without utime and without a utimes function capable of
86755         dealing with a NULL struct utimbuf* argument, this utime replacement
86756         could -- in unusual circumstances -- leak a file descriptor.
86757         * lib/utime.c: Include <unistd.h> and <errno.h>.
86758         (utime_null): Be sure to close `fd' and to preserve errno.
86759         Reported by Geoff Collyer via Arnold Robbins.
86760
86761 2003-11-17  Bruno Haible  <bruno@clisp.org>
86762
86763         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86764         (Depends-on): Add xsize.
86765
86766 2003-11-17  Bruno Haible  <bruno@clisp.org>
86767
86768         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86769
86770 2003-11-17  Bruno Haible  <bruno@clisp.org>
86771
86772         * lib/vasnprintf.c (alloca): Remove fallback definition.
86773         (freea): Remove definition.
86774         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86775         Reported by Paul Eggert.
86776
86777 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86778             Bruno Haible  <bruno@clisp.org>
86779
86780         Protect against address arithmetic overflow.
86781         * lib/printf-args.h: Include stddef.h.
86782         (arguments): Change type of field 'count' to size_t.
86783         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86784         'unsigned int' where appropriate.
86785         * lib/printf-parse.h: Include sys/types.h.
86786         (char_directive): Change type of *arg_index fields to ssize_t.
86787         (char_directives): Change type of fields 'count', max_*_length to
86788         size_t.
86789         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86790         (SSIZE_MAX): Define fallback value.
86791         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86792         instead of 'int' where appropriate. Check a_allocated, d_allocated
86793         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86794         * lib/vasnprintf.c: Include xsize.h.
86795         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86796         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86797         overflow. Avoid wraparound when converting a width or precision from
86798         decimal to binary.
86799
86800 2003-11-16  Bruno Haible  <bruno@clisp.org>
86801
86802         Update from GNU gettext.
86803         * lib/printf-parse.c: Generalize to it can be compiled for wide
86804         strings.
86805         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86806         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86807         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86808         SNPRINTF): New macros.
86809         Don't include <alloca.h> if the file is used inside libintl.
86810         (local_wcslen): New function, for Solaris 2.5.1.
86811         (VASNPRINTF): Use it instead of wcslen.
86812
86813 2003-11-16  Bruno Haible  <bruno@clisp.org>
86814
86815         * lib/xsize.h (xmax): New function.
86816         (xsum, xsum3, xsum4): Declare as "pure" functions.
86817
86818 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86819
86820         * modules/xalloc (Files): Undo latest change, since xalloc.h
86821         no longer needs SIZE_MAX or PTRDIFF_MAX.
86822
86823 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86824
86825         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86826         gl_PTRDIFF_MAX.
86827
86828 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86829
86830         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86831         "return", to pacify some unknown compiler.  Problem reported
86832         by Joerg Schilling.
86833
86834 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86835
86836         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86837         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86838         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86839         heuristic is just as accurate as far as we know, and it removes a
86840         dependency on size_max.m4 and ptrdiff_max.m4.
86841
86842 2003-11-11  Bruno Haible  <bruno@clisp.org>
86843
86844         * modules/xsize (Files): Add m4/size_max.m4.
86845         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86846
86847 2003-11-11  Bruno Haible  <bruno@clisp.org>
86848
86849         * m4/size_max.m4: New file.
86850         * m4/ptrdiff_max.m4: New file.
86851         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86852         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86853         (gl_XALLOC): Invoke it.
86854
86855 2003-11-11  Bruno Haible  <bruno@clisp.org>
86856
86857         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86858         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86859         defined.
86860
86861 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86862
86863         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86864         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86865         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86866         From Bruno Haible.
86867         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86868         not (size_t) -1, since it's defined here.
86869
86870 2003-11-09  Karl Berry  <karl@gnu.org>
86871
86872         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86873
86874 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86875
86876         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86877         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86878         Reject sizes of exactly SIZE_MAX bytes.
86879         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86880         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86881
86882 2003-11-05  Bruno Haible  <bruno@clisp.org>
86883
86884         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86885         SIZE_MAX defined in <limits.h> on Solaris.
86886
86887 2003-11-04  Jim Meyering  <jim@meyering.net>
86888
86889         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86890         variable names, rather than @VAR@.
86891         * modules/poll: Likewise.
86892
86893 2003-11-04  Bruno Haible  <bruno@clisp.org>
86894
86895         * modules/xsize: New file.
86896         * modules/linebreak: Depend on xsize.
86897         * MODULES.html.sh (func_all_modules): Add xsize.
86898
86899 2003-11-04  Bruno Haible  <bruno@clisp.org>
86900
86901         * m4/xsize.m4: New file.
86902
86903 2003-11-04  Bruno Haible  <bruno@clisp.org>
86904
86905         * lib/xsize.h: New file.
86906         * lib/linebreak.c: Include xsize.h.
86907         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86908         argument for overflow.
86909         Suggested by Paul Eggert.
86910
86911 2003-11-03  Karl Berry  <karl@gnu.org>
86912
86913         * config/config.{guess,sub}: update from config.
86914
86915 2003-11-03  Jim Meyering  <jim@meyering.net>
86916
86917         * modules/userspec (lib_SOURCES): Add userspec.h.
86918         (Include): Add "userspec.h".
86919         Improve description.
86920
86921 2003-11-03  Jim Meyering  <jim@meyering.net>
86922
86923         * lib/userspec.c: Include "userspec.h".
86924         * lib/userspec.h: New file.
86925
86926 2003-11-03  Bruno Haible  <bruno@clisp.org>
86927
86928         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86929
86930 2003-11-03  Bruno Haible  <bruno@clisp.org>
86931
86932         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86933         available, to avoid (extremely rare) race condition.
86934         Suggested by Paul Eggert.
86935
86936 2003-11-02  Karl Berry  <karl@gnu.org>
86937
86938         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86939
86940 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86941
86942         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86943         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86944         (read_filesystem_list): Set and use me_type_malloced.
86945         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86946         whatever the type happens to be), for brevity and consistency.
86947         Check for size calculation overflow on Alphas running OSF/1.
86948
86949 2003-10-31  Jim Meyering  <jim@meyering.net>
86950
86951         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86952
86953         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86954
86955 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86956             Bruno Haible  <bruno@clisp.org>
86957
86958         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86959         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86960
86961 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86962
86963         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86964         netbsd*-gnu*.  Suggested by Robert Millan.
86965
86966 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86967
86968         * modules/group-member: Depend on stdbool.
86969
86970 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86971
86972         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86973
86974 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86975
86976         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86977         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86978         after the 'gnu' in these cases.  This fixes some bugs in the
86979         previous change, and is based on suggestions by Robert Millan.
86980
86981 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86982
86983         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86984         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86985         no longer needed.
86986         * lib/quotearg.c (quotearg_n_options): Use it.
86987         * lib/group-member.c: Include <stdbool.h>.
86988         (free_group_info): Arg is now const *; don't free arg.
86989         (get_group_info): Now returns bool and accepts struct group_info *,
86990         rather than returning a malloc'ed struct group_info *.
86991         All uses changed.  Check for overflow in internal size calculation.
86992
86993         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86994         rather than xmalloc/xrealloc.
86995         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86996         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86997         conformance bug: the old code used a pointer after freeing the
86998         storage that it addressed.
86999         * lib/hash.c (hash_initialize): Simplify the code by using
87000         xalloc_oversized rather than doing it by hand.
87001         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87002         the buffer preserved.  Use free and xmalloc instead.
87003         * lib/quotearg.c (quotearg_n_options): Likewise.
87004         Use a simpler test for size overflow.  Don't use xalloc_oversized
87005         because unsigned int might be wider than size_t (!); this suggests
87006         that we should switch from unsigned int to size_t for slot numbers.
87007
87008 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87009
87010         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87011         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87012         NetBSD kernels.  Requested by Richard Stallman.
87013
87014 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87015
87016         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87017         to allocate the returned structure.  Do not allocate a subarray,
87018         as x2nrealloc will do that.
87019         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87020         instead of xnrealloc.
87021         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87022
87023 2003-10-27  Bruno Haible  <bruno@clisp.org>
87024
87025         * lib/stdbool_.h: Better support for BeOS.
87026
87027 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87028
87029         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87030         now uses inline.
87031
87032 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87033
87034         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87035         callers that want to do their own size-overflow checking.  Include
87036         <stdbool.h>, since xalloc_oversized returns bool.
87037         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87038         to use xalloc_oversized.
87039
87040         Add two functions x2realloc, x2nrealloc, for programs that grow
87041         arrays dynamically by doubling their sizes.
87042         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87043         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87044         New functions.
87045
87046         Port to C99 semantics for 'inline' of external functions.
87047         Bug reported by Bruno Haible.
87048         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87049         with the old contents of xnmalloc.
87050         (xnmalloc, xmalloc): Use it.
87051         (xnrealloc_inline): New static inline function,
87052         with the old contents of xnrealloc.
87053         (xnrealloc, xrealloc): Use it.
87054
87055         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87056         that.
87057
87058 2003-10-26  Karl Berry  <karl@gnu.org>
87059
87060         * config/srclist.txt (COPYING.DOC): no longer available from
87061         /gd/gnuorg; don't know where the ultimate source is.
87062
87063 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87064
87065         Fix several address-calculation bugs in the hash modules,
87066         plus some minor code cleanup.
87067
87068         * lib/hash.h: Include <stdbool.h>, for bool.
87069         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87070         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87071         hash_get_n_entries, hash_get_max_bucket_length,
87072         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87073         hash_rehash): Use size_t rather than unsigned.
87074         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87075         hash_get_n_buckets_used, hash_get_n_entries,
87076         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87077         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87078         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87079         Likewise.
87080         (SIZE_MAX): Define if not defined.
87081         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87082         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87083         hash_print):
87084         Use const * when possible.
87085         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87086         (check_tuning): Fix bug: if tuning parameters were very close to
87087         0 or 1, rounding errors could have caused subscript violations.
87088         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87089         (hash_initialize): Add 'fail:' label
87090         to free table and return NULL, and use it to simplify code.
87091         Use calloc rather than clearing the storage ourself.
87092         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87093         buffer size calculations.
87094         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87095         Include <stddef.h>, for size_t.
87096         * lib/hash-pjw.c (hash_pjw): Likewise.
87097         Switch to method described by Bruno Haible.
87098         Include <limits.h>, for CHAR_BIT.
87099         (SIZE_BITS): New macro.
87100
87101 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87102
87103         * m4/getline.m4 (AM_FUNC_GETLINE):
87104         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87105         hosts.  Problem reported by Derek Robert Price in
87106         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87107         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87108         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87109
87110 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87111
87112         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87113         ceiling the allocation at NMAX bytes rather than silently
87114         discarding input bytes before NMAX is reached.  This makes
87115         a difference only if NMAX exceeds SIZE_MAX / 2.
87116
87117         * lib/obstack.c: Merge from glibc.
87118         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87119         Add libc_hidden_def (_obstack_newchunk).
87120         (_obstack_free) [! defined _LIBC]: Remove.
87121         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87122         a clone of the function body.
87123         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87124         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87125
87126         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87127         glibc.
87128         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87129         arg to memcpy.
87130
87131         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87132         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87133         Don't use lvalue casts, as GCC plans to remove support for them
87134         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87135         was also present in the non-GCC version, indicating that this
87136         code had always been buggy and had never been widely used.
87137         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87138         Use the fast variant of each macro, rather than copying the
87139         definiens of the fast variant; that way, we'll be more likely to
87140         catch future bugs in the fast variants.
87141
87142 2003-10-20  Bruno Haible  <bruno@clisp.org>
87143
87144         * modules/wait-process: New file.
87145         * MODULES.html.sh (func_all_modules): Add wait-process.
87146
87147 2003-10-20  Bruno Haible  <bruno@clisp.org>
87148
87149         * m4/wait-process.m4: New file.
87150
87151 2003-10-20  Bruno Haible  <bruno@clisp.org>
87152
87153         * lib/wait-process.h: New file, from GNU gettext.
87154         * lib/wait-process.c: New file, from GNU gettext.
87155
87156 2003-10-19  Jim Meyering  <jim@meyering.net>
87157
87158         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87159         HPUX 10.20.
87160
87161 2003-10-18  Karl Berry  <karl@gnu.org>
87162
87163         * config/config.guess: update from config.
87164
87165 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87166
87167         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87168         (getgroups): First arg is int, not size_t.
87169         Don't let 'free' mangle errno.
87170
87171 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87172
87173         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87174
87175 2003-10-16  Karl Berry  <karl@gnu.org>
87176
87177         * config/config.{guess,sub}: update from config.
87178
87179 2003-10-16  Jim Meyering  <jim@meyering.net>
87180
87181         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87182         memcpy.
87183
87184 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87185
87186         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87187         (SIZE_MAX): Remove.
87188         (new_exclude, add_exclude_file): Initial size no longer needs to
87189         be a power of 2.
87190         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87191         our own address arithmetic overflow checking.
87192
87193         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87194         (fnmatch): Do not alloca more than 2000 wide characters;
87195         instead, use malloc for large buffers.
87196         Check for address arithmetic overflow, and return -1
87197         with errno set to ENOMEM in that case.
87198         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87199         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87200         instead, return -1.  Check for address arithmetic overflow.
87201
87202 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87203
87204         Handle invalid suffixes and overflow independently, so that
87205         callers can treat them independently as needed.  Fix some bugs in
87206         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87207         suffix for a human-readable blocksize.  The major caller-visible
87208         change is the addition of a new
87209         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87210         that both overflow and suffix chars were found.
87211
87212         * lib/human.c (humblock): Don't check separately for invalid suffix
87213         char; that is xstrtoumax's job (now that its bug is fixed).
87214         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87215         INTMAX_MAX]: New macros.
87216         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87217         TYPE_MAXIMUM): New macros.
87218         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87219         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87220         if overflow occurs, as it's what __strtol does and it's more useful
87221         in practice.
87222         (__xstrtol): If __strtol reports some error other than ERANGE,
87223         reflect it to the caller as LONGINT_INVALID.  If it reports
87224         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87225         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87226         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87227         value.
87228         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87229         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87230         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87231         [defined UINTMAX_MAX]: New macros.
87232
87233 2003-10-14  Bruno Haible  <bruno@clisp.org>
87234
87235         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87236
87237 2003-10-14  Bruno Haible  <bruno@clisp.org>
87238
87239         * m4/sig_atomic_t: New file, from GNU gettext.
87240         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87241
87242 2003-10-14  Bruno Haible  <bruno@clisp.org>
87243
87244         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87245         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87246         Also use volatile where needed.
87247
87248 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87249
87250         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87251         Change maintainer from Bruno Haible to 'all'.
87252
87253 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87254
87255         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87256
87257 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87258
87259         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87260         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87261         and define in terms of the other primitives.
87262         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87263         (SIZE_MAX): Define if not already defined.
87264         (array_size_overflow): New function.
87265         (xalloc_die): Abort instead of exiting if 'error' returns.
87266         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87267         (xmalloc, xrealloc): Use them.
87268         (xcalloc): Check for address arithmetic overflow.
87269         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87270         a bit faster than strcpy.
87271
87272 2003-10-10  Simon Josefsson  <jas@extundo.com>
87273
87274         * modules/argp (Depends-on): Add restrict and strcase.
87275
87276 2003-10-10  Simon Josefsson  <jas@extundo.com>
87277
87278         * m4/argp.m4: Add AC_C_INLINE.
87279
87280 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87281
87282         Merge getpass from libc, plus a few fixes.
87283
87284         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87285         Include <stdbool.h>.
87286         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87287         __fsetlocking to empty.
87288         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87289         do include <bits/libc-lock.h>.
87290         Do not include <fcntl.h>; not needed.
87291         [_LIBC]: Include <wchar.h>.
87292         (NOTCANCEL_MODE): New macro.
87293         (flockfile, funlockfile) [_LIBC]: New macros.
87294         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87295         [!_LIBC]: New macros.
87296         (call_fclose): New function.
87297         (getpass): Use it.  Save tty stream separately; this simplifies the
87298         code and makes it more reliable if stdin happens to equal stdout.
87299         Invoke __fsetlocking on tty.
87300         Handle thread cancellation if needed.
87301         Namespace cleanup (use __tcgetattr, __getline).
87302         Use bool for Booleans.
87303         [USE_IN_LIBIO]: Handle wide streams.
87304         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87305         stream might go where.
87306
87307         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87308         doesn't have to include <stdio.h> before us.
87309         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87310         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87311         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87312         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87313         if not declared, so that we can use getpass.c code from libc without
87314         rewriting it.
87315         (flockfile, ftrylockfile, funlockfile): New macros.
87316
87317 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87318
87319         * modules/getpass: Depend on stdbool.
87320
87321 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87322
87323         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87324
87325 2003-10-07  Karl Berry  <karl@gnu.org>
87326
87327         * config/config.{guess,sub}: update from config.
87328
87329 2003-10-06  Jim Meyering  <jim@meyering.net>
87330             Bruno Haible  <bruno@clisp.org>
87331
87332         This lets translators provide better translations for the
87333         "Written by ..." part of --version output.
87334         * lib/version-etc.h: Include stdarg.h.
87335         (version_etc_copyright): Declare as readonly.
87336         (version_etc): Make this function variadic with a NULL-terminated list
87337         of author name strings.
87338         (version_etc_va): New declaration.
87339         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87340         (version_etc_copyright): Declare as readonly.
87341         (version_etc_va): New function. Provide a different translatable string
87342         for each possible number of authors < 10. Abbreviate when there are 10
87343         authors or more.
87344         (version_etc): Make this function variadic. Call version_etc_va.
87345         Suggestion from Gary V. Vaughan.
87346
87347         * lib/long-options.h (parse_long_options): Change prototype: the
87348         authors string is moved to the end and becomes variadic.
87349         * lib/long-options.c: Include stdarg.h.
87350         (parse_long_options): Make this function variadic, too.
87351         Call version_etc_va, not version_etc.
87352
87353 2003-10-06  Bruno Haible  <bruno@clisp.org>
87354
87355         * modules/version-etc-2: Remove file.
87356         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87357
87358 2003-10-06  Bruno Haible  <bruno@clisp.org>
87359
87360         * modules/fatal-signal: New file.
87361         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87362
87363 2003-10-06  Bruno Haible  <bruno@clisp.org>
87364
87365         * m4/fatal-signal.m4: New file.
87366         * m4/signalblocking.m4: New file, from GNU gettext.
87367
87368 2003-10-06  Bruno Haible  <bruno@clisp.org>
87369
87370         * lib/version-etc-2.h: Remove file.
87371         * lib/version-etc-2.c: Remove file.
87372
87373 2003-10-06  Bruno Haible  <bruno@clisp.org>
87374
87375         * lib/fatal-signal.h: New file, from GNU gettext.
87376         * lib/fatal-signal.c: New file, from GNU gettext.
87377
87378 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87379
87380         * README: Rework advice for preventing empty .o files.
87381         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87382         not <sys/types.h>.
87383
87384 2003-10-04  Karl Berry  <karl@gnu.org>
87385
87386         * lib/argp*: update from libc.
87387
87388 2003-10-04  Karl Berry  <karl@gnu.org>
87389
87390         * config/config.{guess,sub}: update from config.
87391
87392 2003-10-02  Bruno Haible  <bruno@clisp.org>
87393
87394         * modules/lchown (Include): Add lchown.h.
87395         * modules/time_r (Include): Use "..." syntax.
87396         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87397
87398 2003-10-01  Simon Josefsson  <jas@extundo.com>
87399
87400         * MODULES.html.sh (func_all_modules): Move gethostname from section
87401         'based on' to section 'lacking' POSIX:2001.
87402
87403 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87404
87405         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87406         to output mode on the same stream.
87407
87408 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87409
87410         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87411         Fix arg typo in previous patch.
87412
87413 2003-09-28  Jim Meyering  <jim@meyering.net>
87414
87415         * lib/error.c: Correct cpp indentation.
87416
87417 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87418
87419         * modules/free: New file.
87420
87421 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87422
87423         * m4/free.m4: New file.
87424
87425 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87426
87427         * lib/minmax.h (MIN, MAX)
87428         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87429         Omit the special code that used __typeof__, since we worry that
87430         it could be more trouble than it's worth.  See:
87431         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87432         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87433
87434         * lib/free.c: New file.
87435
87436 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87437
87438         Trivial fixes to Makefile.am parts of module listings.
87439         * modules/strstr: Append strstr.h to lib_SOURCES.
87440         * modules/strcase: Likewise, for strcase.h.
87441
87442 2003-09-27  Karl Berry  <karl@gnu.org>
87443
87444         * config/mkinstalldirs: update from automake.
87445
87446 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87447
87448         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87449         (error_tail): Do not loop, reallocating temporary buffer, since
87450         the output cannot contain more wide characters than the input
87451         contains bytes, the size must be big enough already.  This avoids
87452         one potential size overflow calculation.  Check for size overflow
87453         when calculating temporary buffer size.  Free temporary buffer
87454         when done, if it was allocated with malloc; this plugs a memory
87455         leak.  Remove casts from void * to pointers, that are no longer
87456         needed now that we're assuming C89 or better.
87457
87458         Merge error changes from glibc.
87459
87460         * lib/error.c, error.h: Update copyright notice header to match glibc.
87461         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87462         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87463         Disable cancellation while printing error.
87464         * lib/error.h: Prepend __ to parameter names.
87465
87466 2003-09-26  Jim Meyering  <jim@meyering.net>
87467
87468         * lib/error.c (error_tail): Move some declarations
87469         into inner scope where the local variables are used.
87470
87471 2003-09-26  Bruno Haible  <bruno@clisp.org>
87472
87473         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87474         stpncpy().
87475         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87476
87477 2003-09-26  Bruno Haible  <bruno@clisp.org>
87478
87479         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87480         (stpncpy): Define as alias for gnu_stpncpy.
87481         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87482
87483 2003-09-25  Simon Josefsson  <jas@extundo.com>
87484
87485         * lib/xgetdomainname.h: New file.
87486         * lib/xgetdomainname.c: New file.
87487
87488 2003-09-25  Simon Josefsson  <jas@extundo.com>
87489             Bruno Haible  <bruno@clisp.org>
87490
87491         * modules/getdomainname: New file.
87492         * modules/xgetdomainname: New file.
87493         * MODULES.html.sh (func_all_modules): Add getdomainname,
87494         xgetdomainname.
87495
87496 2003-09-25  Simon Josefsson  <jas@extundo.com>
87497             Bruno Haible  <bruno@clisp.org>
87498
87499         * m4/getdomainname.m4: New file.
87500
87501 2003-09-25  Simon Josefsson  <jas@extundo.com>
87502             Bruno Haible  <bruno@clisp.org>
87503
87504         * lib/getdomainname.h: New file.
87505         * lib/getdomainname.c: New file.
87506
87507 2003-09-25  Karl Berry  <karl@gnu.org>
87508
87509         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87510
87511 2003-09-25  Karl Berry  <karl@gnu.org>
87512
87513         * config/install-sh: update from automake.
87514
87515 2003-09-25  Bruno Haible  <bruno@clisp.org>
87516
87517         * modules/version-etc-2: New file, from modules/version-etc with
87518         modifications.
87519         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87520
87521 2003-09-25  Bruno Haible  <bruno@clisp.org>
87522
87523         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87524         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87525
87526 2003-09-24  Simon Josefsson  <jas@extundo.com>
87527
87528         * modules/xgethostname: Add xgethostname.h.
87529
87530 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87531
87532         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87533         the buffer associated with the argument.  Bug reported by
87534         Simon Josefsson.
87535
87536 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87537
87538         * README: Document assumptions that 'int' is at least 32 bits
87539         wide, that integer arithmetic is 2's complement without overflow,
87540         that there are no holes in integer values, that adding sizes of
87541         two nonoverlapping objects can't overflow, and that all-bits-zero
87542         yields scalar zero.  Fix spelling and capitalization typos.
87543
87544 2003-09-19  Karl Berry  <karl@gnu.org>
87545
87546         * lib/argp.h: update from libc.
87547
87548 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87549
87550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87551         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87552         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87553
87554 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87555
87556         * gnulib-tool: Use "test -h", not "test -L", for portability
87557         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87558         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87559         (sed_extract_prog): Issue s commands one-by-one, rather than
87560         using \| in one s command.
87561
87562 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87563
87564         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87565         input error, instead of returning NULL the next time we are called
87566         (and therefore losing track of errno).
87567
87568 2003-09-16  Bruno Haible  <bruno@clisp.org>
87569
87570         * gnulib-tool (func_create_testdir): Warn about duplicated
87571         dependencies.
87572
87573 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87574
87575         * modules/argmatch, modules/fatal, modules/obstack,
87576         modules/xalloc, modules/xgethostname: Sort dependencies by
87577         importance, not alphabetically.
87578
87579 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87580
87581         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87582         fails, so that the caller gets the proper errno.
87583
87584         * lib/readutmp.c (read_utmp): Likewise.
87585         Check for fstat error.  Close stream and free storage
87586         when failing.
87587
87588 2003-09-14  Karl Berry  <karl@gnu.org>
87589
87590         * config/srclist.txt (strdup.c): disable for c89 changes.
87591
87592 2003-09-14  Jim Meyering  <jim@meyering.net>
87593
87594         * lib/getloadavg.c: Correct cpp indentation.
87595         * lib/strdup.c: Likewise.
87596         * lib/vasnprintf.c: Likewise.
87597
87598 2003-09-14  Bruno Haible  <bruno@clisp.org>
87599
87600         * modules/fwriteerror: New file.
87601         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87602
87603 2003-09-14  Bruno Haible  <bruno@clisp.org>
87604
87605         * lib/fwriteerror.h: New file.
87606         * lib/fwriteerror.c: New file.
87607
87608 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87609
87610         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87611         modules/xgethostname, modules/xalloc: Depend on exit.
87612
87613 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87614
87615         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87616
87617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87618         and AC_MINIX, too, so that their extensions are available.
87619
87620         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87621         This macro has been superseded by gl_BACKUPFILE.
87622
87623         More patches to assume C89 or better.
87624
87625         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87626
87627         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87628         unconditionally.
87629         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87630         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87631         Include <string.h>, <stdlib.h> unconditionally.
87632         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87633         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87634         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87635         headers or for string.h.
87636         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87637         or strtoul.
87638
87639         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87640         headers.
87641         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87642         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87643         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87644         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87645         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87646         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87647         memcpy, memset.
87648         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87649         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87650         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87651         strtol.
87652         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87653         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87654         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87655         strtoul.
87656
87657 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87658
87659         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87660         * lib/obstack.c [!defined _LIBC]: Likewise.
87661         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87662         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87663         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87664
87665         More changes to assume C89 or better.
87666
87667         * lib/error.c (error_tail): Assume vprintf.
87668
87669         * lib/argmatch.c (getenv): Remove decl.
87670         * lib/progreloc.c (get_full_program_name): Define via prototype.
87671         * lib/setenv.c (clearenv): Likewise.
87672         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87673         needed.
87674         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87675         (malloc, memcpy): Remove decls.
87676         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87677         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87678         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87679         (memcpy): Remove macro.
87680         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87681         (__P): Remove.  All uses removed.
87682         (PTR): Remove.  All uses changed to void *.
87683         (CHAR_BIT, NULL): Remove.
87684         (spaces, zeros, memset_space, memset_zero)
87685         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87686         Remove.
87687         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87688         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87689         Define with prototype.
87690         Remove now-unnecessary prototype decl.
87691         (extra_args_spec): Assume ANSI C.  All uses changed.
87692         (extra_args_spec_iso): Remove.
87693         (my_strftime, emacs_strftimeu): Define via prototype.
87694         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87695         unconditionally.
87696         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87697         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87698         (strtoul, strtol): Remove decls.
87699         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87700         LONG_MAX): Remove.
87701         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87702         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87703         (LOCALE_PARAM_PROTO): New macro.
87704         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87705         (INTERNAL (strtol), strtol): Define with a prototype.
87706         (PARAMS): Remove.  All uses removed.
87707         * lib/tempname.c: Include <string.h> unconditionally.
87708         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87709         * lib/xgethostname.c (main): Define with a prototype.
87710         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87711         Include <stdlib.h> unconditionally.
87712         (calloc, malloc, realloc, free): Remove decls.
87713         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87714         Include <stdlib.h> unconditionally.  Sort include file names.
87715         (strtod): Remove.
87716         (xstrtod): Define with a prototype.
87717         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87718         (strtol, strtoul): Remove decls.
87719
87720 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87721
87722         More patches to assume C89 or better.
87723         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87724         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87725         string.h, memchr, STDC_HEADERS.
87726
87727 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87728
87729         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87730         Include <stdlib.h>, <string.h> unconditionally.
87731         Remove now-unnecessary cast to char *.
87732         * lib/strnlen.c: Include <string.h> unconditionally.
87733         * lib/yesno.c (yesno): Define with a prototype.
87734
87735 2003-09-11  Bruno Haible  <bruno@clisp.org>
87736
87737         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87738
87739 2003-09-10  Jim Meyering  <jim@meyering.net>
87740
87741         * lib/error.c: Correct indentation of cpp directives.
87742
87743 2003-09-10  Bruno Haible  <bruno@clisp.org>
87744
87745         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87746         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87747         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87748         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87749         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87750         <stdlib.h> and <string.h> checks.
87751         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87752         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87753
87754 2003-09-10  Bruno Haible  <bruno@clisp.org>
87755
87756         * lib/strcspn.c: Include <string.h> unconditionally.
87757         * lib/strpbrk.c: Include <string.h> unconditionally.
87758         * lib/strstr.c: Include <string.h> unconditionally.
87759         * lib/unicodeio.c: Include <string.h> unconditionally.
87760         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87761         * lib/unsetenv.c: Likewise.
87762         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87763         * lib/yesno.c: Include <stdlib.h> unconditionally.
87764         (rpmatch): Add prototype.
87765
87766 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87767
87768         More patches to assume C89 or better.
87769         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87770         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87771         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87772         or for string.h.
87773         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87774         stdlib.h.
87775         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87776         C headers.
87777         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87778         string.h.
87779         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87780         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87781         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87782         or for string.h.
87783         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87784         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87785         C headers.
87786         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87787         memcpy.
87788         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87789         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87790         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87791         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87792         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87793         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87794         string.h, free.
87795         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87796         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87797         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87798         C headers, or for string.h.
87799         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87800         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87801         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87802         headers, memory.h, stdlib.h, string.h, strings.h.
87803         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87804         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87805         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87806         strchr.
87807         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87808         headers, memory.h, string.h.
87809         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87810         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87811         free.
87812         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87813         headers.
87814         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87815         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87816         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87817         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87818         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87819
87820 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87821
87822         More K&R removal.
87823
87824         * lib/acosl.c (main): Use a prototype.
87825         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87826         tanl.c: Likewise.
87827
87828         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87829
87830         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87831         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87832         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87833         with a prototype.
87834         * lib/getopt.c (const): Remove macro.
87835         Include <string.h> unconditionally.
87836         (my_index): Remove; all uses changed to strchr.
87837         (strlen): Remove decl.
87838         (exchange): Remove forward decl; no longer needed.
87839         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87840         Define with prototype.
87841         * lib/getopt1.c (const): Remove macro.
87842         (getopt_long, getopt_long_only, main): Define with prototype.
87843
87844         * lib/getugroups.c: Include <string.h> unconditionally.
87845
87846         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87847         (getusershell, setusershell, endusershell, readname, main):
87848         Define with prototypes.
87849
87850         * lib/group-member.c: Include group-member.h first.
87851         Include <stdlib.h> unconditionally.
87852
87853         * lib/hard-locale.c: Include hard-locale.h first.
87854         Include <stdlib.h>, <string.h> unconditionally.
87855
87856         * lib/hash.c (free, malloc): Remove decls.
87857         Include <stdlib.h> unconditionally.
87858
87859         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87860         (getenv): Do not declare.
87861
87862         * lib/idcache.c: Include <string.h> unconditionally.
87863
87864         * lib/long-options.c: Include long-options.h first, to test interface.
87865         Include <stdlib.h> unconditionally.
87866
87867         * lib/makepath.c: Include makepath.h first, to test interface.
87868         Include <stdlib.h> and <string.h> unconditionally.
87869
87870         * lib/linebuffer.c: Include <stdlib.h>.
87871         (free): Remove decl.
87872
87873         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87874         stddef.h. rpl_malloc returns void *, not char *.
87875         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87876         prototype.
87877
87878         * lib/md5.h: Include <limits.h> unconditionally.
87879         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87880         (__P): Remove; all uses removed.
87881         * lib/md5.c: Include "md5.h" first.
87882         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87883         md5_buffer, md5_process_bytes, md5_process_block):
87884         Define with prototypes.
87885         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87886         * lib/sha.c: Include "sha.h" first.
87887         Include <stdlib.h>, <string.h> unconditionally.
87888
87889         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87890         * lib/memcmp.c (__ptr_t): Likewise.
87891         * lib/memrchr.c (__ptr_t): Likewise.
87892         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87893         Include <string.h> unconditionally.
87894         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87895         * lib/memchr.c: Include <stdlib.h> unconditionally.
87896         * lib/memchr.c (LONG_MAX): Remove.
87897         * lib/memrchr.c (LONG_MAX): Likewise.
87898         * lib/memchr.c (__memchr): Define via a prototype.
87899         * lib/memrchr.c (__memrchr): Likewise.
87900         * lib/memcmp.c (__P): Remove, and remove all uses.
87901         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87902         Remove forward decls; no longer needed.
87903         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87904         Use types required by C89 in prototype.
87905
87906         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87907         * lib/savedir.c: Likewise.
87908         * lib/mkdir.c (free): Remove decl.
87909         * lib/rmdir.c (rmdir): Define with a prototype.
87910         * lib/savedir.c: Include savedir.h first, to test interface.
87911
87912         * lib/mktime.c (STDC_HEADERS): Remove.
87913         Include <stdlib.h>, <string.h> unconditionally.
87914
87915         * lib/modechange.c: Include <stdlib.h> unconditionally.
87916         (malloc): Remove decl.
87917
87918         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87919         (free): Remove decl.
87920
87921         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87922         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87923         (This type really should be intptr_t, but that's a C99ism.)
87924         (_obstack_memcpy): Remove: all uses changed to memcpy.
87925         Include <string.h> unconditionally.
87926         (struct obstack): Assume __STDC__ for types of members
87927         chunkfun, freefun, extra_arg.
87928         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87929         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87930         obstack_begin, obstack_specify_allocation,
87931         obstack_specify_allocation_with_arg, obstack_chunkfun,
87932         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87933         Remove unprototyped decls and the macros that use them.
87934         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87935         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87936         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87937         (defined __STDC__ && __STDC__)]:
87938         Remove nonprototyped code.
87939         Include <stdlib.h> unconditionally.
87940         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87941         _obstack_allocated_p, _obstack_free, obstack_free,
87942         _obstack_memory_used, print_and_abort):
87943         Define using prototypes.
87944         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87945         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87946         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87947         obstack_next_free, obstack_object_size, obstack_room) [0]:
87948         Remove unused, unprototyped code.
87949
87950         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87951
87952         * lib/physmem.c (physmem_total, physmem_available, main): Define
87953         with prototypes.
87954
87955         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87956         (main): Define with a prototype.
87957
87958         * lib/posixver.c (getenv): Remove decl.
87959
87960         * lib/putenv.c (malloc): Returns void *, not char *.
87961         Include <string.h> unconditionally.
87962         (strchr, memcpy, NULL): Do not define.
87963
87964         * lib/readtokens.c: Include readtokens.h first, to test interface.
87965         Include <stdlib.h>, <string.h> unconditionally.
87966         (init_tokenbuffer): Define with a prototype.
87967
87968         * lib/regex.c (PARAMS): Remove.  All uses removed.
87969         All uses of _RE_ARGS removed, too.
87970         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87971         unconditionally.
87972         (bzero): Assume memset exists.
87973         (memcmp, memcpy, NULL): Remove.
87974         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87975         char, or assignments to local vars of type signed char.
87976         (init_syntax_once, PREFIX(extract_number_and_incr),
87977         PREFIX(print_partial_compiled_pattern),
87978         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87979         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87980         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87981         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87982         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87983         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87984         wcs_compile_range, byte_compile_range, truncate_wchar,
87985         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87986         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87987         count_mbs_length, wcs_re_match_2_internal,
87988         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87989         PREFIX(alt_match_null_string_p),
87990         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87991         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87992         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87993         now-unnecessary declaration, if any.
87994         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87995         regcomp, regexec):
87996         Remove now-unnecessary casts among pointer types.
87997         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87998
87999         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88000         (free): Remove decl.
88001
88002         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88003
88004         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88005         (free): Remove decl.
88006
88007         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88008         * lib/xgetcwd.c: Likewise.
88009
88010         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88011         (free): Remove decl.
88012
88013         * lib/strchrnul.c (strchrnul): Define with a prototype.
88014         Fix bug: c_in was not converted to char before searching.
88015
88016         The following changes are not K&R related:
88017
88018         * lib/group-member.h: Include <sys/types.h>, so that this file is
88019         self-contained.
88020         * lib/makepath.h: Likewise.
88021
88022         * lib/getusershell.c (readname, default_index, line_size, readname):
88023         Use size_t, not int, for sizes.
88024         (readname): If the size overflows, report an error instead of
88025         looping forever.
88026
88027 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88028
88029         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88030         libc.
88031
88032 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88033
88034         * README: New section: portability guidelines.
88035
88036 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88037
88038         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88039         C89 spec.
88040
88041 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88042
88043         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88044
88045 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88046
88047         Assume C89 or better; remove K&R cruft.
88048         A few of these changes were first proposed by Derek Robert Price
88049         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88050
88051         * lib/addext.c: Include <string.h> unconditionally.
88052         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88053         Don't declare getenv or malloc.
88054
88055         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88056         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88057         (NULL): Remove.
88058         (find_stack_direction, alloca): Use prototypes.
88059
88060         * lib/atexit.c (atexit): Define using a prototype.
88061
88062         * lib/basename.c, dirname.c, stripslash.c:
88063         Include <string.h> unconditionally.
88064
88065         * lib/bcopy.c: Include <stddef.h>.
88066         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88067
88068         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88069
88070         * lib/error.h (error, error_at_line, error_print_progname)
88071         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88072         * lib/error.c: Include error.h first, to check interface.
88073         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88074         (VA_START): Remove; all uses changeed to va_start.
88075         (exit, strerror): Remove decls.
88076         (error_print_progname): Prototype uncondionally.
88077         Don't include <errno.h>; no longer needed.
88078         (private_strerror): Remove.
88079         (error_tail): Always define.
88080         (error, error_at_line): Assume C89 or better; always use prototypes.
88081         * lib/fatal.c: Include "fatal.h" first, to test interface.
88082         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88083         (VA_START): Remove; all uses changed to va_start.
88084         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88085         this case.
88086         (exit): Remove decl.
88087         (fatal): Prototype unconditionally.  Assume va_start works.
88088         Abort at end, to pacify gcc.
88089
88090         * lib/euidaccess.c (main): Define with a prototype.
88091
88092         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88093
88094         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88095
88096         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88097         prototypes.
88098         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88099         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88100         (getenv): Remove decl.
88101         (fnmatch): Define using a prototype.
88102         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88103         (FCT): Define using a prototype.
88104
88105         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88106
88107         * lib/gethostname.c: Include <stddef.h>.
88108         (gethostname): Define with prototype.  Length is size_t, not int.
88109
88110 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88111
88112         Assume C89 or better; remove K&R cruft.
88113         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88114         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88115         string.h, getenv, malloc.
88116         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88117         headers.
88118         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88119         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88120         do not check for strerror.
88121         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88122         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88123         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88124         do not check for doprnt or vprintf.
88125         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88126         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88127
88128 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88129
88130         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88131         getversion.c should have been removed then, but was accidentally
88132         preserved.
88133
88134         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88135         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88136
88137 2003-09-08  Karl Berry  <karl@gnu.org>
88138
88139         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88140                 config, forget about prep.
88141
88142         * config/depcomp, missing: update from automake.
88143
88144 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88145
88146         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88147         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88148
88149 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88150
88151         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88152         copy_tm_result.  Bug reported by Simon Josefsson in
88153         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88154
88155 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88156
88157         * m4/time_r.m4: New file.
88158         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88159         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88160         is. Check for timegm declaration.
88161         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88162         Do not check for gmtime_r.
88163         Replace mktime if __mktime_internal does not exist and if mktime
88164         hasn't been replaced already.
88165
88166 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/time_r.c, lib/time_r.h: New files.
88169
88170         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88171         __localtime_r.
88172         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88173         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88174
88175         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88176         __gmtime_r.
88177         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88178         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88179         Include <time_r.h>.
88180
88181         * lib/timegm.c: Switch to glibc implementation, with the following
88182         changes:
88183         [defined HAVE_CONFIG_H]: Include <config.h>.
88184         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88185         (__mktime_internal) [!defined _LIBC]: New decl.
88186         (__gmtime_r) [!defined _LIBC]: New macro and function.
88187         (timegm): Use a prototype, since gnulib assumes C89.
88188         Do not bother declaring tmp to be const, as it's not really usefu.
88189         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88190         (timegm): Declare only if HAVE_DECL_TIMEGM.
88191
88192 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88193
88194         * MODULES.html.sh (func_all_modules): Add time_r.
88195         * modules/time_r: New file.
88196         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88197         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88198
88199 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88200
88201         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88202         Bug reported by Lute Kamstra in
88203         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88204
88205         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88206         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88207         course with correspondingly smaller numbers for tomorrow and
88208         yesterday.  From Tadayoshi Funaba.  Originally installed into
88209         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88210         coreutils merge?).
88211
88212 2003-08-31  Simon Josefsson  <jas@extundo.com>
88213
88214         * modules/timegm: New file.
88215         * MODULES.html.sh (func_all_modules): Add timegm.
88216
88217 2003-08-31  Simon Josefsson  <jas@extundo.com>
88218
88219         * m4/timegm.m4: New file.
88220
88221 2003-08-31  Simon Josefsson  <jas@extundo.com>
88222
88223         * lib/timegm.h: New file.
88224         * lib/timegm.c: New file.  Based on
88225         wget-1.8.2/src/http.c:mktime_from_utc.
88226
88227 2003-08-31  Karl Berry  <karl@gnu.org>
88228
88229         * lib/argp.h: update from libc.
88230
88231 2003-08-28  Bruno Haible  <bruno@clisp.org>
88232
88233         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88234         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88235         followed by '#define fnmatch fnmatch_posix' gives an error.
88236
88237 2003-08-28  Bruno Haible  <bruno@clisp.org>
88238
88239         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88240         warning on QNX, which defines O_BINARY to 000000.
88241
88242 2003-08-27  Jim Meyering  <jim@meyering.net>
88243
88244         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88245         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88246         would fail after 32.  Reported by Danny Levinson.  Details here:
88247         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88248
88249 2003-08-24  Bruno Haible  <bruno@clisp.org>
88250
88251         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88252         MSVC7 <stdio.h> is included later.
88253
88254 2003-08-22  Simon Josefsson  <jas@extundo.com>
88255
88256         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88257
88258 2003-08-20  Karl Berry  <karl@gnu.org>
88259
88260         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88261
88262 2003-08-20  Bruno Haible  <bruno@clisp.org>
88263
88264         * modules/progname: New file.
88265         * MODULES.html.sh (func_all_modules): Add progname.
88266
88267 2003-08-20  Bruno Haible  <bruno@clisp.org>
88268
88269         * lib/progname.h: New file, from GNU gettext.
88270         * lib/progname.c: New file, from GNU gettext.
88271         * lib/progreloc.c: New file, from GNU gettext.
88272
88273 2003-08-19  Jim Meyering  <jim@meyering.net>
88274
88275         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88276         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88277
88278 2003-08-19  Bruno Haible  <bruno@clisp.org>
88279
88280         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88281         more.
88282
88283 2003-08-19  Bruno Haible  <bruno@clisp.org>
88284
88285         * lib/xstrdup.c: Assume <string.h> exists.
88286
88287 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88288
88289         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88290         in makefile rules.
88291
88292 2003-08-18  Jim Meyering  <jim@meyering.net>
88293
88294         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88295         * m4/lib-ld.m4: Likewise.
88296
88297 2003-08-18  Jim Meyering  <jim@meyering.net>
88298
88299         * lib/setenv.h: Indent nested cpp directive.
88300         * lib/vasnprintf.c: Remove trailing blanks.
88301
88302 2003-08-17  Simon Josefsson  <jas@extundo.com>
88303
88304         * modules/xstrndup: New file.
88305         * MODULES.html.sh (func_all_modules): Add xstrndup.
88306
88307 2003-08-17  Simon Josefsson  <jas@extundo.com>
88308
88309         * modules/argp: Fix autoconf macro name. Add more dependencies.
88310
88311 2003-08-17  Simon Josefsson  <jas@extundo.com>
88312
88313         * m4/xstrndup.m4: New file.
88314
88315 2003-08-17  Simon Josefsson  <jas@extundo.com>
88316
88317         * m4/argp.m4: New file.
88318
88319 2003-08-17  Simon Josefsson  <jas@extundo.com>
88320             Bruno Haible  <bruno@clisp.org>
88321
88322         * lib/xstrndup.h: New file.
88323         * lib/xstrndup.c: New file.
88324
88325 2003-08-17  Bruno Haible  <bruno@clisp.org>
88326
88327         * modules/strndup (Files, Include): Add lib/strndup.h.
88328
88329 2003-08-17  Bruno Haible  <bruno@clisp.org>
88330
88331         * modules/euidaccess (Files): Add lib/euidaccess.h.
88332
88333 2003-08-17  Bruno Haible  <bruno@clisp.org>
88334
88335         * lib/strndup.h: New file.
88336
88337 2003-08-17  Bruno Haible  <bruno@clisp.org>
88338
88339         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88340         like AC_GNU_SOURCE.
88341         * modules/extensions (configure.ac): Comment out the invocation of
88342         gl_USE_SYSTEM_EXTENSIONS.
88343
88344 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88345
88346         Merges from coreutils, etc.
88347         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88348         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88349         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88350         fixing a typo.
88351         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88352         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88353
88354 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88355
88356         Document merge from coreutils.
88357         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88358         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88359         * modules/utime: Add m4/utimes-null.m4.
88360
88361 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88362
88363         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88364         space, undoing this 2003-08-12 change:
88365         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88366
88367 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88368
88369         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88370         strtoul.c from libc, undoing this 2003-08-12 change:
88371         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88372
88373 2003-08-16  Jim Meyering  <jim@meyering.net>
88374
88375         Merges from coreutils.
88376         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88377         prefix.  Adjust cache variables similarly.  Create 500 rather than
88378         just 300 files, to exercise bug on Darwin6.5, too.
88379         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88380         $missing_dir.
88381         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88382         AM_SYS_POSIX_TERMIOS.
88383         Reported by mkc@mathdogs.com.
88384         Also change use of $am_cv_sys_posix_termios
88385         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88386         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88387         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88388         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88389         in /proc/mounts until it finds one with matching device number.  This
88390         is unnecessary when the FILE argument *is* a mount point.  No stat call
88391         is necessary in that case.  So, disable the statvfs-testing code on
88392         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88393         as RedHat bug# 84846.
88394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88395         to 1MB, so as not to render systems with no stack size limit (e.g.,
88396         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88397         Include <unistd.h>.  On some systems,
88398         it is required for the definition of _SC_PAGESIZE.
88399
88400 2003-08-16  Jim Meyering  <jim@meyering.net>
88401
88402         Merge from coreutils.
88403         * lib/xstrtoimax.c: #else #if -> #elif.
88404         * lib/xstrtoumax.c: Likewise.
88405
88406 2003-08-16  Jim Meyering  <jim@meyering.net>
88407
88408         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88409         * m4/utimes.m4: Removed.
88410         * m4/utimes-null.m4: Renamed from utimes.m4.
88411
88412         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88413         to 1MB, so as not to render systems with no stack size limit (e.g.,
88414         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88415         Include <unistd.h>.  On some systems,
88416         it is required for the definition of _SC_PAGESIZE.
88417
88418 2003-08-16  Jim Meyering  <jim@meyering.net>
88419         and Paul Eggert  <eggert@cs.ucla.edu>
88420
88421         Merges from coreutils, etc.
88422
88423         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88424         using the latest version from cvs.  This avoids problems with #line
88425         directives using a vendor (Sun) compiler.
88426         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88427         Don't set GETGROUPS_LIB here; now it's
88428         done via getgroups.m4's wrapper function.
88429         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88430         rather than just in sh-util/configure.in, so that the
88431         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88432         same.
88433         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88434         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88435         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88436         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88437         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88438         Remove code that is now done by the newly-required macros.
88439         Append $(EXEEXT) to DF_PROG.
88440         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88441         Do not invoke or require the following here,
88442         since prereq.m4 or some gnulib .m4 now does this for us:
88443         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88444         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88445         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88446         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88447         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88448         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88449         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88450         AC_FUNC_OBSTACK.
88451         Do not replace the following functions, as this is now the job
88452         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88453         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88454         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88455         atexit getpass, strdup, getpagesize.
88456         Replace 'raise'.
88457         Do not check for the following functions, as this is now the job
88458         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88459         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88460         setregid.
88461         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88462         Check for sys/sysctl.h.
88463         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88464         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88465         of checking for ssize_t ourselves.
88466
88467         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88468         Require every macro that gnulib/modules/* suggests for us.
88469         (jm_PREREQ_ADDEXT): New macro.
88470         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88471         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88472
88473         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88474         (gl_PHYSMEM): Use it.
88475         Also check for `table' function.
88476         Check for new headers and functions.
88477         Add check for sys/sysmp.h.
88478         With suggestions from Kaveh Ghazi.
88479         Ignore headers that are present but cannot be compiled.  This
88480         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88481         C 5.4.
88482
88483 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88484
88485         Document merge from coreutils.
88486         * modules/userspec: Depend on posixver.
88487         * modules/strftime: Depend on tzset.
88488
88489 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88490
88491         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88492         rather than tab, after '#' in shell-script copyright notices.
88493         Suggested by Bruno Haible.
88494
88495 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88496
88497         * config/srclist-update: Use three spaces, rather than tab, after '#'
88498         in shell-script copyright notices.  Suggested by Bruno Haible.
88499         Remove unnecessary parenthesization in regular expression.
88500
88501 2003-08-15  Jim Meyering  <jim@meyering.net>
88502
88503         Merge from coreutils.
88504         * lib/xgethostname.c: Include <stdlib.h>.
88505         (xghostname): Don't exit for anything other than memory-related
88506         failure; just return NULL.
88507         * lib/userspec.c: Include "posixver.h".
88508         (parse_user_spec): Accept `.' as a separator only
88509         in pre-POSIX-200112 mode.
88510         * lib/strtoimax.c: Use #elif rather than #else #if.
88511         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88512         Remove function, now that we can rely on a working tzset function.
88513         [!_LIBC]: Ensure that the required autoconf test has been run.
88514         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88515         Use underlying_strftime for %r.
88516         * lib/sha.c: Merge in some clean-up and optimization changes from
88517         glibc.
88518         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88519         Ensure that it is a multiple of 64.
88520         Rearrange loop exit tests so as to avoid performing an
88521         additional fread after encountering an error or EOF.
88522         * lib/realloc.c: Update copyright date.
88523
88524 2003-08-15  Jim Meyering  <jim@meyering.net>
88525         and Paul Eggert  <eggert@twinsun.com>
88526
88527         Merge from coreutils.
88528         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88529         member but strut utmpx does not.  Needed for AIX 4.3.3.
88530         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88531
88532 2003-08-15  Jim Meyering  <jim@meyering.net>
88533         and Paul Eggert  <eggert@cs.ucla.edu>
88534
88535         Merges from coreutils, etc.
88536         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88537         Require gl_FUNC_TZSET_CLOBBER.
88538         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88539         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88540         members.
88541
88542 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88543
88544         Help the merge from coreutils.
88545         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88546         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88547         * m4/tzset.m4: Use it too.
88548
88549 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88550
88551         * modules/tzset: New file.
88552
88553 2003-08-14  Jim Meyering  <jim@meyering.net>
88554
88555         Merges from coreutils.
88556         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88557         variable names, rather than @FNMATCH_H@.
88558         * modules/alloca: Likewise for $(ALLOCA_H).
88559
88560         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88561         the three copies of the literal target, `fnmatch.h'.
88562         * modules/alloca (alloca.h): Likewise.
88563
88564 2003-08-14  Jim Meyering  <jim@meyering.net>
88565
88566         Merge from coreutils.
88567         * m4/tzset.m4: New file.
88568         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88569         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88570         otherwise, AIX 5.1 systems would end up using the latter.
88571         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88572         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88573         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88574         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88575
88576 2003-08-14  Jim Meyering  <jim@meyering.net>
88577
88578         Merge from coreutils.
88579         * lib/obstack.h: Whitespace changes.
88580         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88581         and xcalloc return values.
88582         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88583         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88584         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88585         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88586         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88587         error from mntctl.
88588         Use mntctl's return value to drive the entry-processing loop, since
88589         we can't rely on the value of the vmt_length member in the last
88590         entry.  On some systems doing so could result in exhausting
88591         virtual memory.  Based in part on a patch from Mike Jetzer.
88592
88593 2003-08-14  Jim Meyering  <jim@meyering.net>
88594         and Paul Eggert  <eggert@twinsun.com>
88595
88596         Merges from coreutils, plus other fixes.
88597         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88598         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88599         for credits and details.  Thanks to Kaveh Ghazi for helping
88600         to keep these files in sync.
88601         (ARRAY_SIZE): Define it.
88602         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88603         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88604         (memcasecmp): Don't assume size_t fits in unsigned int.
88605         Remove casts and duplicate code.
88606         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88607         (memcpy): Remove definition.
88608         Merge in some clean-up and optimization changes from glibc.
88609         [BLOCKSIZE]: Move definition to top of file.
88610         Ensure that it is a multiple of 64.
88611         Rearrange loop exit tests so as to avoid performing an
88612         additional fread after encountering an error or EOF.
88613         * lib/md5.h (md5_uintptr): Define.
88614         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88615         return to the initial working directory.  Preserve errno
88616         for caller.
88617         * lib/idcache.c: Include "xalloc.h".
88618         (xmalloc, xrealloc): Remove decls.
88619         (getuser): Remove casts no longer required in C89.
88620         * lib/human.c: Include stdio.h, for sprintf.
88621         * lib/group-member.c: Include "xalloc.h".
88622         (xmalloc, xrealloc): Remove decls.
88623         (get_group_info): Remove casts no longer required in C89.
88624         * lib/getusershell.c (readname): Remove casts no longer required in
88625         C89.
88626         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88627         * lib/getline.c: Whitespace fix, from coreutils.
88628
88629 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88630
88631         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88632         Check for isascii.
88633
88634         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88635         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88636         Undo previous (whitespace-only) change.
88637
88638 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88639
88640         * lib/exclude.c: Include <ctype.h>
88641         (IN_CTYPE_DOMAIN): New macro.
88642         (is_space): New fn.
88643         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88644         and empty lines.
88645
88646         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88647         Undo previous (whitespace-only) change.
88648
88649 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88650
88651         * config/srclist-update: Change update back to the old behavior,
88652         leaving whitespace alone.  Use one 'sed' command rather than a
88653         pipeline.
88654         (fixlicense): Now a variable, not a function.
88655         (remove_trailing_blanks): Remove.
88656         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88657         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88658         Undo previous (whitespace-only) change.
88659
88660 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88661
88662         Merge from coreutils.
88663         * modules/euidaccess: Add lib_SOURCES, include for new
88664         file euidaccess.h
88665
88666 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88667
88668         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88669         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88670         Normalize leading white space and remove trailing white space.
88671
88672         Merge from coreutils
88673         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88674
88675         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88676         0.12.1.  These files are now being upgraded automatically by
88677         ../config/srclist-update.
88678
88679 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88680
88681         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88682         Normalize leading white space and remove trailing white space.
88683         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88684         notice, as per ../config/srclist-update.
88685
88686         Merge from coreutils.
88687         * lib/euidaccess.h: New file.
88688         * lib/euidaccess.c: Include it.
88689         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88690         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88691         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88692
88693 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88694
88695         * config/srclist-update: Add copyright notice.
88696         (remove_id_lines, remove_trailing_blanks): New constants.
88697         (fixfile): Use them to normalize spacing a bit in copied files.
88698         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88699         Normalize leading white space and remove trailing white space.
88700
88701         * config/texinfo.tex: Sync with texinfo.
88702
88703         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88704         strtoul.c from libc, to merge coreutils whitespace changes.
88705
88706         * config/srclist.txt: Get the following m4 files from gettext:
88707         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88708         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88709         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88710         wint_t.m4.
88711
88712 2003-08-12  Karl Berry  <karl@gnu.org>
88713
88714         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88715         been made.
88716
88717 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88718
88719         * modules/gnu-source, m4/gnu-source.m4:
88720         Remove; we're assuming Autoconf 2.54 or later now.
88721         Suggested by Bruno Haible.
88722         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88723
88724 2003-08-11  Bruno Haible  <bruno@clisp.org>
88725
88726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88727
88728 2003-08-11  Bruno Haible  <bruno@clisp.org>
88729
88730         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88731         (vasnprintf): Use it instead of wcslen.
88732
88733 2003-08-11  Bruno Haible  <bruno@clisp.org>
88734
88735         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88736         value to ensure that _Bool promotes to int. Use #define for _Bool when
88737         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88738
88739 2003-08-10  Karl Berry  <karl@gnu.org>
88740
88741         * lib/regex.h: update from libc (whitespace fix).
88742
88743 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88744
88745         Merge some files from coreutils.  These changes were
88746         originally made by Jim Meyering.
88747         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88748         many older Unixes require this.
88749         * lib/alloca.c (alloca): Remove cast to argument of free;
88750         no longer needed in C89.
88751         * lib/alloca_.h, regex.h: Fix white space to match
88752         what GNU indent does.
88753
88754 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88755
88756         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88757         apparently Emacs's Unicode mode got confused before my 2003-08-05
88758         checkin.
88759
88760 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88761
88762         * m4/extensions.m4: New file.
88763         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88764         Require gl_USE_SYSTEM_EXTENSIONS.
88765         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88766         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88767
88768 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88769
88770         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88771         * modules/extensions, modules/gnu-source: New files.
88772         * modules/timespec, modules/unlocked-io: Depend on extensions.
88773
88774 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88775
88776         * modules/restrict: New file.
88777         * MODULES.html.sh (func_all_modules): Add restrict.
88778         * modules/regex: Depend on restrict.
88779
88780 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88781
88782         * m4/restrict.m4: New file.
88783         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88784
88785 2003-08-07  Bruno Haible  <bruno@clisp.org>
88786
88787         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88788         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88789
88790 2003-08-07  Bruno Haible  <bruno@clisp.org>
88791
88792         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88793         makes the module 'getndelim2' compatible with the module 'getline'.
88794
88795 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88796
88797         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88798         byte with "\201" to avoid glitches when editing that source file
88799         with multi-gnome-terminal.
88800
88801 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88802
88803         * lib/bumpalloc.h: Remove.
88804
88805 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88806
88807         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88808         * modules/bumpalloc: Remove.
88809
88810 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88811
88812         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88813         GNU coding style.
88814
88815         Merge from coreutils.
88816         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88817         1. From glibc.
88818         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88819         from Karl Berry, implemented by Jim Meyering.
88820         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88821         from Dmitry V. Levin.
88822         Remove anachronistic cast of xrealloc.
88823         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88824         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88825         type. Otherwise, it wouldn't compile with at least /bin/cc on
88826         ymp-cray-unicos9.0.2.X.
88827         Combine two mostly-identical uses of alloca into one.
88828         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88829
88830 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88831
88832         [From Emacs.]
88833
88834         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88835         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88836         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88837         obsolete NLIST_NAME_UNION.
88838         [__GNU__]: Undef BSD and FSCALE.
88839         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88840
88841 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88842
88843         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88844         an enum type, so that it's guaranteed to promote to int.  See:
88845         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88846
88847 2003-08-03  Karl Berry  <karl@gnu.org>
88848
88849         * config/depcomp: update from automake.
88850
88851 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88852
88853         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88854         (strerror): Don't assume that a printable int fits in 14 bytes.
88855
88856 2003-07-31  Bruno Haible  <bruno@clisp.org>
88857
88858         * modules/getpass-gnu: New file.
88859         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88860
88861 2003-07-31  Bruno Haible  <bruno@clisp.org>
88862
88863         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88864
88865 2003-07-24  Karl Berry  <karl@gnu.org>
88866
88867         * config/missing: update from automake.
88868
88869 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88870             Bruno Haible  <bruno@clisp.org>
88871
88872         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88873         * lib/getline.c (getline, getdelim): Likewise.
88874         Remove _GNU_SOURCE define; now it's defined in config.h through
88875         m4/getline.m4.
88876
88877 2003-07-23  Karl Berry  <karl@gnu.org>
88878
88879         * config/config.sub: update from prep.
88880
88881 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88882
88883         * modules/xalloc (Depends-on): Add exitfail.
88884         * modules/xmemcoll: Likewise.
88885
88886 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88887
88888         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88889         over-parenthesization in macros.
88890
88891         Sync with coreutils.
88892
88893         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88894         required by C99.
88895
88896         Use `exit_failure' for xalloc and xmemcoll instead of their own
88897         private exit-failure variables.
88898         * lib/xalloc.h (xalloc_exit_failure): Remove.
88899         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88900         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88901         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88902         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88903         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88904
88905 2003-07-20  Jim Meyering  <jim@meyering.net>
88906
88907         * modules/closeout (Depends-on): Add exitfail.
88908         Suggestion from Bruno Haible.
88909
88910 2003-07-19  Karl Berry  <karl@gnu.org>
88911
88912         * config/config.sub: update from prep.
88913
88914 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88915
88916         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88917         Remove.
88918         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88919         to test that it can stand by itself.  Include "exitfail.h".
88920         Clients should set exit_failure instead.
88921         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88922
88923 2003-07-18  Bruno Haible  <bruno@clisp.org>
88924
88925         * modules/getndelim2: New file.
88926         * modules/getline: Share files with module getndelim2.
88927         * modules/getnline: Depend on getndelim2 instead of sharing files with
88928         it. Add getnline.c to lib_SOURCES.
88929         * MODULES.html.sh (func_all_modules): Add getndelim2.
88930
88931 2003-07-18  Bruno Haible  <bruno@clisp.org>
88932
88933         * m4/getndelim2.m4: New file.
88934         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88935         invoke gl_PREREQ_GETNDELIM2.
88936         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88937         gl_PREREQ_GETNDELIM2.
88938         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88939         gl_GETNDELIM2.
88940
88941 2003-07-18  Bruno Haible  <bruno@clisp.org>
88942
88943         * lib/getndelim2.h: New file.
88944         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88945         getndelim2.h.
88946         (getndelim2): Make non-static. Change return type to ssize_t.
88947         * lib/getline.h: Change argument names.
88948         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88949         * lib/getnline.c: Include getndelim2.h.
88950
88951 2003-07-18  Andreas Schwab  <schwab@suse.de>
88952
88953         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88954
88955 2003-07-17  Karl Berry  <karl@gnu.org>
88956
88957         * config/config.sub: update from prep.
88958
88959 2003-07-17  Bruno Haible  <bruno@clisp.org>
88960
88961         * modules/getnline: New file.
88962         * modules/getline: Add lib/getndelim2.c to source file list.
88963         * MODULES.html.sh (func_all_modules): Add getnline.
88964
88965 2003-07-17  Bruno Haible  <bruno@clisp.org>
88966
88967         * m4/getnline.m4: New file.
88968
88969 2003-07-17  Bruno Haible  <bruno@clisp.org>
88970
88971         * m4/Makefile.am.in: Remove file.
88972         * m4/Makefile.am: Remove file.
88973         * m4/Makefile.in: Remove file.
88974
88975 2003-07-17  Bruno Haible  <bruno@clisp.org>
88976
88977         * lib/getnline.h: New file.
88978         * lib/getnline.c: New file.
88979         * lib/getndelim2.c: New file, extracted from getline.c.
88980         (getndelim2): Renamed from getdelim2, with added nmax argument.
88981         * lib/getline.c: Include getndelim2.c.
88982         (getdelim2): Moved out to getndelim2.c.
88983         (getline, getdelim): Update.
88984
88985 2003-07-17  Bruno Haible  <bruno@clisp.org>
88986
88987         * lib/Makefile.am: Remove file.
88988         * lib/Makefile.in: Remove file.
88989
88990 2003-07-17  Bruno Haible  <bruno@clisp.org>
88991
88992         * configure.in: Remove file.
88993         * Makefile.in: Remove file.
88994
88995 2003-07-17  Bruno Haible  <bruno@clisp.org>
88996
88997         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88998
88999 2003-07-16  Karl Berry  <karl@gnu.org>
89000
89001         * config/srclist-update: was running fixlicense twice, which caused
89002                 texinfo.tex to be nullified for some reason.  Simplify,
89003                 $gplsrc is no longer needed as far as I can see?
89004
89005 2003-07-16  Jim Meyering  <jim@meyering.net>
89006
89007         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89008
89009 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89010
89011         * config/srclist.txt: Get the following files from gettext-runtime/intl
89012         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89013         ref-del.sin.  From Bruno Haible.
89014         * config/srclist-update (fixfile): Change grep pattern again, since the
89015         previous fix didn't work (there was another trailing $).  Use
89016         '[$]' to escape the $s.
89017
89018 2003-07-15  Karl Berry  <karl@gnu.org>
89019
89020         * lib/vasnprintf.c: update from gettext.
89021
89022 2003-07-15  Karl Berry  <karl@gnu.org>
89023
89024         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89025         gets expanded when surrounded by '$'.
89026
89027 2003-07-15  Jim Meyering  <jim@meyering.net>
89028
89029         * modules/save-cwd: Don't depend on error.  From Derek Price.
89030
89031 2003-07-15  Jim Meyering  <jim@meyering.net>
89032
89033         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89034
89035 2003-07-14  Simon Josefsson  <jas@extundo.com>
89036
89037         * modules/mempcpy: New file.
89038         * MODULES.html.sh (func_all_modules): Add mempcpy.
89039
89040 2003-07-14  Simon Josefsson  <jas@extundo.com>
89041
89042         * m4/mempcpy.m4: New file.
89043
89044 2003-07-14  Simon Josefsson  <jas@extundo.com>
89045
89046         * lib/mempcpy.h: New file.
89047         * lib/mempcpy.c: New file.
89048
89049 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89050
89051         * modules/getdate, modules/posixtm: Depend on mktime.
89052
89053 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89054
89055         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89056         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89057         unicodeio.c, unicodeio.h, unlocked-io.h:
89058         Switch from LGPL to GPL.
89059
89060 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89061
89062         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89063         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89064         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89065         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89066         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89067         updated automatically by ../config/srclist-update.  This changes
89068         their license from LPGL to GPL.
89069
89070 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89071
89072         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89073         assumed to refer to the root of the most recent stable gettext version.
89074         * config/srclistvars.sh: Add defaults for eggert.
89075         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89076         Match "This program" as well as "The program".  This is needed
89077         for gettext.
89078
89079 2003-07-14  Jim Meyering  <jim@meyering.net>
89080
89081         Don't emit diagnostics.  Let callers do that.
89082         * lib/save-cwd.c: Don't include "error.h".
89083         (save_cwd): Don't call error.  Ensure that errno is valid
89084         when returning nonzero.
89085
89086         * lib/save-cwd.h (restore_cwd): Update prototype.
89087         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89088         Simplify.  Don't call error upon failure.  Let callers do that.
89089         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89090         when auditing is enabled.  But don't bother updating the #if.
89091
89092 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89093
89094         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89095         it breaks C++ compilation.
89096         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89097
89098 2003-07-10  Simon Josefsson  <jas@extundo.com>
89099
89100         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89101
89102 2003-07-10  Jim Meyering  <jim@meyering.net>
89103
89104         * m4/clock_time.m4: Remove trailing blank.
89105         * m4/intmax_t.m4: Likewise.
89106
89107 2003-07-10  Jim Meyering  <jim@meyering.net>
89108
89109         * lib/vasnprintf.c: Remove trailing blanks.
89110         Make cpp indentation consistent.
89111
89112 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89113
89114         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89115         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89116         Switch from LGPL to GPL.
89117
89118 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89119
89120         * config/srclist.txt: Sort sublists.  Add
89121         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89122         that differ from gnulib for one reason or another; we'd like this list
89123         to be smaller but for now let's document what we have.
89124
89125 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89126
89127         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89128         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89129         and sweeter "eval x=$x".
89130         * config/srclist.txt: Get lib/argp* from glibc.
89131
89132 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89133
89134         * lib/mktime.c: Fix some boundary cases and remove need for floating
89135         point.
89136
89137         Issue a compile-time diagnostic if time_t is floating point, or if
89138         two's complement arithmetic is not in effect, or if arithmetic
89139         right shift does not propagate the sign.  These assumptions were
89140         all in the original code but they weren't checked.
89141
89142         (TIME_T_MIDPOINT, verify): New macros.
89143         (__isleap): Remove; it has integer overflow problems.
89144         (leapyear): New function, without those problems.
89145         (ydhms_tm_diff): Remove; splitting into two parts.
89146         (ydhms_diff): New function, containing the arithmetic part of
89147         the old ydhms_tm_diff function.  Issue a compile-time
89148         diagnostic if we are not using C99 integer division.
89149         Avoid casts when possible.
89150         (guess_time_tm): New function, containing the checking part of
89151         the old ydhms_tm_diff function.  Return the new value, rather than
89152         the difference between it and the old.  Accept a new argument T
89153         so that *T specifies the old value.  Check for overflow in the result.
89154
89155         (__mktime_internal): Use a time_t offset, not a long int offset.
89156         This undoes the 2003-06-04 change, which is no longer needed now
89157         that we have better overflow checking.
89158         (localtime_offset): Likewise.
89159
89160         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89161         and long are 64-bit but int is only 32-bit.
89162         (ydhms_diff): Use long int to store year1 and yday1.
89163         Issue a compile-time diagnostic if long int is not wide enough.
89164
89165         (__mktime_internal): Use long int to store adjusted year and yday.
89166         Use plain C rather than preprocessor commands, if that doesn't
89167         affect efficiency.
89168         Check for overflow (and try to repair) after each probe
89169         rather than checking only at the very end.  This avoids some bugs
89170         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89171         does not equal GMT offset at maximum time).
89172         Use integer to check for overflow rather than floating point; this
89173         is more portable to non-IEEE hosts, and is a tad faster.
89174         When we detect that we are oscillating between two values,
89175         don't check whether tm_isdst has the requested value, since
89176         we already know the answer.  When tm_isdst has the wrong value,
89177         use a different heuristic to find the right one, based on the
89178         extreme values actually observed in practice in tz2003a,
89179         rather than the (overly optimistic) "previous 3 calendar quarters".
89180
89181         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89182         "T const" to accommodate glibc style.
89183         (check_result): Use less-confusing report format.  "long" -> "long int.
89184         (main): Likewise.
89185         Don't loop if the iteration overflows time_t.
89186         Allow a negative step in the iteration.
89187
89188 2003-07-06  Karl Berry  <karl@gnu.org>
89189
89190         * config/depcomp: update from automake.
89191         * config/config.sub: update from prep.
89192
89193 2003-07-03  Karl Berry  <karl@gnu.org>
89194
89195         * config/config.guess: update from prep.
89196
89197 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89198
89199         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89200         xreadlink.c now includes it unconditionally.
89201
89202 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89203
89204         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89205         having it depend on HAVE_SYS_TYPES_H.
89206
89207 2003-07-01  Bruno Haible  <bruno@clisp.org>
89208
89209         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89210         <sys/types.h> should be sufficient.
89211         Reported by Paul Eggert.
89212
89213 2003-06-26  Karl Berry  <karl@gnu.org>
89214
89215         * config/depcomp: update from automake.
89216
89217 2003-06-26  Bruno Haible  <bruno@clisp.org>
89218
89219         * modules/human: Depend on module stdbool.
89220
89221 2003-06-25  Bruno Haible  <bruno@clisp.org>
89222
89223         * modules/readlink: New file.
89224         * modules/xreadlink: Depend on it.
89225         * MODULES.html.sh (func_all_modules): Add readlink.
89226
89227 2003-06-25  Bruno Haible  <bruno@clisp.org>
89228
89229         * m4/readlink.m4: New file.
89230
89231 2003-06-25  Bruno Haible  <bruno@clisp.org>
89232
89233         * lib/readlink.c: New file.
89234
89235 2003-06-22  Karl Berry  <karl@gnu.org>
89236
89237         * config/srclist.txt: update mkinstalldirs from automake.
89238         * config/mkinstalldirs: update.
89239
89240 2003-06-22  Bruno Haible  <bruno@clisp.org>
89241
89242         Portability to mingw32.
89243         * m4/ssize_t.m4: New file, from GNU gettext.
89244         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89245         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89246
89247 2003-06-22  Bruno Haible  <bruno@clisp.org>
89248
89249         * modules/safe-read: Add m4/ssize_t.m4.
89250         * modules/xreadlink: Add m4/ssize_t.m4.
89251
89252 2003-06-20  Bruno Haible  <bruno@clisp.org>
89253
89254         Assume C89, so PARAMS isn't needed.
89255         * lib/unicodeio.h (PARAMS): Remove.
89256         * lib/unicodeio.c: Don't use PARAMS.
89257
89258 2003-06-18  Karl Berry  <karl@gnu.org>
89259
89260         * config/config.{guess,sub}: update from prep.
89261
89262 2003-06-18  Jim Meyering  <jim@meyering.net>
89263
89264         Merge changes from coreutils.
89265         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89266         Remove explicit declarations of xmalloc and realloc.
89267         Include xalloc.h.
89268         (read_utmp): Remove anachronistic cast of xmalloc.
89269
89270 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89271
89272         Assume C89, so PARAMS isn't needed.
89273         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89274         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89275         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89276         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89277         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89278         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89279         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89280         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89281         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89282         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89283         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89284         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89285         no longer needed. Anyway, config.h should always be included before any
89286         other file.
89287
89288 2003-06-11  Simon Josefsson  <jas@extundo.com>
89289
89290         * modules/sysexits: New file.
89291         * MODULES.html.sh (func_all_modules): Add sysexits.
89292
89293 2003-06-11  Simon Josefsson  <jas@extundo.com>
89294
89295         * lib/sysexit_.h: New file.
89296
89297 2003-06-11  Derek Price  <derek@ximbiot.com>
89298
89299         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89300         necessary.
89301
89302 2003-06-11  Bruno Haible  <bruno@clisp.org>
89303
89304         * m4/sysexits.m4: New file.
89305
89306 2003-06-10  Simon Josefsson  <jas@extundo.com>
89307
89308         * lib/argp.h: New file, from glibc.
89309         * lib/argp-ba.c: New file, from glibc.
89310         * lib/argp-eexst.c: New file, from glibc.
89311         * lib/argp-fmtstream.c: New file, from glibc.
89312         * lib/argp-fmtstream.h: New file, from glibc.
89313         * lib/argp-fs-xinl.c: New file, from glibc.
89314         * lib/argp-help.c: New file, from glibc.
89315         * lib/argp-namefrob.h: New file, from glibc.
89316         * lib/argp-parse.c: New file, from glibc.
89317         * lib/argp-pv.c: New file, from glibc.
89318         * lib/argp-pvh.c: New file, from glibc.
89319         * lib/argp-xinl.c: New file, from glibc.
89320
89321 2003-06-10  Simon Josefsson  <jas@extundo.com>
89322
89323         * modules/strchrnul: New file.
89324
89325 2003-06-10  Simon Josefsson  <jas@extundo.com>
89326
89327         * modules/argp: New file.
89328
89329 2003-06-10  Simon Josefsson  <jas@extundo.com>
89330
89331         * m4/strchrnul.m4: New file.
89332
89333 2003-06-10  Simon Josefsson  <jas@extundo.com>
89334
89335         * lib/strchrnul.h: New file.
89336         * lib/strchrnul.c: New file.
89337
89338 2003-06-10  Bruno Haible  <bruno@clisp.org>
89339
89340         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89341
89342 2003-06-07  Karl Berry  <karl@gnu.org>
89343
89344         * config/config.{guess,sub}: update from prep.
89345
89346 2003-06-07  Jim Meyering  <jim@meyering.net>
89347
89348         * modules/strtod: Use $(...) notation, not @...@ for
89349         AC_REPLACE'd variables.
89350         * modules/localcharset: Likewise.
89351
89352 2003-06-07  Jim Meyering  <jim@meyering.net>
89353
89354         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89355         in place of my name in the copyright comment.
89356         Remove definition and uses of __P.
89357
89358         From coreutils.
89359         * lib/stat.c: Don't declare xmalloc explicitly.
89360         Instead, include "xalloc.h".
89361         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89362         xrealloc, and xcalloc return values.
89363         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89364         Improve comment.
89365         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89366
89367 2003-06-07  Bruno Haible  <bruno@clisp.org>
89368
89369         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89370         avoid AC_CONFIG_LINKS.
89371         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89372         fnmatch.h, to avoid AC_CONFIG_LINKS.
89373         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89374
89375 2003-06-07  Bruno Haible  <bruno@clisp.org>
89376
89377         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89378         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89379         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89380         directory.
89381         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89382         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89383         directory.
89384
89385 2003-06-06  Jim Meyering  <jim@meyering.net>
89386
89387         Merge from coreutils.
89388         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89389         Consolidate declarations and initializations of *_base* locals.
89390
89391         Merge from coreutils.
89392         This avoids a core dump on systems without GNU putenv,
89393         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89394         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89395         (unsetenv): New static function, from GNU libc.
89396         (rpl_putenv): Use it.
89397
89398         * lib/modechange.c: Remove trailing blanks.
89399
89400         Merge from coreutils.
89401         * lib/fsusage.c: Remove declaration of statfs.
89402         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89403
89404         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89405
89406 2003-06-06  Jim Meyering  <jim@meyering.net>
89407
89408         * lib/stdbool_.h: Renamed from stdbool.h.in.
89409
89410 2003-06-06  Jim Meyering  <jim@meyering.net>
89411             Bruno Haible  <bruno@clisp.org>
89412
89413         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89414         Adjust Makefile.am snippet not to redirect directly to target.
89415         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89416
89417 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89418
89419         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89420         mismatch, look in future quarters as well as past.  This fixes a
89421         bug when processing fall-backwards gaps immediately after a long
89422         period of daylight-saving time.
89423
89424         * lib/mktime.c: Assume freestanding C89 or better.
89425         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89426         (__P): Remove; not used.
89427         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89428         (mktime, not_equal_tm, print_tm, check_result,
89429         main): Use prototypes.  Use const * where appropriate.
89430         (main): Fix typo in testing code that uncovered by above changes.
89431         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89432
89433 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89434
89435         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89436         locale.h, localeconv.  This merges changes from coreutils.
89437
89438         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89439         It can be removed after the next Autoconf is released.
89440         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89441         needed.
89442
89443 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89444
89445         * lib/mktime.c: Fix Debian bug 177940
89446         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89447         (localtime_offset): Now long int, not time_t, because we want it
89448         to be guaranteed to be signed.  All uses changed.
89449         (__mktime_internal): If overflow would occur when adding offset,
89450         don't add it.
89451
89452         Merge 'human' changes from coreutils.  Rewrite to support
89453         locale-specific notations like thousands separators.
89454         * lib/human.c: Simplify authorship notice.
89455         Include human.h immediately after config.h.
89456         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89457         <limits.h>: Do not include, since human.h does.
89458         (SIZE_MAX, UINTMAX_MAX): New macros.
89459         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89460         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89461         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89462         (power_letter): Renamed from suffixes.
89463         (generate_suffix_backwards): Remove.
89464         (adjust_value): Now takes int style (because of human.h changes)
89465         and long double value (for greater precision on some platforms).
89466         (group_number): New function.
89467         (human_readable): Use it.  Use integer options, not enum.
89468         Put the options before the sizes in the arg list.
89469         Support all the new options.
89470         The old human_readable function has been removed;
89471         use inttostr.h instead.
89472         (human_readable, default_block_size, humblock):
89473         Use uintmax_t, not int, for block sizes.
89474         (human_readable_inexact, block_size_types): Remove.
89475         (block_size_opts): New constant.
89476         (human_options): Renamed from human_block_size, with new signature
89477         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89478         * lib/human.h: Add copyright and authorship notice.
89479         Include <limits.h> and <stdbool.h> unconditionally.
89480         (PARAMS): Remove.  All uses removed.
89481         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89482         (enum human_inexact_style): Remove tag; now a nameless enum.
89483         (human_floor, human_ceiling, human_round_to_even): Now have
89484         values 2, 0, 1 rather than -1, 1, 0.
89485         (human_group_digits, human_suppress_point_zero, human_autoscale,
89486         human_base_1024, human_SI, human_B): New constants.
89487         (human_readable_inexact, human_block_size): Remove.
89488         (human_readable): Size args are now uintmax_t, not int.
89489         (human_options): New decl.
89490
89491         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89492         unnecessary now that we assume C89 or better.  This change
89493         imported from coreutils.
89494
89495         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89496         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89497         in the 2003-05-30 sync from glibc.
89498
89499         .h files should stand alone, but we shouldn't include <sys/types.h>
89500         if we can get away with just <stddef.h>.
89501
89502         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89503         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89504         rather than <sys/types.h>, as we merely need size_t.
89505         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89506         to get size_t.
89507         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89508         Include <stdio.h>, to get FILE.
89509         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89510         memcasecmp.h has included <stddef.h> and all we need is size_t.
89511         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89512         our interface, instead of including <sys/types.h>
89513
89514 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89515
89516         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89517         now, as glibc mktime is buggy on non-glibc systems.
89518
89519 2003-06-03  Karl Berry  <karl@gnu.org>
89520
89521         * config/config.sub: update from prep.
89522
89523 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89524
89525         [from coreutils]
89526         Fix some minor time-related bugs with POSIX time arguments.
89527         Some valid time stamps were being rejected (notably -1, and
89528         time stamps before 1900 on 64-bit hosts).  And some invalid
89529         time stamps were being accepted, e.g. September 31.
89530
89531         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89532         that we can return (time_t) -1 successfully.
89533         * lib/posixtm.c: Likewise.
89534         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89535         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89536         (t): Remove static var.
89537         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89538         of static var.  All uses changed.
89539         (year): Do not reject years before 1900; they can occur with
89540         64-bit time_t.
89541         (posix_time_parse): Do not check for out-of-range components;
89542         that is now the caller's responsibility, since our checks were
89543         only approximations.
89544         (posixtime): Use mktime to check for out-of-range components,
89545         since it knows them exactly.
89546         If mktime returns (time_t) -1, check whether an error actually occurred
89547         by invoking localtime on -1.
89548         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89549         posixtime failures better.
89550         Improve the test data (in comments only).
89551
89552 2003-06-02  Karl Berry  <karl@gnu.org>
89553
89554         * config/mkinstalldirs (version): new variable.
89555         (--version): new option.
89556         (usage): improve message.
89557
89558 2003-05-30  Karl Berry  <karl@gnu.org>
89559
89560         * lib/mktime.c: update from libc.
89561
89562 2003-05-30  Bruno Haible  <bruno@clisp.org>
89563
89564         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89565         * config/config.rpath: Upgrade to gettext-0.12.1.
89566
89567 2003-05-30  Bruno Haible  <bruno@clisp.org>
89568
89569         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89570         * m4/nls.m4: New file, from gettext-0.12.1.
89571         * m4/po.m4: New file, from gettext-0.12.1.
89572         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89573
89574 2003-05-30  Bruno Haible  <bruno@clisp.org>
89575
89576         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89577         * lib/localcharset.h: Likewise.
89578         * lib/localcharset.c: Likewise.
89579
89580 2003-05-29  Karl Berry  <karl@gnu.org>
89581
89582         * config/config.rpath: update from gettext.
89583
89584 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89585
89586         Assume the headers required for C89 freestanding compilers.
89587         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89588         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89589         * m4/human.m4 (gl_HUMAN): Likewise.
89590         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89591         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89592         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89593         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89594         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89595         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89596
89597 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89598
89599         Assume the headers required for C89 freestanding compilers.
89600         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89601         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89602         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89603         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89604         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89605         define, since <limits.h> is guaranteed to do that.
89606         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89607         * lib/exclude.c: Include <stdbool.h> unconditionally.
89608         * lib/tempname.c: Include <stddef.h> unconditionally.
89609         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89610         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89611         <stddef.h> does that.
89612         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89613         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89614         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89615         needed.
89616         * lib/xstrtol.c: Likewise.
89617         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89618         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89619
89620         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89621         warnings on some platforms.
89622
89623         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89624         arbitrarily.
89625
89626 2003-05-26  Jim Meyering  <jim@meyering.net>
89627
89628         Merge in a change from coreutils:
89629         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89630         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89631         that condition, rather than `-1' which is slightly misleading.
89632         Change the name of the cache variable to have the gl_ prefix.
89633         Prompted by a patch from Richard Dawe for DJGPP.
89634
89635 2003-05-24  Karl Berry  <karl@gnu.org>
89636
89637         * config/config.guess: update from prep.
89638
89639 2003-05-22  Karl Berry  <karl@gnu.org>
89640
89641         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89642
89643 2003-05-20  Karl Berry  <karl@gnu.org>
89644
89645         * config/config.guess: update from prep.
89646
89647 2003-05-18  Karl Berry  <karl@gnu.org>
89648
89649         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89650         might actually be set by the user.
89651
89652         * config/depcomp, install-sh, mdate-sh: update from automake.
89653
89654 2003-05-17  Bruno Haible  <bruno@clisp.org>
89655
89656         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89657         invalid expansion for AC_EGREP_CPP.
89658         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89659         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89660         Suggested by Akim Demaille <akim@epita.fr> in
89661         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89662
89663 2003-05-12  Jim Meyering  <jim@meyering.net>
89664
89665         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89666         the space-padded-by-default conversion specifiers, %e, %k, %l.
89667
89668 2003-05-12  Bruno Haible  <bruno@clisp.org>
89669
89670         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89671         the string is longer than 4 KB.
89672
89673 2003-05-11  Karl Berry  <karl@gnu.org>
89674
89675         * config/config.{guess,sub}: update from prep.
89676
89677 2003-05-09  Bruno Haible  <bruno@clisp.org>
89678
89679         * modules/error: Add m4/strerror_r.m4 to file list.
89680
89681 2003-05-03  Bruno Haible  <bruno@clisp.org>
89682
89683         Upgrade to Unicode-4.0.
89684         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89685         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89686         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89687         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89688         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89689         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89690         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89691         Change width of U+E0100..U+E01EF from 1 to 0.
89692
89693 2003-04-25  Jim Meyering  <jim@meyering.net>
89694
89695         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89696         of type size_t, not int.
89697
89698 2003-04-25  Bruno Haible  <bruno@clisp.org>
89699
89700         * lib/copy-file.c: Include <stddef.h>, for size_t.
89701
89702 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89703
89704         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89705         code which expansion is under static control.  Patch imported from
89706         Akim Demaille's patch to Bison; see
89707         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89708
89709 2003-04-14  Bruno Haible  <bruno@clisp.org>
89710
89711         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89712
89713 2003-04-11  Jim Meyering  <jim@meyering.net>
89714
89715         Merge changes from Coreutils.
89716
89717         2003-03-22  Jim Meyering  <jim@meyering.net>
89718
89719         * lib/strftime.c (widen): Cast alloca return value to proper type.
89720
89721         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89722
89723         From GNU libc.
89724         * lib/strftime.c (my_strftime): Handle very large width
89725         specifications for numeric values correctly.  Improve checks for
89726         overflow.
89727
89728         2003-01-19  Jim Meyering  <jim@meyering.net>
89729
89730         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89731         definitions.
89732         (nl_get_alt_digit) [! defined my_strftime]: Define.
89733         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89734         _nl_get_alt_digit and _nl_get_walt_digit.
89735
89736         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89737         libc. These changes have no effect outside of _LIBC.
89738
89739 2003-04-10  Bruno Haible  <bruno@clisp.org>
89740
89741         * modules/findprog: New file.
89742         * MODULES.html.sh (func_all_modules): Add it.
89743
89744 2003-04-10  Bruno Haible  <bruno@clisp.org>
89745
89746         * m4/findprog.m4: New file.
89747         * m4/eaccess.m4: New file.
89748
89749 2003-04-10  Bruno Haible  <bruno@clisp.org>
89750
89751         * lib/findprog.h: New file, from GNU gettext.
89752         * lib/findprog.c: New file, from GNU gettext.
89753
89754 2003-04-05  Jim Meyering  <jim@meyering.net>
89755
89756         Merge changes from Coreutils.
89757
89758         * lib/exclude.h (PARAMS): Remove definition and uses.
89759         * lib/exclude.c: Remove uses of `PARAMS'.
89760
89761         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89762         Add test-cases for DOS filenames. Declare program_name.
89763         (main): Set up program_name.  Patch by Rich Dawe.
89764
89765         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89766         error from mntctl.
89767         Use mntctl's return value to drive the entry-processing loop, since
89768         we can't rely on the value of the vmt_length member in the last
89769         entry.  On some systems doing so could result in exhausting
89770         virtual memory.  Based in part on a patch from Mike Jetzer.
89771
89772 2003-04-04  Bruno Haible  <bruno@clisp.org>
89773
89774         * modules/linebreak: New file.
89775         * MODULES.html.sh (func_all_modules): Add it.
89776
89777 2003-04-04  Bruno Haible  <bruno@clisp.org>
89778
89779         * m4/linebreak.m4: New file.
89780
89781 2003-04-04  Bruno Haible  <bruno@clisp.org>
89782
89783         * lib/linebreak.h: New file, from GNU gettext.
89784         * lib/linebreak.c: New file, from GNU gettext with slight
89785         modifications.
89786         * lib/lbrkprop.h: New file, from GNU gettext.
89787
89788 2003-04-03  Bruno Haible  <bruno@clisp.org>
89789
89790         * modules/utf8-ucs4: New file.
89791         * modules/utf16-ucs4: New file.
89792         * modules/ucs4-utf8: New file.
89793         * modules/ucs4-utf16: New file.
89794         * MODULES.html.sh (func_all_modules): Add them.
89795
89796 2003-04-03  Bruno Haible  <bruno@clisp.org>
89797
89798         * m4/utf-ucs4.m4: New file.
89799         * m4/ucs4-utf.m4: New file.
89800
89801 2003-04-03  Bruno Haible  <bruno@clisp.org>
89802
89803         * lib/utf8-ucs4.h: New file, from GNU gettext.
89804         * lib/utf16-ucs4.h: New file, from GNU gettext.
89805         * lib/ucs4-utf8.h: New file, from GNU gettext.
89806         * lib/ucs4-utf16.h: New file, from GNU gettext.
89807
89808 2003-04-02  Bruno Haible  <bruno@clisp.org>
89809
89810         * modules/binary-io: New file.
89811         * MODULES.html.sh (func_all_modules): Add it.
89812
89813 2003-04-02  Bruno Haible  <bruno@clisp.org>
89814
89815         * lib/binary-io.h: New file, from GNU gettext.
89816
89817 2003-04-01  Bruno Haible  <bruno@clisp.org>
89818
89819         * modules/pathname: New file.
89820         * MODULES.html.sh (func_all_modules): Add it.
89821
89822 2003-04-01  Bruno Haible  <bruno@clisp.org>
89823
89824         * lib/pathname.h: New file, from GNU gettext.
89825         * lib/concatpath.c: New file, from GNU gettext.
89826
89827 2003-03-30  Bruno Haible  <bruno@clisp.org>
89828
89829         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89830
89831 2003-03-30  Bruno Haible  <bruno@clisp.org>
89832
89833         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89834         function chown() doesn't exist.
89835
89836 2003-03-28  Bruno Haible  <bruno@clisp.org>
89837
89838         * modules/copy-file: New file.
89839         * MODULES.html.sh (func_all_modules): Add it.
89840
89841 2003-03-28  Bruno Haible  <bruno@clisp.org>
89842
89843         * m4/copy-file.m4: New file.
89844
89845 2003-03-28  Bruno Haible  <bruno@clisp.org>
89846
89847         * lib/copy-file.h: New file, from GNU gettext.
89848         * lib/copy-file.c: New file, from GNU gettext.
89849
89850 2003-03-18  Jim Meyering  <jim@meyering.net>
89851
89852         * lib/quote.c (quote_n): Fix typo in comment.
89853
89854 2003-03-18  Bruno Haible  <bruno@clisp.org>
89855
89856         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89857         checking.
89858         * m4/onceonly_2_57.m4: Likewise.
89859
89860 2003-03-17  Bruno Haible  <bruno@clisp.org>
89861
89862         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89863         (m4_quote): Remove macro.
89864         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89865
89866 2003-03-14  Jim Meyering  <jim@meyering.net>
89867
89868         Merge changes from Coreutils.
89869         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89870         to be const, in order to avoid warnings.
89871         (obstack_room): Likewise.
89872         (obstack_empty_p): Likewise.
89873
89874 2003-03-14  Bruno Haible  <bruno@clisp.org>
89875
89876         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89877         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89878
89879 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89880
89881         Merge changes from Bison.
89882         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89883         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89884         when compiling Bison 1.875's `bitset bset = obstack_alloc
89885         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89886         * lib/hash.c: Include <stdbool.h> unconditionally.
89887
89888 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89889
89890         * m4/onceonly.m4 (m4_quote): New macro.
89891         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89892         Quote AC_FOREACH variable-expansions properly.
89893
89894 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89895
89896         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89897
89898 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89899
89900         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89901         Reported by Bruce Becker; see:
89902         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89903
89904 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89905             Bruno Haible  <bruno@clisp.org>
89906
89907         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89908         Reported by John Hughes, see
89909         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89910
89911 2003-02-20  Bruno Haible  <bruno@clisp.org>
89912
89913         * MODULES.html.sh (func_all_modules): Add poll.
89914
89915 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89916
89917         * modules/poll: New file.
89918
89919 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89920
89921         * lib/poll_.h: New file.
89922         * lib/poll.c: New file.
89923
89924 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89925
89926         * m4/poll.m4: New file.
89927
89928 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89929
89930         * modules/mathl: New file.
89931
89932 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89933
89934         * lib/mathl.h: New file.
89935         * lib/acosl.c: New file.
89936         * lib/asinl.c: New file.
89937         * lib/atanl.c: New file.
89938         * lib/ceill.c: New file.
89939         * lib/cosl.c: New file.
89940         * lib/expl.c: New file.
89941         * lib/floorl.c: New file.
89942         * lib/frexpl.c: New file.
89943         * lib/ldexpl.c: New file.
89944         * lib/logl.c: New file.
89945         * lib/sincosl.c: New file.
89946         * lib/sinl.c: New file.
89947         * lib/sqrtl.c: New file.
89948         * lib/tanl.c: New file.
89949         * lib/trigl.c: New file.
89950         * lib/trigl.h: New file.
89951
89952 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89953
89954         * m4/mathl.m4: New file.
89955
89956 2003-02-18  Bruno Haible  <bruno@clisp.org>
89957
89958         * MODULES.html.sh (func_all_modules): Add mathl.
89959
89960 2003-02-17  Bruno Haible  <bruno@clisp.org>
89961
89962         * modules/mkdtemp: New module.
89963         * MODULES.html.sh (func_all_modules): Add it.
89964
89965 2003-02-17  Bruno Haible  <bruno@clisp.org>
89966
89967         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89968
89969 2003-02-17  Bruno Haible  <bruno@clisp.org>
89970
89971         * lib/mkdtemp.h: New file, from GNU gettext.
89972         * lib/mkdtemp.c: New file, from GNU gettext.
89973
89974 2003-02-02  Jim Meyering  <jim@meyering.net>
89975
89976         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89977         e.g. glibc-2.2.93.
89978
89979 2003-01-31  Bruno Haible  <bruno@clisp.org>
89980
89981         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89982         'rpl_rename'.
89983         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89984         'rpl_strnlen'.
89985         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89986         'rpl_strtod'.
89987         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89988         'rpl_utime'.
89989
89990 2003-01-31  Bruno Haible  <bruno@clisp.org>
89991
89992         * lib/rename.c: #undef rename before defining rpl_rename.
89993         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89994
89995 2003-01-30  Bruno Haible  <bruno@clisp.org>
89996
89997         * modules/vasnprintf, modules/vasprintf: New modules.
89998         * MODULES.html.sh (func_all_modules): Add them.
89999
90000 2003-01-30  Bruno Haible  <bruno@clisp.org>
90001
90002         * m4/signed.m4: New file, from GNU gettext.
90003         * m4/longdouble.m4: New file, from GNU gettext.
90004         * m4/wchar_t.m4: New file, from GNU gettext.
90005         * m4/wint_t.m4: New file, from GNU gettext.
90006         * m4/vasnprintf.m4: New file.
90007         * m4/vasprintf.m4: New file.
90008
90009 2003-01-30  Bruno Haible  <bruno@clisp.org>
90010
90011         * lib/printf-args.h: New file, from GNU gettext.
90012         * lib/printf-args.c: New file, from GNU gettext.
90013         * lib/printf-parse.h: New file, from GNU gettext.
90014         * lib/printf-parse.c: New file, from GNU gettext.
90015         * lib/vasnprintf.h: New file, from GNU gettext.
90016         * lib/vasnprintf.c: New file, from GNU gettext.
90017         * lib/asnprintf.c: New file, from GNU gettext.
90018         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90019         * lib/vasprintf.c: New file, from GNU gettext.
90020         * lib/asprintf.c: New file, from GNU gettext.
90021
90022 2003-01-29  Bruno Haible  <bruno@clisp.org>
90023
90024         * modules/stpncpy: New module.
90025         * MODULES.html.sh (func_all_modules): Add it.
90026
90027 2003-01-29  Bruno Haible  <bruno@clisp.org>
90028
90029         * m4/stpncpy.m4: New file.
90030
90031 2003-01-29  Bruno Haible  <bruno@clisp.org>
90032
90033         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90034         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90035
90036 2003-01-28  Bruno Haible  <bruno@clisp.org>
90037
90038         * modules/c-ctype: New module.
90039         * MODULES.html.sh (func_all_modules): Add it.
90040
90041 2003-01-28  Bruno Haible  <bruno@clisp.org>
90042
90043         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90044         Paul Eggert.
90045         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90046         Paul Eggert.
90047
90048 2003-01-27  Bruno Haible  <bruno@clisp.org>
90049
90050         * modules/xsetenv: New module.
90051         * MODULES.html.sh (func_all_modules): Add it.
90052
90053 2003-01-27  Bruno Haible  <bruno@clisp.org>
90054
90055         * lib/xsetenv.h: New file, from GNU gettext.
90056         * lib/xsetenv.c: New file, from GNU gettext.
90057
90058 2003-01-23  Jim Meyering  <jim@meyering.net>
90059
90060         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90061         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90062
90063 2003-01-23  Bruno Haible  <bruno@clisp.org>
90064
90065         * modules/minmax: New module.
90066         * MODULES.html.sh (func_all_modules): Add it.
90067
90068 2003-01-23  Bruno Haible  <bruno@clisp.org>
90069
90070         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90071         Eggert.
90072
90073 2003-01-22  Bruno Haible  <bruno@clisp.org>
90074
90075         * modules/exit: New module.
90076         * MODULES.html.sh (func_all_modules): Add it.
90077
90078 2003-01-22  Bruno Haible  <bruno@clisp.org>
90079
90080         * lib/exit.h: New file, from GNU gettext.
90081
90082 2003-01-19  Bruno Haible  <bruno@clisp.org>
90083
90084         * gnulib-tool: Recognize option --extract-maintainer.
90085         (func_get_maintainer): New function.
90086         * modules/*: Add Maintainer entry.
90087
90088 2003-01-16  Jim Meyering  <jim@meyering.net>
90089
90090         * m4/regex.m4: The `regex' struct is both input and output.
90091         Initialize it before each use.  Patch by Tim Waugh.
90092
90093 2003-01-16  Bruno Haible  <bruno@clisp.org>
90094
90095         * MODULES.html.sh: Add a table of contents. Add the module name as
90096         leftmost column. Add hyperlinks.
90097
90098 2003-01-15  Bruno Haible  <bruno@clisp.org>
90099
90100         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90101
90102 2003-01-15  Bruno Haible  <bruno@clisp.org>
90103
90104         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90105         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90106         suffix.
90107
90108 2003-01-15  Bruno Haible  <bruno@clisp.org>
90109
90110         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90111
90112 2003-01-15  Bruno Haible  <bruno@clisp.org>
90113
90114         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90115         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90116
90117 2003-01-14  Jim Meyering  <jim@meyering.net>
90118
90119         * lib/same.c (same_name): Tweak a comment.
90120
90121 2003-01-14  Bruno Haible  <bruno@clisp.org>
90122
90123         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90124         when a string comparison is sufficient.
90125
90126 2003-01-14  Bruno Haible  <bruno@clisp.org>
90127
90128         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90129         'unsigned int'.
90130
90131 2003-01-14  Bruno Haible  <bruno@clisp.org>
90132
90133         * lib/hash-pjw.c: Add comment about low quality of this function.
90134
90135 2003-01-13  Bruno Haible  <bruno@clisp.org>
90136
90137         * modules/stpcpy: Distribute lib/stpcpy.h.
90138         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90139
90140 2003-01-13  Bruno Haible  <bruno@clisp.org>
90141
90142         * modules/*: Add a description.
90143         * modules/strpbrk: Fix Makefile.am snippet.
90144         * modules/strtoimax: Fix dependencies.
90145         * modules/strtoumax: Likewise.
90146
90147 2003-01-13  Bruno Haible  <bruno@clisp.org>
90148
90149         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90150         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90151         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90152
90153 2003-01-13  Bruno Haible  <bruno@clisp.org>
90154
90155         * gnulib-tool (func_create_testdir): Store config/* files in the main
90156         directory.
90157         * config.rpath: Move to ...
90158         * config/config.rpath: ... here.
90159         * modules/gettext: Contains config/config.rpath, not config.rpath.
90160         * modules/iconv: Likewise.
90161
90162 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90163
90164         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90165         to avoid collisions with libcurses and libreadline.
90166
90167         * m4/getstr.m4: Remove.
90168         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90169
90170 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90171
90172         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90173         to avoid collisions with libcurses and libreadline.
90174
90175         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90176         * lib/getstr.h, getstr.c: Remove.
90177         * lib/getline.c: Include "getline.h", to check interface.
90178         Move body of old getstr.c here: this defines MIN_CHUNK and
90179         declares getdelim2, which is renamed from getstr.
90180         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90181
90182         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90183         All uses changed.
90184         * lib/linebuffer.h: Likewise.
90185         (readline): Remove backward-compatibility macro.
90186
90187 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90188
90189         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90190         to avoid collisions with libcurses and libreadline.
90191         * getstr: Remove.
90192         * MODULES.html.sh: Remove getstr.
90193         * modules/getline: Depend on unlocked-io, not getstr.
90194
90195 2003-01-12  Jim Meyering  <jim@meyering.net>
90196
90197         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90198
90199 2003-01-10  Bruno Haible  <bruno@clisp.org>
90200
90201         * modules/alloca: Change Makefile.am requirements. Simplify Include
90202         requirements. Add lib/alloca_.h to file list.
90203
90204 2003-01-10  Bruno Haible  <bruno@clisp.org>
90205
90206         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90207
90208 2003-01-10  Bruno Haible  <bruno@clisp.org>
90209
90210         * lib/alloca_.h: New file.
90211         * lib/getdate.y: Unconditionally include alloca.h.
90212         * lib/makepath.c: Likewise.
90213         * lib/setenv.c: Likewise.
90214         * lib/userspec.c: Likewise.
90215
90216 2003-01-09  Karl Berry  <karl@gnu.org>
90217
90218         * MODULES.html.sh: include `dirname $0` in PATH, to find
90219         gnulib-tool.
90220
90221 2003-01-09  Bruno Haible  <bruno@clisp.org>
90222
90223         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90224         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90225
90226 2003-01-09  Bruno Haible  <bruno@clisp.org>
90227
90228         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90229
90230 2003-01-09  Bruno Haible  <bruno@clisp.org>
90231
90232         * lib/stdbool.h.in: New file.
90233
90234 2003-01-09  Bruno Haible  <bruno@clisp.org>
90235
90236         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90237         * MODULES.html.sh: Likewise.
90238
90239 2003-01-08  Jim Meyering  <jim@meyering.net>
90240
90241         * lib/full-write.c: Undefine and define-away `const' after inclusion
90242         of errno.h, not before.  Suggestion from Bruno Haible.
90243
90244 2003-01-08  Bruno Haible  <bruno@clisp.org>
90245
90246         * modules/full-read: Depend on full-write.
90247
90248 2003-01-08  Bruno Haible  <bruno@clisp.org>
90249
90250         * lib/safe-read.c: Include specification header first, to ensure its
90251         selfcontainedness.
90252         * lib/full-write.c: Likewise.
90253
90254 2003-01-07  Jim Meyering  <jim@meyering.net>
90255
90256         * lib/full-write.c: Rework so that it may serve to define full_read,
90257         too.
90258         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90259
90260 2003-01-07  Bruno Haible  <bruno@clisp.org>
90261
90262         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90263         <inttypes.h>.
90264         * lib/xstrtol.h: Likewise.
90265         * lib/xstrtoimax.c: Likewise.
90266         * lib/xstrtoumax.c: Likewise.
90267         * lib/human.h: Likewise.
90268
90269         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90270         on systems that have <inttypes.h> but not <stdint.h>.
90271
90272 2003-01-07  Bruno Haible  <bruno@clisp.org>
90273
90274         * MODULES.html.sh: Add copyright notice.
90275         (missed_files): Omit CVS directory entries.
90276         (func_module): Make it work with sed-3.02.
90277         * MODULES.txt: Remove file.
90278
90279 2003-01-06  Jim Meyering  <jim@meyering.net>
90280
90281         * lib/version-etc.c: Update year in translatable copyright string.
90282
90283 2003-01-03  Karl Berry  <karl@gnu.org>
90284
90285         * config/config.{guess,sub}: update from prep.
90286
90287 2003-01-02  Karl Berry  <karl@gnu.org>
90288
90289         * doc/COPYING.DOC: belatedly updated to 1.2.
90290
90291 2003-01-01  Karl Berry  <karl@gnu.org>
90292
90293         * gnulib-tool (func_verify_module): report module name $module in
90294         error message, not $1.
90295         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90296         be created, only if it doesn't exist.
90297         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90298
90299 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90300
90301         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90302
90303 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90304
90305         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90306         memcmp if strcoll doesn't work.
90307
90308 2002-12-31  Bruno Haible  <bruno@clisp.org>
90309
90310         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90311         nonempty.
90312
90313 2002-12-31  Bruno Haible  <bruno@clisp.org>
90314
90315         * lib/memcoll.c (STRCOLL): New macro.
90316         (memcoll): Use it.
90317
90318 2002-12-31  Bruno Haible  <bruno@clisp.org>
90319
90320         * lib/localcharset.h: New file.
90321         * lib/localcharset.c: Include it.
90322         * lib/unicodeio.c: Likewise.
90323
90324 2002-12-31  Bruno Haible  <bruno@clisp.org>
90325
90326         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90327         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90328
90329 2002-12-31  Bruno Haible  <bruno@clisp.org>
90330
90331         * lib/getline.h: Include <stddef.h>, for size_t.
90332
90333         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90334         * lib/unicodeio.c: Don't include <stddef.h>.
90335
90336 2002-12-31  Bruno Haible  <bruno@clisp.org>
90337
90338         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90339         HAVE_TM_ZONE.
90340
90341 2002-12-24  Karl Berry  <karl@gnu.org>
90342
90343         * config/config.guess: update from prep.
90344
90345 2002-12-24  Bruno Haible  <bruno@clisp.org>
90346
90347         General infrasructure.
90348         * m4/README: Rewritten.
90349         * m4/onceonly.m4: New file.
90350         * m4/onceonly_2_57.m4: New file.
90351
90352         Module atexit.
90353         * m4/atexit.m4: New file.
90354
90355         Module strtod.
90356         * m4/strtod.m4: New file.
90357
90358         Module strtol.
90359         * m4/strtol.m4: New file.
90360
90361         Module strtoul.
90362         * m4/strtoul.m4: New file.
90363
90364         Module memchr.
90365         * m4/memchr.m4: New file.
90366
90367         Module memcmp.
90368         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90369         (jm_FUNC_MEMCMP): Invoke it.
90370
90371         Module memcpy.
90372         * m4/memcpy.m4: New file.
90373
90374         Module memmove.
90375         * m4/memmove.m4: New file.
90376
90377         Module memset.
90378         * m4/memset.m4: New file.
90379
90380         Module strcspn.
90381         * m4/strcspn.m4: New file.
90382
90383         Module strpbrk.
90384         * m4/strpbrk.m4: New file.
90385
90386         Module strstr.
90387         * m4/strstr.m4: New file.
90388
90389         Module strerror.
90390         * m4/strerror.m4: New file.
90391
90392         Module mktime.
90393         * m4/mktime.m4: Renamed from jm-mktime.m4.
90394         (gl_PREREQ_MKTIME): New macro.
90395         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90396
90397         Module malloc.
90398         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90399         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90400         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90401
90402         Module realloc.
90403         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90404         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90405         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90406
90407         Module strftime.
90408         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90409         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90410         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90411         gl_TM_GMTOFF.
90412         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90413
90414         Module xalloc.
90415         * m4/xalloc.m4: New file.
90416
90417         Module alloca.
90418         * m4/alloca.m4: New file.
90419
90420         Module putenv.
90421         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90422         (jm_FUNC_PUTENV): Invoke it.
90423
90424         Module setenv.
90425         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90426         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90427         when invoked twice.
90428         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90429         gt_FUNC_SETENV.
90430
90431         Module memrchr.
90432         * m4/memrchr.m4: New file.
90433
90434         Module stpcpy.
90435         * m4/stpcpy.m4: New file.
90436
90437         Module strcase.
90438         * m4/strcase.m4: New file.
90439
90440         Module strdup.
90441         * m4/strdup.m4: New file.
90442
90443         Module strnlen.
90444         * m4/strnlen.m4: New file.
90445
90446         Module strndup.
90447         * m4/strndup.m4: New file.
90448
90449         Module xstrtod.
90450         * m4/xstrtod.m4: New file.
90451
90452         Module xstrtol.
90453         * m4/xstrtol.m4: New file.
90454
90455         Module getdate.
90456         * m4/getdate.m4: New file.
90457
90458         Module unlocked-io.
90459         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90460         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90461         * m4/jm-glibc-io.m4n: Remove file.
90462
90463         Module long-options.
90464         * m4/long-options.m4: New file.
90465
90466         Module md5.
90467         * m4/md5.m4: New file.
90468
90469         Module sha.
90470         * m4/sha.m4: New file.
90471
90472         Module getstr.
90473         * m4/getstr.m4: New file.
90474
90475         Module getline.
90476         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90477         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90478         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90479         simply getline. Infoke gl_PREREQ_GETLINE.
90480
90481         Module obstack.
90482         * m4/obstack.m4: New file.
90483
90484         Module hash.
90485         * m4/hash.m4: New file.
90486
90487         Module readtokens.
90488         * m4/readtokens.m4: New file.
90489
90490         Module strverscmp.
90491         * m4/strverscmp.m4: New file.
90492
90493         Module stdbool.
90494         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90495         OSF/1.
90496
90497         Module strtoll.
90498         * m4/strtoll.m4: New file.
90499
90500         Module strtoull.
90501         * m4/strtoull.m4: New file.
90502
90503         Module strtoimax.
90504         * m4/strtoimax.m4: New file.
90505
90506         Module strtoumax.
90507         * m4/strtoumax.m4: New file.
90508
90509         Module xstrtoimax.
90510         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90511         jm_AC_PREREQ_XSTRTOIMAX.
90512         Moved the strtol prerequisites to strtol.m4.
90513         Moved the strtoll prerequisites to strtoll.m4.
90514         Moved the strtoimax prerequisites to strtoimax.m4.
90515
90516         Module xstrtoumax.
90517         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90518         jm_AC_PREREQ_XSTRTOUMAX.
90519         Moved the strtoul prerequisites to strtoul.m4.
90520         Moved the strtoull prerequisites to strtoull.m4.
90521         Moved the strtoumax prerequisites to strtoumax.m4.
90522
90523         Module chown.
90524         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90525         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90526
90527         Module dup2.
90528         * m4/dup2.m4: New file.
90529
90530         Module ftruncate.
90531         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90532         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90533
90534         Module getgroups.
90535         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90536         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90537
90538         Module gettimeofday.
90539         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90540         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90541         gl_PREREQ_GETTIMEOFDAY.
90542
90543         Module mkdir.
90544         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90545         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90546
90547         Module mkstemp.
90548         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90549         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90550         jm_AC_TYPE_UINTMAX_T.
90551         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90552
90553         Module stat.
90554         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90555         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90556
90557         Module lstat.
90558         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90559         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90560
90561         Module timespec.
90562         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90563         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90564         * m4/st_mtim.m4: Indentation.
90565
90566         Module nanosleep.
90567         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90568         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90569         gl_PREREQ_NANOSLEEP.
90570
90571         Module regex.
90572         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90573         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90574         (gl_REGEX): New macro.
90575
90576         Module rename.
90577         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90578         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90579
90580         Module rmdir.
90581         * m4/rmdir.m4: New file.
90582
90583         Module utime.
90584         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90585         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90586         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90587
90588         Module dirname.
90589         * m4/dirname.m4: New file.
90590
90591         Module getopt.
90592         * m4/getopt.m4: New file.
90593
90594         Module unistd-safer.
90595         * m4/unistd-safer.m4: New file.
90596
90597         Module fnmatch.
90598         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90599         declaration.
90600         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90601         (gl_FUNC_FNMATCH_POSIX): New macro.
90602         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90603         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90604         simply fnmatch.
90605
90606         Module exclude.
90607         * m4/exclude.m4: New file.
90608
90609         Module human.
90610         * m4/human.m4: New file.
90611
90612         Module acl.
90613         * m4/acl.m4: Nop.
90614
90615         Module backupfile.
90616         * m4/backupfile.m4: New file.
90617         * m4/d-ino.m4: Indentation.
90618
90619         Module fsusage.
90620         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90621         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90622         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90623
90624         Module dirfd.
90625         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90626         requirements.
90627
90628         Module euidaccess.
90629         * m4/euidaccess.m4: New file.
90630
90631         Module file-type.
90632         * m4/file-type.m4: New file.
90633
90634         Module fileblocks.
90635         * m4/fileblocks.m4: New file.
90636
90637         Module filemode.
90638         * m4/filemode.m4: New file.
90639
90640         Module isdir.
90641         * m4/isdir.m4: New file.
90642
90643         Module lchown.
90644         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90645         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90646
90647         Module makepath.
90648         * m4/makepath.m4: New file.
90649
90650         Module modechange.
90651         * m4/modechange.m4: New file.
90652
90653         Module mountlist.
90654         * m4/mountlist.m4: New file.
90655         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90656         Indentation.
90657
90658         Module path-concat.
90659         * m4/path-concat.m4: New file.
90660
90661         Module pathmax.
90662         * m4/pathmax.m4: New file.
90663
90664         Module same.
90665         * m4/same.m4: New file.
90666
90667         Module save-cwd.
90668         * m4/save-cwd.m4: New file.
90669
90670         Module savedir.
90671         * m4/savedir.m4: New file.
90672
90673         Module xgetcwd.
90674         * m4/xgetcwd.m4: New file.
90675         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90676
90677         Module xreadlink.
90678         * m4/xreadlink.m4: New file.
90679
90680         Module safe-read.
90681         * m4/safe-read.m4: New file.
90682
90683         Module safe-write.
90684         * m4/safe-write.m4: New file.
90685
90686         Module closeout.
90687         * m4/closeout.m4: New file.
90688
90689         Module stdio-safer.
90690         * m4/stdio-safer.m4: New file.
90691
90692         Module getpass.
90693         * m4/getpass.m4: New file.
90694
90695         Module getugroups.
90696         * m4/getugroups.m4: New file.
90697
90698         Module group-member.
90699         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90700         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90701
90702         Module idcache.
90703         * m4/idcache.m4: New file.
90704
90705         Module userspec.
90706         * m4/userspec.m4: New file.
90707
90708         Module gettime.
90709         * m4/clock_time.m4: New file.
90710         * m4/gettime.m4: New file.
90711
90712         Module settime.
90713         * m4/settime.m4: New file.
90714
90715         Module posixtm.
90716         * m4/posixtm.m4: New file.
90717
90718         Module gethostname.
90719         * m4/gethostname.m4: New file.
90720
90721         Module canon-host.
90722         * m4/canon-host.m4: New file.
90723
90724         Module gettext.
90725         * m4/codeset.m4: New file, from gettext-0.11.5.
90726         * m4/gettext.m4: New file, from gettext-0.11.5.
90727         * m4/glibc21.m4: New file, from gettext-0.11.5.
90728         * m4/iconv.m4: New file, from gettext-0.11.5.
90729         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90730         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90731         * m4/inttypes.m4: New file, from gettext-0.11.5.
90732         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90733         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90734         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90735         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90736         * m4/lib-link.m4: New file, from gettext-0.11.5.
90737         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90738         * m4/progtest.m4: New file, from gettext-0.11.5.
90739         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90740         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90741         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90742
90743         Module localcharset.
90744         * m4/localcharset.m4: New file.
90745
90746         Module hard-locale.
90747         * m4/hard-locale.m4: New file.
90748
90749         Module mbswidth.
90750         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90751         onceonly macros.
90752         * m4/mbrtowc.m4: Add comment.
90753
90754         Module memcasecmp.
90755         * m4/memcasecmp.m4: New file.
90756
90757         Module memcoll.
90758         * m4/memcoll.m4: New file.
90759
90760         Module unicodeio.
90761         * m4/unicodeio.m4: New file.
90762
90763         Module rpmatch.
90764         * m4/rpmatch.m4: New file.
90765
90766         Module yesno.
90767         * m4/yesno.m4: New file.
90768
90769         Module exitfail.
90770         * m4/exitfail.m4: New file.
90771
90772         Module c-stack.
90773         * m4/c-stack.m4 (gl_C_STACK): New macro.
90774         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90775
90776         Module error.
90777         * m4/error.m4 (gl_ERROR): New macro.
90778         (jm_PREREQ_ERROR): Use onceonly macros.
90779
90780         Module fatal.
90781         * m4/fatal.m4: New file.
90782
90783         Module getloadavg.
90784         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90785         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90786
90787         Module getpagesize.
90788         * m4/getpagesize.m4: New file.
90789
90790         Module getusershell.
90791         * m4/getusershell.m4: New file.
90792
90793         Module physmem.
90794         * m4/physmem.m4: New file.
90795
90796         Module posixver.
90797         * m4/posixver.m4: New file.
90798
90799         Module quotearg.
90800         * m4/quotearg.m4: New file.
90801
90802         Module quote.
90803         * m4/quote.m4: New file.
90804
90805         Module readutmp.
90806         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90807
90808         Module sig2str.
90809         * m4/sig2str.m4: New file.
90810
90811         Other.
90812         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90813         ulonglong.m4.
90814         * m4/intmax_t.m4: New file.
90815         * m4/d-type.m4: Indentation.
90816         * m4/jm-macros.m4: Update.
90817         * m4/prereq.m4 (jm_PREREQ): Update.
90818         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90819         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90820         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90821         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90822         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90823         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90824         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90825         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90826         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90827         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90828         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90829         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90830         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90831         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90832         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90833         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90834         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90835         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90836         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90837
90838 2002-12-24  Bruno Haible  <bruno@clisp.org>
90839
90840         * MODULES.txt: Update according to m4/ changes.
90841
90842         Module gettext.
90843         * config.rpath: New file, from gettext-0.11.5.
90844
90845         * modules/*: New module descriptions.
90846         * gnulib-tool: New file.
90847         * MODULES.html.sh: New file.
90848
90849 2002-12-21  Karl Berry  <karl@gnu.org>
90850
90851         * doc/fdl.texi: update to version 1.2.
90852
90853 2002-12-19  Karl Berry  <karl@gnu.org>
90854
90855         * config/config.guess: update from prep.
90856
90857 2002-12-18  Bruno Haible  <bruno@clisp.org>
90858
90859         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90860         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90861
90862 2002-12-17  Bruno Haible  <bruno@clisp.org>
90863
90864         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90865         stdlib.h, string.h.
90866
90867 2002-12-17  Bruno Haible  <bruno@clisp.org>
90868
90869         * lib/canon-host.c (strdup): Remove unused declaration.
90870
90871         * lib/fsusage.c: Include full_read.h.
90872         (get_fs_usage): Use full_read instead of safe_read.
90873
90874         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90875
90876 2002-12-12  Karl Berry  <karl@gnu.org>
90877
90878         * config/config.guess: update from prep.
90879
90880 2002-12-11  Bruno Haible  <bruno@clisp.org>
90881
90882         * m4/setenv.m4: New file, from gettext-0.11.5.
90883
90884 2002-12-11  Bruno Haible  <bruno@clisp.org>
90885
90886         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90887         not unsetenv().
90888         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90889         modifications:
90890
90891         2002-12-11  Bruno Haible  <bruno@clisp.org>
90892
90893                 * setenv.c (alloca): Fall back to malloc.
90894                 (freea): New macro.
90895                 (setenv): Use freea() to free memory allocated with alloca().
90896
90897         2002-11-13  Bruno Haible  <bruno@clisp.org>
90898
90899                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90900                 function declarations.
90901                 * unsetenv.c (unsetenv): Likewise.
90902
90903         2002-03-04  Bruno Haible  <bruno@clisp.org>
90904
90905                 Portability to AIX 4.3.3.
90906                 * unsetenv.c: New file, extracted from setenv.c.
90907                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90908
90909         2001-12-20  Bruno Haible  <bruno@clisp.org>
90910
90911                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90912                 use malloc instead. For SunOS 4.
90913
90914         2001-12-11  Bruno Haible  <bruno@clisp.org>
90915
90916                 * setenv.c: Declare alloca.
90917                 (compar_fn_t): New typedef.
90918                 (KNOWN_VALUE, STORE_VALUE): Use it.
90919
90920         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90921         setenv.h.
90922
90923 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90924
90925         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90926         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90927         Choose values that are less likely to collide with system fnmatch
90928         options.
90929         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90930         defined (e.g., a pure POSIX system).
90931         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90932         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90933
90934 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90935
90936         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90937         a pain in practice to deal with generated m4 files.  This change
90938         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90939
90940         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90941         and jm-glibc-io.m4, as they are no longer a special case.
90942         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90943         kludge and the auto-generation stuff.  Check only whether the
90944         functions are declared, not whether they exist, since older hosts
90945         that don't declare the functions can't use the optimization anyway.
90946
90947 2002-12-06  Jim Meyering  <jim@meyering.net>
90948
90949         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90950
90951         Merge in changes from libc's misc/error.c, in preparation
90952         for the merge of gnulib's changes back into libc.
90953
90954         * lib/error.c (_): Define only if not already defined.
90955         Move definition to follow all #include directives.
90956         Include unlocked-io.h only if !_LIBC.
90957         [_LIBC]: Include <libio/libioP.h>.
90958         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90959         (fflush): Tweak definition to use INTUSE.
90960         (putc): Define.
90961
90962 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90963
90964         * lib/alloca.c [defined emacs]: Include "lisp.h".
90965         (xalloc_die) [defined emacs]: New macro.
90966         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90967         [! defined emacs]: Include <xalloc.h>.
90968         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90969         (pointer): Typedef to POINTER_TYPE *.
90970         (malloc): Remove decl; we now always use xmalloc.
90971         (alloca): Use old-style definition, since Emacs needs this.
90972         Check for arithmetic overflow when computing combined size.
90973
90974 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90975
90976         Do not generate unlocked-io.h automatically, since it's easier to
90977         maintain it by hand.
90978
90979         * lib/unlocked-io.h: New file, from GNU diffutils,
90980         but with proper copyright notice and attribution.
90981         * lib/gen-uio: Remove.
90982         * lib/Makefile.am: Add copyright notice.
90983         (libfetish_a_SOURCES): Add unlocked-io.h.
90984         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90985         (DISTCLEANFILES, io_functions): Remove macros.
90986         (EXTRA_DIST): Remove gen_uio.
90987         (unlocked-io.h): Remove rule.
90988
90989 2002-12-04  Jim Meyering  <jim@meyering.net>
90990
90991         Reflect the fact that stat.c and lstat.c are no longer generated.
90992         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90993         (DISTCLEANFILES): Likewise.
90994         (EXTRA_DIST): Likewise.
90995         (all_local): Don't depend on stat.c or lstat.c.
90996         (stat.c, lstat.c): Remove rules.
90997         (EXTRA_DIST): Remove xstat.in.
90998
90999         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91000         * lib/stat.c: New file.  Contents mostly from xstat.in.
91001         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91002         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91003
91004         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91005         too.
91006         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91007
91008 2002-12-03  Jim Meyering  <jim@meyering.net>
91009
91010         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91011         but not semantics, to minimize the differences between these two files.
91012         (safe_read): Change comment to mention SAFE_READ_ERROR.
91013
91014         * lib/safe-read.c (IS_EINTR): Define.
91015         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91016
91017 2002-12-02  Jim Meyering  <jim@meyering.net>
91018
91019         * lib/safe-read.c (EINTR): Define.
91020         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91021         (INT_MAX): Provide fallback.
91022         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91023
91024         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91025
91026 2002-12-02  Bruno Haible  <bruno@clisp.org>
91027
91028         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91029         Define, taken from safe-read.c.
91030         (INT_MAX): Provide fallback.
91031         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91032         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91033
91034         * lib/safe-read.c (EINTR): Remove definition.
91035         (safe_read): Don't use EINTR if it is absent.
91036
91037 2002-12-01  Jim Meyering  <jim@meyering.net>
91038
91039         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91040         zero.
91041         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91042
91043 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91044
91045         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91046         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91047         with `if (! (value < limit)) abort ();', for readability.
91048
91049 2002-11-26  Karl Berry  <karl@gnu.org>
91050
91051         * lib/strdup.c: copy from libc again, with jim's ok.
91052         * lib/.cppi-disable: re-add strdup.c
91053
91054 2002-11-25  Karl Berry  <karl@gnu.org>
91055
91056         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91057         instead of "strtol.c".
91058
91059 2002-11-25  Karl Berry  <karl@gnu.org>
91060
91061         * config/install-sh: update from automake for variable quoting, $0 in
91062         error msgs, etc.
91063
91064         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91065         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91066         entry.
91067
91068 2002-11-25  Jim Meyering  <jim@meyering.net>
91069
91070         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91071
91072 2002-11-24  Karl Berry  <karl@gnu.org>
91073
91074         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91075         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91076
91077 2002-11-24  Jim Meyering  <jim@meyering.net>
91078
91079         Update from coreutils:
91080
91081         * lib/mktime.c: Merge in changes from libc.
91082
91083         Avoid a link-time failure on some Linux systems.
91084         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91085         (otherwise).
91086         (__mon_yday): Declare with the STATIC attribute.
91087         (__mktime_internal): Likewise.
91088         Based on a report from Greg Schafer.
91089
91090 2002-11-23  Jim Meyering  <jim@meyering.net>
91091
91092         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91093         Use `unsigned', not `int', as type of index.
91094
91095         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91096
91097         * lib/fsusage.c: Remove unneeded parentheses around operands of
91098         `defined'.
91099
91100 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91101
91102         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91103         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91104         so that we can be included first.
91105         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91106         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91107         No need to include stddef.h or sys/types.h any more.
91108         Surround local include files with "", not "<>".
91109         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91110         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91111         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91112         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91113         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91114         (ISPRINT): Remove; no longer needed now that we assume C89.
91115
91116         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91117         Preserve errno.
91118
91119         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91120         quotearg_char): Use SIZE_MAX rather than
91121         (size_t) -1 when we are talking about "infinity".
91122
91123         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91124
91125 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91126
91127         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91128         hint that one should use `if (! x) abort ();' rather than `assert
91129         (x);', and anyway it's one less thing to worry about configuring.
91130         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91131         hash_rehash, hash_insert): Use abort rather than assert.
91132
91133 2002-11-22  Bruno Haible  <bruno@clisp.org>
91134
91135         * lib/safe-read.h: Assume C89. Add comments.
91136         (safe_read): Change return type to size_t.
91137         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91138         byte counts > SSIZE_MAX correctly.
91139         * lib/safe-write.h: New file.
91140         * lib/safe-write.c: New file.
91141         * lib/full-read.h: New file.
91142         * lib/full-read.c: New file.
91143         * lib/full-write.h: Assume C89. Add comments.
91144         * lib/full-write.c: Include safe-write.h.
91145         (full_write): Rewritten to use safe_write.
91146         Suggested by Jim Meyering and Paul Eggert.
91147
91148 2002-11-21  Jim Meyering  <jim@meyering.net>
91149
91150         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91151
91152         Merge in changes from the coreutils.
91153
91154         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91155         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91156         <stdint.h>.
91157         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91158         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91159         int.  Work more efficiently if X is the same width as uintmax_t.
91160         Do not compare X to -1, to avoid bogus compiler warning.
91161         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91162         Don't assume that f_frsize and f_bsize are the same type.
91163
91164         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91165         warning on FreeBSD.
91166
91167         * lib/makepath.c (make_path): Restore umask *before* creating the final
91168         component.
91169         (make_path): Minor reformatting.
91170
91171         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91172         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91173         HAVE_MALLOC/HAVE_REALLOC.
91174
91175         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91176         dummy ones.  At least on GNU/Linux systems, `auto' means something
91177         else.
91178         From Michael Stone.
91179
91180 2002-11-21  Bruno Haible  <bruno@clisp.org>
91181
91182         Remove case insensitive option matching.
91183         * lib/argmatch.h (argcasematch): Remove declaration.
91184         (ARGCASEMATCH): Remove macro.
91185         (__xargmatch_internal): Remove case_sensitive argument.
91186         (XARGMATCH): Update.
91187         (XARGCASEMATCH): Remove macro.
91188         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91189         case_sensitive argument.
91190         (argcasematch): Remove function.
91191         (__xargmatch_internal): Remove case_sensitive argument.
91192         (main): Use XARGMATCH instead of XARGCASEMATCH.
91193
91194         * lib/xmalloc.c: Change compile-time error message. Add comment about
91195         required autoconf version.
91196
91197 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91198
91199         Merge argmatch cleanups from Bison.  Assume C89.
91200
91201         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91202         Include stdlib.h, for EXIT_FAILURE.
91203         Always include <string.h>, since we assume C89.
91204         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91205         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91206         Include <stddef.h> instead, since it's all we need for size_t.
91207         (PARAMS): Remove.  All uses removed.
91208         (ARRAY_CARDINALITY): Do not bother to #undef.
91209         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91210         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91211         Remove unnecessary parentheses.
91212         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91213         Insert necessary parentheses.
91214         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91215         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91216
91217 2002-11-19  Bruno Haible  <bruno@clisp.org>
91218
91219         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91220         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91221
91222         * lib/mbswidth.h (PARAMS): Remove macro.
91223         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91224         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91225
91226         * lib/gcd.h (PARAMS): Remove macro.
91227         (gcd): Use ANSI C function declarations.
91228         * lib/gcd.c (gcd): Likewise.
91229
91230 2002-11-15  Bruno Haible  <bruno@clisp.org>
91231
91232         * lib/strcspn.c: Include <stddef.h>.
91233         (strcspn): Use ANSI C function declaration. Change return type to
91234         size_t. Use NULL.
91235         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91236         (strpbrk): Use NULL.
91237         * lib/strpbrk.h (PARAMS): Remove macro.
91238         (strpbrk): Use ANSI C function declaration.
91239         * lib/strstr.c: Don't include <sys/types.h>.
91240         * lib/strstr.h (PARAMS): Remove macro.
91241         (strstr): Use ANSI C function declarations.
91242
91243 2002-11-14  Karl Berry  <karl@gnu.org>
91244
91245         * config/mkinstalldirs: `do' on separate line, instead of
91246         `for var; do'.
91247
91248 2002-11-06  Bruno Haible  <bruno@clisp.org>
91249
91250         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91251         * lib/gcd.c (gcd): Likewise.
91252
91253 2002-11-05  Bruno Haible  <bruno@clisp.org>
91254
91255         * lib/gcd.h: New file, from gettext-0.11.5.
91256         * lib/gcd.c: New file, from gettext-0.11.5.
91257
91258 2002-11-05  Bruno Haible  <bruno@clisp.org>
91259
91260         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91261         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91262         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91263         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91264
91265         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91266         <libintl.h>.
91267         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91268         <libintl.h>.
91269
91270         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91271         * lib/human.c: Include gettext.h instead of <libintl.h>.
91272         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91273         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91274         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91275         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91276         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91277         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91278         (textdomain): Remove definition.
91279         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91280
91281         * lib/long-options.c: Remove include of <libintl.h> and definition of
91282         _.
91283         * lib/same.c: Remove include of <libintl.h> and definition of _.
91284
91285 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91286
91287         * lib/config.charset: A few additions for Solaris.
91288
91289 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91290
91291         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91292         * lib/localcharset.c (locale_charset): Declare as extern "C".
91293
91294 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91295
91296         * lib/config.charset: msdos in uk_UA uses CP1125.
91297
91298 2002-11-04  Bruno Haible  <bruno@clisp.org>
91299
91300         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91301         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91302         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91303         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91304         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91305
91306 2002-11-04  Bruno Haible  <bruno@clisp.org>
91307
91308         * lib/localcharset.c (locale_charset): Don't return an empty string.
91309
91310 2002-11-04  Bruno Haible  <bruno@clisp.org>
91311
91312         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91313         aliases.
91314
91315 2002-11-04  Bruno Haible  <bruno@clisp.org>
91316
91317         * lib/config.charset: Update for newest glibc. Add canonical names
91318         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91319
91320 2002-11-04  Bruno Haible  <bruno@clisp.org>
91321
91322         * lib/config.charset: Add support for NetBSD.
91323
91324 2002-11-04  Bruno Haible  <bruno@clisp.org>
91325
91326         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91327
91328 2002-11-01  Bruno Haible  <bruno@clisp.org>
91329
91330         * configure.in: Add AC_CONFIG_AUX_DIR call.
91331         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91332         test/Makefile.
91333         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91334
91335 2002-09-28  Karl Berry  <karl@gnu.org>
91336
91337         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91338         installed automake until the next release, since changes have been
91339         made.
91340
91341 2002-09-25  Karl Berry  <karl@gnu.org>
91342
91343         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91344         * lib/getopt*: copy from libc/posix.
91345         * lib/gettext.h: copy from gettext.
91346         * lib/.cppi-disable: add strdup.c, gettext.h.
91347
91348 2002-09-25  Karl Berry  <karl@gnu.org>
91349
91350         * config/srclist.txt: enable gettext.h check.
91351         * config/config.{guess,sub}: update from prep.
91352         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91353                 from automake 1.6.3.
91354         See srclist*.
91355
91356 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91357
91358         * regex.c (PATFETCH): Remove the translating fetch.
91359         (PATFETCH_RAW): Rename to PATFETCH.
91360         (set_image_of_range): New fun.
91361         (SET_RANGE_TABLE_WORK_AREA): Use it.
91362         (regex_compile): Don't translate the pattern chars so eagerly.
91363         Only do it when inserting an `exactn' bytecode or when handling
91364         a char-range.
91365         (mutually_exclusive_p): Avoid empty statement.
91366
91367 2002-07-06  Jim Meyering  <meyering@lucent.com>
91368
91369         * m4/README: Don't mention Makefile.am.in.
91370         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91371
91372 2002-07-01  Jim Meyering  <meyering@lucent.com>
91373
91374         * lib/c-stack.c: Include sys/time.h.
91375         From Volker Borchert.
91376
91377 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91378
91379         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91380
91381 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91382
91383         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91384         New macro.  Use it uniformly instead of
91385         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91386         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91387         reported by Vin Shelton.
91388
91389 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91390
91391         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91392         Do not assume SA_SIGINFO behavior.
91393         Bug reported by Jim Meyering on NetBSD 1.5.2.
91394
91395 2002-06-22  Jim Meyering  <meyering@lucent.com>
91396
91397         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91398         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91399
91400         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91401         now that configure.ac uses AC_GNU_SOURCE.
91402         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91403         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91404
91405         Update to latest tools.  Suggestions from Paul Eggert.
91406         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91407         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91408         * m4/fnmatch.m4: Likewise.
91409         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91410         to AC_HEADER_STDBOOL
91411
91412 2002-06-22  Jim Meyering  <meyering@lucent.com>
91413
91414         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91415         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91416
91417 2002-06-22  Jim Meyering  <meyering@lucent.com>
91418
91419         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91420
91421         * lib/exitfail.c, exitfail.h: Likewise.
91422         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91423
91424         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91425         of fnmatch.h.
91426         (EXTRA_DIST): Add fnmatch_loop.c.
91427         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91428
91429         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91430         * lib/fnmatch.c: Update from diffutils-2.8.2.
91431         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91432         * lib/fnmatch.h: Remove file.
91433
91434 2002-06-21  Jim Meyering  <meyering@lucent.com>
91435
91436         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91437         * m4/mbrtowc.m4: Likewise.
91438
91439         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91440         * m4/mbswidth.m4: Reflect name change:
91441         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91442         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91443
91444         * m4/lib-link.m4: Update from gettext-0.11.2.
91445         * m4/gettext.m4: Likewise.
91446
91447         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91448         From Alfred M. Szmidt.
91449
91450 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91451
91452         * lib/file-type.h: Report an error if neither S_ISREG nor
91453         S_IFREG is defined, instead of using a test specific to glibc
91454         2.2.  This should be safe, since POSIX requires S_ISREG and
91455         Unix Version 7 had S_IFREG.  We don't need to check for
91456         <sys/types.h> since we don't use any symbols that it defines.
91457
91458 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91459
91460         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91461         $@-t, so that each temporary file name is unique and valid in the first
91462         8 characters, for operation under DOS.
91463
91464 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91465
91466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91467
91468 2002-06-15  Jim Meyering  <meyering@lucent.com>
91469
91470         Work even with DJGPP 2.03, which lacks support for symlinks.
91471         From Richard Dawe.
91472         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91473         is defined.
91474         * lib/lchown.c (S_ISLNK): Likewise.
91475
91476 2002-06-15  Jim Meyering  <meyering@lucent.com>
91477
91478         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91479         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91480         have been included before this file.
91481
91482 2002-06-14  Jim Meyering  <meyering@lucent.com>
91483
91484         * lib/file-type.h: Use the version from diffutils-2.8.2.
91485         * lib/file-type.c: Likewise.
91486
91487 2002-06-07  Jim Meyering  <meyering@lucent.com>
91488
91489         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91490         They're needed at least for NetBSD 1.5.2.
91491         ($statxfs_includes): Include those same headers.
91492         ($statxfs_includes): Include sys/vfs.h if available.
91493         ($statxfs_includes): Likewise for sys/statvfs.h.
91494         Check for the following members in both structs statfs and statvfs:
91495         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91496
91497 2002-06-01  Jim Meyering  <meyering@lucent.com>
91498
91499         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91500         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91501
91502 2002-05-28  Jim Meyering  <meyering@lucent.com>
91503
91504         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91505         Reported by Volker Borchert.
91506
91507 2002-05-27  Jim Meyering  <meyering@lucent.com>
91508
91509         Fix a problem seen only on nonconforming systems whereby ls.c's
91510         use of localtime, and then of gettimeofday would cause trouble:
91511         the localtime call used to initialize rpl_gettimeofday's save
91512         mechanism would clobber ls's current local time information so
91513         that in any long listing the first file would always be listed
91514         with date 1970-01-01.  Analysis by Volker Borchert.
91515
91516         * lib/gettimeofday.c (localtime): Undefine.
91517         (rpl_localtime): New function.
91518
91519 2002-05-27  Jim Meyering  <meyering@lucent.com>
91520
91521         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91522         localtime.
91523
91524         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91525         use the replacement function; it wouldn't resolve at link time.
91526         Reported by Volker Borchert.
91527
91528 2002-05-22  Jim Meyering  <meyering@lucent.com>
91529
91530         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91531         file-type.h.
91532         * lib/file-type.h: New file.
91533         * lib/file-type.c (file_type): New file/function.  Extracted from
91534         diffutils.
91535
91536 2002-04-30  Jim Meyering  <meyering@lucent.com>
91537
91538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91539
91540 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91541
91542         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91543
91544 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91545
91546         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91547         Do not check for alloca.h (no longer used) or stdbool.h (was never
91548         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91549
91550 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91551
91552         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91553
91554 2002-04-29  Jim Meyering  <meyering@lucent.com>
91555
91556         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91557         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91558         Use AC_FUNC_STRNLEN here instead.
91559
91560         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91561         With autoconf-2.53a, it's part of AC_PROG_CC.
91562
91563 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91564
91565         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91566         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91567
91568 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91569
91570         * lib/sig2str.h, lib/sig2str.c: New files.
91571         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91572
91573 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91574
91575         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91576         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91577         of 127, since 64 is the largest conceivable number for ancient
91578         nonstandard hosts.
91579         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91580
91581 2002-04-28  Jim Meyering  <meyering@lucent.com>
91582
91583         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91584
91585 2002-04-24  Jim Meyering  <meyering@lucent.com>
91586
91587         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91588         (jm_PREREQ): Use it.
91589
91590         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91591         mach/mach.h fcntl.h.
91592         Check for this function: setlocale.
91593
91594 2002-04-24  Jim Meyering  <meyering@lucent.com>
91595
91596         * lib/gettext.h: New file, from Gettext.
91597         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91598         (libfetish_a_SOURCES): Add gettext.h.
91599
91600 2002-04-16  Jim Meyering  <meyering@lucent.com>
91601
91602         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91603         ut_pid, ut_id, ut_exit.
91604
91605 2002-04-16  Jim Meyering  <meyering@lucent.com>
91606
91607         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91608         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91609         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91610
91611 2002-04-12  Jim Meyering  <meyering@lucent.com>
91612
91613         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91614         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91615         existence of the getmntinfo function.  Needed for Darwin 5.3.
91616
91617         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91618         This is necessary at least on Darwin 5.3.
91619
91620         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91621         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91622         strnlen.o in the library, and that makes some versions of ranlib
91623         object.
91624
91625 2002-04-12  Jim Meyering  <meyering@lucent.com>
91626
91627         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91628
91629 2002-04-09  Jim Meyering  <meyering@lucent.com>
91630
91631         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91632         to be more precise.  Rather than saying we're checking whether the
91633         function `works', say what we're testing.
91634         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91635         Reported by Bruno Haible.
91636
91637 2002-03-10  Jim Meyering  <meyering@lucent.com>
91638
91639         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91640         Suggestion from Santiago Vila.
91641
91642 2002-03-08  Jim Meyering  <meyering@lucent.com>
91643
91644         * lib/rename.c: Mention that this wrapper is needed also on
91645         mips-dec-ultrix4.4 systems.
91646
91647 2002-03-02  Jim Meyering  <meyering@lucent.com>
91648
91649         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91650         not HAVE_CLOCK_SETTIME.
91651
91652 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91653
91654         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91655         Check for clock_settime.
91656
91657 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91658
91659         * lib/nanosleep.h: Rename to....
91660         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91661
91662         * lib/gettime.c: New file.
91663         * lib/settime.c: New file.
91664         * lib/stime.c: Remove.
91665
91666         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91667         timespec.h.  Remove nanosleep.h.
91668
91669 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91670
91671         * m4/acl.m4: New file.
91672         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91673         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91674
91675 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91676
91677         * lib/acl.c, lib/acl.h: New files.
91678         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91679
91680 2002-02-24  Jim Meyering  <meyering@lucent.com>
91681
91682         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91683         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91684         cause trouble.  Reported by Nelson Beebe.
91685
91686 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91687
91688         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91689         compilers that don't know that xalloc_die never returns.
91690
91691 2002-02-20  Jim Meyering  <meyering@lucent.com>
91692
91693         * lib/getdate.c: Regenerate using bison-1.33.
91694
91695 2002-02-17  Jim Meyering  <meyering@lucent.com>
91696
91697         * config/config.guess (main): Don't use `head -1'; it's no longer
91698         portable. Use `sed 1q' instead.
91699
91700 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91701
91702         * m4/codeset.m4: Upgrade to gettext-0.11.
91703         * m4/gettext.m4: Upgrade to gettext-0.11.
91704         * m4/glibc21.m4: Upgrade to gettext-0.11.
91705         * m4/iconv.m4: Upgrade to gettext-0.11.
91706         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91707         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91708         * m4/lib-ld.m4: New file, from gettext-0.11.
91709         * m4/lib-link.m4: New file, from gettext-0.11.
91710         * m4/lib-prefix.m4: New file, from gettext-0.11.
91711         * m4/progtest.m4: Upgrade to gettext-0.11.
91712
91713 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91714
91715         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91716         (jm_PREREQ): Use it.
91717
91718 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91719
91720         * lib/posixver.c, lib/posixver.h: New files.
91721         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91722
91723 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91724             Bruno Haible  <bruno@clisp.org>
91725
91726         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91727         (fwrite_success_callback): New declaration.
91728         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91729         print_unicode_char. Call failure callback instead of error.
91730         (fwrite_success_callback): New function.
91731         (exit_failure_callback): New function.
91732         (fallback_failure_callback): New function.
91733         (print_unicode_char): Call unicode_to_mb.
91734
91735 2002-01-26  Jim Meyering  <meyering@lucent.com>
91736
91737         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91738         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91739
91740 2002-01-26  Jim Meyering  <meyering@lucent.com>
91741
91742         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91743
91744 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91745
91746         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91747
91748 2002-01-22  Jim Meyering  <meyering@lucent.com>
91749
91750         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91751         Otherwise, some versions of automake would omit the rule that makes
91752         Makefile from Makefile.in.
91753
91754 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91755
91756         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91757         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91758         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91759         (memcoll): Set errno to zero if there is no error.
91760
91761         * lib/quotearg.c (quotearg_buffer_restyled):
91762         Fix bug with quoting buffers containing NUL when backslashing escapes.
91763         This bug was exposed by the other changes in this patch.
91764         (quotearg_n_options): New arg ARGSIZE.
91765         All callers changed.
91766         (quoting_options_from_style): New function.
91767         (quotearg_n_style): Use it.
91768         (quotearg_n_style_mem): New function.
91769
91770         * lib/quotearg.h (quotearg_n_style_mem): New function.
91771
91772 2002-01-19  Jim Meyering  <meyering@lucent.com>
91773
91774         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91775         Remove useless quotes: DF_PROG="df".
91776         * m4/strnlen.m4: New file.
91777
91778 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91779
91780         * lib/backupfile.c (ISDIGIT): Comment fix.
91781         * lib/getdate.y (ISDIGIT): Likewise.
91782         * lib/posixtm.c (ISDIGIT, year): Likewise.
91783         * lib/strverscmp.c (ISDIGIT): Likewise.
91784         * lib/userspec.c (ISDIGIT): Likewise.
91785
91786 2002-01-16  Jim Meyering  <meyering@lucent.com>
91787
91788         * lib/getdate.y: Add three semicolons, each just before a closing
91789         brace. Bison (as of version 1.31) no longer papers over that mistake.
91790
91791 2002-01-05  Jim Meyering  <meyering@lucent.com>
91792
91793         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91794
91795 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91796
91797         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91798         not silently exit merely because the output buffer happens to
91799         have nothing pending.
91800
91801 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91802
91803         See the big note in ../ChangeLog.
91804         * lib/human.c (suffixes): Prefer K to k for 1024.
91805         (generate_suffix_backwards): New function.
91806         (human_readable_inexact): Use it.
91807         * lib/xstrtol.c (__xstrtol): If there is no number but there
91808         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91809         Accept 'K' as well as 'k'.
91810
91811 2001-12-15  Jim Meyering  <meyering@lucent.com>
91812
91813         * lib/regex.h (__restrict_arr): Update from libc.
91814
91815         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91816         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91817         (STREQ): Define.
91818
91819 2001-12-14  Jim Meyering  <meyering@lucent.com>
91820
91821         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91822         Suggestion from Bruno Haible.
91823
91824 2001-12-10  Jim Meyering  <meyering@lucent.com>
91825
91826         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91827         xrealloc, Instead, include "xalloc.h".
91828         (initbuffer): Don't cast xmalloc return value to char*.
91829         (readline): Reword comment.
91830         Don't cast xrealloc return value to char*
91831         Return NULL, not 0.
91832
91833 2001-12-09  Jim Meyering  <meyering@lucent.com>
91834
91835         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91836         about `signed and unsigned type in conditional expression'.
91837         * lib/posixtm.c (posix_time_parse): Likewise.
91838
91839         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91840
91841         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91842         to avoid a pedantic warning.
91843
91844         * lib/getstr.c: Don't include assert.h.
91845         (getstr): Remove warning-evoking assertions.
91846         Return -1 if offset parameter is out of bounds.
91847         Change the type of a local from int to size_t.
91848
91849         * lib/strftime.c (my_strftime_localtime_r): Include this function
91850         definition in the `#if ! HAVE_TM_GMTOFF' block.
91851
91852         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91853         Include xalloc.h instead.
91854
91855 2001-12-02  Jim Meyering  <meyering@lucent.com>
91856
91857         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91858         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91859         included.
91860
91861         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91862         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91863
91864 2001-11-30  Akim Demaille  <akim@epita.fr>
91865
91866         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91867         before being defined.
91868
91869 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91870
91871         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91872         First arg is int, not unsigned.
91873         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91874         (SIZE_MAX, UINT_MAX): New macros.
91875         (quotearg_n_options): Abort if N is negative.
91876         Avoid overflow check on hosts where size_t is 64 bits and int
91877         is 32 bits, as overflow is impossible there.
91878         Fix off-by-one typo that caused unnecessary reallocation.
91879
91880 2001-11-27  Jim Meyering  <meyering@lucent.com>
91881
91882         * lib/tempname.c: Merge with version from libc.
91883         * lib/regex.c: Likewise.
91884
91885         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91886         systems for which STDC_HEADERS is 0, it was not included, resulting in
91887         a warning about an integer-to-pointer conversion problem with getenv.
91888         Reported by Volker Borchert.
91889
91890 2001-11-26  Jim Meyering  <meyering@lucent.com>
91891
91892         * lib/gtod.h: Remove file.
91893         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91894         * lib/gettimeofday.c: Don't include gtod.h.
91895         (GTOD_init): Remove function.
91896         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91897         Suggestion from Volker Borchert.
91898
91899 2001-11-23  Jim Meyering  <meyering@lucent.com>
91900
91901         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91902         it.
91903         * lib/hash.c (struct hash_table): Define it here instead.
91904
91905 2001-11-22  Jim Meyering  <meyering@lucent.com>
91906
91907         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91908
91909 2001-11-20  Jim Meyering  <meyering@lucent.com>
91910
91911         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91912         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91913
91914 2001-11-19  Jim Meyering  <meyering@lucent.com>
91915
91916         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91917         directory.  Use "conftestXXXXXX" as the template.
91918         Suggestion from Paul Eggert.
91919
91920         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91921         immediately, so the test doesn't mistakenly hit the max-open-files
91922         limit.
91923
91924 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91925
91926         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91927         (TEMPORARIES): New macro.
91928         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91929         removes an artificial limitation (e.g. HP-UX 10.20, where
91930         TMP_MAX is 17576).
91931
91932 2001-11-18  Jim Meyering  <meyering@lucent.com>
91933
91934         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91935
91936 2001-11-18  Jim Meyering  <meyering@lucent.com>
91937
91938         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91939         on SunOS 4.
91940
91941         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91942         files will be created before anything else.
91943
91944 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91945
91946         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91947         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91948
91949 2001-11-17  Jim Meyering  <meyering@lucent.com>
91950
91951         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91952         Prompted by a report from Bob Proulx.
91953
91954         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91955         Instead, require UTILS_FUNC_MKSTEMP.
91956
91957 2001-11-17  Jim Meyering  <meyering@lucent.com>
91958
91959         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91960         Now, that's done as part of AC_FUNC_STRTOD.
91961
91962 2001-11-17  Jim Meyering  <meyering@lucent.com>
91963
91964         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91965         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91966         rather than group writable.  Patch by Juan F. Codagnone.
91967
91968         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91969         xrealloc, Instead, include "xalloc.h".
91970
91971         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91972         Remove explicit declarations of xmalloc, xrealloc,
91973         and xstrdup.  Instead, include "xalloc.h".
91974
91975         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91976         unlocked-io.h.
91977         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91978         Likewise.
91979         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91980
91981         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91982         Reported by Padraig Brady.
91983
91984         * lib/mkstemp.c: #undef mkstemp.
91985         Include config.h.
91986         (rpl_mkstemp): Rename from mkstemp.
91987         Protoize.
91988
91989 2001-11-16  Jim Meyering  <meyering@lucent.com>
91990
91991         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91992         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91993         determine the amount of total physical memory, use pstat_getstatic.
91994         HPUX-11 doesn't define _SC_PHYS_PAGES.
91995         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91996         If sysconf couldn't be used to determine the amount of available
91997         physical memory, use both pstat_getstatic and pstat_getdynamic.
91998         Based on a patch from Bob Proulx.
91999
92000 2001-11-10  Jim Meyering  <meyering@lucent.com>
92001
92002         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92003         (jm_PREREQ): Use it.
92004
92005 2001-11-09  Jim Meyering  <meyering@lucent.com>
92006
92007         * m4/jm-macros.m4: Require autoconf-2.52f.
92008         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92009         Use these AC_-prefixed names, not the AM_-prefixed ones.
92010
92011         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92012
92013 2001-11-05  Jim Meyering  <meyering@lucent.com>
92014
92015         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92016
92017 2001-11-04  Jim Meyering  <meyering@lucent.com>
92018
92019         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92020         $DEFS.
92021
92022 2001-11-03  Jim Meyering  <meyering@lucent.com>
92023
92024         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92025         of AC_DEFUN.
92026
92027         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92028         know the name of the variable in the macro definition.
92029
92030 2001-11-03  Jim Meyering  <meyering@lucent.com>
92031
92032         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92033         in argmatch_to_argument call.
92034
92035         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92036         argument.
92037
92038         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92039         e.g., a fault due to an attempt to free a NULL pointer.
92040
92041 2001-11-01  Jim Meyering  <meyering@lucent.com>
92042
92043         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92044         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92045
92046 2001-11-01  Jim Meyering  <meyering@lucent.com>
92047
92048         * lib/dirfd.c, lib/dirfd.h: New files.
92049         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92050
92051         * lib/hash.c (hash_print) [TESTING]: Clean up.
92052
92053 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92054
92055         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92056         to avoid a warning if -Wall.
92057
92058 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92059
92060         * README: New file
92061         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92062         (per RMS's instructions, this is now the canonical source)
92063         * lgpl/, gpl/: New directories.
92064
92065 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92066
92067         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92068
92069 2001-10-21  Jim Meyering  <meyering@lucent.com>
92070
92071         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92072         this code would end up calling gettext even in packages built
92073         with --disable-nls.
92074         * lib/getopt.c (_): Likewise.
92075         * lib/regex.c (_): Likewise.
92076
92077 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92078
92079         * m4/error.m4 (jm_PREREQ_ERROR):
92080         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92081         AC_FUNC_STRERROR_R does that.
92082         Check for strerror declaration.
92083
92084         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92085         are supposed to have them these days.
92086         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92087         Merge changes from latest Autoconf CVS.
92088         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92089         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92090         POSIX decided to standardize on the int flavor of strerror_r.
92091
92092 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92093
92094         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92095         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92096         Use strerror_r that is only a macro, even if it is not a function.
92097         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92098         (private_strerror): Use prototypes, not old-style function definition.
92099         (print_errno_message): New function.
92100         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92101         char*-flavored one.
92102         (error_tail, error, error_at_line): Use it.
92103
92104 2001-10-11  Jim Meyering  <meyering@lucent.com>
92105
92106         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92107         and quote_n (1, ... to avoid clobbering a buffer.
92108
92109 2001-10-05  Jim Meyering  <meyering@lucent.com>
92110
92111         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92112         hash-pjw.h.
92113         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92114         * lib/hash-pjw.h: New file.
92115
92116 2001-09-30  Jim Meyering  <meyering@lucent.com>
92117
92118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92119         `struct fsstat' has the `f_fstypename' member.
92120         Use that to define FS_TYPE, which is now used to make
92121         the getfsstat link test tighter.
92122
92123 2001-09-30  Jim Meyering  <meyering@lucent.com>
92124
92125         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92126         Include <sys/ucred.h>, for Apple Darwin.
92127         Include sys/mount.h and sys/fs_types.h only if available.
92128         (FS_TYPE): Define.
92129         (read_filesystem_list): Use FS_TYPE.
92130
92131 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92132
92133         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92134         a boolean context.
92135
92136 2001-09-29  Jim Meyering  <meyering@lucent.com>
92137
92138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92139         [one-argument getmntent function]): Include stdio.h before mntent.h.
92140         SunOS 4.1.x needs it for the declaration of `FILE'.
92141         Patch by Volker Borchert.
92142
92143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92144         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92145         sys/fs_types.h, and make the link-test for getfsstat guard #include
92146         directives with appropriate #if HAVE_*_H tests so that we can
92147         detect getfsstat on Apple Darwin1.3.7 systems.
92148         Reported by Nelson Beebe.
92149         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92150
92151 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92152
92153         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92154         #defines strtoimax.  Also treat the other strto* functions
92155         like strtoimax.
92156
92157         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92158         Check for strtoul and strtoumax,
92159         as those declarations are made even in the signed case.
92160         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92161         Likewise, for strtol and strtoimax.
92162
92163 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92164
92165         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92166         #defines strtoimax.  Also treat the other strto* functions
92167         like strtoimax.
92168
92169         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92170         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92171         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92172
92173 2001-09-26  Jim Meyering  <meyering@lucent.com>
92174
92175         Most macros in unlocked-io.h had the wrong number of arguments.
92176         * lib/gen-uio: New script.
92177         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92178         * lib/unlocked-io.hin: Remove file.
92179         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92180         rather than trying to embed it here.
92181         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92182         Reported by Padraig Brady.
92183
92184 2001-09-25  Volker Borchert  <bt@teknon.de>
92185
92186         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92187         `result'.
92188
92189 2001-09-24  Jim Meyering  <meyering@lucent.com>
92190
92191         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92192
92193 2001-09-23  Jim Meyering  <meyering@lucent.com>
92194
92195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92196         instead of the mere test for existence of mntent.h.  The latter
92197         would get a false-positive on AIX 3.4 systems.
92198         In the outer getmntent if-block, don't die if neither of the getmntent
92199         tests succeeds.  Instead, just fall through and continue with the
92200         remaining tests.
92201
92202 2001-09-23  Jim Meyering  <meyering@lucent.com>
92203
92204         * lib/mountlist.c: Remove useless parentheses in #if directives.
92205         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92206         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92207
92208 2001-09-22  Jim Meyering  <meyering@lucent.com>
92209
92210         * m4/gettext.m4: New file.  From gettext.
92211         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92212         * m4/progtest.m4: Likewise
92213         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92214         * m4/glibc21.m4: Likewise.
92215
92216         * m4/libintl.m4: Remove.  No longer used.
92217
92218 2001-09-22  Jim Meyering  <meyering@lucent.com>
92219
92220         * lib/localcharset.c: Update from latest gettext.
92221         * lib/config.charset: Likewise.
92222
92223 2001-09-20  Jim Meyering  <meyering@lucent.com>
92224
92225         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92226         strtoimax.
92227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92228         strtoumax.
92229
92230 2001-09-20  Jim Meyering  <meyering@lucent.com>
92231
92232         * lib/xstrtol.c (strtoimax): Guard declaration with
92233         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92234         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92235         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92236         (strtoumax): Likewise, for completeness (it wasn't necessary).
92237
92238 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92239
92240         * lib/strtoimax.c (HAVE_LONG_LONG):
92241         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92242         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92243         to work around bug in IBM C compiler.
92244
92245 2001-09-17  Jim Meyering  <meyering@lucent.com>
92246
92247         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92248         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92249         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92250         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92251         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92252         whenever the right hand side need not be expanded by the shell.
92253
92254 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92255
92256         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92257         library.  It's not correct, as some older glibcs are buggy.
92258         fnmatch wasn't fixed until glibc 2.2.
92259
92260         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92261         special shell magic here.
92262
92263 2001-09-16  Jim Meyering  <meyering@lucent.com>
92264
92265         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92266         * m4/jm-macros.m4: Require it.
92267
92268 2001-09-16  Jim Meyering  <meyering@lucent.com>
92269
92270         * lib/mkdir.c: New file.
92271
92272 2001-09-15  Jim Meyering  <meyering@lucent.com>
92273
92274         * m4/jm-macros.m4: Check for help2man.
92275
92276 2001-09-11  Jim Meyering  <meyering@lucent.com>
92277
92278         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92279         The body, by Paul Eggert, was moved here from configure.in.
92280         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92281
92282 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92283
92284         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92285         (jm_PREREQ): Use it.
92286
92287 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92288
92289         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92290         Use ssize_t, not int, to store result of readlink.
92291         Check for ssize_t overflow as well as size_t overflow,
92292         as POSIX says the result of readlink is implementation-defined
92293         when ssize_t overflows.
92294         Remove unnecessary cast to char*.
92295         Use free+malloc instead of realloc, as the storage doesn't need
92296         to be preserved and it's clearer and can be more efficient that way.
92297         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92298         * lib/xreadlink.h (xreadlink): Update prototype.
92299
92300 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92301
92302         * lib/xgetcwd.c: Revert some of the previous change; intead,
92303         fix the HAVE_GETCWD_NULL code to behave more like the
92304         !HAVE_GETCWD_NULL code used to.
92305
92306         Include "xalloc.h".
92307         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92308         invoke xalloc_die.
92309
92310 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92311
92312         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92313         sys/param.h, as pathmax.h includes them.
92314
92315 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92316
92317         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92318         (jm_PREREQ_XGETCWD): New macro.
92319
92320         * m4/getcwd.m4: New file.
92321
92322 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92323
92324         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92325         like the HAVE_GETCWD_NULL code.
92326         Include pathmax.h if not HAVE_GETCWD.
92327         Do not include xalloc.h.
92328         (INITIAL_BUFFER_SIZE): New symbol.
92329         Do not use xmalloc / xrealloc, since the caller is responsible for
92330         handling errors.  Preserve errno around `free' during failure.
92331         Do not overrun buffer when using getwd.
92332
92333 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92334
92335         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92336         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92337         getcwd (NULL, 0).
92338
92339 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92340
92341         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92342         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92343         spotted by Jim Meyering.
92344
92345 2001-09-03  Jim Meyering  <meyering@lucent.com>
92346
92347         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92348         failure.
92349
92350 2001-09-02  Jim Meyering  <meyering@lucent.com>
92351
92352         * lib/error.c: Update from GNU libc.
92353
92354 2001-09-01  Jim Meyering  <meyering@lucent.com>
92355
92356         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92357         Used by df.
92358
92359 2001-09-01  Jim Meyering  <meyering@lucent.com>
92360
92361         * lib/xreadlink.c: New file.
92362         * lib/xreadlink.h: New file.
92363         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92364         xreadlink.h.
92365
92366         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92367         doesn't conflict with sparc Solaris 7's definition in
92368         /usr/include/sys/int_types.h.
92369
92370         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92371         files.
92372         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92373         and strncasecmp as r-values.  Unixware didn't have declarations.
92374
92375 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92376
92377         * lib/xstrtol.h: Add copyright notice.
92378         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92379         LONGINT_INVALID_SUFFIX_CHAR.
92380
92381 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92382
92383         * lib/xstrtol.c (strtoimax): New decl.
92384
92385 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92386
92387         * lib/xgetcwd.c: Don't include pathmax.h.
92388         Include stdlib.h and unistd.h if available.
92389         Include xalloc.h.
92390         (xmalloc, xstrdup, free): Remove decls.
92391         (xgetcwd): Don't assume sizes fit in unsigned.
92392         Check for overflow when computing sizes.
92393         Simplify reallocation code.
92394
92395 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92396
92397         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92398         a directory's st_size can have an arbitrary value, so the old
92399         usage could waste an arbitrary amount of memory.  All uses
92400         changed.
92401         * lib/savedir.h: Update prototype.
92402
92403 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92404
92405         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92406
92407         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92408         old strtoimax.c.
92409
92410         Also, make the following further changes to make this file's
92411         configuration more similar to that of strtol.c:
92412         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92413         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92414         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92415         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92416         changed to signed values.
92417
92418         And make the following changes as well:
92419         Fix copyright notice, as 1999 was missing.
92420         (verify): New macro.
92421         (strtoimax): Check sizes at compile-time, not run-time.
92422         Prefer strtol to strtoll if both work.
92423         (main): Remove; it was not that useful and was a pain to maintain.
92424
92425         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92426
92427 2001-08-31  Jim Meyering  <meyering@lucent.com>
92428
92429         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92430         Use an initial, malloc'd, buffer of length 128 rather than
92431         a statically allocated one of length 1024.
92432
92433 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92434
92435         Simplify code, partly by assuming autoconf 2.52 semantics.
92436
92437         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92438
92439         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92440         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92441         All uses removed.
92442         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92443         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92444         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92445         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92446         jm_AC_HEADER_INTTYPES_H.
92447         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92448
92449         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92450
92451         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92452         Quote first arg of AC_DEFUN.
92453         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92454         since they are needed to parse the include file even if we need
92455         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92456         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92457         but with opposite signedness.
92458
92459 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92460
92461         Merge 'exclude' changes from tar 1.13.22.
92462         This fixes one or two unlikely storage allocation overflow bugs,
92463         but doesn't change user-visible behavior otherwise.
92464
92465 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92466
92467         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92468         (jm_PREREQ_EXCLUDE): New macro.
92469
92470 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92471
92472         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92473         tm to be declared.
92474
92475 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92476
92477         * lib/hash.c: Remove '2001' from copyright notice.
92478
92479 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92480
92481         * lib/full-write.h: New file.
92482         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92483         * lib/full-write.c: Correct credits, as cccp.c no longer
92484         exists and anyway it was so heavily changed from the old cccp
92485         code as to be unrecognizable.  Include full-write.h.
92486         (full_write): Return size_t, with short writes meaning failure.
92487         All callers changed.  This fixes a bug with large buffers
92488         on 64-bit hosts.
92489         * lib/utime.c: Include full-write.h.
92490
92491 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92492
92493         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92494         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92495         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92496         Include if available.
92497         (<xalloc.h>): Include
92498         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92499         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92500         collide with FNM macros.
92501         (struct patopts): New struct.
92502         (struct exclude): Use it, as exclude patterns now come with options.
92503         (new_exclude): Support above changes.
92504         (new_exclude, add_exclude_file):
92505         Initial size must now be a power of two to simplify overflow checking.
92506         (free_exclude, fnmatch_no_wildcards): New function.
92507         (excluded_filename): No longer requires options arg, as the options
92508         are determined by add_exclude.  Now returns bool, not int.
92509         (excluded_filename, add_exclude):
92510         Add support for the fancy new exclusion options.
92511         (add_exclude, add_exclude_file): Now takes int options arg.
92512         Check for arithmetic overflow when computing sizes.
92513         (add_exclude_file): xrealloc might modify errno, so don't
92514         realloc until after errno might be used.
92515
92516         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92517         New macros.
92518         (free_exclude): New decl.
92519         (add_exclude, add_exclude_file): Now takes int options arg.
92520         (excluded_filename): No longer requires options arg, as the options
92521         are determined by add_exclude.  Now returns bool, not int.
92522
92523 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92524
92525         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92526
92527 2001-08-27  Jim Meyering  <meyering@lucent.com>
92528
92529         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92530
92531         * lib/version-etc.c (N_): Remove definition.
92532         Revert most of last change.
92533         Instead, simply don't mark the `Copyright...' string for translation.
92534         Based on advice from Paul Eggert.
92535
92536         * lib/strtoxmax.c: Tweak comment.
92537
92538 2001-08-26  Jim Meyering  <meyering@lucent.com>
92539
92540         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92541
92542         * m4/xstrtoimax.m4: New file.
92543         * m4/xstrtoumax.m4: Add comments explaining why we
92544         AC_REPLACE_FUNCS(strtol).
92545
92546 2001-08-26  Jim Meyering  <meyering@lucent.com>
92547
92548         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92549         of copyright with `%s' so translators don't get an untranslated
92550         message in 2002.
92551         (COPYRIGHT_YEAR): Define.
92552         (version_etc): Use fprintf rather than fputs.
92553         Suggestion from Ulrich Drepper.
92554
92555         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92556
92557         * lib/strtoll.c: New file, from GNU libc.
92558         * lib/xstrtoimax.c: New file.
92559
92560         * lib/xstrtol.h: Add xstrtoimax.
92561         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92562         * lib/strtoimax.c: New file.  Likewise, but first define
92563         STRTOUXMAX_SIGNED.
92564
92565         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92566         ...
92567         * lib/strtoxmax.c: ... then renamed to this.
92568
92569 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92570
92571         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92572         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92573         (jm_AC_TYPE_INTMAX_T): New macro.
92574         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92575
92576         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92577
92578         * m4/longlong.m4: Renamed from ulonglong.m4.
92579         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92580         * m4/uintmax_t.m4: Removed.
92581
92582 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92583
92584         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92585         Port to Solaris 8, where 'sed' requires a space after the 'r'
92586         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92587         Redirect output to $tmp just once.
92588
92589 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92590
92591         * lib/addext.c (<errno.h>): Include.
92592         (errno): Declare if not defined.
92593         (addext): Work correctly when pathconf returns -1 and leaves
92594         errno alone because there is no limit.  Also, work even if
92595         pathconf returns a value greater than SIZE_MAX.
92596
92597 2001-08-12  Jim Meyering  <meyering@lucent.com>
92598
92599         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92600         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92601         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92602         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92603         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92604         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92605         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92606         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92607         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92608         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92609         utime.m4, utimes.m4, xstrtoumax.m4:
92610         Quote the first argument in each use of AC_DEFUN.
92611
92612 2001-08-12  Jim Meyering  <meyering@lucent.com>
92613
92614         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92615         Simply `return getcwd (NULL, 0);'.
92616         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92617         Use 1300 as initial value for length, not PATH_MAX.
92618
92619         * lib/pathmax.h: Clean up cpp syntax.
92620
92621 2001-08-12  Jim Meyering  <meyering@lucent.com>
92622
92623         * lib/gettimeofday.c: New file.
92624         * lib/gtod.h: New file.
92625         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92626
92627 2001-08-05  Jim Meyering  <meyering@lucent.com>
92628
92629         * m4/jm-macros.m4: Require autoconf-2.52.
92630
92631 2001-08-04  Jim Meyering  <meyering@lucent.com>
92632
92633         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92634         stmt, to get in sync with glibc.
92635
92636 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92637
92638         The following changes are from gettext 0.10.39 as maintained by
92639         Bruno Haible.
92640
92641         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92642         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92643         with inverted sense.  All uses changed.
92644
92645         * lib/mbswidth.c: Don't include <limits.h>.
92646         Include <stdlib.h> and <string.h> unconditionally.
92647         (iswcntrl, mbsinit, ISCNTRL): New macros.
92648         (mbsnwidth): Use K&R style function declarations.
92649         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92650         can optimize it when MB_CUR_MAX == 1.
92651         The width of control characters is zero, not 1.
92652
92653 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92654
92655         The following changes are from gettext 0.10.39 as maintained by
92656         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92657
92658         * m4/codeset.m4: Upgrade to serial AM1.
92659         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92660         all uses changed.  Quote first arg of AC_DEFUN.
92661         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92662
92663         * m4/iconv.m4: Upgrade to serial AM2.
92664         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92665         Add --with-libconv-prefix.
92666         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92667         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92668         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92669         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92670         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92671
92672         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92673         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92674         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92675         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92676         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92677         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92678         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92679         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92680         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92681
92682         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92683         string.h any more.
92684
92685         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92686         not the default value.
92687
92688         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92689         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92690         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92691         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92692         Also check for iswcntrl, used for wcwidth fallback.
92693         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92694         to Autoconf 2.13.
92695
92696 2001-08-03  Jim Meyering  <meyering@lucent.com>
92697
92698         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92699         as it was in the original.  Reported by Paul Eggert.
92700
92701 2001-07-16  Jim Meyering  <meyering@lucent.com>
92702
92703         * m4/gettimeofday.m4: New file.
92704         Prompted by a report from Bernhard Baehr.
92705
92706 2001-07-15  Jim Meyering  <meyering@lucent.com>
92707
92708         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92709         stuff. Now it's in ../Makefile.cfg.
92710
92711 2001-07-15  Jim Meyering  <meyering@lucent.com>
92712
92713         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92714         (BUILT_SOURCES): Add unlocked-io.h.
92715         (io_functions): Define.
92716         (unlocked-io.h): New rule.
92717         (DISTCLEANFILES): Add unlocked-io.h.
92718         (all-local): Depend on unlocked-io.h, to ensure it is created.
92719
92720         * lib/unlocked-io.hin: New file
92721
92722         * lib/regex.c: Update from glibc.
92723
92724 2001-07-05  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92727         recommendation.
92728         (libfetish_a_SOURCES): Put all .h files here instead.
92729         Remove a thus-exposed (better checks in automake) duplicate and
92730         two unnecessary .h files.
92731
92732 2001-07-04  Jim Meyering  <meyering@lucent.com>
92733
92734         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92735         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92736         distcheck failure.
92737
92738 2001-07-02  Jim Meyering  <meyering@lucent.com>
92739
92740         The following changes were prompted by suggestions from Bruno Haible.
92741
92742         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92743         is now generated.
92744         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92745         definition of EXTRA_DIST.
92746         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92747         ensure that the generated file is created/updated whenever the list
92748         of $(unlocked_functions) is changed.
92749         (jm-glibc-io.m4): New rule.
92750         (unlocked-io.h): New rule -- currently unused.
92751
92752 2001-06-24  Jim Meyering  <meyering@lucent.com>
92753
92754         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92755         unmatched right bracket, rather than kludging it with an extra,
92756         falsely-matching quote in a comment.  Patch by Akim Demaille.
92757
92758 2001-06-11  Jim Meyering  <meyering@lucent.com>
92759
92760         * lib/regex.c: Update from GNU libc.
92761
92762 2001-05-27  Jim Meyering  <meyering@lucent.com>
92763
92764         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92765         Check for ut_type in struct utmp.
92766
92767 2001-05-27  Jim Meyering  <meyering@lucent.com>
92768
92769         * lib/readutmp.h (UT_TYPE): Define.
92770
92771 2001-05-24  Jim Meyering  <meyering@lucent.com>
92772
92773         * lib/argmatch.c: Include "quote.h".
92774         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92775         quote function.  Reported by Göran Uddeborg.
92776
92777 2001-05-22  Jim Meyering  <meyering@lucent.com>
92778
92779         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92780         now that we use the package-supplied version unconditionally.
92781         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92782
92783 2001-05-21  Jim Meyering  <meyering@lucent.com>
92784
92785         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92786         shell syntax errors.
92787
92788 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92789
92790         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92791
92792 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92793
92794         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92795         Don't bother to check library strftime, since
92796         we'll be using our own my_strftime function anyway.
92797         Define my_strftime instead of strftime.
92798
92799 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92800
92801         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92802         which is not yet declared.
92803
92804 2001-05-15  Jim Meyering  <meyering@lucent.com>
92805
92806         * m4/regex.m4: Use proper quoting so brackets appear in the test
92807         program.
92808         Reported by, and with help from, Bruno Haible.
92809
92810 2001-05-13  Jim Meyering  <meyering@lucent.com>
92811
92812         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92813         undefined.
92814
92815 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92816
92817         dirname code cleanup.  base_name now behaves more compatibly
92818         with POSIX basename when given file names that have trailing
92819         slashes, and similarly for dir_name.  Add new primitives
92820         base_len and dir_len.  Put the directory-name-related decls
92821         into dirname.h.
92822
92823         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92824         * lib/backupfile.c (base_name): Likewise.
92825         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92826         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92827         * lib/makepath.c (strip_trailing_slashes): Likewise.
92828         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92829         ISSLASH): Likewise.
92830         * lib/rename.c (strip_trailing_slashes): Likewise.
92831         * lib/same.c (base_name): Likewise.
92832         * lib/stripslash.c (ISSLASH): Likewise.
92833
92834         * lib/addext.c: Include <dirname.h> after size_t is defined.
92835         * lib/backupfile.c: Likewise.
92836
92837         * lib/addext.c (addext): Use base_len to trim redundant
92838         trailing slashes instead of doing it ourselves.
92839         But do not trim the last slash if it is not redundant.
92840
92841         * lib/backupfile.c (find_backup_file_name,
92842         max_backup_version): Use base_len instead of rolling it ourselves.
92843         Handle the case of "" and (on DOS) "C:" correctly.
92844
92845         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92846         needed. Include <string.h>, <dirname.h>.
92847         (base_name): Allow file names ending in slashes, other than names
92848         that are all slashes.  In this case, return the basename followed
92849         by the slashes.  This is more general, and can be used in places
92850         where the original base_name purposely had an assertion failure.
92851         (base_len): New function.
92852
92853         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92854         Do not include <assert.h>; no longer needed.
92855         Include xalloc.h.
92856         (memrchr): Remove decl.
92857         (dir_name_r): Remove.
92858         (dir_len): Renamed from dirlen.  All callers changed.
92859         Rewrite in terms of base_name, for simplicity and consistency.
92860         (dir_name): Never return NULL.  All callers changed.
92861         Do not include <stdlib.h> in test program; no longer needed.
92862         return 0; is fine for test program.
92863
92864         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92865         New macros.
92866         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92867
92868         * lib/path-concat.c (path_concat): Use base_len to compute
92869         base length, not strlen; this means we cannot rely on memcpy
92870         to null-terminate.
92871
92872         * lib/same.c (STREQ): Remove.
92873         (same_name): Handle the case where the basename ends in trailing '/'.
92874
92875         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92876         a slash was stripped.  Do not strip the last slash after a
92877         file system prefix.
92878
92879 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92880
92881         * lib/Makefile.am (libfetish_a_SOURCES):
92882         Add strftime.c, since we now compile it on all hosts.
92883
92884         * lib/strftime.c (my_strftime):
92885         Define to nstrftime if emacs, but only if my_strftime is not defined.
92886         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92887         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92888         Add one more extra argument: a nanoseconds value.
92889         All uses changed.
92890         (ns): New macro.
92891         (my_strftime function): Add %N format.
92892         (emacs_strftimeu): Renamed from emacs_strftime,
92893         with extra ut argument.
92894
92895 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92896
92897         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92898
92899 2001-04-21  Jim Meyering  <meyering@lucent.com>
92900
92901         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92902         doesn't interfere.
92903
92904 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92905
92906         * m4/ftruncate.m4: Check for chsize.
92907         Link with ftruncate.o unconditionally if ftruncate is missing.
92908         This was required when cross-compiling to i586-mingw32msvc.
92909
92910 2001-04-08  Jim Meyering  <meyering@lucent.com>
92911
92912         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92913         recomputed; that's necessary when the offset spans a DST transition.
92914         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92915
92916 2001-04-02  Jim Meyering  <meyering@lucent.com>
92917
92918         * lib/regex.h, regex.c: Update from GNU libc.
92919
92920 2001-03-24  Jim Meyering  <meyering@lucent.com>
92921
92922         * m4/jm-macros.m4: Require autoconf-2.49d.
92923
92924 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92925
92926         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92927
92928 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92929
92930         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92931
92932 2001-03-17  Jim Meyering  <meyering@lucent.com>
92933
92934         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92935         now that the version in autoconf is equivalent.
92936         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92937
92938         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92939         Suggestion from Akim Demaille.
92940
92941         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92942         (jm_PREREQ_TEMPNAME): New function.
92943
92944 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92945
92946         * lib/tempname.c (uint64_t): Define to uintmax_t if
92947         not defined, and if UINT64_MAX is not defined.
92948         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92949         Reported by John David Anglin.
92950
92951 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92952
92953         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92954         resolve alias if codeset is empty.
92955         * lib/config.charset (BeOS): Use wildcard syntax.
92956
92957 2001-03-13  Jim Meyering  <meyering@lucent.com>
92958
92959         * lib/path-concat.c (path_concat)
92960         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92961         concatenating e.g., `C:' and `foo'.
92962         From Bruno Haible.
92963
92964 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92965
92966         * lib/localcharset.c (locale_charset): Don't use
92967         setlocale(LC_CTYPE,NULL). Don't return NULL.
92968         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92969
92970 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92971
92972         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92973         support for DOS/DJGPP.
92974
92975 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92976
92977         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92978         lacks mkstemp.  Compile our own tempname.c if we compile our own
92979         mkstemp.c, as mkstemp relies on tempname.
92980
92981 2001-03-01  Jim Meyering  <meyering@lucent.com>
92982
92983         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92984         AH_VERBATIM really does output its argument verbatim.
92985
92986 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92987
92988         * lib/Makefile.am (libfetish_a_SOURCES):
92989         Add dup-safer.c, fopen-safer.c.
92990         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92991
92992         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92993         * lib/unistd-safer.h: New files.
92994
92995 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92996
92997         The mkstemp replacement is taken from glibc 2.2.2, with some
92998         portability fixes for use outside glibc, as follows:
92999
93000         * lib/tempname.c (struct_stat64): New macro.
93001         (direxists, __gen_tempname): Use it.
93002         This avoids a portability problem with Solaris 8.
93003
93004         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93005         (<stddef.h>, <stdint.h>, <string.h>):
93006         Include only if STDC_HEADERS || _LIBC.
93007         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93008         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93009         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93010         (__set_errno): Define this macro if <errno.h> doesn't.
93011         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93012         Define these macros if <stdio.h> doesn't.
93013         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93014         Define these macros if <sys/stat.h>
93015         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93016         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93017         __xstat64): Define if not _LIBC.
93018         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93019         (__gen_tempname): Invoke gettimeofday only if
93020         HAVE_GETTIMEOFDAY || _LIBC;
93021         otherwise, fall back on plain "time".
93022         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93023
93024         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93025
93026         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93027
93028 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93029
93030         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93031
93032 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93033
93034         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93035         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93036         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93037         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93038
93039 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93040
93041         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93042         Remove workaround macros for hosts that have mbrtowc but not
93043         mbstate_t, as we now insist on proper declarations for both
93044         before using mbrtowc.
93045
93046 2001-02-17  Jim Meyering  <meyering@lucent.com>
93047
93048         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93049         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93050         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93051         UnixWare 7.1.1.
93052
93053         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93054         rather than AC_CACHE_VAL.
93055
93056 2001-02-17  Jim Meyering  <meyering@lucent.com>
93057
93058         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93059         around included file name.
93060
93061         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93062
93063         * lib/strftime.c: Update from GNU libc (the only changes were to
93064         comments).
93065
93066 2001-02-17  Jim Meyering  <meyering@lucent.com>
93067
93068         * lib/regex.c: Update from libc.
93069
93070 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93071
93072         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93073         clash.
93074
93075 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93076
93077         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93078         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93079         Reported by Mark Hounschell via Paul Eggert.
93080
93081 2001-02-07  Jim Meyering  <meyering@lucent.com>
93082
93083         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93084
93085 2001-02-05  Jim Meyering  <meyering@lucent.com>
93086
93087         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93088         it includes the patch required for `large file' support with at least
93089         HP-UX's 10.20 /bin/cc.
93090
93091 2001-02-03  Jim Meyering  <meyering@lucent.com>
93092
93093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93094         AS_IF, now that it works once again (mysteriously).
93095         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93096
93097 2001-01-30  Jim Meyering  <meyering@lucent.com>
93098
93099         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93100         * m4/chown.m4: Rename conftestchown to conftest.chown.
93101         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93102         s/conftestdir2/conftest.d2/.
93103         * m4/utimes.m4: s/conftestdata/conftest.data/
93104         Inspired by Pavel Roskin's change in autoconf.
93105
93106 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93107
93108         * lib/config.charset: Update for FreeBSD 4.2.
93109
93110 2001-01-27  Jim Meyering  <meyering@lucent.com>
93111
93112         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93113         a use of AS_IF.
93114         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93115
93116 2001-01-26  Jim Meyering  <meyering@lucent.com>
93117
93118         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93119         quotearg.c includes it.
93120
93121 2001-01-26  Jim Meyering  <meyering@lucent.com>
93122
93123         * lib/quotearg.c: Include stddef.h.
93124         * lib/quote.c: Include stddef.h.
93125         Reported by Axel Kittenberger.
93126
93127         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93128         line in double quotes so that it evokes a better diagnostic.
93129         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93130         Reported by Axel Kittenberger.
93131
93132 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93133
93134         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93135         as if it was a `charset'.
93136
93137 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93138
93139         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93140         has const.
93141
93142 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93143
93144         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93145         to avoid a warning.  Add back 'const' to inptr.
93146
93147 2001-01-20  Jim Meyering  <meyering@lucent.com>
93148
93149         Be sure that headers are checked before used in code compiled
93150         for the type checks.
93151         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93152         In place of that, invoke jm_CHECK_ALL_TYPES.
93153         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93154         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93155         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93156         The check for ssize_t was mistakenly run before the test for unistd.h.
93157
93158         The configure-time check for stdbool.h was missing.
93159         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93160         (jm_PREREQ_HASH): New function.
93161
93162 2001-01-17  Jim Meyering  <meyering@lucent.com>
93163
93164         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93165         for autoconf-2.49c.
93166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93167
93168 2001-01-16  Jim Meyering  <meyering@lucent.com>
93169
93170         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93171         From Bruno Haible.
93172
93173 2001-01-14  Jim Meyering  <meyering@lucent.com>
93174
93175         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93176         foo and bar.  Create conftestdir/ in the script, not in the C code.
93177         Remove directories in the script, not in the C code.
93178         Remove conftestdir{,2} before trying to create the directory.
93179         Make the entire configure script fail if the mkdir fails.
93180
93181 2001-01-14  Jim Meyering  <meyering@lucent.com>
93182
93183         * lib/rename.c: New file.  From Volker Borchert.
93184         Include stdlib.h, string.h or strings.h, and xalloc.h.
93185         Use strip_trailing_slashes rather than open-coding it.
93186
93187 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93188
93189         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93190
93191 2001-01-03  Jim Meyering  <meyering@lucent.com>
93192
93193         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93194         of local `inptr' to avoid warning with some system declarations of
93195         iconv.
93196
93197 2001-01-02  Volker Borchert  <bt@teknon.de>
93198
93199         * m4/rename.m4: New file.
93200         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93201
93202 2001-01-01  Jim Meyering  <meyering@lucent.com>
93203
93204         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93205         even on systems with utmpx.h.  It's necessary for the declaration of
93206         utmp's ut_user member.  Reported by Andreas Jaeger.
93207
93208         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93209         available. They are required for the declarations of getgrgid and
93210         getpwuid resp.
93211         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93212         Reported by Andreas Jaeger.
93213
93214 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93215
93216         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93217         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93218         so `make install' also works in VPATH builds.
93219
93220 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93221
93222         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93223         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93224         can be used in subdirectories.
93225
93226 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93227
93228         * lib/modechange.c: Do not assume that mode_t uses the
93229         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93230         the other-execute bit of FOO even if S_IXOTH != 1.
93231
93232         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93233         WOTH, XOTH, ALLM): New macros.
93234         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93235          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93236         Use them.
93237         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93238         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93239         (mode_compile):
93240         No need to use uintmax_t; unsigned long is long enough.
93241         Don't bother to get suffix since we don't use it.
93242
93243 2000-12-26  Jim Meyering  <meyering@lucent.com>
93244
93245         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93246         better with autoheader.
93247
93248 2000-12-24  Jim Meyering  <meyering@lucent.com>
93249
93250         * lib/hash.c (is_prime): Return explicit boolean values.
93251         (hash_get_first): Return NULL to appease Irix5.6's 89.
93252         Reported by Nelson Beebe.
93253
93254 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93255
93256         * lib/localcharset.c (locale_charset): Add support for Win32.
93257
93258 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93259
93260         * lib/physmem.h, lib/physmem.c: New files.
93261
93262         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93263         (noinst_HEADERS): Add physmem.h.
93264
93265         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93266         't' for compatibility with Solaris 8 sort.
93267
93268 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93269
93270         * lib/config.charset: Add support for BeOS.
93271
93272 2000-12-17  Jim Meyering  <meyering@lucent.com>
93273
93274         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93275         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93276
93277 2000-12-16  Jim Meyering  <meyering@lucent.com>
93278
93279         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93280         N and M) would have treated it like `chown N:N FILE'.
93281
93282         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93283
93284 2000-12-16  Jim Meyering  <meyering@lucent.com>
93285
93286         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93287         SHELLS_FILE to a file name that's useful on djgpp systems.
93288         Include stdlib.h.
93289         (ADDITIONAL_DEFAULT_SHELLS): Define.
93290         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93291         Based mostly on a patch from Prashant TR.
93292
93293 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93294
93295         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93296         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93297         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93298
93299 2000-12-08  Andreas Schwab  <schwab@suse.de>
93300
93301         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93302         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93303
93304 2000-12-07  Jim Meyering  <meyering@lucent.com>
93305
93306         * lib/stripslash.c (ISSLASH): Define.
93307         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93308         `/'.
93309         From Prashant TR.
93310
93311         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93312         (dir_name_r): Declare this function as static.
93313         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93314         manifest itself on a name containing a mix of slashes and
93315         backslashes.
93316         Make this function work with names starting with a DOS-style
93317         drive letter and colon prefix.
93318         (dir_name): Append `.' if necessary.
93319         Based mostly on patches from Prashant TR and Eli Zaretskii.
93320
93321         * lib/dirname.h (dir_name_r): Remove prototype.
93322
93323 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93324
93325         * m4/off_t-format.m4: Remove this file.
93326         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93327
93328 2000-12-06  Jim Meyering  <meyering@lucent.com>
93329
93330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93331         replacement strtoull, we may well need the replacement strtoul, too.
93332         Check for declarations of strtoul and strtoull.
93333         Check for strtol.  Mainly as a cue to cause automake to include
93334         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93335         Check for limits.h -- strtol.c needs it.
93336
93337 2000-12-05  Jim Meyering  <meyering@lucent.com>
93338
93339         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93340
93341 2000-12-04  Jim Meyering  <meyering@lucent.com>
93342
93343         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93344         Also include memory.h, stdlib.h, unistd.h if appropriate.
93345         Reported by Andreas Jaeger (conflicting declaration of malloc).
93346
93347 2000-12-02  Jim Meyering  <meyering@lucent.com>
93348
93349         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93350         * m4/jm-macros.m4 (jm_MACROS): require it.
93351
93352 2000-12-02  Jim Meyering  <meyering@lucent.com>
93353
93354         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93355
93356 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93357
93358         * lib/memrchr.c: Include <config.h> before any system include file.
93359
93360 2000-11-30  Jim Meyering  <meyering@lucent.com>
93361
93362         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93363
93364 2000-11-30  Jim Meyering  <meyering@lucent.com>
93365
93366         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93367
93368 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93369
93370         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93371
93372 2000-11-26  Jim Meyering  <meyering@lucent.com>
93373
93374         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93375
93376 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93377
93378         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93379         size of (size_t) -1; it's not portable.
93380
93381 2000-11-17  Jim Meyering  <meyering@lucent.com>
93382
93383         * lib/strstr.c: Update from GNU libc.
93384
93385 2000-11-17  Akim Demaille  <akim@epita.fr>
93386
93387         * lib/obstack.h: Formatting changes.
93388         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93389         prevent type checking.
93390         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93391         cast the value to (void *): assigning a `foo *' to a `void *'
93392         variable is valid.
93393         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93394
93395 2000-11-16  Jim Meyering  <meyering@lucent.com>
93396
93397         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93398
93399 2000-11-11  Jim Meyering  <meyering@lucent.com>
93400
93401         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93402
93403 2000-11-10  Jim Meyering  <meyering@lucent.com>
93404
93405         * lib/obstack.h: Update from GNU libc.
93406         * lib/obstack.c: Likewise.
93407
93408 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93409
93410         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93411
93412 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93413
93414         * lib/getusershell.c (setusershell): Use rewind rather than
93415         fseek/fseeko, to avoid configuration hassles with fseeko.
93416         Don't bother opening SHELLS_FILE if shellstream is NULL;
93417         it's not necessary.
93418
93419 2000-11-05  Jim Meyering  <meyering@lucent.com>
93420
93421         * lib/makepath.h (make_dir): Declare.
93422         * lib/makepath.c (make_dir): Remove `static' attribute.
93423         Tweak a comment.
93424
93425 2000-11-04  Jim Meyering  <meyering@lucent.com>
93426
93427         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93428
93429 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93430
93431         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93432         last one in a bucket, advance to the next bucket.
93433
93434 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93435
93436         * lib/fnmatch.c: Do not comment out all the code if we are using
93437         the GNU C library, because in some cases we are replacing buggy
93438         code in the GNU C library itself.
93439
93440 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93441
93442         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93443         (regex_compile): Catch bogus \(\1\).
93444
93445 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93446
93447         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93448         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93449         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93450
93451 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93452
93453         * lib/error.h, getline.h, modechange.h:
93454         Remove "2000" from Copyright line, as the file hasn't been
93455         changed this year other than in the copyright notice.
93456
93457         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93458         was changed this year.
93459
93460 2000-10-29  Jim Meyering  <meyering@lucent.com>
93461
93462         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93463         renaming.
93464         * m4/ls-mntd-fs.m4: Likewise
93465
93466 2000-10-29  Jim Meyering  <meyering@lucent.com>
93467
93468         * lib/xstat.in: Fix grammar in comment.
93469
93470 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93471
93472         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93473         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93474         doesn't define __restrict_arr.
93475
93476 2000-10-28  Jim Meyering  <meyering@lucent.com>
93477
93478         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93479         (jm_PREREQ_MEMCHR): New function.
93480
93481 2000-10-28  Jim Meyering  <meyering@lucent.com>
93482
93483         * lib/memchr.c: Update from libc.
93484         Adjust for portability:
93485         [HAVE_STDLIB_H]: Include stdlib.h.
93486         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93487         Undef __memchr, too.
93488         [!weak_alias]: Define __memchr to memchr.
93489
93490         * lib/regex.c: Update from libc.
93491         * lib/regex.h: Likewise.
93492         * lib/getopt1.c: Likewise.
93493         * lib/memcmp.c: Likewise.
93494
93495         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93496         Avoid using fseek, when possible -- it's broken by design.
93497         Patch by Ulrich Drepper.
93498
93499 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93500
93501         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93502         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93503         Giving in to popular pressure to shut up the compiler with casts.
93504
93505 2000-10-26  Jim Meyering  <meyering@lucent.com>
93506
93507         * lib/strftime.c: Update from libc.
93508
93509 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93510
93511         * regex.c: More `unsigned char' -> `re_char' changes.
93512         Also change several `int' into `re_wchar_t'.
93513         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93514         (PUSH_FAILURE_POINTER): Don't cast any more.
93515         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93516         We want GCC to complain, since this piece of code makes
93517         re_match non-reentrant, which *should* be fixed.
93518         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93519         (EXTEND_BUFFER): Use RETALLOC.
93520         (SET_LIST_BIT): Don't cast.
93521         (re_wchar_t): New type.
93522         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93523         that those two functions will always properly return.
93524         (IMMEDIATE_QUIT_CHECK): Cast to void.
93525         (analyse_first): Use recursion rather than an explicit stack.
93526         (re_compile_fastmap): Can't fail anymore.
93527         (re_search_2): Don't check re_compile_fastmap for failure.
93528         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93529         Now also sets the new value (passed in a new argument).
93530         (re_match_2_internal): Use it.
93531         Also, use a new var `reg' of type size_t when looping through regs
93532         rather than reuse the inappropriate `mcnt'.
93533
93534 2000-10-25  Jim Meyering  <meyering@lucent.com>
93535
93536         * lib/obstack.c: Update from libc.
93537
93538 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93539
93540         * regex.c (regex_compile): Change the way of handling a range from
93541         a char less than 256 to a char not less than 256.
93542
93543 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93544
93545         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93546         NT-Emacs only.
93547         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93548         so that re_search functions only quit when callers expect them to.
93549
93550 2000-10-23  Jim Meyering  <meyering@lucent.com>
93551
93552         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93553         wrong.  That set_locale call must not have any side effects.
93554         From Paul Eggert.
93555
93556 2000-10-22  Jim Meyering  <meyering@lucent.com>
93557
93558         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93559         [CYCLIC]: Remove now-unused definition.
93560
93561         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93562         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93563         Suggestion from Ulrich Drepper.
93564
93565 2000-10-21  Jim Meyering  <meyering@lucent.com>
93566
93567         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93568         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93570
93571 2000-10-21  Jim Meyering  <meyering@lucent.com>
93572
93573         * lib/dirname.c (memrchr): Declare if necessary.
93574         (dir_name): Remove the restriction that there be no
93575         trailing slashes.  Now, this code skips past them, effectively
93576         ignoring them.
93577         [TEST_DIRNAME] (main): New unit tests.
93578
93579         * lib/memrchr.c: New file from GNU libc.
93580         Undef __memrchr, too.
93581         [!weak_alias]: Define __memrchr to memrchr.
93582         Guard weak_alias use with `#ifdef weak_alias'.
93583
93584 2000-10-21  Jim Meyering  <meyering@lucent.com>
93585
93586         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93587         (dir_name): Use dir_name_r.
93588         * lib/dirname.h (dir_name_r): Declare it.
93589
93590 2000-10-17  Jim Meyering  <meyering@lucent.com>
93591
93592         * lib/quote.h (PARAMS): Define and use.
93593         Reported by Akim Demaille.
93594
93595         * lib/getopt.c: Update from libc.
93596
93597 2000-10-16  Jim Meyering  <meyering@lucent.com>
93598
93599         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93600         setlocale.
93601         From Jan Fedak.
93602
93603 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93604
93605         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93606
93607 2000-09-25  Jim Meyering  <meyering@lucent.com>
93608
93609         * lib/md5.h (rol): Define (from GnuPG).
93610
93611         * lib/sha.c: Give credit (GnuPG) where due.
93612         (M): Use rol rather than open-coding it.
93613         Add a FIXME comment.
93614
93615 2000-09-21  Jim Meyering  <meyering@lucent.com>
93616
93617         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93618         Reported by Michael Stone.
93619
93620 2000-09-20  Jim Meyering  <meyering@lucent.com>
93621
93622         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93623         (noinst_HEADERS): Add sha.h.
93624         Based on code from Scott G. Miller and from GnuPG.
93625
93626 2000-09-18  Jim Meyering  <meyering@lucent.com>
93627
93628         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93629         LIBS. Otherwise, everyone ends up linking with -lelf for some
93630         configurations.
93631         Reported by Mike Stone.
93632
93633 2000-09-15  Jim Meyering  <meyering@lucent.com>
93634
93635         * lib/regex.c: Update from libc.
93636
93637 2000-09-10  Jim Meyering  <meyering@lucent.com>
93638
93639         * lib/getopt.c (_getopt_internal): Update from glibc.
93640
93641 2000-09-09  Jim Meyering  <meyering@lucent.com>
93642
93643         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93644         think it should be used as a general replacement for isascii.
93645         * lib/fnmatch.c: Likewise.
93646         * lib/mbswidth.c: Likewise
93647         * lib/regex.c: Likewise.
93648
93649         Don't use atoi.
93650         * lib/userspec.c: Include sys/param.h and limits.h.
93651         Include xstrtol.h.
93652         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93653         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93654         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93655         UID, GID.  Check range.
93656
93657 2000-09-06  Jim Meyering  <meyering@lucent.com>
93658
93659         * lib/getopt.c (_getopt_internal): Update from glibc.
93660
93661 2000-08-30  Jim Meyering  <meyering@lucent.com>
93662
93663         * lib/strftime.c: Merge in changes from GNU libc.
93664
93665 2000-08-26  Jim Meyering  <meyering@lucent.com>
93666
93667         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93668         * m4/fpending.m4: New file.
93669
93670 2000-08-26  Jim Meyering  <meyering@lucent.com>
93671
93672         * lib/closeout.c: Include "__fpending.h".
93673         (close_stdout_status): Return right away if there's nothing to flush.
93674
93675         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93676         * lib/__fpending.c: New file.
93677         * lib/__fpending.h: New file.
93678
93679 2000-08-20  Jim Meyering  <meyering@lucent.com>
93680
93681         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93682         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93683         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93684
93685 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93686
93687         Improve fileutils installation on systems where running
93688         programs (like install) can't be unlinked.
93689         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93690         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93691
93692 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93693
93694         Standardize on "memory exhausted" instead of "Memory exhausted"
93695         or "virtual memory exhausted".
93696         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93697         "virtual memory exhausted".
93698         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93699         our own message.
93700         * lib/userspec.c (parse_user_spec): Likewise.
93701         * lib/bumpalloc.h: comment fix
93702         * lib/same.c, userspec.c: Include xalloc.h.
93703
93704         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93705         not char *const and pointing to a constant array.
93706         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93707         (xrealloc): Comment fix.
93708
93709         * lib/userspec.c (parse_user_spec):
93710         Don't translate a message until just before returning,
93711         to avoid unnecessary translation.
93712
93713 2000-08-07  Jim Meyering  <meyering@lucent.com>
93714
93715         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93716         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93717         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93718         getgroups.c, gethostname.c, getopt.h, group-member.c,
93719         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93720         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93721         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93722         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93723         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93724         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93725         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93726         yesno.c: Back out Copyright date changes for each file with no change
93727         this year.  This eases coordination with other programs using the same
93728         source code modules.  From Paul Eggert.
93729
93730 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93731
93732         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93733         not char, for compatibility with glibc 2.1.3 strftime.c.
93734
93735 2000-08-03  Greg McGary  <greg@mcgary.org>
93736
93737         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93738         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93739         (EXTEND_BUFFER): Use them.
93740
93741 2000-08-01  Jim Meyering  <meyering@lucent.com>
93742
93743         * lib/dirname.c (ISSLASH): Define.
93744         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93745         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93746         both `\' and `/' may be use as path separators.
93747         Based on a patch from Prashant TR.
93748
93749 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93750
93751         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93752         slot vector a constant, since it might get modified.
93753
93754 2000-07-31  Jim Meyering  <meyering@lucent.com>
93755
93756         * lib/xmalloc.c: Use `virtual memory exhausted', not
93757         `Memory exhausted'.
93758         * lib/obstack.c (print_and_abort): Likewise.
93759
93760 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93761
93762         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93763         buffer, so that the caller can always quote one small
93764         component of a "memory exhausted" message in slot 0.
93765         From a suggestion by Jim Meyering.
93766
93767 2000-07-30  Jim Meyering  <meyering@lucent.com>
93768
93769         * lib/makepath.c (make_path): Quote the other instance, too.
93770
93771         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93772         (STATIC_BUF_SIZE): Define.
93773         (quotearg_n_options): Use only statically allocated storage when
93774         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93775         than STATIC_BUF_SIZE.
93776
93777 2000-07-29  Jim Meyering  <meyering@lucent.com>
93778
93779         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93780         * lib/dirname.c (dir_name): Likewise.
93781
93782         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93783         `/'.
93784
93785         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93786         (dir_name): Assert that there are no trailing slashes.
93787
93788 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93789
93790         * lib/mbswidth.h (mbswidth): Add a flags argument.
93791         (mbswidth): New declaration.
93792         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93793         * lib/mbswidth.c (mbswidth): Add a flags argument.
93794         (mbsnwidth): New function.
93795
93796 2000-07-24  Jim Meyering  <meyering@lucent.com>
93797
93798         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93799
93800 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93801
93802         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93803
93804 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93805
93806         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93807         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93808         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93809         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93810         invoke multibyte primitives.
93811
93812 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93813
93814         * lib/quotearg.c:
93815         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93816         so that mbstate_t is always defined.
93817
93818         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93819         be 1 in at least one GCC installation, and this configuration
93820         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93821         performance on hosts that have mbrtowc but have only unibyte
93822         locales, but I assume these hosts are rare.
93823
93824 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93825
93826         * lib/mbswidth.c (_XOPEN_SOURCE):
93827         Don't define; this causes problems on Solaris 7.
93828         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93829
93830 2000-07-23  Jim Meyering  <meyering@lucent.com>
93831
93832         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93833         too: getgrgid, getpwuid, getuid.
93834
93835 2000-07-23  Jim Meyering  <meyering@lucent.com>
93836
93837         * lib/basename.c (base_name): Add an assertion.
93838
93839 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93840
93841         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93842         shadow its mbsinit function.
93843
93844 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93845
93846         * lib/mbswidth.h: New file.
93847         * lib/mbswidth.c: New file.
93848         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93849         (noinst_HEADERS): Add mbswidth.h.
93850
93851 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93852
93853         * lib/config.charset: Add support for FreeBSD. Improve support for
93854         HP-UX and IRIX 6.
93855
93856 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93857
93858         * m4/mbswidth.m4: New file.
93859         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93860
93861 2000-07-15  Jim Meyering  <meyering@lucent.com>
93862
93863         * lib/makepath.c: Include quote.h.
93864         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93865         corresponding argument in a `quote (...)' call.
93866         Give better diagnostics.
93867
93868         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93869         (noinst_HEADERS): Add quote.h.
93870
93871         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93872         from tar's src/misc.c.
93873         * lib/quote.h: New file.  Prototypes for same.
93874
93875 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93876
93877         From a suggestion by Bruno Haible.
93878         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93879         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93880         to decide whether to define the BeOS workaround macro;
93881         this adjusts to the change to AC_MBSTATE_T.
93882
93883 2000-07-14  Jim Meyering  <meyering@lucent.com>
93884
93885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93886         jm_AC_TYPE_UINTMAX_T.
93887
93888 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93889
93890         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93891
93892         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93893         quotearg_buffer_restyled): Add support for
93894         clocale_quoting_style.  Undo previous change to
93895         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93896         and "{RIGHT QUOTATION MARK}" msgids.
93897
93898 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93899
93900         From a suggestion by Bruno Haible.
93901         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93902         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93903         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93904         and mbstate_t, to a single-part test that simply defines mbstate_t.
93905         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93906         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93907
93908 2000-07-10  Jim Meyering  <meyering@lucent.com>
93909
93910         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93911
93912         * m4/gnu-source.m4: Output to confdefs.h directly.
93913         Suggestion from Akim Demaille.
93914
93915 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93916
93917         The old behavior of quoting `like this' doesn't look good with
93918         newer, ISO-style fonts.  See:
93919         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93920
93921         Instead, quote "like this" by default.  Let the translator
93922         tailor the locale-specific quoting behavior by providing
93923         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93924
93925         * lib/quotearg.c (N_): New macro.
93926         (gettext_default): New function.
93927         (quotearg_buffer_restyled): Use
93928         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93929         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93930
93931 2000-07-09  Jim Meyering  <meyering@lucent.com>
93932
93933         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93934         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93935
93936         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93938
93939 2000-07-09  Jim Meyering  <meyering@lucent.com>
93940
93941         * lib/Most files: Update copyright dates to include 2000.
93942
93943 2000-07-08  Jim Meyering  <meyering@lucent.com>
93944
93945         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93946         if not defined.
93947         (xgethostname): Remove now-unnecessary #ifdef.
93948         Move declaration of `err' into loop where it's used.
93949
93950 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93951         and Bruno Haible  <haible@clisp.cons.org>
93952
93953         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93954         only if the test for an object-type mbstate_t fails.  This
93955         prevents us from mistakenly reporting that mbstate_t is a
93956         system object type after we "#define mbstate_t int" to work
93957         around its lack.
93958
93959 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93960         and Bruno Haible  <haible@clisp.cons.org>
93961
93962         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93963
93964 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93965
93966         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93967         to strerror_r.
93968         Include <ctype.h> for use of isalpha.
93969
93970 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93971
93972         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93973         by allocating a larger buffer. Test the gethostname return value for
93974         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93975         returns an error and ENAMETOOLONG isn't defined.
93976
93977 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93978
93979         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93980         dimension.
93981
93982 2000-07-04  Jim Meyering  <meyering@lucent.com>
93983
93984         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93985         of the deprecated AC_CHECKING.
93986
93987 2000-07-04  Jim Meyering  <meyering@lucent.com>
93988
93989         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93990         Reported by Bruno Haible.
93991
93992 2000-07-04  Jim Meyering  <meyering@lucent.com>
93993
93994         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93995         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93996         lacks mbrtowc.
93997
93998 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93999
94000         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94001         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94002
94003 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94004         and Bruno Haible  <haible@clisp.cons.org>
94005
94006         * lib/quotearg.c (mbrtowc):
94007         Assign to *pwc, and return 1 only if result is nonzero.
94008         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94009
94010 2000-07-03  Jim Meyering  <meyering@lucent.com>
94011
94012         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94013
94014 2000-07-03  Jim Meyering  <meyering@lucent.com>
94015
94016         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94017         This is necessary to get a definition of e.g., UTMP_FILE on
94018         HP-UX 10.20.
94019         From Bob Proulx.
94020
94021 2000-07-02  Jim Meyering  <meyering@lucent.com>
94022
94023         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94024
94025         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94026         AC_LIBOBJ(function_name).
94027         * m4/chown.m4: Likewise.
94028         * m4/fnmatch.m4: Likewise.
94029         * m4/ftruncate.m4: Likewise.
94030         * m4/getgroups.m4: Likewise.
94031         * m4/getline.m4: Likewise.
94032         * m4/group-member.m4: Likewise.
94033         * m4/jm-macros.m4: Likewise.
94034         * m4/lstat.m4: Likewise.
94035         * m4/malloc.m4: Likewise.
94036         * m4/memcmp.m4: Likewise.
94037         * m4/nanosleep.m4: Likewise.
94038         * m4/putenv.m4: Likewise.
94039         * m4/realloc.m4: Likewise.
94040         * m4/regex.m4: Likewise.
94041         * m4/stat.m4: Likewise.
94042         * m4/strftime.m4: Likewise.
94043
94044 2000-07-02  Jim Meyering  <meyering@lucent.com>
94045
94046         * lib/quotearg.c (mbstate_t): Don't define here.
94047
94048 2000-07-02  Jim Meyering  <meyering@lucent.com>
94049
94050         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94051
94052 2000-07-01  Jim Meyering  <meyering@lucent.com>
94053
94054         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94055
94056 2000-07-01  Jim Meyering  <meyering@lucent.com>
94057
94058         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94059         problem.
94060
94061 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94062
94063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94064         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94065
94066 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94067
94068         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94069         per change in ../m4/ls-mntd-fs.m4.
94070         (read_filesystem_list): Ignore symbolic links.
94071
94072 2000-06-29  Jim Meyering  <meyering@lucent.com>
94073
94074         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94075         for declaration of strcmp.
94076
94077         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94078
94079         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94080         Avoid warning by casting result to `char *' to remove `const'.
94081
94082 2000-06-28  Jim Meyering  <meyering@lucent.com>
94083
94084         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94085         included by quotearg.c, for which we perform this test.  From
94086         Bruno Haible.
94087
94088 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94089
94090         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94092         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94093
94094 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94095
94096         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94097
94098 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94099
94100         savedir now sets errno on failure and invokes xmalloc to get memory.
94101         Fix a couple of other minor bugs while we're at it.
94102
94103         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94104         (NAMLEN): Remove macro.
94105         (malloc, realloc): Remove decls.
94106         (stpcpy): Likewise.
94107         ("xalloc.h"): Include.
94108         (NAME_SIZE_DEFAULT): New macro.
94109         (savedir): Use xmalloc / xrealloc to allocate memory.
94110         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94111         Skip "" directory entries.
94112         Use strlen to calculate directory entry length, since the old method
94113         is rarely used these days and isn't worth supporting.
94114         Don't use a pointer after freeing it.
94115         Check for integer overflow when calculating allocation size.
94116         Use memcpy to copy entries, instead of stpcpy.
94117         Set errno properly when returning NULL.
94118         Check for readdir error.
94119
94120 2000-06-26  Jim Meyering  <meyering@lucent.com>
94121
94122         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94123
94124 2000-06-25  Jim Meyering  <meyering@lucent.com>
94125
94126         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94127         Linux header bug when _XOPEN_SOURCE is defined to 500.
94128
94129 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94130
94131         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94132         deficiency.
94133
94134 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94135
94136         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94137         Include xalloc.h.
94138         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94139
94140 2000-06-24  Jim Meyering  <meyering@lucent.com>
94141
94142         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94143         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94144         for which strerror does return char*, but which lacks a conveniently
94145         accessible declaration of the function.  If the compile-test says
94146         strerror_r doesn't work, then resort to a `run'-test that works on
94147         BeOS and segfaults on DEC Unix.
94148
94149 2000-06-24  Jim Meyering  <meyering@lucent.com>
94150
94151         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94152
94153 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94154
94155         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94156         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94157
94158 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94159
94160         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94161         (mbrtowc, mbstate_t): Define substitutes if
94162         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94163         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94164         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94165
94166 2000-06-23  Jim Meyering  <meyering@lucent.com>
94167
94168         * m4/afs.m4: Add missing AC_MSG_RESULT.
94169         Reported by Bruno Haible.
94170
94171         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94172         Suggestion from Bruno Haible.
94173
94174 2000-06-23  Jim Meyering  <meyering@lucent.com>
94175
94176         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94177
94178 2000-06-21  Jim Meyering  <meyering@lucent.com>
94179
94180         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94181
94182 2000-06-21  Jim Meyering  <meyering@lucent.com>
94183
94184         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94185         (noinst_HEADERS): Add getstr.h.
94186
94187         * lib/getline.c (getstr): Move into a separate file.
94188         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94189         the following changes: new parameter, delim2; both delim[12]
94190         parameters have type `int', not `char'.  The latter would lose
94191         with 8-bit delimiters.
94192         * lib/getstr.h: New file.
94193
94194 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94195
94196         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94197         than 1024, return a memory chunk of least possible size, instead
94198         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94199         Use free/xmalloc instead of xrealloc to avoid copying for very long
94200         paths.
94201
94202 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94203
94204         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94205         the empty string.
94206
94207 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94208
94209         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94210         address, not strdup.  Include <stdlib.h> and don't declare free().
94211
94212 2000-06-19  Jim Meyering  <meyering@lucent.com>
94213
94214         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94215
94216 2000-06-18  Jim Meyering  <meyering@lucent.com>
94217
94218         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94219
94220         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94221         `checking whether...' message to be consistent with that of the
94222         lstat test.
94223
94224 2000-06-18  Jim Meyering  <meyering@lucent.com>
94225
94226         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94227         Besides, these days every porting target provides a mkdir function.
94228
94229         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94230         needed. (this snippet comes from src/system.h).
94231
94232 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94233
94234         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94235
94236 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94237
94238         * lib/human.c (adjust_value): New function.
94239         (human_readable_inexact): Apply rounding style even when
94240         printing approximate values.
94241
94242 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94243
94244         * lib/human.c (human_readable_inexact): Allow an input block
94245         size that is not a multiple of the output block size, and vice versa.
94246         Reported by Piergiorgio Sartor.
94247
94248 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94249
94250         * lib/getdate.y (get_date): Apply relative times after time
94251         zone indicator, not before.  Reported by Todd A. Jacobs.
94252
94253 2000-06-13  Jim Meyering  <meyering@lucent.com>
94254
94255         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94256
94257         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94258
94259 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94260
94261         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94262
94263 2000-06-12  Jim Meyering  <meyering@lucent.com>
94264
94265         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94266         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94267         optional argument.
94268         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94269         the optional argument, `lib'.
94270
94271 2000-06-08  Jim Meyering  <meyering@lucent.com>
94272
94273         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94274
94275 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94276
94277         Rewrite largefile configuration so that we don't need to run
94278         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94279         AC_CANONICAL_HOST in configure.in -- jmm]
94280
94281         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94282         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94283         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94284         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94285         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94286         All uses changed.
94287         Instead of inspecting the output of getconf, try to compile the
94288         test program without and with the macro definition.
94289         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94290         for getconf.  Instead, check for the needed flags by compiling
94291         test programs.
94292
94293 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94294
94295         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94296
94297 2000-06-04  Jim Meyering  <meyering@lucent.com>
94298
94299         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94300         SunOS 4.1.4 for which gid_t is an unsigned type.
94301
94302 2000-06-03  Jim Meyering  <meyering@lucent.com>
94303
94304         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94305         now that autoconf requires that.
94306
94307         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94308         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94309         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94310
94311 2000-06-03  Jim Meyering  <meyering@lucent.com>
94312
94313         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94314
94315 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94316
94317         * m4/glibc21.m4: New file.
94318         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94319
94320 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94321
94322         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94323         newer, don't install charset.alias.
94324         * lib/config.charset: Change the Linux/glibc rules so they become empty
94325         on glibc-2.1 or newer.
94326
94327 2000-06-02  Jim Meyering  <meyering@lucent.com>
94328
94329         * lib/mountlist.c: Back out last change.  Instead, do this...
94330         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94331         me_dummy member using the same `ignore'-testing code.
94332         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94333         fs_type strings.
94334         From Mark D. Roth.
94335
94336 2000-05-29  Jim Meyering  <meyering@lucent.com>
94337
94338         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94339         mounts with the `ignore' attribute.  Based on a patch from
94340         Mark D. Roth.
94341
94342 2000-05-28  Jim Meyering  <meyering@lucent.com>
94343
94344         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94345         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94346         * m4/stat.m4: Likewise.
94347         * m4/lstat.m4: Likewise.
94348         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94349
94350         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94351         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94352
94353 2000-05-26  Jim Meyering  <meyering@lucent.com>
94354
94355         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94356
94357 2000-05-24  Jim Meyering  <meyering@lucent.com>
94358
94359         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94360         autoconf requires that.
94361         * m4/lib-check.m4: Likewise.
94362         * m4/jm-macros.m4: Likewise.
94363         * m4/strftime.m4: Likewise.
94364
94365         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94366         AC_CHECK_DECLS, now that autoconf requires that.
94367
94368 2000-05-22  Jim Meyering  <meyering@lucent.com>
94369
94370         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94371         * m4/lstat.m4: Likewise.
94372
94373 2000-05-22  Jim Meyering  <meyering@lucent.com>
94374
94375         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94376
94377 2000-05-20  Jim Meyering  <meyering@lucent.com>
94378
94379         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94380         (jm_PREREQ): Use it.
94381
94382 2000-05-18  Jim Meyering  <meyering@lucent.com>
94383
94384         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94385         back, too, since it may have been modified by allocate_entry.
94386         (hash_delete): Rewrite to use neither the assignment operator
94387         nor the comma operator in an if-expression.
94388
94389 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94390
94391         * lib/closeout.c:
94392         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94393         Remove; no longer needed.
94394         "quotearg.h": Add include.
94395         (file_name): Do not bother to explicitly initialize to NULL; it's less
94396         efficient on some hosts.
94397         (close_stdout_status): Remove test as to whether stdout was already
94398         closed; it breaks for the case "echo x | sort >&-".
94399         Quote file name colons.
94400         Do not assume that _("write error") lacks format strings.
94401
94402 2000-05-15  Jim Meyering  <meyering@lucent.com>
94403
94404         * lib/version-etc.c (version_etc_copyright): Update the copyright
94405         string used in all --version output.
94406
94407 2000-05-14  Jim Meyering  <meyering@lucent.com>
94408
94409         * lib/closeout.c (close_stdout_set_file_name): New function.
94410         (close_stdout_status): Use new file-scoped global.
94411         Return right away if fstat says the stdout file descriptor is invalid.
94412         * lib/closeout.h (close_stdout_set_file_name): Declare.
94413
94414 2000-05-10  Jim Meyering  <meyering@lucent.com>
94415
94416         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94417         (close_stdout_set_status): New function.
94418         * lib/closeout.h (close_stdout_set_status): Declare.
94419
94420 2000-05-09  Jim Meyering  <meyering@lucent.com>
94421
94422         * m4/gettext.m4: Rename this...
94423         * m4/libintl.m4: ...to this.
94424
94425 2000-05-08  Jim Meyering  <meyering@lucent.com>
94426
94427         * lib/long-options.c: Don't include closeout.h.
94428         (parse_long_options): Don't call close_stdout for --version.
94429
94430 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94431
94432         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94433         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94434         2.1.3 bug.  This avoids a clash when files like regex.c define
94435         _GNU_SOURCE.
94436
94437 2000-05-06  Jim Meyering  <meyering@lucent.com>
94438
94439         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94440         (AC_REPLACE_FUNCS): Add strnlen.
94441
94442         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94443         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94444
94445         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94446         AC_SEARCH_LIBS call for nanosleep.
94447         (LIB_NANOSLEEP): Set and AC_SUBST.
94448
94449 2000-05-06  Jim Meyering  <meyering@lucent.com>
94450
94451         * lib/strnlen.c: Undefine __strnlen and strnlen.
94452         [!weak_alias]: Define __strnlen to strnlen.
94453
94454         * lib/atexit.c: New file, from libiberty.
94455
94456 2000-05-06  Jim Meyering  <meyering@lucent.com>
94457
94458         * lib/closeout.c (close_stdout_status): Also check for errors on the
94459         stderr stream.
94460
94461 2000-05-05  Jim Meyering  <meyering@lucent.com>
94462
94463         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94464         AC_SEARCH_LIBS call for clock_gettime.
94465         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94466
94467         * m4/search-libs.m4: Update from autoconf.
94468
94469         su doesn't work on Solaris 2.6.
94470         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94471         <shadow.h>.  Reported by Dragos Harabor.
94472
94473 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94474
94475         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94476         memcpy instead of xmalloc, xrealloc, path_concat.
94477         (locale_charset): Treat empty environment variables as absent.
94478         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94479
94480 2000-05-04  Jim Meyering  <meyering@lucent.com>
94481
94482         * lib/getopt.c: Update from glibc.
94483         * lib/obstack.c: Likewise.
94484         * lib/obstack.h: Likewise.
94485         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94486         file
94487
94488         * lib/regex.h: Likewise.
94489         * lib/strndup.c: Likewise.
94490         * lib/strnlen.c: New file, from glibc.
94491
94492 2000-05-03  Jim Meyering  <meyering@lucent.com>
94493
94494         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94495
94496 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94497
94498         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94499         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94500         compile-time test, rather than inspecting host and OS, to
94501         decide whether to define _LARGEFILE_SOURCE.
94502
94503 2000-05-01  Jim Meyering  <meyering@lucent.com>
94504
94505         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94506
94507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94508         Based on a patch from Bruno Haible.
94509
94510 2000-05-01  Jim Meyering  <meyering@lucent.com>
94511
94512         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94513
94514 2000-04-29  Jim Meyering  <meyering@lucent.com>
94515
94516         * lib/path-concat.c: Declare strdup only if it's not defined.
94517         * lib/canon-host.c: Likewise.
94518
94519 2000-04-28  Jim Meyering  <meyering@lucent.com>
94520
94521         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94522         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94523         is included first, then limits.h is included by locale.h by libintl.h.
94524         From John David Anglin.
94525
94526 2000-04-25  Jim Meyering  <meyering@lucent.com>
94527
94528         * lib/makepath.c (S_IRWXUGO): Define.
94529         (make_path): Always perform explicit chmod if MODE specifies any
94530         of the `special' permission bits.  Prompted by a bug report against
94531         install from Mate Wierdl and Joost van Baal.
94532
94533 2000-04-18  Jim Meyering  <meyering@lucent.com>
94534
94535         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94536         (jm_PREREQ): Use it.
94537
94538 2000-04-18  Jim Meyering  <meyering@lucent.com>
94539
94540         * lib/README: New file.
94541
94542         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94543         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94544
94545 2000-04-17  Jim Meyering  <meyering@lucent.com>
94546
94547         Get it right :-)
94548         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94549         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94550         Suggestion from Akim Demaille.
94551
94552 2000-04-17  Jim Meyering  <meyering@lucent.com>
94553
94554         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94555         the definition of it to rpl_strftime also defined-away the system's
94556         declaration.
94557
94558 2000-04-15  Jim Meyering  <meyering@lucent.com>
94559
94560         Use `C' to denote so-called `contiguous' files, the same way
94561         that tar does.
94562         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94563         (ftypelet): Use S_ISCTG.
94564         From Michael Deutschmann.
94565
94566 2000-04-14  Jim Meyering  <meyering@lucent.com>
94567
94568         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94569         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94570         clobbered.
94571
94572 2000-04-14  Jim Meyering  <meyering@lucent.com>
94573
94574         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94575
94576 2000-04-13  Jim Meyering  <meyering@lucent.com>
94577
94578         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94579         AH_VERBATIM to insert required #ifndef into config.h.in.
94580         Suggestion from Akim Demaille.
94581
94582 2000-04-12  Jim Meyering  <meyering@lucent.com>
94583
94584         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94585         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94586         Christian Krackowizer.
94587
94588         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94589         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94590         (AC_SYS_LARGEFILE): Require.
94591         (AM_C_PROTOTYPES): Require.
94592
94593 2000-04-08  Jim Meyering  <meyering@lucent.com>
94594
94595         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94596         names don't conflict.  Reported by Eli Zaretskii.
94597
94598 2000-04-07  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94601         sys/types.h, to work around system header problems on AIX 3.2.5.
94602         From Bruno Haible.
94603
94604 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94605
94606         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94607         bug.  Deal with the different error behavior of Irix iconv.
94608
94609 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94610
94611         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94612         IRIX if the installer said otherwise.
94613
94614 2000-04-05  Jim Meyering  <meyering@lucent.com>
94615
94616         Portability tweaks required for ultrix4.3.
94617         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94618         (jm_CHECK_DECLS): Add getutent to the list of functions.
94619         (_jm_DECL_HEADERS): Add utmpx.h.
94620         From John David Anglin.
94621
94622         * m4/strftime.m4: Back out the 2000-04-02 change.
94623         Instead of that change, simply undefine putenv in the test program.
94624
94625 2000-04-05  Jim Meyering  <meyering@lucent.com>
94626
94627         Portability tweaks required for ultrix4.3.
94628         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94629         getutent.
94630         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94631         * lib/canon-host.c: Declare strdup.
94632         * lib/path-concat.c: Likewise.
94633         From John David Anglin.
94634
94635 2000-04-04  Jim Meyering  <meyering@lucent.com>
94636
94637         Be more DOS 8.3-friendly.
94638         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94639         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94640         * lib/Makefile.am: Reflect renaming.
94641         Reported by Eli Zaretskii.
94642
94643         Use a temporary file name that won't clash with `charset.alias'
94644         in the DOS 8.3 name space.
94645         * lib/Makefile.am (charset_tmp): Define.
94646         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94647         (uninstall-local): Likewise.
94648         Reported by Eli Zaretskii.
94649
94650 2000-04-03  Jim Meyering  <meyering@lucent.com>
94651
94652         * m4/gettext.m4: Fix typo in comment.
94653
94654         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94655         textutils/configure.in).  Suggestion from Paul Eggert.
94656         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94657
94658 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94659
94660         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94661         variable in the shell rather than using putenv, which isn't
94662         portable.  This avoids the configure-time inter-test dependency
94663         on the potentially-renamed putenv function.
94664
94665 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94666
94667         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94668         before checking struct stat.st_blksize, so that
94669         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94670
94671 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94672
94673         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94674         since strftime.c uses HAVE_STRFTIME to decide whether to use
94675         the underlying strftime.
94676
94677 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94678
94679         * lib/time/strftime.c (my_strftime): Make sure we call the system
94680         strftime, not ourselves, when invoking the underlying strftime.
94681
94682 2000-03-24  Jim Meyering  <meyering@lucent.com>
94683
94684         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94685         (charset_alias): Define.
94686         (install-exec-local): Factor out common code.
94687         (uninstall-local): Split lines longer than 80.
94688         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94689         (SUFFIXES): Define.
94690         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94691         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94692
94693 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94694
94695         * lib/config.charset: Output a line containing "Packages using this
94696         file".
94697         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94698         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94699         ref-del.sed): New rules.
94700
94701 2000-03-17  Jim Meyering  <meyering@lucent.com>
94702
94703         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94704         Otherwise, include <strings.h>
94705
94706 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94707
94708         * lib/unicodeio.c (utf8_wctomb): New function.
94709         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94710         format instead of in UCS-4 with platform dependent endianness.
94711
94712 2000-03-10  Jim Meyering  <meyering@lucent.com>
94713
94714         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94715         From Marco Franzen.
94716
94717 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94718
94719         * lib/savedir.c (savedir): Work even if directory size is
94720         negative; this can happen with some screwy NFS configurations.
94721
94722 2000-03-06  Jim Meyering  <meyering@lucent.com>
94723
94724         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94725         if it's NULL (because we ran out of memory).  From Bruno Haible.
94726
94727 2000-03-05  Jim Meyering  <meyering@lucent.com>
94728
94729         * lib/localcharset.c ("path-concat.h"): Include.
94730         (get_charset_aliases): Use path_concat instead of ANSI string
94731         concatenation.
94732
94733         * lib/unicodeio.h (PARAMS): Define.
94734         Use it to guard prototype.
94735
94736 2000-03-04  Jim Meyering  <meyering@lucent.com>
94737
94738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94739         for lib/localcharset.c.
94740
94741 2000-03-04  Jim Meyering  <meyering@lucent.com>
94742
94743         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94744         installing into it.
94745         (uninstall-local): Uncomment this rule so `make distcheck' works
94746         once again.
94747
94748         * lib/unicodeio.c (<errno.h>): Include it.
94749         (errno): Declare if not defined.
94750
94751         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94752
94753         * lib/config.charset: New version, incorporating remarks from a linux
94754         i18n mailing list.  From Bruno Haible.
94755
94756 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94757
94758         * m4/codeset.m4: New file.
94759         * m4/iconv.m4: New file.
94760         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94761
94762 2000-03-03  Jim Meyering  <meyering@lucent.com>
94763
94764         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94765
94766 2000-03-02  Jim Meyering  <meyering@lucent.com>
94767
94768         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94769         the messages come out on separate lines.
94770
94771         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94772         rather than jm_CHECK_DECLARATIONS.
94773         * m4/decl.m4: Remove now-unused file.
94774
94775         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94776         geteuid.
94777
94778 2000-03-02  Jim Meyering  <meyering@lucent.com>
94779
94780         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94781
94782 2000-03-01  Jim Meyering  <meyering@lucent.com>
94783
94784         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94785         * lib/unicodeio.c: Likewise.
94786
94787 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94788
94789         * lib/config.charset: New file.
94790         * lib/localcharset.c: New file.
94791         * lib/unicodeio.h, lib/unicodeio.c: New files.
94792         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94793         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94794         (noinst_HEADERS): Add unicodeio.h.
94795         (all-local, install-exec-local, charset.alias): New targets.
94796
94797 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94798
94799         * lib/quotearg.c (ALERT_CHAR): New macro.
94800         (quotearg_buffer_restyled): Use it.
94801
94802 2000-02-27  Jim Meyering  <meyering@lucent.com>
94803
94804         * m4/check-decl.m4: Add getenv to the list.
94805
94806 2000-02-27  Jim Meyering  <meyering@lucent.com>
94807
94808         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94809         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94810
94811         * lib/backupfile.c: Guard inclusion of stdlib.h with
94812         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94813         Declare malloc if needed.
94814
94815         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94816         `#ifndef HAVE_DECL..'
94817         now that autoconf always defines the HAVE_DECL_ symbols.
94818         * lib/human.c: Likewise.
94819         * lib/same.c: Likewise.
94820         * lib/strtoumax.c: Likewise.
94821
94822         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94823         declaration check was not run.
94824         * lib/hash.c: Likewise.
94825         * lib/human.c: Likewise.
94826         * lib/same.c: Likewise.
94827         * lib/strtoumax.c: Likewise.
94828
94829         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94830         `.', then first look up the entire `.'-containing string as a login
94831         name.
94832
94833 2000-02-23  Jim Meyering  <meyering@lucent.com>
94834
94835         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94836         in place of my hack.
94837
94838 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94839
94840         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94841         (textint): New typedef.
94842         (parser_control): Member year changed from int to textint.
94843         All uses changed.
94844         (YYSTYPE): Removed; replaced by %union with int and textint members.
94845         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94846         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94847         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94848         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94849         (date, number, to_year): Use width of number in digits, not its value,
94850         to determine whether it's a 2-digit year, or a 2-digit time.
94851         (yylex): Store number of digits of numeric tokens.
94852         Reported by John Kendall.
94853
94854         (parser_control): Changed from struct parser_control to typedef (for
94855         consistency).  All uses changed.
94856
94857         (tID): Removed; not used.
94858         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94859
94860 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94861
94862         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94863         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94864
94865 2000-02-12  Jim Meyering  <meyering@lucent.com>
94866
94867         * lib/userspec.c (ISDIGIT): Define it.
94868         (isdigit): Remove definition.
94869         (is_number): Use ISDIGIT, not isdigit.
94870         <libintl.h>: Include.
94871         (_ and N_): Define.
94872         (parse_user_spec): Mark translatable strings.
94873
94874 2000-02-10  Jim Meyering  <meyering@lucent.com>
94875
94876         With these changes, nanosleep.[ch] are finally enough like the other
94877         lib/* replacement files to compile on a few more losing systems.
94878
94879         * lib/nanosleep.h: Don't include config.h.
94880         Remove prototype from declaration of nanosleep.
94881         (PARAMS): Remove now-unneeded definition.
94882         * lib/nanosleep.c: #undef nanosleep.
94883         (rpl_nanosleep): Rename from nanosleep.
94884
94885 2000-02-10  Jim Meyering  <meyering@lucent.com>
94886
94887         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94888         gnu_nanosleep to rpl_nanosleep.
94889
94890 2000-02-09  Jim Meyering  <meyering@lucent.com>
94891
94892         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94893         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94894
94895 2000-02-08  Akim Demaille  <akim@epita.fr>
94896
94897         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94898         `[' and `]' and remove uses of `changequote'.
94899         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94900         (AC_SYS_LARGEFILE): Likewise.
94901         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94902         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94903         of changequote.
94904         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94905         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94906         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94907         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94908
94909 2000-02-05  Jim Meyering  <meyering@lucent.com>
94910
94911         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94912         Remove explicit use of AC_HEADER_TIME.  It is required by
94913         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94914         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94915         in autoconf whereby the expansion of the latter ended up preceding
94916         the expansion of its prerequisite, AC_HEADER_TIME.
94917         Reported by Volker Borchert.
94918
94919 2000-02-03  Jim Meyering  <meyering@lucent.com>
94920
94921         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94922
94923 2000-02-03  Jim Meyering  <meyering@lucent.com>
94924
94925         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94926         rather than with `#if HAVE_UTMPNAME'.
94927
94928 2000-02-02  Jim Meyering  <meyering@lucent.com>
94929
94930         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94931         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94932         Reported by Eli Zaretskii.
94933
94934 2000-02-01  Jim Meyering  <meyering@lucent.com>
94935
94936         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94937
94938 2000-01-31  Jim Meyering  <meyering@lucent.com>
94939
94940         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94941         functions.  Add the time.h and sys/time.h headers along with the
94942         AC_REQUIRE'ment of AC_HEADER_TIME.
94943
94944 2000-01-31  Jim Meyering  <meyering@lucent.com>
94945
94946         * lib/nanosleep.h (nanosleep): Guard declaration with
94947         `#if ! HAVE_DECL_NANOSLEEP'.
94948         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94949         the declaration in that vendor's sys/timers.h.
94950         Reported by Christian Krackowizer.
94951
94952         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94953         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94954         (ISPRINT): Likewise.
94955         Reported by Tom Tromey.
94956
94957 2000-01-30  Jim Meyering  <meyering@lucent.com>
94958
94959         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94960
94961         * m4/prereq.m4 (utmp_includes): Define.
94962         Check for ut_user and ut_name members in both struct utmpx
94963         and struct utmp.
94964
94965 2000-01-30  Jim Meyering  <meyering@lucent.com>
94966
94967         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94968         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94969         header files where only utmpx.ut_user is declared.
94970
94971         * lib/readutmp.h (UT_USER): Define.
94972
94973 2000-01-29  Jim Meyering  <meyering@lucent.com>
94974
94975         * m4/lib-check.m4: New file containing library-related checks from
94976         fileutils and sh-utils (textutils had none).
94977
94978 2000-01-28  Jim Meyering  <meyering@lucent.com>
94979
94980         * m4/perl.m4: Change format of warning message to look more like that
94981         from the missing script.  Suggestion from François Pinard.
94982
94983 2000-01-25  Jim Meyering  <meyering@lucent.com>
94984
94985         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94986         well as time.h in the compile check.
94987         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94988         Fix typo in cross-compiling case: s/yes/no/.
94989
94990 2000-01-23  Jim Meyering  <meyering@lucent.com>
94991
94992         * m4/jm-macros.m4: Move df-related tests here from
94993         fileutils/configure.in
94994
94995         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94996         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94997
94998         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94999         s/space/ac_fsusage_space/.
95000         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95001
95002         * m4/ftruncate.m4: New file (derived from part of
95003         fileutils/configure.in).
95004         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95005         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95006
95007         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95008         AC_SUBST these here, rather than just in sh-util/configure.in, so
95009         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95010         all the same.
95011         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95012         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95013         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95014         (AC_SUBST(POW_LIBM)): Likewise.
95015         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95016
95017 2000-01-23  Jim Meyering  <meyering@lucent.com>
95018
95019         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95020         obstack.c.
95021
95022 2000-01-22  Jim Meyering  <meyering@lucent.com>
95023
95024         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95025
95026         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95027
95028         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95029         configure.in
95030         (AC_CHECK_HEADERS): Likewise for sh-utils.
95031         (AC_CHECK_HEADERS): Likewise for textutils.
95032         Merge the three lists of headers.
95033
95034         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95035         from fileutils' configure.in.
95036
95037         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95038         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95039         check-decl.m4.
95040
95041         * m4/check-decl.m4: Use #if rather than #ifdef.
95042         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95043         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95044         (_jm_DECL_HEADERS): Define new function.
95045         (jm_CHECK_DECLARATIONS): Require it.
95046
95047 2000-01-22  Jim Meyering  <meyering@lucent.com>
95048
95049         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95050         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95051         Required for some AIX systems.  Reported by Christian Krackowizer.
95052         [TESTING] (main): New function.
95053
95054         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95055         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95056         letters.
95057
95058         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95059         iswprint.
95060
95061         * lib/strverscmp.c (ISDIGIT): Define.
95062         (strverscmp): Use ISDIGIT, not isdigit.
95063
95064 2000-01-19  Jim Meyering  <meyering@lucent.com>
95065
95066         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95067         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95068         defines `struct timespec' in <sys/time.h>
95069
95070         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95071         Thanks to Akim for explaining.
95072
95073 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95074
95075         * lib/nanosleep.c (nanosleep):
95076         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95077         POSIX.1 doesn't require SA_INTERRUPT and some systems
95078         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95079         it's been part of POSIX.1 since day 1 (in 1988).
95080
95081 2000-01-17  Jim Meyering  <meyering@lucent.com>
95082
95083         * lib/interlock: Remove unused file.  Reported by François Pinard.
95084
95085 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95086
95087         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95088         alert, backslash, formfeed, and vertical tab unnecessarily in
95089         shell quoting style.
95090
95091 2000-01-16  Jim Meyering  <meyering@lucent.com>
95092
95093         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95094         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95095         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95096         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95097
95098 2000-01-16  Jim Meyering  <meyering@lucent.com>
95099
95100         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95101         because the latter didn't work.
95102
95103 2000-01-15  Jim Meyering  <meyering@lucent.com>
95104
95105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95106         (AC_REPLACE_FUNCS): Add memcpy and memset.
95107         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95108         Add strpbrk.
95109         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95110
95111 2000-01-12  Jim Meyering  <meyering@lucent.com>
95112
95113         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95114         (jm_PREREQ): Use it.
95115         (jm_PREREQ_READUTMP): New macro.
95116         (jm_PREREQ): Use it.
95117
95118 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95119
95120         Quote multibyte characters correctly.
95121         * m4/c-bs-a.m4: New file.
95122         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95123         (jm_PREREQ): Use it.
95124
95125 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95126
95127         * m4/uintmax_t.m4: Port to autoconf 2.13.
95128
95129 2000-01-08  Jim Meyering  <meyering@ascend.com>
95130
95131         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95132         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95133
95134 2000-01-04  Jim Meyering  <meyering@ascend.com>
95135
95136         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95137         jm_STRUCT_DIRENT_D_TYPE.
95138         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95139         jm_STRUCT_DIRENT_D_INO.
95140         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95141         jm_STRUCT_UTIMBUF.
95142         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95143         renamings.
95144         * m4/utime.m4: Likewise.
95145
95146         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95147         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95148
95149 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95150
95151         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95152         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95153
95154 2000-01-02  Jim Meyering  <meyering@ascend.com>
95155
95156         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95157         remember if this is necessary.
95158
95159 1999-12-26  Jim Meyering  <meyering@ascend.com>
95160
95161         * m4/jm-macros.m4: Use it here.
95162         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95163
95164 1999-12-23  Jim Meyering  <meyering@ascend.com>
95165
95166         * m4/jm-macros.m4: Check for clock_gettime (moved from
95167         fileutils/configure.in)
95168         Check for gettimeofday.
95169
95170 1999-12-20  Jim Meyering  <meyering@ascend.com>
95171
95172         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95173         autoconf-2.14a-1999-12-20.
95174
95175 1999-12-19  Jim Meyering  <meyering@ascend.com>
95176
95177         * m4/lstat-slash.m4: New file.
95178         * m4/jm-macros.m4: Use the new macro:
95179         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95180
95181 1999-12-07  Jim Meyering  <meyering@ascend.com>
95182
95183         * m4/perl.m4: Require that File::Compare be available, too.
95184         Too many systems seem to lack it.
95185
95186         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95187         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95188
95189 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95190
95191         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95192         problem with the QNX 4.25 shell, which doesn't propagate exit
95193         status of failed commands inside shell assignments.
95194
95195 1999-11-17  Jim Meyering  <meyering@ascend.com>
95196
95197         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95198
95199 1999-11-07  Jim Meyering  <meyering@ascend.com>
95200
95201         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95202
95203 1999-11-06  Jim Meyering  <meyering@ascend.com>
95204
95205         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95206         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95207
95208 1999-11-05  Jim Meyering  <meyering@ascend.com>
95209
95210         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95211         configure.in of textutils, fileutils, and sh-utils into this one
95212         (shared between those packages) file.
95213         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95214         AC_STRUCT_ST_BLKSIZE.
95215
95216 1999-11-03  Jim Meyering  <meyering@ascend.com>
95217
95218         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95219         of AC_CHECK_TYPE checks includes unistd.h.
95220         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95221         Suggestion from Akim Demaille.
95222
95223 1999-10-30  Jim Meyering  <meyering@ascend.com>
95224
95225         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95226         m4-quoted string.
95227         * m4/ls-mntd-fs.m4: Likewise.
95228         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95229         * m4/jm-winsz1.m4: Likewise.
95230
95231         * m4/const.m4: Remove file, since the fix made it into the experimental
95232         version of autoconf.
95233         * m4/mktime.m4: Likewise.
95234
95235         * m4/check-type.m4: Remove file, now that the latest version of
95236         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95237
95238         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95239         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95240         AC_CHECK_TYPE.
95241
95242 1999-10-04  Jim Meyering  <meyering@ascend.com>
95243
95244         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95245
95246 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95247
95248         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95249         2.95.1 bug with HP-UX 10.20.
95250
95251 1999-09-17  Jim Meyering  <meyering@ascend.com>
95252
95253         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95254         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95255         due to missing strdup (against sh-utils-2.0).
95256
95257 1999-08-29  Jim Meyering  <meyering@ascend.com>
95258
95259         * m4/jm-macros.m4: Require jm_BISON.
95260         * m4/bison.m4: New file.
95261
95262 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95263
95264         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95265         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95266
95267 1999-08-05  Jim Meyering  <meyering@ascend.com>
95268
95269         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95270         to avoid conflicts with `conftest' on 8+3 filesystems.
95271         Suggestion from Eli Zaretskii.
95272
95273 1999-08-04  Jim Meyering  <meyering@ascend.com>
95274
95275         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95276         fileutils and sh-utils (textutils's getline test was inadequate).
95277         (AM_FUNC_GETLINE): Run this test.
95278         (AC_CHECK_FUNCS): Check for getdelim.
95279         Reported by Bob Proulx.
95280
95281 1999-08-02  Jim Meyering  <meyering@ascend.com>
95282
95283         * m4/jm-macros.m4: Add a comment.
95284
95285 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95286
95287         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95288         <inttypes.h> defines strtoumax as a macro (and not as a
95289         function).
95290
95291 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95292
95293         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95294         that we can shift, multiply and divide unsigned long long
95295         values; Ultrix cc can't do it.
95296
95297 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95298
95299         * m4/mktime.m4: New file, which is a preview of what should appear
95300         in the next public autoconf release.
95301
95302 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95303
95304         * m4/lfs.m4: Remove this file.
95305         * m4/largefile.m4: New file.  It contains the old contents of
95306         lfs.m4, except that all names with prefix AC_LFS have been
95307         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95308         compatible with future autoconf versions.  Also, some minor m4
95309         quoting problems have been fixed.
95310
95311 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95312
95313         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95314         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95315         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95316         and simplify the shell code.
95317
95318 1999-08-01  Jim Meyering  <meyering@ascend.com>
95319
95320         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95321         m4.
95322
95323 1999-07-20  Jim Meyering  <meyering@ascend.com>
95324
95325         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95326
95327 1999-07-15  Jim Meyering  <meyering@ascend.com>
95328
95329         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95330
95331 1999-05-22  Jim Meyering  <meyering@ascend.com>
95332
95333         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95334
95335 1999-05-20  Jim Meyering  <meyering@ascend.com>
95336
95337         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95338         Add a colon after each `then' in case $4 is empty.
95339
95340 1999-05-16  Jim Meyering  <meyering@ascend.com>
95341
95342         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95343
95344 1999-05-10  Jim Meyering  <meyering@ascend.com>
95345
95346         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95347
95348         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95349         AC_FUNC_MKTIME.
95350
95351 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95352
95353         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95354
95355 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95356
95357         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95358         not CPPFLAGS, so that linking works correctly in IRIX.
95359
95360 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95361
95362         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95363
95364 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95365
95366         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95367         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95368         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95369         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95370         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95371
95372         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95373
95374 1999-04-20  Jim Meyering  <meyering@ascend.com>
95375
95376         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95377         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95378         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95379
95380 1999-04-18  Jim Meyering  <meyering@ascend.com>
95381
95382         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95383         * m4/jm-macros.m4: Use it.
95384
95385 1999-04-06  Jim Meyering  <meyering@ascend.com>
95386
95387         * m4/strftime.m4: Remove test for %f.
95388
95389 1999-03-29  Jim Meyering  <meyering@ascend.com>
95390
95391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95392         superset of the AC_TYPE_* checks in the textutils, fileutils,
95393         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95394         AC_TYPE_PID_T.
95395
95396 1999-03-28  Jim Meyering  <meyering@ascend.com>
95397
95398         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95399         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95400         replaced e.g., in the *.sh files of the sh-utils.
95401
95402 1999-03-20  Jim Meyering  <meyering@ascend.com>
95403
95404         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95405         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95406         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95407
95408 1999-03-19  Jim Meyering  <meyering@ascend.com>
95409
95410         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95411
95412 1999-03-12  Jim Meyering  <meyering@ascend.com>
95413
95414         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95415
95416 1999-03-07  Jim Meyering  <meyering@ascend.com>
95417
95418         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95419         declared.
95420
95421 1999-02-17  Jim Meyering  <meyering@ascend.com>
95422
95423         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95424         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95425
95426 1999-02-07  Jim Meyering  <meyering@ascend.com>
95427
95428         * m4/group-member.m4: New file -- extracted from sh-utils'
95429         configure.in.
95430
95431         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95432         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95433
95434 1999-02-06  Jim Meyering  <meyering@ascend.com>
95435
95436         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95437         * m4/fnmatch.m4: Likewise.
95438         * m4/getgroups.m4: Likewise.
95439         * m4/lstat.m4: Likewise.
95440         * m4/malloc.m4: Likewise.
95441         * m4/putenv.m4: Likewise.
95442         * m4/realloc.m4: Likewise.
95443         * m4/regex.m4: Likewise.
95444         * m4/stat.m4: Likewise.
95445         * m4/strftime.m4: Likewise.
95446         Suggestion from Alain Magloire.
95447
95448         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95449         * m4/fnmatch.m4: Likewise.
95450         * m4/getgroups.m4: Likewise.
95451         * m4/getline.m4: Likewise.
95452         * m4/lstat.m4: Likewise.
95453         * m4/malloc.m4: Likewise.
95454         * m4/memcmp.m4: Likewise.
95455         * m4/putenv.m4: Likewise.
95456         * m4/realloc.m4: Likewise.
95457         * m4/regex.m4: Likewise.
95458         * m4/stat.m4: Likewise.
95459         * m4/strftime.m4: Likewise.
95460         Suggestion from Alain Magloire.
95461
95462         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95463         an argument.
95464
95465         * m4/regex.m4: Add a run-time Test for proper operation of
95466         re_compile_pattern.
95467
95468 1999-01-31  Jim Meyering  <meyering@ascend.com>
95469
95470         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95471
95472 1999-01-30  Jim Meyering  <meyering@ascend.com>
95473
95474         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95475
95476         * m4/jm-mktime.m4: Make this a wrapper around the official
95477         AM_FUNC_MKTIME rather than my private copy, now that the official one
95478         is up to date.
95479         * m4/mktime.m4: Remove file.
95480
95481         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95482         * m4/uptime.m4: Likewise.
95483         * m4/uintmax_t.m4: Likewise.
95484
95485 1999-01-28  Jim Meyering  <meyering@ascend.com>
95486
95487         * m4/jm-macros.m4: Use jm_AFS.
95488         * m4/afs.m4: New file (from fileutils' configure.in).
95489
95490         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95491         * m4/chown.m4: Likewise.
95492         * m4/d-ino.m4: Likewise.
95493         * m4/d-type.m4: Likewise.
95494         * m4/fnmatch.m4: Likewise.
95495         * m4/getgroups.m4: Likewise.
95496         * m4/gettext.m4: Likewise.
95497         * m4/jm-mktime.m4: Likewise.
95498         * m4/jm-winsz2.m4: Likewise.
95499         * m4/lcmessage.m4: Likewise.
95500         * m4/ls-mntd-fs.m4: Likewise.
95501         * m4/malloc.m4: Likewise.
95502         * m4/memcmp.m4: Likewise.
95503         * m4/putenv.m4: Likewise.
95504         * m4/realloc.m4: Likewise.
95505         * m4/st_mtim.m4: Likewise.
95506         * m4/strftime.m4: Likewise.
95507
95508 1999-01-16  Jim Meyering  <meyering@ascend.com>
95509
95510         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95511         (ARGMATCH_DIE_DECL): Define.
95512
95513 1999-01-12  Jim Meyering  <meyering@ascend.com>
95514
95515         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95516         Reported by Lars Hecking.
95517
95518 1999-01-10  Jim Meyering  <meyering@ascend.com>
95519
95520         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95521         gross kludge.
95522         * m4/inttypes_h.m4: Likewise.
95523         * m4/lstat.m4: Likewise.
95524         * m4/malloc.m4: Likewise.
95525         * m4/readdir.m4: Likewise.
95526         * m4/realloc.m4: Likewise.
95527         * m4/st_dm_mode.m4: Likewise.
95528         * m4/stat.m4: Likewise.
95529         * m4/utimbuf.m4: Likewise.
95530         * m4/utimes.m4: Likewise.
95531
95532         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95533         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95534         comments in config.h.in are meaningful.
95535
95536         * m4/jm-macros.m4: Require autoconf-2.13 here.
95537
95538         * m4/regex.m4: By default, don't use the included regex.c on systems
95539         with glibc 2.  Suggestion from Uli Drepper.
95540
95541 1999-01-02  Jim Meyering  <meyering@ascend.com>
95542
95543         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95544
95545 1998-12-18  Jim Meyering  <meyering@ascend.com>
95546
95547         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95548         Based on a suggestion from Lars Hecking.
95549
95550 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95551
95552         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95553
95554 1998-11-16  Jim Meyering  <meyering@ascend.com>
95555
95556         * m4/lfs.m4: Double-quote the `uname...` expression.
95557
95558 1998-11-14  Jim Meyering  <meyering@ascend.com>
95559
95560         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95561         * m4/stat.m4: Likewise.
95562
95563 1998-11-03  Jim Meyering  <meyering@ascend.com>
95564
95565         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95566         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95567
95568 1998-10-18  Jim Meyering  <meyering@ascend.com>
95569
95570         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95571
95572 1998-10-17  Jim Meyering  <meyering@ascend.com>
95573
95574         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95575         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95576         calls for those previously hard-coded headers.  Instead, take a new
95577         parameter.
95578         (jm_CHECK_DECLARATIONS): Reflect interface change.
95579         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95580         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95581
95582         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95583
95584 1998-10-14  Jim Meyering  <meyering@ascend.com>
95585
95586         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95587         instead of "TZ=America/Vancouver".  From Paul Eggert.
95588
95589 1998-10-11  Jim Meyering  <meyering@ascend.com>
95590
95591         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95592         This adds a test for a recently added compatibility fix for mktime.c.
95593         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95594
95595 1998-09-27  Jim Meyering  <meyering@ascend.com>
95596
95597         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95598
95599         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95600         ../configure.in, including a change from Gordon Matzigkeit to allow
95601         cross-compiling for the Hurd.
95602
95603         * m4/glibc.m4: New file/macro to test for the GNU C Library
95604         versions 1 and 2.  From Gordon Matzigkeit.
95605         Indent.
95606
95607 1998-09-21  Jim Meyering  <meyering@ascend.com>
95608
95609         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95610
95611 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95612
95613         Port nanosecond-resolution times to UnixWare 2.1.2 and
95614         pedantic Solaris 2.6.
95615
95616         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95617         AC_STRUCT_ST_MTIM.
95618         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95619         Generate name of ns member, instead of just 1 or undef.
95620         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95621
95622 1998-08-15  Jim Meyering  <meyering@ascend.com>
95623
95624         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95625         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95626         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95627         instead of jm_TYPE_SSIZE_T.
95628
95629 1998-08-12  Jim Meyering  <meyering@ascend.com>
95630
95631         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95632
95633 1998-08-02  Jim Meyering  <meyering@ascend.com>
95634
95635         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95636         in acconfig.h manually.
95637
95638 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95639
95640         * m4/st_mtim.m4: New file.
95641
95642 1998-07-28  Jim Meyering  <meyering@ascend.com>
95643
95644         * m4/utimes.m4: Undef stat.
95645
95646 1998-07-25  Jim Meyering  <meyering@ascend.com>
95647
95648         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95649         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95650
95651 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95652
95653         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95654         uid and gid actually remain unchanged.
95655
95656 1998-07-07  Jim Meyering  <meyering@ascend.com>
95657
95658         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95659
95660 1998-07-04  Jim Meyering  <meyering@ascend.com>
95661
95662         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95663         to prove that this macro can be used in packages without regex.c.
95664
95665 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95666
95667         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95668         is to be used.
95669
95670 1998-07-03  Jim Meyering  <meyering@ascend.com>
95671
95672         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95673
95674         * m4/gettext.m4: New file -- from gettext-0.10.35.
95675         * m4/lcmessage.m4: Likewise.
95676         * m4/progtest.m4: Likewise.
95677
95678         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95679         * m4/jm-macros.m4: Require the new macro.
95680
95681 1998-06-29  Jim Meyering  <meyering@ascend.com>
95682
95683         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95684         for the definition of NGROUPS (used in a system header included
95685         by sys/mount.h).
95686
95687 1998-06-28  Jim Meyering  <meyering@ascend.com>
95688
95689         * m4/ls-mntd-fs.m4: New file.
95690         * m4/fstypename.m4: New file.
95691
95692         * m4/jm-macros.m4: Require the new macro.
95693         * m4/jm-glibc-io.m4: New file.
95694
95695 1998-05-19  Jim Meyering  <meyering@ascend.com>
95696
95697         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95698         * m4/lchown.m4: New file.
95699
95700         * m4/Makefile.am.in: New file.
95701         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95702
95703 1998-05-14  Jim Meyering  <meyering@ascend.com>
95704
95705         * m4/Makefile.am (EXTRA_DIST): Add them.
95706         * m4/jm-macros.m4: New file.
95707         * m4/utimbuf.m4: New file.
95708
95709 1998-05-12  Jim Meyering  <meyering@ascend.com>
95710
95711         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95712
95713 1998-05-11  Jim Meyering  <meyering@ascend.com>
95714
95715         * m4/isc-posix.m4: New file.
95716
95717 1998-05-10  Jim Meyering  <meyering@ascend.com>
95718
95719         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95720
95721 1998-05-09  Jim Meyering  <meyering@ascend.com>
95722
95723         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95724         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95725         with automake.
95726
95727         * m4/ssize_t.m4: New file.
95728         * m4/mktime.m4: Remove file -- the new automake has this now.
95729
95730 1998-04-26  Jim Meyering  <meyering@ascend.com>
95731
95732         * m4/assert.m4: New file.
95733         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95734
95735 1998-04-05  Jim Meyering  <meyering@ascend.com>
95736
95737         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95738         (jm_PREREQ): Use it here.
95739
95740 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95741
95742         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95743         in acconfig.h.
95744
95745 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95746
95747         * m4/prereq.m4: New file.
95748         * m4/error.m4: New file.
95749         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95750
95751 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95752
95753         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95754         cache-check for the same variable -- that defeated the purpose of
95755         the test; the test program was never run.  This was a problem only
95756         on systems with losing getline functions -- HP-UX 10.20 is one.
95757         Reported by Bjorn Helgaas.
95758
95759 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95760
95761         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95762
95763 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95764
95765         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95766
95767         * m4/const.m4: New file.  Use an initializer in this declaration
95768         typedef int charset[2]; const charset x;
95769         Reported by Bob Glickstein.
95770
95771 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95772
95773         * m4/chown.m4: Fix reversed types on -1 args to chown.
95774         From Kaveh Ghazi.
95775
95776 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95777
95778         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95779         Add lseek and memchr.
95780
95781         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95782         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95783         have a 20-character limit on names.
95784
95785 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95786
95787         * m4/inttypes_h.m4: New file.
95788         * m4/uintmax_t.m4: New file.
95789         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95790
95791
95792         -----
95793
95794         Local Variables:
95795         coding: utf-8
95796         End:
95797
95798         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95799
95800         Copying and distribution of this file, with or without
95801         modification, are permitted provided the copyright notice
95802         and this notice are preserved.